@gouvfr-lasuite/ui-kit 0.20.1 → 0.21.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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/dist/PdfPreview-Cxveez8y.js +603 -0
  3. package/dist/PdfPreview-Cxveez8y.js.map +1 -0
  4. package/dist/PdfPreview-hvDLZbHc.cjs +2 -0
  5. package/dist/PdfPreview-hvDLZbHc.cjs.map +1 -0
  6. package/dist/index-6_ZFBQnz.js +28008 -0
  7. package/dist/index-6_ZFBQnz.js.map +1 -0
  8. package/dist/index-bEyUzYJm.cjs +108 -0
  9. package/dist/index-bEyUzYJm.cjs.map +1 -0
  10. package/dist/index.cjs +1 -103
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.ts +340 -1
  13. package/dist/index.js +361 -26689
  14. package/dist/index.js.map +1 -1
  15. package/dist/pdf.worker.mjs +58008 -0
  16. package/dist/storybook/preview-files/Archive.7z +0 -0
  17. package/dist/storybook/preview-files/CR Conseil municipal vfvdef_maireok.pdf +0 -0
  18. package/dist/storybook/preview-files/Folders.iso +0 -0
  19. package/dist/storybook/preview-files/IMG_7665.heic +0 -0
  20. package/dist/storybook/preview-files/Rembrandt_Winterlandschap_1646.jpg +0 -0
  21. package/dist/storybook/preview-files/Tableau.xlsx +0 -0
  22. package/dist/storybook/preview-files/XFA-3_3.pdf +0 -0
  23. package/dist/storybook/preview-files/art-institute-of-chicago-ce0DXHdjbhw-unsplash 1.png +0 -0
  24. package/dist/storybook/preview-files/chantier.mp4 +0 -0
  25. package/dist/storybook/preview-files/coucou.pages +0 -0
  26. package/dist/storybook/preview-files/mixed_page_sizes.pdf +379 -0
  27. package/dist/storybook/preview-files/monet_1.jpeg +0 -0
  28. package/dist/storybook/preview-files/nuissance_sonores.mp3 +0 -0
  29. package/dist/storybook/preview-files/pdf_corrupted.pdf +1 -0
  30. package/dist/storybook/preview-files/pdf_with_js.pdf +0 -0
  31. package/dist/storybook/preview-files/pdf_with_js_link.pdf +0 -0
  32. package/dist/storybook/preview-files/pdf_with_links.pdf +0 -0
  33. package/dist/storybook/preview-files/pv_cm.pdf +0 -0
  34. package/dist/storybook/preview-files/test-unsupported.bin +1 -0
  35. package/dist/style.css +1 -1
  36. package/package.json +16 -5
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.20.1",
7
+ "version": "0.21.0",
8
8
  "type": "module",
9
9
  "main": "./dist/index.cjs",
10
10
  "module": "./dist/index.js",
@@ -33,7 +33,10 @@
33
33
  "storybook": "storybook dev -p 6006",
34
34
  "build-storybook": "storybook build",
35
35
  "generate-icons": "tsx scripts/generate-icons.ts",
36
- "scalingo-postbuild": "yarn build && yarn build-storybook"
36
+ "scalingo-postbuild": "yarn build && yarn build-storybook",
37
+ "test:ct": "playwright test -c playwright.config.ts",
38
+ "test:ct:ui": "playwright test -c playwright.config.ts --ui",
39
+ "generate-test-pdfs": "node scripts/generate-test-pdfs.mjs"
37
40
  },
38
41
  "dependencies": {
39
42
  "@dnd-kit/core": "6.3.1",
@@ -49,11 +52,14 @@
49
52
  "react-arborist": "3.4.3",
50
53
  "react-aria-components": "1.16.0",
51
54
  "react-resizable-panels": "2.1.7",
52
- "react-stately": "3.37.0"
55
+ "react-stately": "3.37.0",
56
+ "react-virtualized": "9.22.6",
57
+ "react-pdf": "10.1.0"
53
58
  },
54
59
  "peerDependencies": {
55
60
  "react": "^19.1.2",
56
- "react-dom": "^19.1.2"
61
+ "react-dom": "^19.1.2",
62
+ "@tanstack/react-query": "^5"
57
63
  },
58
64
  "devDependencies": {
59
65
  "@babel/core": "7.26.0",
@@ -74,8 +80,10 @@
74
80
  "@svgr/plugin-jsx": "8.1.0",
75
81
  "@svgr/plugin-prettier": "8.1.0",
76
82
  "@svgr/plugin-svgo": "8.1.0",
83
+ "@tanstack/react-query": "5.90.10",
77
84
  "@types/react": "19.1.8",
78
85
  "@types/react-dom": "19.1.6",
86
+ "@types/react-virtualized": "9.22.3",
79
87
  "@vitejs/plugin-react": "4.3.4",
80
88
  "@vitest/coverage-c8": "0.33.0",
81
89
  "@vitest/ui": "2.1.8",
@@ -106,7 +114,10 @@
106
114
  "vite-tsconfig-paths": "5.1.4",
107
115
  "vitest": "2.1.8",
108
116
  "vitest-fetch-mock": "0.4.3",
109
- "yup": "1.6.1"
117
+ "yup": "1.6.1",
118
+ "@playwright/experimental-ct-react": "1.52.0",
119
+ "@playwright/test": "1.52.0",
120
+ "pdf-lib": "1.17.1"
110
121
  },
111
122
  "eslintConfig": {
112
123
  "extends": [