@versa_ai/vmml-editor 1.0.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.
Files changed (47) hide show
  1. package/.turbo/turbo-build.log +335 -0
  2. package/CHANGELOG.md +16 -0
  3. package/README.md +1 -0
  4. package/biome.json +7 -0
  5. package/dist/index.d.mts +5 -0
  6. package/dist/index.d.ts +5 -0
  7. package/dist/index.js +2675 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/index.mjs +2673 -0
  10. package/dist/index.mjs.map +1 -0
  11. package/package.json +48 -0
  12. package/postcss.config.js +3 -0
  13. package/src/assets/css/closeLayer.scss +50 -0
  14. package/src/assets/css/colorSelector.scss +59 -0
  15. package/src/assets/css/editorTextMenu.less +130 -0
  16. package/src/assets/css/editorTextMenu.scss +149 -0
  17. package/src/assets/css/index.scss +252 -0
  18. package/src/assets/css/loading.scss +31 -0
  19. package/src/assets/css/maxTextLayer.scss +31 -0
  20. package/src/assets/img/icon_Brush.png +0 -0
  21. package/src/assets/img/icon_Change.png +0 -0
  22. package/src/assets/img/icon_Cut.png +0 -0
  23. package/src/assets/img/icon_Face.png +0 -0
  24. package/src/assets/img/icon_Graffiti.png +0 -0
  25. package/src/assets/img/icon_Mute.png +0 -0
  26. package/src/assets/img/icon_Refresh.png +0 -0
  27. package/src/assets/img/icon_Text1.png +0 -0
  28. package/src/assets/img/icon_Text2.png +0 -0
  29. package/src/assets/img/icon_Volume.png +0 -0
  30. package/src/assets/img/icon_Word.png +0 -0
  31. package/src/components/CloseLayer.tsx +25 -0
  32. package/src/components/ColorSelector.tsx +90 -0
  33. package/src/components/Controls.tsx +32 -0
  34. package/src/components/EditorCanvas.tsx +566 -0
  35. package/src/components/Loading.tsx +16 -0
  36. package/src/components/MaxTextLayer.tsx +27 -0
  37. package/src/components/SeekBar.tsx +126 -0
  38. package/src/components/TextMenu.tsx +332 -0
  39. package/src/components/VideoMenu.tsx +49 -0
  40. package/src/index.tsx +551 -0
  41. package/src/utils/HistoryClass.ts +131 -0
  42. package/src/utils/VmmlConverter.ts +339 -0
  43. package/src/utils/const.ts +10 -0
  44. package/src/utils/keyBoardUtils.ts +199 -0
  45. package/src/utils/usePeekControl.ts +242 -0
  46. package/tsconfig.json +5 -0
  47. package/tsup.config.ts +14 -0
