@yumiai/chat-widget 0.1.2 → 0.2.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 (107) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/README.md +119 -22
  3. package/dist/ExcelCore-DJOIVQMI.js +11 -0
  4. package/dist/ExcelCore-DJOIVQMI.js.map +1 -0
  5. package/dist/ExcelViewer-3YLLYYIQ.js +65 -0
  6. package/dist/ExcelViewer-3YLLYYIQ.js.map +1 -0
  7. package/dist/GerberViewerA2UI-7CNT7HX4.css +693 -0
  8. package/dist/GerberViewerA2UI-7CNT7HX4.css.map +1 -0
  9. package/dist/GerberViewerA2UI-X5FWAD5M.js +57 -0
  10. package/dist/GerberViewerA2UI-X5FWAD5M.js.map +1 -0
  11. package/dist/GraphStatsLegend-D5bPeXB_.d.cts +607 -0
  12. package/dist/GraphStatsLegend-D5bPeXB_.d.ts +607 -0
  13. package/dist/JsonRenderStandalone-EIZM62JU.js +18 -0
  14. package/dist/JsonRenderStandalone-EIZM62JU.js.map +1 -0
  15. package/dist/JsonRenderStandalone-POB4Q3N3.css +2384 -0
  16. package/dist/JsonRenderStandalone-POB4Q3N3.css.map +1 -0
  17. package/dist/JsonRenderStandalone-UsTcST4G.d.cts +23 -0
  18. package/dist/JsonRenderStandalone-UsTcST4G.d.ts +23 -0
  19. package/dist/KicadViewer-GV6ZC4AQ.js +124 -0
  20. package/dist/KicadViewer-GV6ZC4AQ.js.map +1 -0
  21. package/dist/KicadViewerCore-U7BWZHKJ.js +11 -0
  22. package/dist/KicadViewerCore-U7BWZHKJ.js.map +1 -0
  23. package/dist/PdfViewer-CHPDRK46.js +51 -0
  24. package/dist/PdfViewer-CHPDRK46.js.map +1 -0
  25. package/dist/PdfViewer-LPYGQETK.css +1899 -0
  26. package/dist/PdfViewer-LPYGQETK.css.map +1 -0
  27. package/dist/PdfViewerCore-HJPEHSRA.js +364 -0
  28. package/dist/PdfViewerCore-HJPEHSRA.js.map +1 -0
  29. package/dist/PowerPointCore-FPDR2BL4.js +11 -0
  30. package/dist/PowerPointCore-FPDR2BL4.js.map +1 -0
  31. package/dist/PowerPointViewer-LQTO6UCU.js +61 -0
  32. package/dist/PowerPointViewer-LQTO6UCU.js.map +1 -0
  33. package/dist/StepViewerCore-7W3L3R4E.js +285 -0
  34. package/dist/StepViewerCore-7W3L3R4E.js.map +1 -0
  35. package/dist/ThreeViewerCore-N3QJD5QI.js +161 -0
  36. package/dist/ThreeViewerCore-N3QJD5QI.js.map +1 -0
  37. package/dist/WordCore-JKSXK2XD.js +11 -0
  38. package/dist/WordCore-JKSXK2XD.js.map +1 -0
  39. package/dist/WordViewer-ZHCQMHOH.js +61 -0
  40. package/dist/WordViewer-ZHCQMHOH.js.map +1 -0
  41. package/dist/chunk-2SKA3F5U.js +88 -0
  42. package/dist/chunk-2SKA3F5U.js.map +1 -0
  43. package/dist/chunk-2UC7YLVX.js +318 -0
  44. package/dist/chunk-2UC7YLVX.js.map +1 -0
  45. package/dist/chunk-3R6T3LBR.js +24 -0
  46. package/dist/chunk-3R6T3LBR.js.map +1 -0
  47. package/dist/chunk-56WRZM3R.js +398 -0
  48. package/dist/chunk-56WRZM3R.js.map +1 -0
  49. package/dist/chunk-7A4FY6FK.js +10226 -0
  50. package/dist/chunk-7A4FY6FK.js.map +1 -0
  51. package/dist/chunk-7D4SUZUM.js +38 -0
  52. package/dist/chunk-7D4SUZUM.js.map +1 -0
  53. package/dist/chunk-7S67DOHQ.js +436 -0
  54. package/dist/chunk-7S67DOHQ.js.map +1 -0
  55. package/dist/chunk-CFKGNAJM.js +14013 -0
  56. package/dist/chunk-CFKGNAJM.js.map +1 -0
  57. package/dist/chunk-GAMA3VA7.js +99 -0
  58. package/dist/chunk-GAMA3VA7.js.map +1 -0
  59. package/dist/chunk-GYXTSY22.js +639 -0
  60. package/dist/chunk-GYXTSY22.js.map +1 -0
  61. package/dist/chunk-K4KGNVL5.js +77 -0
  62. package/dist/chunk-K4KGNVL5.js.map +1 -0
  63. package/dist/chunk-KQV7IKET.js +1621 -0
  64. package/dist/chunk-KQV7IKET.js.map +1 -0
  65. package/dist/chunk-O3NXUM6C.js +1871 -0
  66. package/dist/chunk-O3NXUM6C.js.map +1 -0
  67. package/dist/chunk-PZXSASDY.js +83 -0
  68. package/dist/chunk-PZXSASDY.js.map +1 -0
  69. package/dist/chunk-QLVPIM6R.js +595 -0
  70. package/dist/chunk-QLVPIM6R.js.map +1 -0
  71. package/dist/chunk-VXJWGLZ7.js +21 -0
  72. package/dist/chunk-VXJWGLZ7.js.map +1 -0
  73. package/dist/chunk-XQ562W7I.js +116 -0
  74. package/dist/chunk-XQ562W7I.js.map +1 -0
  75. package/dist/components/JsonRender/standalone.cjs +39368 -0
  76. package/dist/components/JsonRender/standalone.cjs.map +1 -0
  77. package/dist/components/JsonRender/standalone.css +2384 -0
  78. package/dist/components/JsonRender/standalone.css.map +1 -0
  79. package/dist/components/JsonRender/standalone.d.cts +16 -0
  80. package/dist/components/JsonRender/standalone.d.ts +16 -0
  81. package/dist/components/JsonRender/standalone.js +38 -0
  82. package/dist/components/JsonRender/standalone.js.map +1 -0
  83. package/dist/gerber-2d-entry-OQ4SQRBY.js +3950 -0
  84. package/dist/gerber-2d-entry-OQ4SQRBY.js.map +1 -0
  85. package/dist/gerber-3d-entry-DEHDBOO2.js +3679 -0
  86. package/dist/gerber-3d-entry-DEHDBOO2.js.map +1 -0
  87. package/dist/gerber-simulation-entry-EBDX72XE.js +1801 -0
  88. package/dist/gerber-simulation-entry-EBDX72XE.js.map +1 -0
  89. package/dist/index.cjs +60113 -2970
  90. package/dist/index.cjs.map +1 -1
  91. package/dist/index.css +11342 -1708
  92. package/dist/index.css.map +1 -1
  93. package/dist/index.d.cts +3275 -77
  94. package/dist/index.d.ts +3275 -77
  95. package/dist/index.js +18078 -2540
  96. package/dist/index.js.map +1 -1
  97. package/dist/provenance/index.cjs +2248 -0
  98. package/dist/provenance/index.cjs.map +1 -0
  99. package/dist/provenance/index.css +52 -0
  100. package/dist/provenance/index.css.map +1 -0
  101. package/dist/provenance/index.d.cts +12 -0
  102. package/dist/provenance/index.d.ts +12 -0
  103. package/dist/provenance/index.js +27 -0
  104. package/dist/provenance/index.js.map +1 -0
  105. package/dist/resolveToArrayBuffer-AQIDZHSQ.js +23 -0
  106. package/dist/resolveToArrayBuffer-AQIDZHSQ.js.map +1 -0
  107. package/package.json +96 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yumiai/chat-widget",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "JetPave ChatWidget SDK — Agent conversation UI component",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -17,51 +17,130 @@
