@fragmentsx/render-react 1.2.3 → 1.2.5

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 (77) hide show
  1. package/dist/hooks/layer/useExtractProps.d.ts +9 -0
  2. package/dist/hooks/layer/useExtractProps.d.ts.map +1 -0
  3. package/dist/hooks/layer/useLayerCssVariable.d.ts.map +1 -1
  4. package/dist/hooks/layer/useLayerValue.d.ts +2 -3
  5. package/dist/hooks/layer/useLayerValue.d.ts.map +1 -1
  6. package/dist/hooks/layer/useReadVariable.d.ts.map +1 -1
  7. package/dist/hooks/layer-styles/useLayerStyles/index.d.ts.map +1 -1
  8. package/dist/hooks/layer-styles/useLayerStyles/useLayerLayout.d.ts +1 -1
  9. package/dist/hooks/layer-styles/useLayerStyles/useLayerLayout.d.ts.map +1 -1
  10. package/dist/hooks/utils/useForceUpdate.d.ts +2 -0
  11. package/dist/hooks/utils/useForceUpdate.d.ts.map +1 -0
  12. package/dist/index.cjs.js +277 -91
  13. package/dist/index.es.js +278 -92
  14. package/dist/nodes/Area/test/area-project-props.browser.test.d.ts +2 -0
  15. package/dist/nodes/Area/test/area-project-props.browser.test.d.ts.map +1 -0
  16. package/dist/nodes/Collection/Collection.d.ts.map +1 -1
  17. package/dist/nodes/Collection/hooks/useCollection.d.ts.map +1 -1
  18. package/dist/nodes/CollectionItem/CollectionItem.d.ts +7 -0
  19. package/dist/nodes/CollectionItem/CollectionItem.d.ts.map +1 -0
  20. package/dist/nodes/CollectionItem/hooks/useCollection.d.ts +26 -0
  21. package/dist/nodes/CollectionItem/hooks/useCollection.d.ts.map +1 -0
  22. package/dist/nodes/CollectionItem/index.d.ts +3 -0
  23. package/dist/nodes/CollectionItem/index.d.ts.map +1 -0
  24. package/dist/nodes/Frame/Frame.d.ts +1 -0
  25. package/dist/nodes/Frame/Frame.d.ts.map +1 -1
  26. package/dist/nodes/Frame/hooks/useFrame.d.ts +1 -0
  27. package/dist/nodes/Frame/hooks/useFrame.d.ts.map +1 -1
  28. package/dist/nodes/Instance/hooks/useInstance.d.ts +1 -1
  29. package/dist/nodes/Instance/hooks/useInstanceProps.d.ts +1 -1
  30. package/dist/nodes/Instance/hooks/useInstanceProps.d.ts.map +1 -1
  31. package/dist/nodes/Instance/test/basic.test.d.ts +2 -0
  32. package/dist/nodes/Instance/test/basic.test.d.ts.map +1 -0
  33. package/dist/nodes/Instance/test/collection.browser.test.d.ts +2 -0
  34. package/dist/nodes/Instance/test/collection.browser.test.d.ts.map +1 -0
  35. package/dist/nodes/Instance/test/constraints.browser.test.d.ts +2 -0
  36. package/dist/nodes/Instance/test/constraints.browser.test.d.ts.map +1 -0
  37. package/dist/nodes/Instance/test/css-chunks.browser.test.d.ts +2 -0
  38. package/dist/nodes/Instance/test/css-chunks.browser.test.d.ts.map +1 -0
  39. package/dist/nodes/Instance/test/fragmentDocuments.d.ts +19 -0
  40. package/dist/nodes/Instance/test/fragmentDocuments.d.ts.map +1 -0
  41. package/dist/nodes/Instance/test/layout.browser.test.d.ts +2 -0
  42. package/dist/nodes/Instance/test/layout.browser.test.d.ts.map +1 -0
  43. package/dist/nodes/Instance/test/modified.browser.test.d.ts +2 -0
  44. package/dist/nodes/Instance/test/modified.browser.test.d.ts.map +1 -0
  45. package/dist/nodes/Instance/test/modified.test.d.ts +2 -0
  46. package/dist/nodes/Instance/test/modified.test.d.ts.map +1 -0
  47. package/dist/nodes/Instance/test/nested-instance.browser.test.d.ts +2 -0
  48. package/dist/nodes/Instance/test/nested-instance.browser.test.d.ts.map +1 -0
  49. package/dist/nodes/Instance/test/nested-instance.test.d.ts +2 -0
  50. package/dist/nodes/Instance/test/nested-instance.test.d.ts.map +1 -0
  51. package/dist/nodes/Instance/test/paint.browser.test.d.ts +2 -0
  52. package/dist/nodes/Instance/test/paint.browser.test.d.ts.map +1 -0
  53. package/dist/nodes/Instance/test/resize.browser.test.d.ts +2 -0
  54. package/dist/nodes/Instance/test/resize.browser.test.d.ts.map +1 -0
  55. package/dist/nodes/Instance/test/sizing.browser.test.d.ts +2 -0
  56. package/dist/nodes/Instance/test/sizing.browser.test.d.ts.map +1 -0
  57. package/dist/nodes/Instance/test/standalone-props.browser.test.d.ts +2 -0
  58. package/dist/nodes/Instance/test/standalone-props.browser.test.d.ts.map +1 -0
  59. package/dist/nodes/Instance/test/structure.test.d.ts +2 -0
  60. package/dist/nodes/Instance/test/structure.test.d.ts.map +1 -0
  61. package/dist/nodes/Instance/test/styles.browser.test.d.ts +2 -0
  62. package/dist/nodes/Instance/test/styles.browser.test.d.ts.map +1 -0
  63. package/dist/nodes/Instance/test/text.browser.test.d.ts +2 -0
  64. package/dist/nodes/Instance/test/text.browser.test.d.ts.map +1 -0
  65. package/dist/nodes/Instance/test/text.test.d.ts +2 -0
  66. package/dist/nodes/Instance/test/text.test.d.ts.map +1 -0
  67. package/dist/nodes/Text/Text.d.ts.map +1 -1
  68. package/dist/nodes/Text/hooks/useTextAttributes.d.ts +4 -0
  69. package/dist/nodes/Text/hooks/useTextAttributes.d.ts.map +1 -1
  70. package/dist/nodes/Text/hooks/useTextContent.d.ts.map +1 -1
  71. package/dist/nodes/Text/hooks/useTextHighlight.d.ts +6 -0
  72. package/dist/nodes/Text/hooks/useTextHighlight.d.ts.map +1 -0
  73. package/dist/nodes/Text/index.d.ts +1 -0
  74. package/dist/nodes/Text/index.d.ts.map +1 -1
  75. package/dist/test/setupTests.d.ts +1 -0
  76. package/dist/test/setupTests.d.ts.map +1 -0
  77. package/package.json +20 -8