@@ -0,0 +1,335 @@
1
+
2
+ > @versa_ai/vmml-editor@1.0.1 build D:\projects\vmml-player\packages\editor
3
+ > tsup
4
+
5
+ CLI Building entry: ./src/index.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.2.4
8
+ CLI Using tsup config: D:\projects\vmml-player\packages\editor\tsup.config.ts
9
+ CLI Target: node16
10
+ CJS Build start
11
+ ESM Build start
12
+ DTS Build start
13
+
14
+  WARN  ▲ [WARNING] Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
15
+
16
+ Recommendation: math.div($px, 750) or calc($px / 750)
17
+
18
+ More info and automated migrator: https://sass-lang.com/d/slash-div [plugin sass-plugin]
19
+
20
+ src/assets/css/colorSelector.scss:4:9:
21
+  4 │ $px / 750
22
+ ╵ ^
23
+
24
+ The plugin "sass-plugin" was triggered by this import
25
+
26
+ src/components/ColorSelector.tsx:1:7:
27
+  1 │ import "../assets/css/colorSelector.scss";
28
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29
+
30
+
31
+
32
+
33
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
34
+ rules will be changing to match the behavior specified by CSS in an upcoming
35
+ version. To keep the existing behavior, move the declaration above the nested
36
+ rule. To opt into the new behavior, wrap the declaration in & {}.
37
+
38
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
39
+
40
+ src/assets/css/colorSelector.scss:55:4:
41
+  55 │ -ms-overflow-style: none
42
+ ╵ ^
43
+
44
+ The plugin "sass-plugin" was triggered by this import
45
+
46
+ src/components/ColorSelector.tsx:1:7:
47
+  1 │ import "../assets/css/colorSelector.scss";
48
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49
+
50
+
51
+
52
+
53
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
54
+ rules will be changing to match the behavior specified by CSS in an upcoming
55
+ version. To keep the existing behavior, move the declaration above the nested
56
+ rule. To opt into the new behavior, wrap the declaration in & {}.
57
+
58
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
59
+
60
+ src/assets/css/colorSelector.scss:56:4:
61
+  56 │ scrollbar-width: none
62
+ ╵ ^
63
+
64
+ The plugin "sass-plugin" was triggered by this import
65
+
66
+ src/components/ColorSelector.tsx:1:7:
67
+  1 │ import "../assets/css/colorSelector.scss";
68
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69
+
70
+
71
+
72
+
73
+  WARN  ▲ [WARNING] Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
74
+
75
+ Recommendation: math.div($px, 750) or calc($px / 750)
76
+
77
+ More info and automated migrator: https://sass-lang.com/d/slash-div [plugin sass-plugin]
78
+
79
+ src/assets/css/editorTextMenu.scss:4:9:
80
+  4 │ $px / 750
81
+ ╵ ^
82
+
83
+ The plugin "sass-plugin" was triggered by this import
84
+
85
+ src/components/TextMenu.tsx:2:7:
86
+  2 │ import "../assets/css/editorTextMenu.scss";
87
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88
+
89
+
90
+
91
+
92
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
93
+ rules will be changing to match the behavior specified by CSS in an upcoming
94
+ version. To keep the existing behavior, move the declaration above the nested
95
+ rule. To opt into the new behavior, wrap the declaration in & {}.
96
+
97
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
98
+
99
+ src/assets/css/editorTextMenu.scss:104:4:
100
+  104 │ -ms-overflow-style: none
101
+ ╵ ^
102
+
103
+ The plugin "sass-plugin" was triggered by this import
104
+
105
+ src/components/TextMenu.tsx:2:7:
106
+  2 │ import "../assets/css/editorTextMenu.scss";
107
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
108
+
109
+
110
+
111
+
112
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
113
+ rules will be changing to match the behavior specified by CSS in an upcoming
114
+ version. To keep the existing behavior, move the declaration above the nested
115
+ rule. To opt into the new behavior, wrap the declaration in & {}.
116
+
117
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
118
+
119
+ src/assets/css/editorTextMenu.scss:105:4:
120
+  105 │ scrollbar-width: none
121
+ ╵ ^
122
+
123
+ The plugin "sass-plugin" was triggered by this import
124
+
125
+ src/components/TextMenu.tsx:2:7:
126
+  2 │ import "../assets/css/editorTextMenu.scss";
127
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
128
+
129
+
130
+
131
+
132
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
133
+ rules will be changing to match the behavior specified by CSS in an upcoming
134
+ version. To keep the existing behavior, move the declaration above the nested
135
+ rule. To opt into the new behavior, wrap the declaration in & {}.
136
+
137
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
138
+
139
+ src/assets/css/editorTextMenu.scss:106:4:
140
+  106 │ transition: all 0.1s
141
+ ╵ ^
142
+
143
+ The plugin "sass-plugin" was triggered by this import
144
+
145
+ src/components/TextMenu.tsx:2:7:
146
+  2 │ import "../assets/css/editorTextMenu.scss";
147
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
148
+
149
+
150
+
151
+
152
+  WARN  ▲ [WARNING] Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
153
+
154
+ Recommendation: math.div($px, 750) or calc($px / 750)
155
+
156
+ More info and automated migrator: https://sass-lang.com/d/slash-div [plugin sass-plugin]
157
+
158
+ src/assets/css/maxTextLayer.scss:4:9:
159
+  4 │ $px / 750
160
+ ╵ ^
161
+
162
+ The plugin "sass-plugin" was triggered by this import
163
+
164
+ src/components/MaxTextLayer.tsx:2:7:
165
+  2 │ import "../assets/css/maxTextLayer.scss";
166
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167
+
168
+
169
+
170
+
171
+  WARN  ▲ [WARNING] Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
172
+
173
+ Recommendation: math.div($px, 750) or calc($px / 750)
174
+
175
+ More info and automated migrator: https://sass-lang.com/d/slash-div [plugin sass-plugin]
176
+
177
+ src/assets/css/colorSelector.scss:4:9:
178
+  4 │ $px / 750
179
+ ╵ ^
180
+
181
+ The plugin "sass-plugin" was triggered by this import
182
+
183
+ src/components/ColorSelector.tsx:1:7:
184
+  1 │ import "../assets/css/colorSelector.scss";
185
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186
+
187
+
188
+
189
+
190
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
191
+ rules will be changing to match the behavior specified by CSS in an upcoming
192
+ version. To keep the existing behavior, move the declaration above the nested
193
+ rule. To opt into the new behavior, wrap the declaration in & {}.
194
+
195
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
196
+
197
+ src/assets/css/colorSelector.scss:55:4:
198
+  55 │ -ms-overflow-style: none
199
+ ╵ ^
200
+
201
+ The plugin "sass-plugin" was triggered by this import
202
+
203
+ src/components/ColorSelector.tsx:1:7:
204
+  1 │ import "../assets/css/colorSelector.scss";
205
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
206
+
207
+
208
+
209
+
210
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
211
+ rules will be changing to match the behavior specified by CSS in an upcoming
212
+ version. To keep the existing behavior, move the declaration above the nested
213
+ rule. To opt into the new behavior, wrap the declaration in & {}.
214
+
215
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
216
+
217
+ src/assets/css/colorSelector.scss:56:4:
218
+  56 │ scrollbar-width: none
219
+ ╵ ^
220
+
221
+ The plugin "sass-plugin" was triggered by this import
222
+
223
+ src/components/ColorSelector.tsx:1:7:
224
+  1 │ import "../assets/css/colorSelector.scss";
225
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
226
+
227
+
228
+
229
+
230
+  WARN  ▲ [WARNING] Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
231
+
232
+ Recommendation: math.div($px, 750) or calc($px / 750)
233
+
234
+ More info and automated migrator: https://sass-lang.com/d/slash-div [plugin sass-plugin]
235
+
236
+ src/assets/css/editorTextMenu.scss:4:9:
237
+  4 │ $px / 750
238
+ ╵ ^
239
+
240
+ The plugin "sass-plugin" was triggered by this import
241
+
242
+ src/components/TextMenu.tsx:2:7:
243
+  2 │ import "../assets/css/editorTextMenu.scss";
244
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
245
+
246
+
247
+
248
+
249
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
250
+ rules will be changing to match the behavior specified by CSS in an upcoming
251
+ version. To keep the existing behavior, move the declaration above the nested
252
+ rule. To opt into the new behavior, wrap the declaration in & {}.
253
+
254
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
255
+
256
+ src/assets/css/editorTextMenu.scss:104:4:
257
+  104 │ -ms-overflow-style: none
258
+ ╵ ^
259
+
260
+ The plugin "sass-plugin" was triggered by this import
261
+
262
+ src/components/TextMenu.tsx:2:7:
263
+  2 │ import "../assets/css/editorTextMenu.scss";
264
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
265
+
266
+
267
+
268
+
269
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
270
+ rules will be changing to match the behavior specified by CSS in an upcoming
271
+ version. To keep the existing behavior, move the declaration above the nested
272
+ rule. To opt into the new behavior, wrap the declaration in & {}.
273
+
274
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
275
+
276
+ src/assets/css/editorTextMenu.scss:105:4:
277
+  105 │ scrollbar-width: none
278
+ ╵ ^
279
+
280
+ The plugin "sass-plugin" was triggered by this import
281
+
282
+ src/components/TextMenu.tsx:2:7:
283
+  2 │ import "../assets/css/editorTextMenu.scss";
284
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
285
+
286
+
287
+
288
+
289
+  WARN  ▲ [WARNING] Sass's behavior for declarations that appear after nested
290
+ rules will be changing to match the behavior specified by CSS in an upcoming
291
+ version. To keep the existing behavior, move the declaration above the nested
292
+ rule. To opt into the new behavior, wrap the declaration in & {}.
293
+
294
+ More info: https://sass-lang.com/d/mixed-decls [plugin sass-plugin]
295
+
296
+ src/assets/css/editorTextMenu.scss:106:4:
297
+  106 │ transition: all 0.1s
298
+ ╵ ^
299
+
300
+ The plugin "sass-plugin" was triggered by this import
301
+
302
+ src/components/TextMenu.tsx:2:7:
303
+  2 │ import "../assets/css/editorTextMenu.scss";
304
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
305
+
306
+
307
+
308
+
309
+  WARN  ▲ [WARNING] Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
310
+
311
+ Recommendation: math.div($px, 750) or calc($px / 750)
312
+
313
+ More info and automated migrator: https://sass-lang.com/d/slash-div [plugin sass-plugin]
314
+
315
+ src/assets/css/maxTextLayer.scss:4:9:
316
+  4 │ $px / 750
317
+ ╵ ^
318
+
319
+ The plugin "sass-plugin" was triggered by this import
320
+
321
+ src/components/MaxTextLayer.tsx:2:7:
322
+  2 │ import "../assets/css/maxTextLayer.scss";
323
+ ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
324
+
325
+
326
+
327
+ ESM dist\index.mjs 102.35 KB
328
+ ESM dist\index.mjs.map 203.82 KB
329
+ ESM âšĦ️ Build success in 825ms
330
+ CJS dist\index.js 103.88 KB
331
+ CJS dist\index.js.map 204.10 KB
332
+ CJS âšĦ️ Build success in 832ms
333
+ DTS âšĦ️ Build success in 1776ms
334
+ DTS dist\index.d.ts 158.00 B
335
+ DTS dist\index.d.mts 158.00 B
package/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # @versa_ai/vmml-editor
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - da23636: init
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [da23636]
12
+ - Updated dependencies [15c059a]
13
+ - Updated dependencies [15c059a]
14
+ - Updated dependencies [15c059a]
15
+ - @versa_ai/vmml-player@2.0.0
16
+ - @versa_ai/vmml-utils@2.0.0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # `@versa_ai/vmml-editor`
package/biome.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
3
+ "extends": ["../../biome.json"],
4
+ "files": {
5
+ "include": ["src/**/*.ts", "src/**/.tsx"]
6
+ }
7
+ }
@@ -0,0 +1,5 @@
1
+ import { AnyZodObject } from 'zod';
2
+
3
+ declare const Editor: <Schema extends AnyZodObject, Props>(props: any) => React.ReactElement | null;
4
+
5
+ export { Editor };
@@ -0,0 +1,5 @@
1
+ import { AnyZodObject } from 'zod';
2
+
3
+ declare const Editor: <Schema extends AnyZodObject, Props>(props: any) => React.ReactElement | null;
4
+
5
+ export { Editor };