@puckeditor/core 0.21.3 → 0.22.0-canary.0c2f7ab8

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 (52) hide show
  1. package/README.md +1 -4
  2. package/dist/{Editor-MCVDFQH6.mjs → Editor-FJJNKTC3.mjs} +10 -11
  3. package/dist/Editor-ZZW3KF2T.css +385 -0
  4. package/dist/{Render-MJ563JES.mjs → Render-DQXAYUBI.mjs} +1 -1
  5. package/dist/Render-EKEWMTMI.css +117 -0
  6. package/dist/{actions-C3e2nJ9v.d.mts → actions-Csn3gOP8.d.mts} +3 -1
  7. package/dist/{actions-C3e2nJ9v.d.ts → actions-Csn3gOP8.d.ts} +3 -1
  8. package/dist/{chunk-ZMTK7SMX.mjs → chunk-3RQGAM3Z.mjs} +1 -1
  9. package/dist/{chunk-HGJWUFLT.mjs → chunk-4US666EQ.mjs} +91 -248
  10. package/dist/{chunk-4HOGLOEA.mjs → chunk-6MO3E35Y.mjs} +5 -3
  11. package/dist/{chunk-6XCJ3Y7O.mjs → chunk-DVZWVU66.mjs} +55 -2
  12. package/dist/{chunk-TDQEUXB2.mjs → chunk-GKUX6MNS.mjs} +4 -4
  13. package/dist/{chunk-AOEDIUVK.mjs → chunk-H635BA2V.mjs} +1 -1
  14. package/dist/{chunk-DPDJ67KA.mjs → chunk-M5GPDW62.mjs} +1 -1
  15. package/dist/{chunk-YXFTA2VL.mjs → chunk-SLDNFU3H.mjs} +3378 -432
  16. package/dist/{chunk-X2ZFWNCU.mjs → chunk-SSXLOL3N.mjs} +18 -15
  17. package/dist/{chunk-LODTL5KW.mjs → chunk-XIGSFEU7.mjs} +1 -1
  18. package/dist/{chunk-O7FT3KAM.mjs → chunk-XQHCQEAF.mjs} +233 -54
  19. package/dist/{full-5QCBHXRC.mjs → full-6ZILLKCS.mjs} +7 -7
  20. package/dist/full-S3QQ2IBQ.css +267 -0
  21. package/dist/{index-Cx46WIFC.d.ts → index-B1b1cFug.d.ts} +1 -1
  22. package/dist/{index-zHrchQGY.d.mts → index-ClzBCbx_.d.mts} +1 -1
  23. package/dist/index.css +1293 -1162
  24. package/dist/index.d.mts +13 -13
  25. package/dist/index.d.ts +13 -13
  26. package/dist/index.js +3788 -752
  27. package/dist/index.mjs +13 -12
  28. package/dist/internal.d.mts +2 -2
  29. package/dist/internal.d.ts +2 -2
  30. package/dist/internal.js +48 -2
  31. package/dist/internal.mjs +1 -1
  32. package/dist/loaded-FVWRAJR3.css +215 -0
  33. package/dist/{loaded-OMRIYZIQ.mjs → loaded-LAKI4KDY.mjs} +4 -4
  34. package/dist/{loaded-Y4ZWZC55.mjs → loaded-PILFUJGA.mjs} +4 -4
  35. package/dist/{loaded-54625GTL.mjs → loaded-QH5RKCGC.mjs} +4 -4
  36. package/dist/no-external.css +1293 -1162
  37. package/dist/no-external.d.mts +3 -3
  38. package/dist/no-external.d.ts +3 -3
  39. package/dist/no-external.js +3788 -752
  40. package/dist/no-external.mjs +13 -12
  41. package/dist/rsc.css +61 -46
  42. package/dist/rsc.d.mts +2 -2
  43. package/dist/rsc.d.ts +2 -2
  44. package/dist/rsc.js +22 -17
  45. package/dist/rsc.mjs +3 -3
  46. package/dist/{walk-tree-BJoNgZ0l.d.mts → walk-tree-BrW9VQ_t.d.mts} +1 -1
  47. package/dist/{walk-tree-f8Yzs5o3.d.ts → walk-tree-CWrsBHHe.d.ts} +1 -1
  48. package/package.json +13 -5
  49. package/dist/Editor-SWYBDXGU.css +0 -395
  50. package/dist/Render-3OV4N4MT.css +0 -102
  51. package/dist/full-FFFM5OTN.css +0 -292
  52. package/dist/loaded-RVWBFK7L.css +0 -87