@@ -1 +1 @@
1
- {"version":3,"file":"useInstanceProps.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/hooks/useInstanceProps.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAc1D,eAAO,MAAM,gBAAgB,kBAAmB,aAAa;;;gCAyE7B,MAAM,SAAS,OAAO;CAKrD,CAAC"}
1
+ {"version":3,"file":"useInstanceProps.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/hooks/useInstanceProps.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAiB1D,eAAO,MAAM,gBAAgB,kBAAmB,aAAa;;;gCA2F7B,MAAM,SAAS,OAAO;CAKrD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=basic.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/basic.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=collection.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/collection.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=constraints.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constraints.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/constraints.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=css-chunks.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-chunks.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/css-chunks.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { FragmentDocument } from '@fragmentsx/client-core';
2
+ /** Известные ID из document.json для ассертов */
3
+ export declare const DOC: {
4
+ readonly fragmentId: "2455161c925b2";
5
+ readonly primaryFrame: "61e01f010586";
6
+ readonly flexRowFrame: "7969f0d07148";
7
+ readonly textFrame: "bb603cd160d2";
8
+ readonly text: "e8218fa8dff88";
9
+ readonly instance: "eeb4efaaf0d788";
10
+ readonly linkInfoFrame: "46368c95ea36a";
11
+ readonly disclaimerFrame: "99f9180cfc864";
12
+ readonly disclaimerText: "7286cb4b514628";
13
+ };
14
+ export declare const getBaseDocument: () => FragmentDocument;
15
+ /** Документ с Variable definition — для тестов пропсов */
16
+ export declare const createDocumentWithVariable: () => FragmentDocument;
17
+ /** Простой фрагмент для вложенного Instance (fragment:15) */
18
+ export declare const createNestedFragment: () => FragmentDocument;
19
+ //# sourceMappingURL=fragmentDocuments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fragmentDocuments.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/fragmentDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIhE,iDAAiD;AACjD,eAAO,MAAM,GAAG;;;;;;;;;;CAUN,CAAC;AAEX,eAAO,MAAM,eAAe,QACC,gBAAgB,CAAC;AAE9C,0DAA0D;AAC1D,eAAO,MAAM,0BAA0B,QAAO,gBAaX,CAAC;AAEpC,6DAA6D;AAC7D,eAAO,MAAM,oBAAoB,QAAO,gBA4BL,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=layout.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/layout.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=modified.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modified.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/modified.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=modified.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modified.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/modified.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=nested-instance.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nested-instance.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/nested-instance.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=nested-instance.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nested-instance.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/nested-instance.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=paint.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paint.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/paint.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=resize.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resize.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/resize.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sizing.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sizing.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/sizing.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=standalone-props.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standalone-props.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/standalone-props.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=structure.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structure.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/structure.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=styles.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/styles.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=text.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/text.browser.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=text.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/text.test.tsx"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/nodes/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlE,UAAU,SAAU,SAAQ,wBAAwB,CAAC,KAAK,CAAC,EAAE,iBAAiB;IAC5E,GAAG,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAkB9B,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/nodes/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlE,UAAU,SAAU,SAAQ,wBAAwB,CAAC,KAAK,CAAC,EAAE,iBAAiB;IAC5E,GAAG,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CA0B9B,CAAC"}
@@ -3,6 +3,7 @@ export interface UseTextAttributes {
3
3
  collectStyle?: boolean;
4
4
  }
5
5
  export declare const useTextAttributes: (layerKey: LinkKey, options?: UseTextAttributes) => {
6
+ hash: string | null;
6
7
  events: {
7
8
  onClick?: undefined;
8
9
  } | {
@@ -11,5 +12,8 @@ export declare const useTextAttributes: (layerKey: LinkKey, options?: UseTextAtt
11
12
  styles: {};
12
13
  classnames: string | null;
13
14
  content: any;
15
+ highlight: {
16
+ stylesString: string;
17
+ };
14
18
  };
15
19
  //# sourceMappingURL=useTextAttributes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTextAttributes.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Text/hooks/useTextAttributes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAQ5C,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,aAClB,OAAO,YACP,iBAAiB;;;;;;;;;CAqB5B,CAAC"}
1
+ {"version":3,"file":"useTextAttributes.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Text/hooks/useTextAttributes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAU5C,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,aAClB,OAAO,YACP,iBAAiB;;;;;;;;;;;;;CAyB5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTextContent.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Text/hooks/useTextContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAiCrE,eAAO,MAAM,cAAc,aAAc,OAAO,WAAW,UAAU,QAwCpE,CAAC"}
1
+ {"version":3,"file":"useTextContent.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Text/hooks/useTextContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAiCrE,eAAO,MAAM,cAAc,aAAc,OAAO,WAAW,UAAU,QA+CpE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { LinkKey } from '@graph-state/core';
2
+ import { UseLayerValueOptions } from '../../../hooks/layer/useLayerValue';
3
+ export declare const useTextHighlight: (layerKey: LinkKey, options?: UseLayerValueOptions) => {
4
+ stylesString: string;
5
+ };
6
+ //# sourceMappingURL=useTextHighlight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTextHighlight.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Text/hooks/useTextHighlight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,eAAO,MAAM,gBAAgB,aACjB,OAAO,YACP,oBAAoB;;CAwF/B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export { Text } from './Text';
2
2
  export { useTextAttributes } from './hooks/useTextAttributes';
3
3
  export { useTextContent } from './hooks/useTextContent';
4
+ export { useTextHighlight } from './hooks/useTextHighlight';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=setupTests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupTests.d.ts","sourceRoot":"","sources":["../../src/test/setupTests.ts"],"names":[],"mappings":"AAEA,OAAO,kCAAkC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fragmentsx/render-react",
3
3
  "private": false,
4
- "version": "1.2.3",
4
+ "version": "1.2.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -19,31 +19,43 @@
19
19
  }
20
20
  },
21
21
  "peerDependencies": {
22
- "react": "^17.0.2",
23
- "react-dom": "^17.0.2"
22
+ "react": "^17.0.2 || ^18.0.0 || ^19.0.0",
23
+ "react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "@graph-state/checkers": "^0.1.2",
27
27
  "@graph-state/core": "^0.13.2",
28
28
  "@graph-state/react": "^0.8.2",
29
29
  "react-use-measure": "^2.1.7",
30
- "@fragmentsx/definition": "0.2.0",
30
+ "@fragmentsx/definition": "0.2.2",
31
31
  "@fragmentsx/utils": "0.2.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/react": "^17.0.87",
35
- "@types/react-dom": "^17.0.26",
34
+ "@testing-library/jest-dom": "^6.6.3",
35
+ "@testing-library/react": "^16.0.1",
36
+ "@testing-library/user-event": "^14.5.2",
37
+ "@types/react": "^19.0.0",
38
+ "@types/react-dom": "^19.0.0",
39
+ "react": "^19.0.0",
40
+ "react-dom": "^19.0.0",
36
41
  "@vitejs/plugin-react": "^4.3.4",
42
+ "jsdom": "^27.4.0",
37
43
  "typescript": "^5.5.4",
38
44
  "vite": "^6.1.0",
39
45
  "vite-plugin-css-injected-by-js": "^3.5.2",
40
- "vite-plugin-dts": "^4.5.0"
46
+ "vite-plugin-dts": "^4.5.0",
47
+ "@vitest/browser": "^4.0.0",
48
+ "@vitest/browser-playwright": "^4.0.0",
49
+ "vitest": "^4.0.0",
50
+ "vitest-browser-react": "^0.2.0",
51
+ "@fragmentsx/client-core": "0.2.4"
41
52
  },
42
53
  "scripts": {
43
54
  "clear": "rm -r -f ./dist",
44
55
  "build": "vite build",
45
56
  "dev": "vite build -w",
46
- "test": "vitest",
57
+ "test": "vitest --run --config ./vitest.config.ts",
58
+ "test:browser": "vitest --config ./vitest.config.browser.ts",
47
59
  "lint": "eslint . --ext .ts,.tsx --fix"
48
60
  }
49
61
  }