@ant-design/agentic-ui 2.24.5 → 2.26.0
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/dist/Components/Loading/CreativeRecommendationLoading.d.ts +26 -0
- package/dist/Components/Loading/CreativeRecommendationLoading.js +77 -0
- package/dist/Components/Loading/CreativeSparkLoading.d.ts +27 -0
- package/dist/Components/Loading/CreativeSparkLoading.js +78 -0
- package/dist/Components/Loading/Loading.d.ts +26 -0
- package/dist/Components/Loading/Loading.js +57 -0
- package/dist/Components/Loading/index.d.ts +3 -26
- package/dist/Components/Loading/index.js +3 -57
- package/dist/Components/Robot/index.d.ts +0 -1
- package/dist/Components/Robot/index.js +0 -1
- package/dist/Components/effects/CreativeRecommendationEffect/creativeRecommendation.json +580 -0
- package/dist/Components/effects/CreativeRecommendationEffect/index.d.ts +41 -0
- package/dist/Components/effects/CreativeRecommendationEffect/index.js +52 -0
- package/dist/Components/effects/EffectPlayer.d.ts +28 -0
- package/dist/Components/effects/EffectPlayer.js +222 -0
- package/dist/Components/effects/LoadingEffect/index.d.ts +41 -0
- package/dist/Components/effects/LoadingEffect/index.js +51 -0
- package/dist/Components/effects/LoadingEffect/loading.json +922 -0
- package/dist/Components/effects/index.d.ts +3 -0
- package/dist/Components/effects/index.js +3 -0
- package/dist/Components/lotties/CreativeSparkLottie/creativeSpark.json +5576 -0
- package/dist/Components/lotties/CreativeSparkLottie/index.d.ts +65 -0
- package/dist/Components/lotties/CreativeSparkLottie/index.js +87 -0
- package/dist/Components/lotties/LoadingLottie/loading.json +4024 -1977
- package/dist/Components/lotties/index.d.ts +4 -0
- package/dist/Components/lotties/index.js +4 -0
- package/dist/MarkdownEditor/editor/Editor.js +2 -1
- package/dist/MarkdownEditor/editor/elements/index.d.ts +1 -0
- package/dist/MarkdownEditor/editor/elements/index.js +12 -2
- package/dist/MarkdownEditor/editor/store.js +6 -3
- package/dist/MarkdownEditor/editor/utils/docx/docxDeserializer.js +2 -2
- package/dist/MarkdownEditor/types.d.ts +6 -0
- package/dist/Workspace/File/FileComponent.js +3 -2
- package/dist/Workspace/Task/index.d.ts +3 -1
- package/dist/Workspace/Task/index.js +4 -3
- package/dist/Workspace/Task/style.js +2 -1
- package/package.json +2 -1
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
{
|
|
2
|
+
"playerVersion": {
|
|
3
|
+
"web": "2.7.3",
|
|
4
|
+
"native": "0.0.1.202311221223"
|
|
5
|
+
},
|
|
6
|
+
"images": [
|
|
7
|
+
{
|
|
8
|
+
"url": "https://mdn.alipayobjects.com/mars/afts/img/A*tvJfToaK3NkAAAAAQCAAAAgAelB4AQ/original",
|
|
9
|
+
"id": "3c33efec7cd440be8521e833816af9e8",
|
|
10
|
+
"renderLevel": "B+",
|
|
11
|
+
"webp": "https://mdn.alipayobjects.com/mars/afts/img/A*p6caQLf6Ce4AAAAAQDAAAAgAelB4AQ/original"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"fonts": [],
|
|
15
|
+
"version": "3.4",
|
|
16
|
+
"plugins": [],
|
|
17
|
+
"type": "ge",
|
|
18
|
+
"compositions": [
|
|
19
|
+
{
|
|
20
|
+
"id": "68d7501ca09e4c11b62ab0c31c5080dd",
|
|
21
|
+
"name": "预合成",
|
|
22
|
+
"duration": 1,
|
|
23
|
+
"startTime": 0,
|
|
24
|
+
"endBehavior": 2,
|
|
25
|
+
"previewSize": [
|
|
26
|
+
48,
|
|
27
|
+
48
|
|
28
|
+
],
|
|
29
|
+
"camera": {
|
|
30
|
+
"fov": 60,
|
|
31
|
+
"far": 40,
|
|
32
|
+
"near": 0.1,
|
|
33
|
+
"clipMode": 1,
|
|
34
|
+
"position": [
|
|
35
|
+
0,
|
|
36
|
+
0,
|
|
37
|
+
8
|
|
38
|
+
],
|
|
39
|
+
"rotation": [
|
|
40
|
+
0,
|
|
41
|
+
0,
|
|
42
|
+
0
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"components": [
|
|
46
|
+
{
|
|
47
|
+
"id": "b8ac7de29d434180a99fd67a1e313ed0"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "0e2a65fc46714095bf56bf39df7a75e9",
|
|
53
|
+
"name": "star",
|
|
54
|
+
"duration": 1,
|
|
55
|
+
"startTime": 0,
|
|
56
|
+
"endBehavior": 2,
|
|
57
|
+
"previewSize": [
|
|
58
|
+
48,
|
|
59
|
+
48
|
|
60
|
+
],
|
|
61
|
+
"camera": {
|
|
62
|
+
"fov": 60,
|
|
63
|
+
"far": 40,
|
|
64
|
+
"near": 0.1,
|
|
65
|
+
"clipMode": 1,
|
|
66
|
+
"position": [
|
|
67
|
+
0,
|
|
68
|
+
0,
|
|
69
|
+
8
|
|
70
|
+
],
|
|
71
|
+
"rotation": [
|
|
72
|
+
0,
|
|
73
|
+
0,
|
|
74
|
+
0
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"components": [
|
|
78
|
+
{
|
|
79
|
+
"id": "50a175c8572c4712a12354f0676c7acd"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"components": [
|
|
85
|
+
{
|
|
86
|
+
"id": "50a175c8572c4712a12354f0676c7acd",
|
|
87
|
+
"item": {
|
|
88
|
+
"id": ""
|
|
89
|
+
},
|
|
90
|
+
"dataType": "CompositionComponent",
|
|
91
|
+
"items": [
|
|
92
|
+
{
|
|
93
|
+
"id": "20ff68804697448fb5a78853b3676ade"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "8662ddbe07e34c77980ec180365aea5b"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"timelineAsset": {
|
|
100
|
+
"id": "f5dc8fc47f094f469c910ceb70403f99"
|
|
101
|
+
},
|
|
102
|
+
"sceneBindings": [
|
|
103
|
+
{
|
|
104
|
+
"key": {
|
|
105
|
+
"id": "8b13419799ee43308e48e51f2c3d9b89"
|
|
106
|
+
},
|
|
107
|
+
"value": {
|
|
108
|
+
"id": "20ff68804697448fb5a78853b3676ade"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"key": {
|
|
113
|
+
"id": "a613fd2c4e304e49a4631864cedf751e"
|
|
114
|
+
},
|
|
115
|
+
"value": {
|
|
116
|
+
"id": "8662ddbe07e34c77980ec180365aea5b"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "b8ac7de29d434180a99fd67a1e313ed0",
|
|
123
|
+
"item": {
|
|
124
|
+
"id": ""
|
|
125
|
+
},
|
|
126
|
+
"dataType": "CompositionComponent",
|
|
127
|
+
"items": [
|
|
128
|
+
{
|
|
129
|
+
"id": "b61b5a164eb640f7a4043af8709b2292"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"timelineAsset": {
|
|
133
|
+
"id": "cb76871e4d324e49afe079e4154416bc"
|
|
134
|
+
},
|
|
135
|
+
"sceneBindings": [
|
|
136
|
+
{
|
|
137
|
+
"key": {
|
|
138
|
+
"id": "6ea225851984473e9320c5b358f4203d"
|
|
139
|
+
},
|
|
140
|
+
"value": {
|
|
141
|
+
"id": "b61b5a164eb640f7a4043af8709b2292"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "a9377e36480a42aaa080ab9cbafd2aa1",
|
|
148
|
+
"item": {
|
|
149
|
+
"id": "b61b5a164eb640f7a4043af8709b2292"
|
|
150
|
+
},
|
|
151
|
+
"dataType": "SpriteComponent",
|
|
152
|
+
"options": {
|
|
153
|
+
"startColor": [
|
|
154
|
+
1,
|
|
155
|
+
1,
|
|
156
|
+
1,
|
|
157
|
+
1
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"renderer": {
|
|
161
|
+
"renderMode": 1,
|
|
162
|
+
"texture": {
|
|
163
|
+
"id": "694bde0cd1cf4af1b6d9a0b51714c3e3"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"geometries": [],
|
|
169
|
+
"materials": [],
|
|
170
|
+
"items": [
|
|
171
|
+
{
|
|
172
|
+
"id": "20ff68804697448fb5a78853b3676ade",
|
|
173
|
+
"components": [],
|
|
174
|
+
"name": "预合成",
|
|
175
|
+
"duration": 1,
|
|
176
|
+
"dataType": "VFXItemData",
|
|
177
|
+
"type": "7",
|
|
178
|
+
"visible": true,
|
|
179
|
+
"endBehavior": 5,
|
|
180
|
+
"delay": 0,
|
|
181
|
+
"renderLevel": "B+",
|
|
182
|
+
"content": {
|
|
183
|
+
"options": {
|
|
184
|
+
"refId": "68d7501ca09e4c11b62ab0c31c5080dd"
|
|
185
|
+
},
|
|
186
|
+
"positionOverLifetime": {}
|
|
187
|
+
},
|
|
188
|
+
"transform": {
|
|
189
|
+
"position": {
|
|
190
|
+
"x": -0.7669,
|
|
191
|
+
"y": 0,
|
|
192
|
+
"z": 0
|
|
193
|
+
},
|
|
194
|
+
"eulerHint": {
|
|
195
|
+
"x": 0,
|
|
196
|
+
"y": 0,
|
|
197
|
+
"z": 0
|
|
198
|
+
},
|
|
199
|
+
"scale": {
|
|
200
|
+
"x": 0.8351,
|
|
201
|
+
"y": 0.8351,
|
|
202
|
+
"z": 1
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": "b61b5a164eb640f7a4043af8709b2292",
|
|
208
|
+
"name": "star",
|
|
209
|
+
"duration": 1,
|
|
210
|
+
"type": "1",
|
|
211
|
+
"visible": true,
|
|
212
|
+
"endBehavior": 5,
|
|
213
|
+
"delay": 0,
|
|
214
|
+
"renderLevel": "B+",
|
|
215
|
+
"components": [
|
|
216
|
+
{
|
|
217
|
+
"id": "a9377e36480a42aaa080ab9cbafd2aa1"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"transform": {
|
|
221
|
+
"position": {
|
|
222
|
+
"x": 0,
|
|
223
|
+
"y": 0,
|
|
224
|
+
"z": 0
|
|
225
|
+
},
|
|
226
|
+
"eulerHint": {
|
|
227
|
+
"x": 0,
|
|
228
|
+
"y": 0,
|
|
229
|
+
"z": 0
|
|
230
|
+
},
|
|
231
|
+
"anchor": {
|
|
232
|
+
"x": 0,
|
|
233
|
+
"y": 0
|
|
234
|
+
},
|
|
235
|
+
"size": {
|
|
236
|
+
"x": 9.0809,
|
|
237
|
+
"y": 9.0809
|
|
238
|
+
},
|
|
239
|
+
"scale": {
|
|
240
|
+
"x": 1,
|
|
241
|
+
"y": 1,
|
|
242
|
+
"z": 1
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"dataType": "VFXItemData"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"id": "8662ddbe07e34c77980ec180365aea5b",
|
|
249
|
+
"components": [],
|
|
250
|
+
"name": "预合成 (2)",
|
|
251
|
+
"duration": 1,
|
|
252
|
+
"dataType": "VFXItemData",
|
|
253
|
+
"type": "7",
|
|
254
|
+
"visible": true,
|
|
255
|
+
"endBehavior": 5,
|
|
256
|
+
"delay": 0.5,
|
|
257
|
+
"renderLevel": "B+",
|
|
258
|
+
"content": {
|
|
259
|
+
"options": {
|
|
260
|
+
"refId": "68d7501ca09e4c11b62ab0c31c5080dd"
|
|
261
|
+
},
|
|
262
|
+
"positionOverLifetime": {}
|
|
263
|
+
},
|
|
264
|
+
"transform": {
|
|
265
|
+
"position": {
|
|
266
|
+
"x": 2.7797,
|
|
267
|
+
"y": -2.2775,
|
|
268
|
+
"z": 0
|
|
269
|
+
},
|
|
270
|
+
"eulerHint": {
|
|
271
|
+
"x": 0,
|
|
272
|
+
"y": 0,
|
|
273
|
+
"z": 0
|
|
274
|
+
},
|
|
275
|
+
"scale": {
|
|
276
|
+
"x": 0.3385,
|
|
277
|
+
"y": 0.3385,
|
|
278
|
+
"z": 1
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"shaders": [],
|
|
284
|
+
"bins": [],
|
|
285
|
+
"textures": [
|
|
286
|
+
{
|
|
287
|
+
"id": "694bde0cd1cf4af1b6d9a0b51714c3e3",
|
|
288
|
+
"source": {
|
|
289
|
+
"id": "3c33efec7cd440be8521e833816af9e8"
|
|
290
|
+
},
|
|
291
|
+
"flipY": true
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"animations": [],
|
|
295
|
+
"miscs": [
|
|
296
|
+
{
|
|
297
|
+
"id": "f5dc8fc47f094f469c910ceb70403f99",
|
|
298
|
+
"dataType": "TimelineAsset",
|
|
299
|
+
"tracks": [
|
|
300
|
+
{
|
|
301
|
+
"id": "8b13419799ee43308e48e51f2c3d9b89"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "a613fd2c4e304e49a4631864cedf751e"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": "89a6250b15f1439591b4d458544c90df",
|
|
310
|
+
"dataType": "ActivationPlayableAsset"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "f3d3db3c5c044d8388cfbbc96939fed1",
|
|
314
|
+
"dataType": "TransformPlayableAsset",
|
|
315
|
+
"positionOverLifetime": {}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"id": "efa5621585a1466abfd7e7497c2ffb96",
|
|
319
|
+
"dataType": "SubCompositionPlayableAsset"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "76da6c1abd2e4d658a4dec8542a883c7",
|
|
323
|
+
"dataType": "ActivationTrack",
|
|
324
|
+
"children": [],
|
|
325
|
+
"clips": [
|
|
326
|
+
{
|
|
327
|
+
"start": 0,
|
|
328
|
+
"duration": 1,
|
|
329
|
+
"endBehavior": 5,
|
|
330
|
+
"asset": {
|
|
331
|
+
"id": "89a6250b15f1439591b4d458544c90df"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"id": "68997a4bdd8540f69721ba14282af4b3",
|
|
338
|
+
"dataType": "TransformTrack",
|
|
339
|
+
"children": [],
|
|
340
|
+
"clips": [
|
|
341
|
+
{
|
|
342
|
+
"start": 0,
|
|
343
|
+
"duration": 1,
|
|
344
|
+
"endBehavior": 5,
|
|
345
|
+
"asset": {
|
|
346
|
+
"id": "f3d3db3c5c044d8388cfbbc96939fed1"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "fea351ddf9694c68a130769a50db4b5a",
|
|
353
|
+
"dataType": "SubCompositionTrack",
|
|
354
|
+
"children": [],
|
|
355
|
+
"clips": [
|
|
356
|
+
{
|
|
357
|
+
"start": 0,
|
|
358
|
+
"duration": 1,
|
|
359
|
+
"endBehavior": 5,
|
|
360
|
+
"asset": {
|
|
361
|
+
"id": "efa5621585a1466abfd7e7497c2ffb96"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"id": "8b13419799ee43308e48e51f2c3d9b89",
|
|
368
|
+
"dataType": "ObjectBindingTrack",
|
|
369
|
+
"children": [
|
|
370
|
+
{
|
|
371
|
+
"id": "76da6c1abd2e4d658a4dec8542a883c7"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"id": "68997a4bdd8540f69721ba14282af4b3"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"id": "fea351ddf9694c68a130769a50db4b5a"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"clips": []
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"id": "cb76871e4d324e49afe079e4154416bc",
|
|
384
|
+
"dataType": "TimelineAsset",
|
|
385
|
+
"tracks": [
|
|
386
|
+
{
|
|
387
|
+
"id": "6ea225851984473e9320c5b358f4203d"
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"id": "f70754874c6c45e3b4ac2eb730b92bfd",
|
|
393
|
+
"dataType": "ActivationPlayableAsset"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"id": "dc8dec886fbb45fe83d36e95274c429e",
|
|
397
|
+
"dataType": "TransformPlayableAsset",
|
|
398
|
+
"positionOverLifetime": {},
|
|
399
|
+
"sizeOverLifetime": {
|
|
400
|
+
"size": [
|
|
401
|
+
21,
|
|
402
|
+
[
|
|
403
|
+
[
|
|
404
|
+
4,
|
|
405
|
+
[
|
|
406
|
+
0,
|
|
407
|
+
1
|
|
408
|
+
]
|
|
409
|
+
],
|
|
410
|
+
[
|
|
411
|
+
1,
|
|
412
|
+
[
|
|
413
|
+
0.2733,
|
|
414
|
+
0.7,
|
|
415
|
+
0.41,
|
|
416
|
+
0.7,
|
|
417
|
+
0.6067,
|
|
418
|
+
0.7
|
|
419
|
+
],
|
|
420
|
+
1
|
|
421
|
+
],
|
|
422
|
+
[
|
|
423
|
+
4,
|
|
424
|
+
[
|
|
425
|
+
1,
|
|
426
|
+
1
|
|
427
|
+
]
|
|
428
|
+
]
|
|
429
|
+
]
|
|
430
|
+
]
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"id": "e7bdb619cbf6473bb700138e89cd34f8",
|
|
435
|
+
"dataType": "SpriteColorPlayableAsset",
|
|
436
|
+
"startColor": [
|
|
437
|
+
1,
|
|
438
|
+
1,
|
|
439
|
+
1,
|
|
440
|
+
1
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"id": "da5c4f6ca4994e52994f160eba3e0bf5",
|
|
445
|
+
"dataType": "ActivationTrack",
|
|
446
|
+
"children": [],
|
|
447
|
+
"clips": [
|
|
448
|
+
{
|
|
449
|
+
"start": 0,
|
|
450
|
+
"duration": 1,
|
|
451
|
+
"endBehavior": 5,
|
|
452
|
+
"asset": {
|
|
453
|
+
"id": "f70754874c6c45e3b4ac2eb730b92bfd"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"id": "6b889252230444f1872bd3714302ecda",
|
|
460
|
+
"dataType": "TransformTrack",
|
|
461
|
+
"children": [],
|
|
462
|
+
"clips": [
|
|
463
|
+
{
|
|
464
|
+
"start": 0,
|
|
465
|
+
"duration": 1,
|
|
466
|
+
"endBehavior": 5,
|
|
467
|
+
"asset": {
|
|
468
|
+
"id": "dc8dec886fbb45fe83d36e95274c429e"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"id": "3a47a48121524a3592dec00c5e03cffb",
|
|
475
|
+
"dataType": "SpriteColorTrack",
|
|
476
|
+
"children": [],
|
|
477
|
+
"clips": [
|
|
478
|
+
{
|
|
479
|
+
"start": 0,
|
|
480
|
+
"duration": 1,
|
|
481
|
+
"endBehavior": 5,
|
|
482
|
+
"asset": {
|
|
483
|
+
"id": "e7bdb619cbf6473bb700138e89cd34f8"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"id": "6ea225851984473e9320c5b358f4203d",
|
|
490
|
+
"dataType": "ObjectBindingTrack",
|
|
491
|
+
"children": [
|
|
492
|
+
{
|
|
493
|
+
"id": "da5c4f6ca4994e52994f160eba3e0bf5"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"id": "6b889252230444f1872bd3714302ecda"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"id": "3a47a48121524a3592dec00c5e03cffb"
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"clips": []
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"id": "48dded04e4a041838c6cef5009f54a64",
|
|
506
|
+
"dataType": "ActivationPlayableAsset"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"id": "f5bf1400e08543628941bce4ba7108e4",
|
|
510
|
+
"dataType": "TransformPlayableAsset",
|
|
511
|
+
"positionOverLifetime": {}
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"id": "3b77df5f8f56477f98aad6b2caa94f48",
|
|
515
|
+
"dataType": "SubCompositionPlayableAsset"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"id": "f19e4374e4ef45639f2d81622c597b79",
|
|
519
|
+
"dataType": "ActivationTrack",
|
|
520
|
+
"children": [],
|
|
521
|
+
"clips": [
|
|
522
|
+
{
|
|
523
|
+
"start": 0.5,
|
|
524
|
+
"duration": 1,
|
|
525
|
+
"endBehavior": 5,
|
|
526
|
+
"asset": {
|
|
527
|
+
"id": "48dded04e4a041838c6cef5009f54a64"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"id": "5fa2dec9dc784f91bdf04368f59e07e6",
|
|
534
|
+
"dataType": "TransformTrack",
|
|
535
|
+
"children": [],
|
|
536
|
+
"clips": [
|
|
537
|
+
{
|
|
538
|
+
"start": 0.5,
|
|
539
|
+
"duration": 1,
|
|
540
|
+
"endBehavior": 5,
|
|
541
|
+
"asset": {
|
|
542
|
+
"id": "f5bf1400e08543628941bce4ba7108e4"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"id": "f29ff6b8d31a49e183d2af03f9a09ffb",
|
|
549
|
+
"dataType": "SubCompositionTrack",
|
|
550
|
+
"children": [],
|
|
551
|
+
"clips": [
|
|
552
|
+
{
|
|
553
|
+
"start": 0.5,
|
|
554
|
+
"duration": 1,
|
|
555
|
+
"endBehavior": 5,
|
|
556
|
+
"asset": {
|
|
557
|
+
"id": "3b77df5f8f56477f98aad6b2caa94f48"
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"id": "a613fd2c4e304e49a4631864cedf751e",
|
|
564
|
+
"dataType": "ObjectBindingTrack",
|
|
565
|
+
"children": [
|
|
566
|
+
{
|
|
567
|
+
"id": "f19e4374e4ef45639f2d81622c597b79"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"id": "5fa2dec9dc784f91bdf04368f59e07e6"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"id": "f29ff6b8d31a49e183d2af03f9a09ffb"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"clips": []
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
"compositionId": "0e2a65fc46714095bf56bf39df7a75e9"
|
|
580
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EffectPlayerProps } from '../EffectPlayer';
|
|
3
|
+
/**
|
|
4
|
+
* 创意推荐闪动组件
|
|
5
|
+
*
|
|
6
|
+
* 使用 Lottie 动画展示创意推荐闪动的组件,支持自定义尺寸、样式和播放行为。
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
* @example
|
|
10
|
+
* // 基础用法
|
|
11
|
+
* <CreativeRecommendationEffect />
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // 自定义尺寸
|
|
15
|
+
* <CreativeRecommendationEffect size={64} />
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* // 自定义样式
|
|
19
|
+
* <CreativeRecommendationEffect
|
|
20
|
+
* size={80}
|
|
21
|
+
* style={{ margin: '20px' }}
|
|
22
|
+
* className="custom-creative-recommendation"
|
|
23
|
+
* />
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // 控制播放行为
|
|
27
|
+
* <CreativeRecommendationEffect
|
|
28
|
+
* autoplay={false}
|
|
29
|
+
* loop={false}
|
|
30
|
+
* />
|
|
31
|
+
*
|
|
32
|
+
* @param props - 组件属性
|
|
33
|
+
* @param props.autoplay - 是否自动播放动画,默认为 true
|
|
34
|
+
* @param props.loop - 是否循环播放动画,默认为 true
|
|
35
|
+
* @param props.className - 动画容器类名
|
|
36
|
+
* @param props.style - 动画容器自定义样式
|
|
37
|
+
* @param props.size - 动画尺寸(宽度和高度)
|
|
38
|
+
* @returns 渲染的创意推荐闪动组件
|
|
39
|
+
*/
|
|
40
|
+
export declare const CreativeRecommendationEffect: React.FC<Omit<EffectPlayerProps, 'sceneUrl'>>;
|
|
41
|
+
export default CreativeRecommendationEffect;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import EffectPlayer from "../EffectPlayer";
|
|
3
|
+
import creativeRecommendation from "./creativeRecommendation.json";
|
|
4
|
+
/**
|
|
5
|
+
* 创意推荐闪动组件
|
|
6
|
+
*
|
|
7
|
+
* 使用 Lottie 动画展示创意推荐闪动的组件,支持自定义尺寸、样式和播放行为。
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
* @example
|
|
11
|
+
* // 基础用法
|
|
12
|
+
* <CreativeRecommendationEffect />
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // 自定义尺寸
|
|
16
|
+
* <CreativeRecommendationEffect size={64} />
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // 自定义样式
|
|
20
|
+
* <CreativeRecommendationEffect
|
|
21
|
+
* size={80}
|
|
22
|
+
* style={{ margin: '20px' }}
|
|
23
|
+
* className="custom-creative-recommendation"
|
|
24
|
+
* />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // 控制播放行为
|
|
28
|
+
* <CreativeRecommendationEffect
|
|
29
|
+
* autoplay={false}
|
|
30
|
+
* loop={false}
|
|
31
|
+
* />
|
|
32
|
+
*
|
|
33
|
+
* @param props - 组件属性
|
|
34
|
+
* @param props.autoplay - 是否自动播放动画,默认为 true
|
|
35
|
+
* @param props.loop - 是否循环播放动画,默认为 true
|
|
36
|
+
* @param props.className - 动画容器类名
|
|
37
|
+
* @param props.style - 动画容器自定义样式
|
|
38
|
+
* @param props.size - 动画尺寸(宽度和高度)
|
|
39
|
+
* @returns 渲染的创意推荐闪动组件
|
|
40
|
+
*/ export var CreativeRecommendationEffect = function(param) {
|
|
41
|
+
var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, size = param.size;
|
|
42
|
+
return /*#__PURE__*/ React.createElement(EffectPlayer, {
|
|
43
|
+
sceneUrl: creativeRecommendation,
|
|
44
|
+
downgradeImage: 'https://mdn.alipayobjects.com/graph_jupiter/afts/img/A*VgxnSph0dEwAAAAAQCAAAAgAesF2AQ/original',
|
|
45
|
+
size: size,
|
|
46
|
+
style: style,
|
|
47
|
+
autoplay: autoplay,
|
|
48
|
+
loop: loop,
|
|
49
|
+
className: className
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
export default CreativeRecommendationEffect;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Scene } from '@galacean/effects';
|
|
2
|
+
import React, { HTMLAttributes } from 'react';
|
|
3
|
+
export interface EffectPlayerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ref'> {
|
|
4
|
+
/**
|
|
5
|
+
* 动画资源
|
|
6
|
+
*/
|
|
7
|
+
sceneUrl: Scene.LoadType;
|
|
8
|
+
/**
|
|
9
|
+
* 降级图片
|
|
10
|
+
*/
|
|
11
|
+
downgradeImage?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 是否自动播放动画
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
autoplay?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 是否循环播放动画
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
loop?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 动画尺寸
|
|
24
|
+
*/
|
|
25
|
+
size?: string | number;
|
|
26
|
+
}
|
|
27
|
+
declare function EffectPlayer({ sceneUrl, downgradeImage, autoplay, size, style, ...attrs }: EffectPlayerProps): React.JSX.Element;
|
|
28
|
+
export default EffectPlayer;
|