@pinepaper.studio/mcp-server 1.0.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/LICENSE +21 -0
- package/README.md +406 -0
- package/dist/__tests__/fixtures/index.d.ts +8 -0
- package/dist/__tests__/fixtures/index.d.ts.map +1 -0
- package/dist/__tests__/fixtures/index.js +8 -0
- package/dist/__tests__/fixtures/index.js.map +1 -0
- package/dist/__tests__/fixtures/mock-animations.d.ts +213 -0
- package/dist/__tests__/fixtures/mock-animations.d.ts.map +1 -0
- package/dist/__tests__/fixtures/mock-animations.js +96 -0
- package/dist/__tests__/fixtures/mock-animations.js.map +1 -0
- package/dist/__tests__/fixtures/mock-generators.d.ts +147 -0
- package/dist/__tests__/fixtures/mock-generators.d.ts.map +1 -0
- package/dist/__tests__/fixtures/mock-generators.js +90 -0
- package/dist/__tests__/fixtures/mock-generators.js.map +1 -0
- package/dist/__tests__/fixtures/mock-items.d.ts +157 -0
- package/dist/__tests__/fixtures/mock-items.d.ts.map +1 -0
- package/dist/__tests__/fixtures/mock-items.js +74 -0
- package/dist/__tests__/fixtures/mock-items.js.map +1 -0
- package/dist/__tests__/fixtures/mock-relations.d.ts +147 -0
- package/dist/__tests__/fixtures/mock-relations.d.ts.map +1 -0
- package/dist/__tests__/fixtures/mock-relations.js +90 -0
- package/dist/__tests__/fixtures/mock-relations.js.map +1 -0
- package/dist/browser/bridge.d.ts +127 -0
- package/dist/browser/bridge.d.ts.map +1 -0
- package/dist/browser/bridge.js +320 -0
- package/dist/browser/bridge.js.map +1 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +8 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/puppeteer-controller.d.ts +93 -0
- package/dist/browser/puppeteer-controller.d.ts.map +1 -0
- package/dist/browser/puppeteer-controller.js +280 -0
- package/dist/browser/puppeteer-controller.js.map +1 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +109 -0
- package/dist/cli.js.map +1 -0
- package/dist/i18n/i18n-manager.d.ts +88 -0
- package/dist/i18n/i18n-manager.d.ts.map +1 -0
- package/dist/i18n/i18n-manager.js +209 -0
- package/dist/i18n/i18n-manager.js.map +1 -0
- package/dist/i18n/index.d.ts +10 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +10 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/locales/ar.d.ts +6 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -0
- package/dist/i18n/locales/ar.js +106 -0
- package/dist/i18n/locales/ar.js.map +1 -0
- package/dist/i18n/locales/base.d.ts +17 -0
- package/dist/i18n/locales/base.d.ts.map +1 -0
- package/dist/i18n/locales/base.js +213 -0
- package/dist/i18n/locales/base.js.map +1 -0
- package/dist/i18n/locales/bn.d.ts +6 -0
- package/dist/i18n/locales/bn.d.ts.map +1 -0
- package/dist/i18n/locales/bn.js +106 -0
- package/dist/i18n/locales/bn.js.map +1 -0
- package/dist/i18n/locales/chp.d.ts +8 -0
- package/dist/i18n/locales/chp.d.ts.map +1 -0
- package/dist/i18n/locales/chp.js +11 -0
- package/dist/i18n/locales/chp.js.map +1 -0
- package/dist/i18n/locales/cr.d.ts +8 -0
- package/dist/i18n/locales/cr.d.ts.map +1 -0
- package/dist/i18n/locales/cr.js +11 -0
- package/dist/i18n/locales/cr.js.map +1 -0
- package/dist/i18n/locales/crg.d.ts +8 -0
- package/dist/i18n/locales/crg.d.ts.map +1 -0
- package/dist/i18n/locales/crg.js +11 -0
- package/dist/i18n/locales/crg.js.map +1 -0
- package/dist/i18n/locales/cs.d.ts +6 -0
- package/dist/i18n/locales/cs.d.ts.map +1 -0
- package/dist/i18n/locales/cs.js +106 -0
- package/dist/i18n/locales/cs.js.map +1 -0
- package/dist/i18n/locales/da.d.ts +6 -0
- package/dist/i18n/locales/da.d.ts.map +1 -0
- package/dist/i18n/locales/da.js +106 -0
- package/dist/i18n/locales/da.js.map +1 -0
- package/dist/i18n/locales/de.d.ts +6 -0
- package/dist/i18n/locales/de.d.ts.map +1 -0
- package/dist/i18n/locales/de.js +106 -0
- package/dist/i18n/locales/de.js.map +1 -0
- package/dist/i18n/locales/el.d.ts +6 -0
- package/dist/i18n/locales/el.d.ts.map +1 -0
- package/dist/i18n/locales/el.js +106 -0
- package/dist/i18n/locales/el.js.map +1 -0
- package/dist/i18n/locales/en.d.ts +6 -0
- package/dist/i18n/locales/en.d.ts.map +1 -0
- package/dist/i18n/locales/en.js +383 -0
- package/dist/i18n/locales/en.js.map +1 -0
- package/dist/i18n/locales/es.d.ts +6 -0
- package/dist/i18n/locales/es.d.ts.map +1 -0
- package/dist/i18n/locales/es.js +106 -0
- package/dist/i18n/locales/es.js.map +1 -0
- package/dist/i18n/locales/fa.d.ts +6 -0
- package/dist/i18n/locales/fa.d.ts.map +1 -0
- package/dist/i18n/locales/fa.js +106 -0
- package/dist/i18n/locales/fa.js.map +1 -0
- package/dist/i18n/locales/fi.d.ts +6 -0
- package/dist/i18n/locales/fi.d.ts.map +1 -0
- package/dist/i18n/locales/fi.js +106 -0
- package/dist/i18n/locales/fi.js.map +1 -0
- package/dist/i18n/locales/fil.d.ts +6 -0
- package/dist/i18n/locales/fil.d.ts.map +1 -0
- package/dist/i18n/locales/fil.js +383 -0
- package/dist/i18n/locales/fil.js.map +1 -0
- package/dist/i18n/locales/fr.d.ts +6 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -0
- package/dist/i18n/locales/fr.js +106 -0
- package/dist/i18n/locales/fr.js.map +1 -0
- package/dist/i18n/locales/gu.d.ts +6 -0
- package/dist/i18n/locales/gu.d.ts.map +1 -0
- package/dist/i18n/locales/gu.js +106 -0
- package/dist/i18n/locales/gu.js.map +1 -0
- package/dist/i18n/locales/he.d.ts +6 -0
- package/dist/i18n/locales/he.d.ts.map +1 -0
- package/dist/i18n/locales/he.js +106 -0
- package/dist/i18n/locales/he.js.map +1 -0
- package/dist/i18n/locales/hi.d.ts +6 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -0
- package/dist/i18n/locales/hi.js +106 -0
- package/dist/i18n/locales/hi.js.map +1 -0
- package/dist/i18n/locales/hu.d.ts +6 -0
- package/dist/i18n/locales/hu.d.ts.map +1 -0
- package/dist/i18n/locales/hu.js +106 -0
- package/dist/i18n/locales/hu.js.map +1 -0
- package/dist/i18n/locales/id.d.ts +6 -0
- package/dist/i18n/locales/id.d.ts.map +1 -0
- package/dist/i18n/locales/id.js +106 -0
- package/dist/i18n/locales/id.js.map +1 -0
- package/dist/i18n/locales/index.d.ts +110 -0
- package/dist/i18n/locales/index.d.ts.map +1 -0
- package/dist/i18n/locales/index.js +123 -0
- package/dist/i18n/locales/index.js.map +1 -0
- package/dist/i18n/locales/is.d.ts +6 -0
- package/dist/i18n/locales/is.d.ts.map +1 -0
- package/dist/i18n/locales/is.js +383 -0
- package/dist/i18n/locales/is.js.map +1 -0
- package/dist/i18n/locales/it.d.ts +6 -0
- package/dist/i18n/locales/it.d.ts.map +1 -0
- package/dist/i18n/locales/it.js +106 -0
- package/dist/i18n/locales/it.js.map +1 -0
- package/dist/i18n/locales/iu.d.ts +8 -0
- package/dist/i18n/locales/iu.d.ts.map +1 -0
- package/dist/i18n/locales/iu.js +11 -0
- package/dist/i18n/locales/iu.js.map +1 -0
- package/dist/i18n/locales/ja.d.ts +6 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -0
- package/dist/i18n/locales/ja.js +106 -0
- package/dist/i18n/locales/ja.js.map +1 -0
- package/dist/i18n/locales/kn.d.ts +6 -0
- package/dist/i18n/locales/kn.d.ts.map +1 -0
- package/dist/i18n/locales/kn.js +106 -0
- package/dist/i18n/locales/kn.js.map +1 -0
- package/dist/i18n/locales/ko.d.ts +6 -0
- package/dist/i18n/locales/ko.d.ts.map +1 -0
- package/dist/i18n/locales/ko.js +106 -0
- package/dist/i18n/locales/ko.js.map +1 -0
- package/dist/i18n/locales/mic.d.ts +8 -0
- package/dist/i18n/locales/mic.d.ts.map +1 -0
- package/dist/i18n/locales/mic.js +11 -0
- package/dist/i18n/locales/mic.js.map +1 -0
- package/dist/i18n/locales/ml.d.ts +6 -0
- package/dist/i18n/locales/ml.d.ts.map +1 -0
- package/dist/i18n/locales/ml.js +106 -0
- package/dist/i18n/locales/ml.js.map +1 -0
- package/dist/i18n/locales/moh.d.ts +8 -0
- package/dist/i18n/locales/moh.d.ts.map +1 -0
- package/dist/i18n/locales/moh.js +11 -0
- package/dist/i18n/locales/moh.js.map +1 -0
- package/dist/i18n/locales/mr.d.ts +6 -0
- package/dist/i18n/locales/mr.d.ts.map +1 -0
- package/dist/i18n/locales/mr.js +106 -0
- package/dist/i18n/locales/mr.js.map +1 -0
- package/dist/i18n/locales/ms.d.ts +6 -0
- package/dist/i18n/locales/ms.d.ts.map +1 -0
- package/dist/i18n/locales/ms.js +106 -0
- package/dist/i18n/locales/ms.js.map +1 -0
- package/dist/i18n/locales/nl.d.ts +6 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -0
- package/dist/i18n/locales/nl.js +106 -0
- package/dist/i18n/locales/nl.js.map +1 -0
- package/dist/i18n/locales/no.d.ts +6 -0
- package/dist/i18n/locales/no.d.ts.map +1 -0
- package/dist/i18n/locales/no.js +106 -0
- package/dist/i18n/locales/no.js.map +1 -0
- package/dist/i18n/locales/oj.d.ts +8 -0
- package/dist/i18n/locales/oj.d.ts.map +1 -0
- package/dist/i18n/locales/oj.js +11 -0
- package/dist/i18n/locales/oj.js.map +1 -0
- package/dist/i18n/locales/pa.d.ts +6 -0
- package/dist/i18n/locales/pa.d.ts.map +1 -0
- package/dist/i18n/locales/pa.js +106 -0
- package/dist/i18n/locales/pa.js.map +1 -0
- package/dist/i18n/locales/pl.d.ts +6 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -0
- package/dist/i18n/locales/pl.js +106 -0
- package/dist/i18n/locales/pl.js.map +1 -0
- package/dist/i18n/locales/pt-BR.d.ts +6 -0
- package/dist/i18n/locales/pt-BR.d.ts.map +1 -0
- package/dist/i18n/locales/pt-BR.js +106 -0
- package/dist/i18n/locales/pt-BR.js.map +1 -0
- package/dist/i18n/locales/pt.d.ts +6 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -0
- package/dist/i18n/locales/pt.js +106 -0
- package/dist/i18n/locales/pt.js.map +1 -0
- package/dist/i18n/locales/ro.d.ts +6 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -0
- package/dist/i18n/locales/ro.js +106 -0
- package/dist/i18n/locales/ro.js.map +1 -0
- package/dist/i18n/locales/ru.d.ts +6 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -0
- package/dist/i18n/locales/ru.js +106 -0
- package/dist/i18n/locales/ru.js.map +1 -0
- package/dist/i18n/locales/sv.d.ts +6 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -0
- package/dist/i18n/locales/sv.js +106 -0
- package/dist/i18n/locales/sv.js.map +1 -0
- package/dist/i18n/locales/ta.d.ts +6 -0
- package/dist/i18n/locales/ta.d.ts.map +1 -0
- package/dist/i18n/locales/ta.js +106 -0
- package/dist/i18n/locales/ta.js.map +1 -0
- package/dist/i18n/locales/te.d.ts +6 -0
- package/dist/i18n/locales/te.d.ts.map +1 -0
- package/dist/i18n/locales/te.js +106 -0
- package/dist/i18n/locales/te.js.map +1 -0
- package/dist/i18n/locales/th.d.ts +6 -0
- package/dist/i18n/locales/th.d.ts.map +1 -0
- package/dist/i18n/locales/th.js +106 -0
- package/dist/i18n/locales/th.js.map +1 -0
- package/dist/i18n/locales/tl.d.ts +6 -0
- package/dist/i18n/locales/tl.d.ts.map +1 -0
- package/dist/i18n/locales/tl.js +106 -0
- package/dist/i18n/locales/tl.js.map +1 -0
- package/dist/i18n/locales/tr.d.ts +6 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -0
- package/dist/i18n/locales/tr.js +106 -0
- package/dist/i18n/locales/tr.js.map +1 -0
- package/dist/i18n/locales/uk.d.ts +6 -0
- package/dist/i18n/locales/uk.d.ts.map +1 -0
- package/dist/i18n/locales/uk.js +106 -0
- package/dist/i18n/locales/uk.js.map +1 -0
- package/dist/i18n/locales/ur.d.ts +6 -0
- package/dist/i18n/locales/ur.d.ts.map +1 -0
- package/dist/i18n/locales/ur.js +383 -0
- package/dist/i18n/locales/ur.js.map +1 -0
- package/dist/i18n/locales/vi.d.ts +6 -0
- package/dist/i18n/locales/vi.d.ts.map +1 -0
- package/dist/i18n/locales/vi.js +106 -0
- package/dist/i18n/locales/vi.js.map +1 -0
- package/dist/i18n/locales/zh-CN.d.ts +6 -0
- package/dist/i18n/locales/zh-CN.d.ts.map +1 -0
- package/dist/i18n/locales/zh-CN.js +106 -0
- package/dist/i18n/locales/zh-CN.js.map +1 -0
- package/dist/i18n/locales/zh-TW.d.ts +6 -0
- package/dist/i18n/locales/zh-TW.d.ts.map +1 -0
- package/dist/i18n/locales/zh-TW.js +106 -0
- package/dist/i18n/locales/zh-TW.js.map +1 -0
- package/dist/i18n/types.d.ts +101 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/i18n/types.js +65 -0
- package/dist/i18n/types.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +472 -0
- package/dist/index.js.map +1 -0
- package/dist/server/index.d.ts +39 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +89 -0
- package/dist/server/index.js.map +1 -0
- package/dist/tools/definitions.d.ts +26 -0
- package/dist/tools/definitions.d.ts.map +1 -0
- package/dist/tools/definitions.js +785 -0
- package/dist/tools/definitions.js.map +1 -0
- package/dist/tools/handlers.d.ts +19 -0
- package/dist/tools/handlers.d.ts.map +1 -0
- package/dist/tools/handlers.js +477 -0
- package/dist/tools/handlers.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/types/code-generator.d.ts +97 -0
- package/dist/types/code-generator.d.ts.map +1 -0
- package/dist/types/code-generator.js +545 -0
- package/dist/types/code-generator.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/schemas.d.ts +707 -0
- package/dist/types/schemas.d.ts.map +1 -0
- package/dist/types/schemas.js +341 -0
- package/dist/types/schemas.js.map +1 -0
- package/package.json +81 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mock Animations for Testing
|
|
3
|
+
*/
|
|
4
|
+
export const mockPulseAnimation = {
|
|
5
|
+
itemId: 'item_1',
|
|
6
|
+
animationType: 'pulse',
|
|
7
|
+
speed: 1.0,
|
|
8
|
+
};
|
|
9
|
+
export const mockRotateAnimation = {
|
|
10
|
+
itemId: 'item_2',
|
|
11
|
+
animationType: 'rotate',
|
|
12
|
+
speed: 0.5,
|
|
13
|
+
};
|
|
14
|
+
export const mockBounceAnimation = {
|
|
15
|
+
itemId: 'item_3',
|
|
16
|
+
animationType: 'bounce',
|
|
17
|
+
speed: 1.5,
|
|
18
|
+
};
|
|
19
|
+
export const mockFadeAnimation = {
|
|
20
|
+
itemId: 'item_4',
|
|
21
|
+
animationType: 'fade',
|
|
22
|
+
speed: 0.8,
|
|
23
|
+
};
|
|
24
|
+
export const mockWobbleAnimation = {
|
|
25
|
+
itemId: 'item_5',
|
|
26
|
+
animationType: 'wobble',
|
|
27
|
+
speed: 2.0,
|
|
28
|
+
};
|
|
29
|
+
export const mockSlideAnimation = {
|
|
30
|
+
itemId: 'item_6',
|
|
31
|
+
animationType: 'slide',
|
|
32
|
+
speed: 1.2,
|
|
33
|
+
};
|
|
34
|
+
export const mockTypewriterAnimation = {
|
|
35
|
+
itemId: 'text_1',
|
|
36
|
+
animationType: 'typewriter',
|
|
37
|
+
speed: 0.5,
|
|
38
|
+
};
|
|
39
|
+
// Keyframe animations
|
|
40
|
+
export const mockFadeInKeyframes = {
|
|
41
|
+
itemId: 'item_1',
|
|
42
|
+
keyframes: [
|
|
43
|
+
{ time: 0, properties: { opacity: 0 }, easing: 'linear' },
|
|
44
|
+
{ time: 1, properties: { opacity: 1 }, easing: 'easeOut' },
|
|
45
|
+
],
|
|
46
|
+
duration: 1,
|
|
47
|
+
loop: false,
|
|
48
|
+
};
|
|
49
|
+
export const mockMoveKeyframes = {
|
|
50
|
+
itemId: 'item_1',
|
|
51
|
+
keyframes: [
|
|
52
|
+
{ time: 0, properties: { x: 0, y: 0 }, easing: 'linear' },
|
|
53
|
+
{ time: 1, properties: { x: 200, y: 0 }, easing: 'easeInOut' },
|
|
54
|
+
{ time: 2, properties: { x: 200, y: 200 }, easing: 'easeInOut' },
|
|
55
|
+
],
|
|
56
|
+
duration: 2,
|
|
57
|
+
loop: true,
|
|
58
|
+
};
|
|
59
|
+
export const mockColorKeyframes = {
|
|
60
|
+
itemId: 'item_1',
|
|
61
|
+
keyframes: [
|
|
62
|
+
{ time: 0, properties: { fillColor: '#ff0000' }, easing: 'linear' },
|
|
63
|
+
{ time: 0.5, properties: { fillColor: '#00ff00' }, easing: 'linear' },
|
|
64
|
+
{ time: 1, properties: { fillColor: '#0000ff' }, easing: 'linear' },
|
|
65
|
+
],
|
|
66
|
+
duration: 1,
|
|
67
|
+
loop: true,
|
|
68
|
+
};
|
|
69
|
+
export const mockScaleKeyframes = {
|
|
70
|
+
itemId: 'item_1',
|
|
71
|
+
keyframes: [
|
|
72
|
+
{ time: 0, properties: { scale: 1 }, easing: 'linear' },
|
|
73
|
+
{ time: 0.5, properties: { scale: 1.5 }, easing: 'bounce' },
|
|
74
|
+
{ time: 1, properties: { scale: 1 }, easing: 'elastic' },
|
|
75
|
+
],
|
|
76
|
+
duration: 2,
|
|
77
|
+
loop: true,
|
|
78
|
+
};
|
|
79
|
+
// Collection of all simple animations
|
|
80
|
+
export const allSimpleAnimations = [
|
|
81
|
+
mockPulseAnimation,
|
|
82
|
+
mockRotateAnimation,
|
|
83
|
+
mockBounceAnimation,
|
|
84
|
+
mockFadeAnimation,
|
|
85
|
+
mockWobbleAnimation,
|
|
86
|
+
mockSlideAnimation,
|
|
87
|
+
mockTypewriterAnimation,
|
|
88
|
+
];
|
|
89
|
+
// Collection of all keyframe animations
|
|
90
|
+
export const allKeyframeAnimations = [
|
|
91
|
+
mockFadeInKeyframes,
|
|
92
|
+
mockMoveKeyframes,
|
|
93
|
+
mockColorKeyframes,
|
|
94
|
+
mockScaleKeyframes,
|
|
95
|
+
];
|
|
96
|
+
//# sourceMappingURL=mock-animations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-animations.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/mock-animations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,OAAgB;IAC/B,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,QAAiB;IAChC,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,QAAiB;IAChC,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,MAAe;IAC9B,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,QAAiB;IAChC,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,OAAgB;IAC/B,K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|
|
6
|
+
params: {
|
|
7
|
+
rayCount: number;
|
|
8
|
+
colors: string[];
|
|
9
|
+
bgColor: string;
|
|
10
|
+
animated: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const mockSunsetGenerator: {
|
|
14
|
+
generatorName: "drawSunsetScene";
|
|
15
|
+
params: {
|
|
16
|
+
sunColor: string;
|
|
17
|
+
skyColors: string[];
|
|
18
|
+
cloudCount: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const mockGridGenerator: {
|
|
22
|
+
generatorName: "drawGrid";
|
|
23
|
+
params: {
|
|
24
|
+
gridType: "lines";
|
|
25
|
+
spacing: number;
|
|
26
|
+
lineColor: string;
|
|
27
|
+
bgColor: string;
|
|
28
|
+
lineWidth: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const mockDotsGridGenerator: {
|
|
32
|
+
generatorName: "drawGrid";
|
|
33
|
+
params: {
|
|
34
|
+
gridType: "dots";
|
|
35
|
+
spacing: number;
|
|
36
|
+
lineColor: string;
|
|
37
|
+
bgColor: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const mockWavesGenerator: {
|
|
41
|
+
generatorName: "drawWaves";
|
|
42
|
+
params: {
|
|
43
|
+
waveCount: number;
|
|
44
|
+
colors: string[];
|
|
45
|
+
amplitude: number;
|
|
46
|
+
frequency: number;
|
|
47
|
+
bgColor: string;
|
|
48
|
+
animated: boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const mockCircuitGenerator: {
|
|
52
|
+
generatorName: "drawCircuit";
|
|
53
|
+
params: {
|
|
54
|
+
lineColor: string;
|
|
55
|
+
nodeColor: string;
|
|
56
|
+
bgColor: string;
|
|
57
|
+
density: number;
|
|
58
|
+
animated: boolean;
|
|
59
|
+
boltColor: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const mockStackedCirclesGenerator: {
|
|
63
|
+
generatorName: "drawStackedCircles";
|
|
64
|
+
params: {
|
|
65
|
+
count: number;
|
|
66
|
+
colors: string[];
|
|
67
|
+
distribution: "random";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export declare const mockPatternGenerator: {
|
|
71
|
+
generatorName: "drawPattern";
|
|
72
|
+
params: {
|
|
73
|
+
patternType: "hexagon";
|
|
74
|
+
size: number;
|
|
75
|
+
color: string;
|
|
76
|
+
bgColor: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare const allMockGenerators: ({
|
|
80
|
+
generatorName: "drawSunburst";
|
|
81
|
+
params: {
|
|
82
|
+
rayCount: number;
|
|
83
|
+
colors: string[];
|
|
84
|
+
bgColor: string;
|
|
85
|
+
animated: boolean;
|
|
86
|
+
};
|
|
87
|
+
} | {
|
|
88
|
+
generatorName: "drawSunsetScene";
|
|
89
|
+
params: {
|
|
90
|
+
sunColor: string;
|
|
91
|
+
skyColors: string[];
|
|
92
|
+
cloudCount: number;
|
|
93
|
+
};
|
|
94
|
+
} | {
|
|
95
|
+
generatorName: "drawGrid";
|
|
96
|
+
params: {
|
|
97
|
+
gridType: "lines";
|
|
98
|
+
spacing: number;
|
|
99
|
+
lineColor: string;
|
|
100
|
+
bgColor: string;
|
|
101
|
+
lineWidth: number;
|
|
102
|
+
};
|
|
103
|
+
} | {
|
|
104
|
+
generatorName: "drawGrid";
|
|
105
|
+
params: {
|
|
106
|
+
gridType: "dots";
|
|
107
|
+
spacing: number;
|
|
108
|
+
lineColor: string;
|
|
109
|
+
bgColor: string;
|
|
110
|
+
};
|
|
111
|
+
} | {
|
|
112
|
+
generatorName: "drawWaves";
|
|
113
|
+
params: {
|
|
114
|
+
waveCount: number;
|
|
115
|
+
colors: string[];
|
|
116
|
+
amplitude: number;
|
|
117
|
+
frequency: number;
|
|
118
|
+
bgColor: string;
|
|
119
|
+
animated: boolean;
|
|
120
|
+
};
|
|
121
|
+
} | {
|
|
122
|
+
generatorName: "drawCircuit";
|
|
123
|
+
params: {
|
|
124
|
+
lineColor: string;
|
|
125
|
+
nodeColor: string;
|
|
126
|
+
bgColor: string;
|
|
127
|
+
density: number;
|
|
128
|
+
animated: boolean;
|
|
129
|
+
boltColor: string;
|
|
130
|
+
};
|
|
131
|
+
} | {
|
|
132
|
+
generatorName: "drawStackedCircles";
|
|
133
|
+
params: {
|
|
134
|
+
count: number;
|
|
135
|
+
colors: string[];
|
|
136
|
+
distribution: "random";
|
|
137
|
+
};
|
|
138
|
+
} | {
|
|
139
|
+
generatorName: "drawPattern";
|
|
140
|
+
params: {
|
|
141
|
+
patternType: "hexagon";
|
|
142
|
+
size: number;
|
|
143
|
+
color: string;
|
|
144
|
+
bgColor: string;
|
|
145
|
+
};
|
|
146
|
+
})[];
|
|
147
|
+
//# sourceMappingURL=mock-generators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-generators.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/mock-generators.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;CAQjC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;CAO/B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;CAQjC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;CAU9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;CAUhC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;CAOvC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAS7B,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mock Generators for Testing
|
|
3
|
+
*/
|
|
4
|
+
export const mockSunburstGenerator = {
|
|
5
|
+
generatorName: 'drawSunburst',
|
|
6
|
+
params: {
|
|
7
|
+
rayCount: 16,
|
|
8
|
+
colors: ['#FF6B6B', '#4ECDC4'],
|
|
9
|
+
bgColor: '#1a1a2e',
|
|
10
|
+
animated: true,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export const mockSunsetGenerator = {
|
|
14
|
+
generatorName: 'drawSunsetScene',
|
|
15
|
+
params: {
|
|
16
|
+
sunColor: '#fbbf24',
|
|
17
|
+
skyColors: ['#f97316', '#ec4899', '#8b5cf6'],
|
|
18
|
+
cloudCount: 5,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export const mockGridGenerator = {
|
|
22
|
+
generatorName: 'drawGrid',
|
|
23
|
+
params: {
|
|
24
|
+
gridType: 'lines',
|
|
25
|
+
spacing: 40,
|
|
26
|
+
lineColor: '#374151',
|
|
27
|
+
bgColor: '#1f2937',
|
|
28
|
+
lineWidth: 1,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export const mockDotsGridGenerator = {
|
|
32
|
+
generatorName: 'drawGrid',
|
|
33
|
+
params: {
|
|
34
|
+
gridType: 'dots',
|
|
35
|
+
spacing: 30,
|
|
36
|
+
lineColor: '#60a5fa',
|
|
37
|
+
bgColor: '#0f172a',
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
export const mockWavesGenerator = {
|
|
41
|
+
generatorName: 'drawWaves',
|
|
42
|
+
params: {
|
|
43
|
+
waveCount: 5,
|
|
44
|
+
colors: ['#3b82f6', '#6366f1', '#8b5cf6', '#a855f7', '#d946ef'],
|
|
45
|
+
amplitude: 50,
|
|
46
|
+
frequency: 2,
|
|
47
|
+
bgColor: '#0f172a',
|
|
48
|
+
animated: true,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const mockCircuitGenerator = {
|
|
52
|
+
generatorName: 'drawCircuit',
|
|
53
|
+
params: {
|
|
54
|
+
lineColor: '#60a5fa',
|
|
55
|
+
nodeColor: '#3b82f6',
|
|
56
|
+
bgColor: '#0f172a',
|
|
57
|
+
density: 0.6,
|
|
58
|
+
animated: true,
|
|
59
|
+
boltColor: '#fbbf24',
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
export const mockStackedCirclesGenerator = {
|
|
63
|
+
generatorName: 'drawStackedCircles',
|
|
64
|
+
params: {
|
|
65
|
+
count: 8,
|
|
66
|
+
colors: ['#ef4444', '#f97316', '#fbbf24', '#22c55e', '#3b82f6', '#8b5cf6'],
|
|
67
|
+
distribution: 'random',
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
export const mockPatternGenerator = {
|
|
71
|
+
generatorName: 'drawPattern',
|
|
72
|
+
params: {
|
|
73
|
+
patternType: 'hexagon',
|
|
74
|
+
size: 30,
|
|
75
|
+
color: '#60a5fa',
|
|
76
|
+
bgColor: '#1e293b',
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
// Collection of all mock generators
|
|
80
|
+
export const allMockGenerators = [
|
|
81
|
+
mockSunburstGenerator,
|
|
82
|
+
mockSunsetGenerator,
|
|
83
|
+
mockGridGenerator,
|
|
84
|
+
mockDotsGridGenerator,
|
|
85
|
+
mockWavesGenerator,
|
|
86
|
+
mockCircuitGenerator,
|
|
87
|
+
mockStackedCirclesGenerator,
|
|
88
|
+
mockPatternGenerator,
|
|
89
|
+
];
|
|
90
|
+
//# sourceMappingURL=mock-generators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-generators.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/mock-generators.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,aAAa,EAAE,cAAuB;IACtC,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QAC9B,OAAO,EAAE,S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AM,2BAA2B,GAAG;IACzC,aAAa,EAAE,oBAA6B;IAC5C,MAAM,EAAE;QACN,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;QAC1E,YAAY,EAAE,QAAiB;KAChC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,aAAa,EAAE,aAAsB;IACrC,MAAM,EAAE;QACN,WAAW,EAAE,SAAkB;QAC/B,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,SAAS;KACnB;CACF,CAAC;AAEF,oCAAoC;AACpC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,qBAAqB;IACrB,mBAAmB;IACnB,iBAAiB;IACjB,qBAAqB;IACrB,kBAAkB;IAClB,oBAAoB;IACpB,2BAA2B;IAC3B,oBAAoB;CACrB,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mock Items for Testing
|
|
3
|
+
*/
|
|
4
|
+
export declare const mockTextItem: {
|
|
5
|
+
itemType: "text";
|
|
6
|
+
position: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
properties: {
|
|
11
|
+
content: string;
|
|
12
|
+
fontSize: number;
|
|
13
|
+
color: string;
|
|
14
|
+
fontFamily: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const mockCircleItem: {
|
|
18
|
+
itemType: "circle";
|
|
19
|
+
position: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
properties: {
|
|
24
|
+
radius: number;
|
|
25
|
+
color: string;
|
|
26
|
+
strokeColor: string;
|
|
27
|
+
strokeWidth: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const mockStarItem: {
|
|
31
|
+
itemType: "star";
|
|
32
|
+
position: {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
};
|
|
36
|
+
properties: {
|
|
37
|
+
radius1: number;
|
|
38
|
+
radius2: number;
|
|
39
|
+
points: number;
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const mockRectangleItem: {
|
|
44
|
+
itemType: "rectangle";
|
|
45
|
+
position: {
|
|
46
|
+
x: number;
|
|
47
|
+
y: number;
|
|
48
|
+
};
|
|
49
|
+
properties: {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
color: string;
|
|
53
|
+
cornerRadius: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const mockPathItem: {
|
|
57
|
+
itemType: "path";
|
|
58
|
+
position: {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
};
|
|
62
|
+
properties: {
|
|
63
|
+
segments: [number, number][];
|
|
64
|
+
strokeColor: string;
|
|
65
|
+
strokeWidth: number;
|
|
66
|
+
closed: boolean;
|
|
67
|
+
smooth: boolean;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export declare const mockLineItem: {
|
|
71
|
+
itemType: "line";
|
|
72
|
+
position: {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
};
|
|
76
|
+
properties: {
|
|
77
|
+
from: [number, number];
|
|
78
|
+
to: [number, number];
|
|
79
|
+
strokeColor: string;
|
|
80
|
+
strokeWidth: number;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
export declare const allMockItems: ({
|
|
84
|
+
itemType: "text";
|
|
85
|
+
position: {
|
|
86
|
+
x: number;
|
|
87
|
+
y: number;
|
|
88
|
+
};
|
|
89
|
+
properties: {
|
|
90
|
+
content: string;
|
|
91
|
+
fontSize: number;
|
|
92
|
+
color: string;
|
|
93
|
+
fontFamily: string;
|
|
94
|
+
};
|
|
95
|
+
} | {
|
|
96
|
+
itemType: "circle";
|
|
97
|
+
position: {
|
|
98
|
+
x: number;
|
|
99
|
+
y: number;
|
|
100
|
+
};
|
|
101
|
+
properties: {
|
|
102
|
+
radius: number;
|
|
103
|
+
color: string;
|
|
104
|
+
strokeColor: string;
|
|
105
|
+
strokeWidth: number;
|
|
106
|
+
};
|
|
107
|
+
} | {
|
|
108
|
+
itemType: "star";
|
|
109
|
+
position: {
|
|
110
|
+
x: number;
|
|
111
|
+
y: number;
|
|
112
|
+
};
|
|
113
|
+
properties: {
|
|
114
|
+
radius1: number;
|
|
115
|
+
radius2: number;
|
|
116
|
+
points: number;
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
119
|
+
} | {
|
|
120
|
+
itemType: "rectangle";
|
|
121
|
+
position: {
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
};
|
|
125
|
+
properties: {
|
|
126
|
+
width: number;
|
|
127
|
+
height: number;
|
|
128
|
+
color: string;
|
|
129
|
+
cornerRadius: number;
|
|
130
|
+
};
|
|
131
|
+
} | {
|
|
132
|
+
itemType: "path";
|
|
133
|
+
position: {
|
|
134
|
+
x: number;
|
|
135
|
+
y: number;
|
|
136
|
+
};
|
|
137
|
+
properties: {
|
|
138
|
+
segments: [number, number][];
|
|
139
|
+
strokeColor: string;
|
|
140
|
+
strokeWidth: number;
|
|
141
|
+
closed: boolean;
|
|
142
|
+
smooth: boolean;
|
|
143
|
+
};
|
|
144
|
+
} | {
|
|
145
|
+
itemType: "line";
|
|
146
|
+
position: {
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
};
|
|
150
|
+
properties: {
|
|
151
|
+
from: [number, number];
|
|
152
|
+
to: [number, number];
|
|
153
|
+
strokeColor: string;
|
|
154
|
+
strokeWidth: number;
|
|
155
|
+
};
|
|
156
|
+
})[];
|
|
157
|
+
//# sourceMappingURL=mock-items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-items.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/mock-items.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;CASxB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;CAS1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;CASxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;kBAIsB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;;;;;;CAMhE,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;cAID,CAAC,MAAM,EAAE,MAAM,CAAC;YAClB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;CAIrC,CAAC;AAGF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBApBsB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;;;;;;;;;;;;;cAYzC,CAAC,MAAM,EAAE,MAAM,CAAC;YAClB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;IAcrC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mock Items for Testing
|
|
3
|
+
*/
|
|
4
|
+
export const mockTextItem = {
|
|
5
|
+
itemType: 'text',
|
|
6
|
+
position: { x: 400, y: 300 },
|
|
7
|
+
properties: {
|
|
8
|
+
content: 'Hello World',
|
|
9
|
+
fontSize: 48,
|
|
10
|
+
color: '#ffffff',
|
|
11
|
+
fontFamily: 'Arial, sans-serif',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
export const mockCircleItem = {
|
|
15
|
+
itemType: 'circle',
|
|
16
|
+
position: { x: 200, y: 200 },
|
|
17
|
+
properties: {
|
|
18
|
+
radius: 50,
|
|
19
|
+
color: '#3b82f6',
|
|
20
|
+
strokeColor: '#1d4ed8',
|
|
21
|
+
strokeWidth: 2,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export const mockStarItem = {
|
|
25
|
+
itemType: 'star',
|
|
26
|
+
position: { x: 500, y: 300 },
|
|
27
|
+
properties: {
|
|
28
|
+
radius1: 60,
|
|
29
|
+
radius2: 30,
|
|
30
|
+
points: 5,
|
|
31
|
+
color: '#fbbf24',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export const mockRectangleItem = {
|
|
35
|
+
itemType: 'rectangle',
|
|
36
|
+
position: { x: 100, y: 100 },
|
|
37
|
+
properties: {
|
|
38
|
+
width: 200,
|
|
39
|
+
height: 100,
|
|
40
|
+
color: '#10b981',
|
|
41
|
+
cornerRadius: 8,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export const mockPathItem = {
|
|
45
|
+
itemType: 'path',
|
|
46
|
+
position: { x: 300, y: 300 },
|
|
47
|
+
properties: {
|
|
48
|
+
segments: [[0, 0], [100, 50], [200, 0]],
|
|
49
|
+
strokeColor: '#ef4444',
|
|
50
|
+
strokeWidth: 3,
|
|
51
|
+
closed: false,
|
|
52
|
+
smooth: true,
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
export const mockLineItem = {
|
|
56
|
+
itemType: 'line',
|
|
57
|
+
position: { x: 0, y: 0 },
|
|
58
|
+
properties: {
|
|
59
|
+
from: [100, 100],
|
|
60
|
+
to: [300, 200],
|
|
61
|
+
strokeColor: '#8b5cf6',
|
|
62
|
+
strokeWidth: 2,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
// Collection of all mock items
|
|
66
|
+
export const allMockItems = [
|
|
67
|
+
mockTextItem,
|
|
68
|
+
mockCircleItem,
|
|
69
|
+
mockStarItem,
|
|
70
|
+
mockRectangleItem,
|
|
71
|
+
mockPathItem,
|
|
72
|
+
mockLineItem,
|
|
73
|
+
];
|
|
74
|
+
//# sourceMappingURL=mock-items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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