@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.
- package/README.md +1 -4
- package/dist/{Editor-MCVDFQH6.mjs → Editor-FJJNKTC3.mjs} +10 -11
- package/dist/Editor-ZZW3KF2T.css +385 -0
- package/dist/{Render-MJ563JES.mjs → Render-DQXAYUBI.mjs} +1 -1
- package/dist/Render-EKEWMTMI.css +117 -0
- package/dist/{actions-C3e2nJ9v.d.mts → actions-Csn3gOP8.d.mts} +3 -1
- package/dist/{actions-C3e2nJ9v.d.ts → actions-Csn3gOP8.d.ts} +3 -1
- package/dist/{chunk-ZMTK7SMX.mjs → chunk-3RQGAM3Z.mjs} +1 -1
- package/dist/{chunk-HGJWUFLT.mjs → chunk-4US666EQ.mjs} +91 -248
- package/dist/{chunk-4HOGLOEA.mjs → chunk-6MO3E35Y.mjs} +5 -3
- package/dist/{chunk-6XCJ3Y7O.mjs → chunk-DVZWVU66.mjs} +55 -2
- package/dist/{chunk-TDQEUXB2.mjs → chunk-GKUX6MNS.mjs} +4 -4
- package/dist/{chunk-AOEDIUVK.mjs → chunk-H635BA2V.mjs} +1 -1
- package/dist/{chunk-DPDJ67KA.mjs → chunk-M5GPDW62.mjs} +1 -1
- package/dist/{chunk-YXFTA2VL.mjs → chunk-SLDNFU3H.mjs} +3378 -432
- package/dist/{chunk-X2ZFWNCU.mjs → chunk-SSXLOL3N.mjs} +18 -15
- package/dist/{chunk-LODTL5KW.mjs → chunk-XIGSFEU7.mjs} +1 -1
- package/dist/{chunk-O7FT3KAM.mjs → chunk-XQHCQEAF.mjs} +233 -54
- package/dist/{full-5QCBHXRC.mjs → full-6ZILLKCS.mjs} +7 -7
- package/dist/full-S3QQ2IBQ.css +267 -0
- package/dist/{index-Cx46WIFC.d.ts → index-B1b1cFug.d.ts} +1 -1
- package/dist/{index-zHrchQGY.d.mts → index-ClzBCbx_.d.mts} +1 -1
- package/dist/index.css +1293 -1162
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +3788 -752
- package/dist/index.mjs +13 -12
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +48 -2
- package/dist/internal.mjs +1 -1
- package/dist/loaded-FVWRAJR3.css +215 -0
- package/dist/{loaded-OMRIYZIQ.mjs → loaded-LAKI4KDY.mjs} +4 -4
- package/dist/{loaded-Y4ZWZC55.mjs → loaded-PILFUJGA.mjs} +4 -4
- package/dist/{loaded-54625GTL.mjs → loaded-QH5RKCGC.mjs} +4 -4
- package/dist/no-external.css +1293 -1162
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +3788 -752
- package/dist/no-external.mjs +13 -12
- package/dist/rsc.css +61 -46
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +22 -17
- package/dist/rsc.mjs +3 -3
- package/dist/{walk-tree-BJoNgZ0l.d.mts → walk-tree-BrW9VQ_t.d.mts} +1 -1
- package/dist/{walk-tree-f8Yzs5o3.d.ts → walk-tree-CWrsBHHe.d.ts} +1 -1
- package/package.json +13 -5
- package/dist/Editor-SWYBDXGU.css +0 -395
- package/dist/Render-3OV4N4MT.css +0 -102
- package/dist/full-FFFM5OTN.css +0 -292
- 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
|
-
|
|
46
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-H635BA2V.mjs";
|
|
4
4
|
import {
|
|
5
5
|
LoadedRichTextMenuInner
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4US666EQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useAppStore,
|
|
9
9
|
useAppStoreApi
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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": "
|
|
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
|