17
17
  "default": "./dist/index.cjs"
18
18
  }
19
19
  },
20
+ "./provenance": {
21
+ "import": {
22
+ "types": "./dist/provenance/index.d.ts",
23
+ "default": "./dist/provenance/index.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/provenance/index.d.cts",
27
+ "default": "./dist/provenance/index.cjs"
28
+ }
29
+ },
20
30
  "./style.css": "./dist/index.css"
21
31
  },
22
- "files": ["dist", "README.md", "CHANGELOG.md"],
23
- "sideEffects": ["*.css"],
32
+ "files": [
33
+ "dist",
34
+ "README.md",
35
+ "CHANGELOG.md"
36
+ ],
37
+ "sideEffects": [
38
+ "*.css",
39
+ "src/components/jetPaveGerberViewer/src/viewer-src/**/*.js"
40
+ ],
24
41
  "peerDependencies": {
42
+ "@phosphor-icons/react": "^2.0.0",
43
+ "antd": "^5.0.0 || ^6.0.0",
44
+ "occt-import-js": ">=0.0.20",
25
45
  "react": "^18.0.0 || ^19.0.0",
26
46
  "react-dom": "^18.0.0 || ^19.0.0",
27
- "antd": "^5.0.0 || ^6.0.0"
47
+ "react-force-graph-3d": "^1.29.0",
48
+ "three": ">=0.150.0",
49
+ "three-spritetext": "^1.10.0"
28
50
  },
