@gaoding/editor-sdk
Advanced tools
Comparing version 1.0.0-alpha.13 to 1.0.0-alpha.14
@@ -463,3 +463,3 @@ "use strict"; | ||
filterPaidMaterial: false, | ||
disableModules: ["vip"] | ||
disableModules: [] | ||
}; | ||
@@ -479,3 +479,3 @@ function isAdvancedConfig(c) { | ||
filterPaidMaterial: c.filterPaidMaterial, | ||
disableModules: (_b = c.disableModules) == null ? void 0 : _b.join(",") | ||
disableModules: ["vip"].concat((_b = c.disableModules) != null ? _b : []).join(",") | ||
}; | ||
@@ -531,3 +531,2 @@ async function openTemplate(config2) { | ||
iframe, | ||
debug: true, | ||
methods: { | ||
@@ -554,3 +553,3 @@ async onload() { | ||
} | ||
return false; | ||
return token; | ||
}, | ||
@@ -597,3 +596,3 @@ async getUserCode() { | ||
} | ||
return false; | ||
return token; | ||
}, | ||
@@ -600,0 +599,0 @@ async getUserCode() { |
@@ -460,3 +460,3 @@ var __defProp = Object.defineProperty; | ||
filterPaidMaterial: false, | ||
disableModules: ["vip"] | ||
disableModules: [] | ||
}; | ||
@@ -476,3 +476,3 @@ function isAdvancedConfig(c) { | ||
filterPaidMaterial: c.filterPaidMaterial, | ||
disableModules: (_b = c.disableModules) == null ? void 0 : _b.join(",") | ||
disableModules: ["vip"].concat((_b = c.disableModules) != null ? _b : []).join(",") | ||
}; | ||
@@ -528,3 +528,2 @@ async function openTemplate(config2) { | ||
iframe, | ||
debug: true, | ||
methods: { | ||
@@ -551,3 +550,3 @@ async onload() { | ||
} | ||
return false; | ||
return token; | ||
}, | ||
@@ -594,3 +593,3 @@ async getUserCode() { | ||
} | ||
return false; | ||
return token; | ||
}, | ||
@@ -597,0 +596,0 @@ async getUserCode() { |
{ | ||
"name": "@gaoding/editor-sdk", | ||
"description": "稿定编辑器对外 SDK", | ||
"version": "1.0.0-alpha.13", | ||
"version": "1.0.0-alpha.14", | ||
"scripts": { | ||
@@ -28,3 +28,3 @@ "build": "vite build", | ||
}, | ||
"gitHead": "44fb684327e08066eabb25cacbf7d4b9bb90dbed" | ||
"gitHead": "1c28042d655c39586a4b0b65682eae01aabc4d61" | ||
} |
@@ -34,3 +34,3 @@ import { createIframe, connectToChild } from './iframe'; | ||
* 获取用户标识code | ||
*/ | ||
*/ | ||
getUserCode: TemplateEditorMethods['getUserCode']; | ||
@@ -43,3 +43,3 @@ } | ||
filterPaidMaterial: false, | ||
disableModules: ['vip'] | ||
disableModules: [] | ||
}; | ||
@@ -62,3 +62,3 @@ | ||
filterPaidMaterial: c.filterPaidMaterial, | ||
disableModules: c.disableModules?.join(',') | ||
disableModules: ['vip'].concat(c.disableModules ?? []).join(',') | ||
}; | ||
@@ -130,3 +130,2 @@ | ||
iframe: iframe, | ||
debug: true, | ||
methods: { | ||
@@ -153,3 +152,3 @@ async onload() { | ||
} | ||
return false; | ||
return token; | ||
}, | ||
@@ -199,3 +198,3 @@ async getUserCode() { | ||
} | ||
return false; | ||
return token; | ||
}, | ||
@@ -202,0 +201,0 @@ async getUserCode() { |
70699
1885