@cesdk/cesdk-js 1.71.0-rc.0 → 1.71.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -5
- package/assets/core/{cesdk-v1.71.0-rc.0-UZEEXBQ6.wasm → cesdk-v1.71.0-rc.2-DZIMCDML.wasm} +0 -0
- package/assets/core/worker-host-v1.71.0-rc.2.js +1 -0
- package/cesdk.umd.js +1 -1
- package/index.d.ts +1 -1
- package/index.html +35 -5
- package/index.js +1 -1
- package/package.json +2 -2
- package/react/index.d.ts +40 -4
- package/vue/index.d.ts +40 -4
- package/assets/core/worker-host-v1.71.0-rc.0.js +0 -1
- /package/assets/core/{cesdk-v1.71.0-rc.0-MLEZSZ4D.data → cesdk-v1.71.0-rc.2-MLEZSZ4D.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -2968,7 +2968,7 @@ declare class CreativeEditorSDK {
|
|
|
2968
2968
|
*
|
|
2969
2969
|
* // Reconfigure as needed
|
|
2970
2970
|
* cesdk.feature.enable('ly.img.navigation.bar');
|
|
2971
|
-
* cesdk.
|
|
2971
|
+
* cesdk.addPlugin(new TypefaceAssetSource());
|
|
2972
2972
|
* ```
|
|
2973
2973
|
*
|
|
2974
2974
|
* @category Configuration
|
package/index.html
CHANGED
|
@@ -31,6 +31,21 @@
|
|
|
31
31
|
|
|
32
32
|
<script type="module">
|
|
33
33
|
import CreativeEditorSDK from './index.js';
|
|
34
|
+
import {
|
|
35
|
+
BlurAssetSource,
|
|
36
|
+
ColorPaletteAssetSource,
|
|
37
|
+
CropPresetsAssetSource,
|
|
38
|
+
DemoAssetSources,
|
|
39
|
+
EffectsAssetSource,
|
|
40
|
+
FiltersAssetSource,
|
|
41
|
+
PagePresetsAssetSource,
|
|
42
|
+
StickerAssetSource,
|
|
43
|
+
TextAssetSource,
|
|
44
|
+
TextComponentAssetSource,
|
|
45
|
+
TypefaceAssetSource,
|
|
46
|
+
UploadAssetSources,
|
|
47
|
+
VectorShapeAssetSource
|
|
48
|
+
} from './plugins/index.js';
|
|
34
49
|
|
|
35
50
|
window.onload = function () {
|
|
36
51
|
var href = window.location.href.split('?');
|
|
@@ -68,11 +83,26 @@
|
|
|
68
83
|
async (instance) => {
|
|
69
84
|
// Set the locale using the new API
|
|
70
85
|
instance.i18n.setLocale('en');
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
|
|
87
|
+
// Add asset source plugins
|
|
88
|
+
await instance.addPlugin(new BlurAssetSource());
|
|
89
|
+
await instance.addPlugin(new ColorPaletteAssetSource());
|
|
90
|
+
await instance.addPlugin(new CropPresetsAssetSource());
|
|
91
|
+
await instance.addPlugin(new EffectsAssetSource());
|
|
92
|
+
await instance.addPlugin(new FiltersAssetSource());
|
|
93
|
+
await instance.addPlugin(new PagePresetsAssetSource());
|
|
94
|
+
await instance.addPlugin(new StickerAssetSource());
|
|
95
|
+
await instance.addPlugin(new TextAssetSource());
|
|
96
|
+
await instance.addPlugin(new TextComponentAssetSource());
|
|
97
|
+
await instance.addPlugin(new TypefaceAssetSource());
|
|
98
|
+
await instance.addPlugin(new VectorShapeAssetSource());
|
|
99
|
+
await instance.addPlugin(
|
|
100
|
+
new UploadAssetSources({ include: ['ly.img.image.upload'] })
|
|
101
|
+
);
|
|
102
|
+
await instance.addPlugin(
|
|
103
|
+
new DemoAssetSources({ include: ['ly.img.image.*'] })
|
|
104
|
+
);
|
|
105
|
+
|
|
76
106
|
await instance.actions.run('scene.create');
|
|
77
107
|
}
|
|
78
108
|
);
|