29
51
  "peerDependenciesMeta": {
30
- "@ant-design/icons": { "optional": true }
52
+ "@ant-design/icons": {
53
+ "optional": true
54
+ },
55
+ "@phosphor-icons/react": {
56
+ "optional": true
57
+ },
58
+ "three": {
59
+ "optional": true
60
+ },
61
+ "react-force-graph-3d": {
62
+ "optional": true
63
+ },
64
+ "three-spritetext": {
65
+ "optional": true
66
+ },
67
+ "occt-import-js": {
68
+ "optional": true
69
+ }
31
70
  },
32
71
  "dependencies": {
33
- "streamdown": "^2.4.0",
72
+ "@json-render/core": "^0.19.0",
73
+ "@json-render/react": "^0.19.0",
74
+ "@json-render/shadcn": "0.19.0",
75
+ "@radix-ui/react-alert-dialog": "1.1.15",
34
76
  "@streamdown/cjk": "^1.0.2",
35
77
  "@streamdown/code": "^1.1.0",
36
78
  "@streamdown/math": "^1.0.2",
37
- "@streamdown/mermaid": "^1.0.2"
79
+ "@streamdown/mermaid": "^1.0.2",
80
+ "docx-preview": "^0.3.7",
81
+ "earcut": "^3.0.2",
82
+ "fflate": "^0.8.2",
83
+ "lucide-react": "^0.564.0",
84
+ "node-unrar-js": "^2.0.2",
85
+ "pdfjs-dist": "^5.6.205",
86
+ "pptx-preview": "^1.0.7",
87
+ "streamdown": "^2.4.0",
88
+ "web-gerber": "^1.0.1",
89
+ "xlsx": "^0.18.5",
90
+ "zod": "^4.3.6"
38
91
  },
39
92
  "devDependencies": {
40
- "tsup": "^8.0.0",
41
- "typescript": "~5.9.3",
42
- "react": "^19.2.0",
43
- "react-dom": "^19.2.0",
44
- "antd": "^6.2.0",
45
93
  "@ant-design/icons": "^6.1.0",
94
+ "@size-limit/file": "^11.2.0",
95
+ "@tailwindcss/postcss": "^4.2.1",
96
+ "@tailwindcss/vite": "^4.2.1",
97
+ "@testing-library/jest-dom": "^6.9.1",
98
+ "@testing-library/react": "^16.3.2",
99
+ "@types/jest-axe": "^3.5.9",
46
100
  "@types/react": "^19.2.5",
47
101
  "@types/react-dom": "^19.2.3",
48
- "vitest": "^3.2.4",
49
- "@testing-library/react": "^16.3.2",
50
- "@testing-library/jest-dom": "^6.9.1",
102
+ "@types/three": "^0.183.1",
51
103
  "@vitejs/plugin-react": "^5.1.1",
104
+ "antd": "^6.2.0",
105
+ "axe-core": "^4",
106
+ "jest-axe": "^9",
52
107
  "jsdom": "^27.0.1",
108
+ "katex": "^0.16.38",
53
109
  "msw": "^2.7.0",
110
+ "occt-import-js": "^0.0.23",
111
+ "react": "^19.2.0",
112
+ "react-dom": "^19.2.0",
113
+ "react-force-graph-3d": "^1.29.1",
114
+ "react-router-dom": "^7.14.0",
54
115
  "size-limit": "^11.0.0",
55
- "@size-limit/preset-big-lib": "^11.0.0"
116
+ "tailwindcss": "^4.2.1",
117
+ "tailwindcss-scoped-preflight": "4",
118
+ "three": "^0.183.2",
119
+ "three-spritetext": "^1.10.0",
120
+ "tsup": "^8.0.0",
121
+ "typescript": "~5.9.3",
122
+ "vite": "^6.3.5",
123
+ "vitest": "^3.2.4"
56
124
  },
57
125
  "scripts": {
58
126
  "build": "tsup",
59
127
  "dev": "tsup --watch",
128
+ "dev:demo": "vite --config vite.config.demo.ts",
129
+ "build:demo": "vite build --config vite.config.demo.ts",
130
+ "preview:demo": "vite preview --config vite.config.demo.ts",
60
131
  "typecheck": "tsc --noEmit",
132
+ "check:no-channel-id": "bash scripts/check-no-channel-id.sh",
133
+ "catalog:check-alignment": "node scripts/check-catalog-alignment.mjs",
134
+ "catalog:lint": "node scripts/validate-catalog-descriptions.mjs",
135
+ "migration:rate": "node scripts/measure-migration-rate.mjs",
136
+ "audit:matrix": "node scripts/measure-audit-matrix.mjs",
137
+ "pretest": "npm run check:no-channel-id && npm run catalog:check-alignment && npm run catalog:lint && npm run audit:matrix",
61
138
  "test": "vitest run",
62
139
  "test:watch": "vitest",
140
+ "test:a11y": "vitest run tests/a11y",
63
141
  "lint": "echo 'lint placeholder'",
64
142
  "size": "size-limit",
65
143
  "prepublishOnly": "npm run build"
66
- }
144
+ },
145
+ "packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
67
146
  }