@annotorious/react 3.0.21 → 3.0.22

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.
@@ -1,17 +1,14 @@
1
- import m from "./annotorious-react.es25.js";
2
- import n from "./annotorious-react.es26.js";
1
+ import n from "./annotorious-react.es25.js";
2
+ import m from "./annotorious-react.es26.js";
3
3
  import { unsafeStringify as t } from "./annotorious-react.es24.js";
4
- function U(r, a, u) {
5
- var e;
6
- if (m.randomUUID && !r)
7
- return m.randomUUID();
4
+ function x(r, e, a) {
5
+ if (n.randomUUID && !r)
6
+ return n.randomUUID();
8
7
  r = r || {};
9
- const f = r.random ?? ((e = r.rng) == null ? void 0 : e.call(r)) ?? n();
10
- if (f.length < 16)
11
- throw new Error("Random bytes length must be >= 16");
8
+ const f = r.random || (r.rng || m)();
12
9
  return f[6] = f[6] & 15 | 64, f[8] = f[8] & 63 | 128, t(f);
13
10
  }
14
11
  export {
15
- U as default
12
+ x as default
16
13
  };
17
14
  //# sourceMappingURL=annotorious-react.es17.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"annotorious-react.es17.js","sources":["../../../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n const rnds = options.random ?? options.rng?.() ?? rng();\n if (rnds.length < 16) {\n throw new Error('Random bytes length must be >= 16');\n }\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n if (offset < 0 || offset + 16 > buf.length) {\n throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);\n }\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n"],"names":["v4","options","buf","offset","native","rnds","_a","rng","unsafeStringify"],"mappings":";;;AAGA,SAASA,EAAGC,GAASC,GAAKC,GAAQ;;AAC9B,MAAIC,EAAO,cAAsB,CAACH;AAC9B,WAAOG,EAAO,WAAY;AAE9B,EAAAH,IAAUA,KAAW,CAAE;AACvB,QAAMI,IAAOJ,EAAQ,YAAUK,IAAAL,EAAQ,QAAR,gBAAAK,EAAA,KAAAL,OAAmBM,EAAK;AACvD,MAAIF,EAAK,SAAS;AACd,UAAM,IAAI,MAAM,mCAAmC;AAEvD,SAAAA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,IAC7BA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,KAWtBG,EAAgBH,CAAI;AAC/B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"annotorious-react.es17.js","sources":["../../../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n const rnds = options.random || (options.rng || rng)();\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n"],"names":["v4","options","buf","offset","native","rnds","rng","unsafeStringify"],"mappings":";;;AAGA,SAASA,EAAGC,GAASC,GAAKC,GAAQ;AAC9B,MAAIC,EAAO,cAAsB,CAACH;AAC9B,WAAOG,EAAO,WAAY;AAE9B,EAAAH,IAAUA,KAAW,CAAE;AACvB,QAAMI,IAAOJ,EAAQ,WAAWA,EAAQ,OAAOK,GAAM;AACrD,SAAAD,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,IAC7BA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,KAQtBE,EAAgBF,CAAI;AAC/B;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annotorious/react",
3
- "version": "3.0.21",
3
+ "version": "3.0.22",
4
4
  "description": "Annotorious React bindings",
5
5
  "author": "Rainer Simon",
6
6
  "license": "BSD-3-Clause",
@@ -26,13 +26,13 @@
26
26
  "./annotorious-react.css": "./dist/annotorious-react.css"
27
27
  },
28
28
  "devDependencies": {
29
- "@types/react": "^18.3.18",
30
- "@types/react-dom": "^18.3.5",
31
- "@vitejs/plugin-react": "^4.3.4",
32
- "typescript": "5.7.3",
33
- "vite": "^5.4.14",
34
- "vite-plugin-dts": "^4.5.0",
35
- "vite-tsconfig-paths": "^5.1.4"
29
+ "@types/react": "18.3.12",
30
+ "@types/react-dom": "18.3.1",
31
+ "@vitejs/plugin-react": "4.3.4",
32
+ "typescript": "5.7.2",
33
+ "vite": "5.4.11",
34
+ "vite-plugin-dts": "4.3.0",
35
+ "vite-tsconfig-paths": "5.1.3"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "openseadragon": "^3.0.0 || ^4.0.0 || ^5.0.0",
@@ -45,11 +45,11 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@annotorious/annotorious": "3.0.21",
49
- "@annotorious/core": "3.0.21",
50
- "@annotorious/openseadragon": "3.0.21",
51
- "@floating-ui/react": "^0.27.3",
52
- "zustand": "^5.0.3"
48
+ "@annotorious/annotorious": "3.0.22",
49
+ "@annotorious/core": "3.0.22",
50
+ "@annotorious/openseadragon": "3.0.22",
51
+ "@floating-ui/react": "0.26.28",
52
+ "zustand": "5.0.1"
53
53
  },
54
54
  "sideEffects": false
55
55
  }