vis-core 0.28.14 → 0.28.15

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.
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
88
88
  ).toString(CryptoJS.enc.Utf8), Ne = JSON.parse(Pe), Ae = Date.now();
89
89
  return !Ne.s || Ne.s > Ae ? (this.token = void 0, "") : Ne.e && Ne.e < Ae ? (this.token = void 0, "") : (Ne.isValid = O, Ne);
90
90
  }
91
- }, version = "0.28.14";
91
+ }, version = "0.28.15";
92
92
  /**
93
93
  * @license
94
94
  * Copyright 2010-2025 Three.js Authors
@@ -58457,7 +58457,10 @@ class SetMaterial extends Command {
58457
58457
  }
58458
58458
  fixJSON() {
58459
58459
  const t = this.json;
58460
- t && t.oldMaterial && delete t.oldMaterial;
58460
+ if (t && t.oldMaterial && delete t.oldMaterial, this.oldMaterial) {
58461
+ const r = this.editor.pencil.mList.getKey(this.oldMaterial);
58462
+ r && r !== t.objectUuid && (console.warn("SetMaterial:fix:", t.objectUuid, r), t.objectUuid = r);
58463
+ }
58461
58464
  }
58462
58465
  }
58463
58466
  function parseMaterial(g) {
@@ -59911,20 +59914,20 @@ class Config {
59911
59914
  };
59912
59915
  }
59913
59916
  }
59914
- const jsonFetch = (g, t, r = !1) => {
59915
- const m = makePromiseCreator(!0), v = g.endsWith("gzip") || r;
59916
- return window.fetch(g).then((C) => {
59917
- let _ = C;
59918
- if (_.ok)
59919
- return v ? _.blob().then((w) => {
59920
- const E = new DecompressionStream("gzip"), O = w.stream().pipeThrough(E);
59921
- return new Response(O);
59922
- }) : _;
59917
+ const isGzip = (g) => !!(g.endsWith(".gzip") || g.endsWith(".gz")), jsonFetch = (g, t, r = isGzip) => {
59918
+ const m = makePromiseCreator(!0);
59919
+ return window.fetch(g).then((v) => {
59920
+ let C = v;
59921
+ if (C.ok)
59922
+ return r(g) && C.headers.get("content-encoding") !== "gzip" ? C.blob().then((_) => {
59923
+ const w = new DecompressionStream("gzip"), E = _.stream().pipeThrough(w);
59924
+ return new Response(E);
59925
+ }) : C;
59923
59926
  throw new Error("Network response was not ok.");
59924
- }).then((C) => C.json()).then((C) => {
59925
- m.resolve(C);
59926
- }).catch((C) => {
59927
- m.reject(C);
59927
+ }).then((v) => v.json()).then((v) => {
59928
+ m.resolve(v);
59929
+ }).catch((v) => {
59930
+ m.reject(v);
59928
59931
  }), m.promise;
59929
59932
  };
59930
59933
  class Editor {
@@ -3,5 +3,6 @@ type DownloadProgress = {
3
3
  transferredBytes: number;
4
4
  totalBytes: number;
5
5
  };
6
- declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void, gizp?: boolean) => Promise<any>;
6
+ export declare const isGzip: (url: string) => boolean;
7
+ declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void, gzip?: (url: string) => boolean) => Promise<any>;
7
8
  export default _default;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.28.14";
1
+ declare const _default: "0.28.15";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.28.14",
3
+ "version": "0.28.15",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
- "build:site": "npm run version && bundler",
6
+ "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
7
7
  "build:lib": "npm run version && PUBLIC_EXCLUDE=true BUILD_LIBRARY=src/sdk/index.ts CSS_EXTRACT=false bundler && npm run build:type",
8
8
  "build:type": "BUILD_LIBRARY=src/sdk/index.ts bundler-type",
9
9
  "preview": "bundler-preview",