@@ -42,8 +42,61 @@ var insert = (list, index, item) => {
42
42
 
43
43
  // lib/generate-id.ts
44
44
  init_react_import();
45
- import { v4 as uuidv4 } from "uuid";
46
- var generateId = (type) => type ? `${type}-${uuidv4()}` : uuidv4();
45
+
46
+ // lib/uuid/index.ts
47
+ init_react_import();
48
+
49
+ // lib/uuid/rng.ts
50
+ init_react_import();
51
+ var rnds8 = new Uint8Array(16);
52
+ function rng() {
53
+ return crypto.getRandomValues(rnds8);
54
+ }
55
+
56
+ // lib/uuid/stringify.ts
57
+ init_react_import();
58
+ var byteToHex = [];
59
+ for (let i = 0; i < 256; ++i) {
60
+ byteToHex.push((i + 256).toString(16).slice(1));
61
+ }
62
+ function unsafeStringify(arr, offset = 0) {
63
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
64
+ }
65
+
66
+ // lib/uuid/index.ts
67
+ function v4(options, buf, offset) {
68
+ if (!buf && !options && crypto.randomUUID) {
69
+ return crypto.randomUUID();
70
+ }
71
+ return _v4(options, buf, offset);
72
+ }
73
+ function _v4(options, buf, offset) {
74
+ var _a, _b, _c;
75
+ options = options || {};
76
+ const rnds = (_c = (_b = options.random) != null ? _b : (_a = options.rng) == null ? void 0 : _a.call(options)) != null ? _c : rng();
77
+ if (rnds.length < 16) {
78
+ throw new Error("Random bytes length must be >= 16");
79
+ }
80
+ rnds[6] = rnds[6] & 15 | 64;
81
+ rnds[8] = rnds[8] & 63 | 128;
82
+ if (buf) {
83
+ offset = offset || 0;
84
+ if (offset < 0 || offset + 16 > buf.length) {
85
+ throw new RangeError(
86
+ `UUID byte range ${offset}:${offset + 15} is out of buffer bounds`
87
+ );
88
+ }
89
+ for (let i = 0; i < 16; ++i) {
90
+ buf[offset + i] = rnds[i];
91
+ }
92
+ return buf;
93
+ }
94
+ return unsafeStringify(rnds);
95
+ }
96
+ var uuid_default = v4;
97
+
98
+ // lib/generate-id.ts
99
+ var generateId = (type) => type ? `${type}-${uuid_default()}` : uuid_default();
47
100
 
48
101
  // lib/data/get-ids-for-parent.ts
49
102
  init_react_import();
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  styles_module_default
3
- } from "./chunk-AOEDIUVK.mjs";
3
+ } from "./chunk-H635BA2V.mjs";
4
4
  import {
5
5
  LoadedRichTextMenuInner
6
- } from "./chunk-HGJWUFLT.mjs";
6
+ } from "./chunk-4US666EQ.mjs";
7
7
  import {
8
8
  useAppStore,
9
9
  useAppStoreApi
10
- } from "./chunk-O7FT3KAM.mjs";
10
+ } from "./chunk-XQHCQEAF.mjs";
11
11
  import {
12
12
  get_class_name_factory_default
13
13
  } from "./chunk-Y2EFNT5P.mjs";
@@ -100,7 +100,7 @@ init_react_import();
100
100
  import { lazy, Suspense } from "react";
101
101
  import { jsx as jsx2 } from "react/jsx-runtime";
102
102
  var LoadedRichTextMenuFull = lazy(
103
- () => import("./full-5QCBHXRC.mjs").then((m) => ({
103
+ () => import("./full-6ZILLKCS.mjs").then((m) => ({
104
104
  default: m.LoadedRichTextMenuFull
105
105
  }))
106
106
  );
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css#css-module
6
6
  init_react_import();
7
- var styles_module_default = { "RichTextEditor": "_RichTextEditor_z25h4_1", "RichTextEditor--editor": "_RichTextEditor--editor_z25h4_50", "RichTextEditor--disabled": "_RichTextEditor--disabled_z25h4_107", "RichTextEditor--isActive": "_RichTextEditor--isActive_z25h4_111", "RichTextEditor-menu": "_RichTextEditor-menu_z25h4_117" };
7
+ var styles_module_default = { "RichTextEditor": "_RichTextEditor_5wzos_1", "RichTextEditor--editor": "_RichTextEditor--editor_5wzos_50", "RichTextEditor--disabled": "_RichTextEditor--disabled_5wzos_123", "RichTextEditor--isActive": "_RichTextEditor--isActive_5wzos_159", "RichTextEditor-menu": "_RichTextEditor-menu_5wzos_165" };
8
8
 
9
9
  export {
10
10
  styles_module_default
@@ -3,7 +3,7 @@ import {
3
3
  AlignJustify,
4
4
  AlignLeft,
5
5
  AlignRight
6
- } from "./chunk-O7FT3KAM.mjs";
6
+ } from "./chunk-XQHCQEAF.mjs";
7
7
  import {
8
8
  init_react_import
9
9
  } from "./chunk-M6W7YEVX.mjs";