@yumiai/chat-widget 0.2.1 → 0.2.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.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/ExcelCore-EAXQMKZT.js +10 -0
- package/dist/{ExcelViewer-3YLLYYIQ.js → ExcelViewer-OGWM52ZT.js} +2 -3
- package/dist/{ExcelViewer-3YLLYYIQ.js.map → ExcelViewer-OGWM52ZT.js.map} +1 -1
- package/dist/{GerberViewerA2UI-X5FWAD5M.js → GerberViewerA2UI-AORHOCF6.js} +2 -3
- package/dist/{GerberViewerA2UI-X5FWAD5M.js.map → GerberViewerA2UI-AORHOCF6.js.map} +1 -1
- package/dist/{GraphStatsLegend-D5bPeXB_.d.cts → GraphStatsLegend-CV0Y3-cP.d.cts} +39 -0
- package/dist/{GraphStatsLegend-D5bPeXB_.d.ts → GraphStatsLegend-CV0Y3-cP.d.ts} +39 -0
- package/dist/JsonRenderStandalone-L5ROJ6XP.js +17 -0
- package/dist/{KicadViewer-GV6ZC4AQ.js → KicadViewer-H6YY6WVC.js} +3 -4
- package/dist/{KicadViewer-GV6ZC4AQ.js.map → KicadViewer-H6YY6WVC.js.map} +1 -1
- package/dist/KicadViewerCore-XVJE2FTQ.js +10 -0
- package/dist/{PdfViewer-CHPDRK46.js → PdfViewer-GKVDDNCZ.js} +9 -10
- package/dist/{PdfViewer-CHPDRK46.js.map → PdfViewer-GKVDDNCZ.js.map} +1 -1
- package/dist/{PdfViewerCore-HJPEHSRA.js → PdfViewerCore-SUVXHXYO.js} +24 -11
- package/dist/PdfViewerCore-SUVXHXYO.js.map +1 -0
- package/dist/PowerPointCore-IZ4G6HEQ.js +10 -0
- package/dist/{PowerPointViewer-LQTO6UCU.js → PowerPointViewer-5R2KSWWJ.js} +2 -3
- package/dist/{PowerPointViewer-LQTO6UCU.js.map → PowerPointViewer-5R2KSWWJ.js.map} +1 -1
- package/dist/{StepViewerCore-7W3L3R4E.js → StepViewerCore-RORWXIRU.js} +2 -3
- package/dist/{StepViewerCore-7W3L3R4E.js.map → StepViewerCore-RORWXIRU.js.map} +1 -1
- package/dist/{ThreeViewerCore-N3QJD5QI.js → ThreeViewerCore-GTUZKD5V.js} +2 -3
- package/dist/{ThreeViewerCore-N3QJD5QI.js.map → ThreeViewerCore-GTUZKD5V.js.map} +1 -1
- package/dist/WordCore-QFG5HTYD.js +10 -0
- package/dist/{WordViewer-ZHCQMHOH.js → WordViewer-7XUQFS4A.js} +2 -3
- package/dist/{WordViewer-ZHCQMHOH.js.map → WordViewer-7XUQFS4A.js.map} +1 -1
- package/dist/{chunk-QLVPIM6R.js → chunk-3CNQONCV.js} +79 -1
- package/dist/chunk-3CNQONCV.js.map +1 -0
- package/dist/{chunk-2UC7YLVX.js → chunk-3LOSHCSH.js} +3 -3
- package/dist/chunk-5VUKEGFC.js +108 -0
- package/dist/chunk-5VUKEGFC.js.map +1 -0
- package/dist/chunk-AO4YUJQT.js +479 -0
- package/dist/chunk-AO4YUJQT.js.map +1 -0
- package/dist/{chunk-KQV7IKET.js → chunk-ASV4TISB.js} +2 -2
- package/dist/{chunk-CFKGNAJM.js → chunk-AT6VLLOO.js} +15 -15
- package/dist/{chunk-56WRZM3R.js → chunk-EYWNUJVZ.js} +3 -3
- package/dist/{chunk-K4KGNVL5.js → chunk-EZ46FGQ6.js} +3 -3
- package/dist/{chunk-GYXTSY22.js → chunk-KXPR6SRW.js} +4 -4
- package/dist/{chunk-7S67DOHQ.js → chunk-MTN6SUUQ.js} +2 -2
- package/dist/chunk-Q5PLT3AI.js +29 -0
- package/dist/chunk-Q5PLT3AI.js.map +1 -0
- package/dist/{chunk-PZXSASDY.js → chunk-R5LHMOAC.js} +3 -3
- package/dist/chunk-X67V7257.js +238 -0
- package/dist/chunk-X67V7257.js.map +1 -0
- package/dist/citationContext-CILHTO2Z.js +25 -0
- package/dist/components/JsonRender/standalone.cjs +56 -9753
- package/dist/components/JsonRender/standalone.cjs.map +1 -1
- package/dist/components/JsonRender/standalone.js +10 -11
- package/dist/components/JsonRender/standalone.js.map +1 -1
- package/dist/{gerber-2d-entry-OQ4SQRBY.js → gerber-2d-entry-HEFXQGBK.js} +5 -9
- package/dist/{gerber-2d-entry-OQ4SQRBY.js.map → gerber-2d-entry-HEFXQGBK.js.map} +1 -1
- package/dist/{gerber-3d-entry-DEHDBOO2.js → gerber-3d-entry-KVTONA37.js} +5 -9
- package/dist/{gerber-3d-entry-DEHDBOO2.js.map → gerber-3d-entry-KVTONA37.js.map} +1 -1
- package/dist/{gerber-simulation-entry-EBDX72XE.js → gerber-simulation-entry-GZ62QX5H.js} +5 -9
- package/dist/{gerber-simulation-entry-EBDX72XE.js.map → gerber-simulation-entry-GZ62QX5H.js.map} +1 -1
- package/dist/index.cjs +6690 -13472
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +776 -4
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +979 -26
- package/dist/index.d.ts +979 -26
- package/dist/index.js +4350 -1859
- package/dist/index.js.map +1 -1
- package/dist/provenance/index.cjs +78 -0
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +2 -2
- package/dist/provenance/index.d.ts +2 -2
- package/dist/provenance/index.js +2 -3
- package/dist/{resolveToArrayBuffer-AQIDZHSQ.js → resolveToArrayBuffer-PVSVIAII.js} +1 -3
- package/dist/{resolveToArrayBuffer-AQIDZHSQ.js.map → resolveToArrayBuffer-PVSVIAII.js.map} +1 -1
- package/dist/sseAdapter-LFXYGYC4.js +8 -0
- package/dist/sseAdapter-LFXYGYC4.js.map +1 -0
- package/package.json +2 -1
- package/dist/ExcelCore-DJOIVQMI.js +0 -11
- package/dist/JsonRenderStandalone-EIZM62JU.js +0 -18
- package/dist/KicadViewerCore-U7BWZHKJ.js +0 -11
- package/dist/PdfViewerCore-HJPEHSRA.js.map +0 -1
- package/dist/PowerPointCore-FPDR2BL4.js +0 -11
- package/dist/WordCore-JKSXK2XD.js +0 -11
- package/dist/chunk-7A4FY6FK.js +0 -10226
- package/dist/chunk-7A4FY6FK.js.map +0 -1
- package/dist/chunk-7D4SUZUM.js +0 -38
- package/dist/chunk-QLVPIM6R.js.map +0 -1
- package/dist/chunk-VXJWGLZ7.js +0 -21
- package/dist/chunk-VXJWGLZ7.js.map +0 -1
- /package/dist/{ExcelCore-DJOIVQMI.js.map → ExcelCore-EAXQMKZT.js.map} +0 -0
- /package/dist/{JsonRenderStandalone-EIZM62JU.js.map → JsonRenderStandalone-L5ROJ6XP.js.map} +0 -0
- /package/dist/{KicadViewerCore-U7BWZHKJ.js.map → KicadViewerCore-XVJE2FTQ.js.map} +0 -0
- /package/dist/{PowerPointCore-FPDR2BL4.js.map → PowerPointCore-IZ4G6HEQ.js.map} +0 -0
- /package/dist/{WordCore-JKSXK2XD.js.map → WordCore-QFG5HTYD.js.map} +0 -0
- /package/dist/{chunk-2UC7YLVX.js.map → chunk-3LOSHCSH.js.map} +0 -0
- /package/dist/{chunk-KQV7IKET.js.map → chunk-ASV4TISB.js.map} +0 -0
- /package/dist/{chunk-CFKGNAJM.js.map → chunk-AT6VLLOO.js.map} +0 -0
- /package/dist/{chunk-56WRZM3R.js.map → chunk-EYWNUJVZ.js.map} +0 -0
- /package/dist/{chunk-K4KGNVL5.js.map → chunk-EZ46FGQ6.js.map} +0 -0
- /package/dist/{chunk-GYXTSY22.js.map → chunk-KXPR6SRW.js.map} +0 -0
- /package/dist/{chunk-7S67DOHQ.js.map → chunk-MTN6SUUQ.js.map} +0 -0
- /package/dist/{chunk-PZXSASDY.js.map → chunk-R5LHMOAC.js.map} +0 -0
- /package/dist/{chunk-7D4SUZUM.js.map → citationContext-CILHTO2Z.js.map} +0 -0
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JsonRenderStandalone
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-GYXTSY22.js";
|
|
6
|
-
import "../../chunk-K4KGNVL5.js";
|
|
7
|
-
import "../../chunk-56WRZM3R.js";
|
|
8
|
-
import "../../chunk-PZXSASDY.js";
|
|
9
|
-
import "../../chunk-VXJWGLZ7.js";
|
|
3
|
+
} from "../../chunk-AT6VLLOO.js";
|
|
4
|
+
import "../../chunk-3LOSHCSH.js";
|
|
10
5
|
import "../../chunk-2SKA3F5U.js";
|
|
6
|
+
import "../../chunk-KXPR6SRW.js";
|
|
11
7
|
import "../../chunk-GAMA3VA7.js";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-EZ46FGQ6.js";
|
|
9
|
+
import "../../chunk-EYWNUJVZ.js";
|
|
10
|
+
import "../../chunk-R5LHMOAC.js";
|
|
11
|
+
import "../../chunk-Q5PLT3AI.js";
|
|
12
|
+
import "../../chunk-MTN6SUUQ.js";
|
|
13
|
+
import "../../chunk-3CNQONCV.js";
|
|
15
14
|
|
|
16
15
|
// src/components/JsonRender/standalone.ts
|
|
17
16
|
function renderStandalone(container, spec, options) {
|
|
18
17
|
return Promise.all([
|
|
19
18
|
import("react"),
|
|
20
19
|
import("react-dom/client"),
|
|
21
|
-
import("../../JsonRenderStandalone-
|
|
20
|
+
import("../../JsonRenderStandalone-L5ROJ6XP.js")
|
|
22
21
|
]).then(([React, ReactDOM, { JsonRenderStandalone: JsonRenderStandalone2 }]) => {
|
|
23
22
|
const root = ReactDOM.createRoot(container);
|
|
24
23
|
root.render(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/JsonRender/standalone.ts"],"sourcesContent":["export { JsonRenderStandalone } from './JsonRenderStandalone'\nexport type { JsonRenderStandaloneProps } from './JsonRenderStandalone'\n\n/**\n * Mount a standalone json-render viewer into a DOM element (vanilla JS entry point).\n * Used by HIP standalone viewer HTML template.\n * Uses dynamic imports so React is lazy-loaded only when called.\n *\n * @returns A promise that resolves to an unmount function.\n */\nexport function renderStandalone(\n container: HTMLElement,\n spec: Record<string, unknown>,\n options?: { theme?: 'light' | 'dark' | 'auto'; title?: string },\n): Promise<() => void> {\n return Promise.all([\n import('react'),\n import('react-dom/client'),\n import('./JsonRenderStandalone'),\n ]).then(([React, ReactDOM, { JsonRenderStandalone }]) => {\n const root = ReactDOM.createRoot(container)\n root.render(\n React.createElement(JsonRenderStandalone, {\n spec,\n theme: options?.theme,\n className: undefined,\n }),\n )\n return () => root.unmount()\n })\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/JsonRender/standalone.ts"],"sourcesContent":["export { JsonRenderStandalone } from './JsonRenderStandalone'\nexport type { JsonRenderStandaloneProps } from './JsonRenderStandalone'\n\n/**\n * Mount a standalone json-render viewer into a DOM element (vanilla JS entry point).\n * Used by HIP standalone viewer HTML template.\n * Uses dynamic imports so React is lazy-loaded only when called.\n *\n * @returns A promise that resolves to an unmount function.\n */\nexport function renderStandalone(\n container: HTMLElement,\n spec: Record<string, unknown>,\n options?: { theme?: 'light' | 'dark' | 'auto'; title?: string },\n): Promise<() => void> {\n return Promise.all([\n import('react'),\n import('react-dom/client'),\n import('./JsonRenderStandalone'),\n ]).then(([React, ReactDOM, { JsonRenderStandalone }]) => {\n const root = ReactDOM.createRoot(container)\n root.render(\n React.createElement(JsonRenderStandalone, {\n spec,\n theme: options?.theme,\n className: undefined,\n }),\n )\n return () => root.unmount()\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;AAUO,SAAS,iBACd,WACA,MACA,SACqB;AACrB,SAAO,QAAQ,IAAI;AAAA,IACjB,OAAO,OAAO;AAAA,IACd,OAAO,kBAAkB;AAAA,IACzB,OAAO,wCAAwB;AAAA,EACjC,CAAC,EAAE,KAAK,CAAC,CAAC,OAAO,UAAU,EAAE,sBAAAA,sBAAqB,CAAC,MAAM;AACvD,UAAM,OAAO,SAAS,WAAW,SAAS;AAC1C,SAAK;AAAA,MACH,MAAM,cAAcA,uBAAsB;AAAA,QACxC;AAAA,QACA,OAAO,SAAS;AAAA,QAChB,WAAW;AAAA,MACb,CAAC;AAAA,IACH;AACA,WAAO,MAAM,KAAK,QAAQ;AAAA,EAC5B,CAAC;AACH;","names":["JsonRenderStandalone"]}
|
|
@@ -2,12 +2,8 @@ import {
|
|
|
2
2
|
extractRar,
|
|
3
3
|
initUrlIdHandler,
|
|
4
4
|
parseUrlFileUrl,
|
|
5
|
-
parseUrlId
|
|
6
|
-
|
|
7
|
-
} from "./chunk-7A4FY6FK.js";
|
|
8
|
-
import {
|
|
9
|
-
__toESM
|
|
10
|
-
} from "./chunk-7D4SUZUM.js";
|
|
5
|
+
parseUrlId
|
|
6
|
+
} from "./chunk-AO4YUJQT.js";
|
|
11
7
|
|
|
12
8
|
// src/components/jetPaveGerberViewer/src/viewer-src/2dPage/js/gerber-parser-direct.js
|
|
13
9
|
import earcut from "earcut";
|
|
@@ -656,7 +652,7 @@ var GerberDirectParser = class {
|
|
|
656
652
|
};
|
|
657
653
|
|
|
658
654
|
// src/components/jetPaveGerberViewer/src/viewer-src/2dPage/js/main.js
|
|
659
|
-
|
|
655
|
+
import JSZip from "jszip";
|
|
660
656
|
import { parse, plot, renderSVG } from "web-gerber";
|
|
661
657
|
import earcut2 from "earcut";
|
|
662
658
|
var canvas = document.getElementById("canvas");
|
|
@@ -3024,7 +3020,7 @@ function updateToggleAllState() {
|
|
|
3024
3020
|
async function extractZip(file) {
|
|
3025
3021
|
const files = [];
|
|
3026
3022
|
try {
|
|
3027
|
-
const zip = await
|
|
3023
|
+
const zip = await JSZip.loadAsync(file);
|
|
3028
3024
|
for (const [filename, zipEntry] of Object.entries(zip.files)) {
|
|
3029
3025
|
if (!zipEntry.dir && isGerberFile(filename)) {
|
|
3030
3026
|
const blob = await zipEntry.async("blob");
|
|
@@ -3947,4 +3943,4 @@ window.addEventListener("load", () => {
|
|
|
3947
3943
|
});
|
|
3948
3944
|
}
|
|
3949
3945
|
});
|
|
3950
|
-
//# sourceMappingURL=gerber-2d-entry-
|
|
3946
|
+
//# sourceMappingURL=gerber-2d-entry-HEFXQGBK.js.map
|