@measured/puck-plugin-heading-analyzer 0.14.0-canary.4932a6e → 0.14.0-canary.92750a2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/dist/index.css +74 -45
- package/dist/index.d.ts +16 -10
- package/dist/index.js +557 -125
- package/package.json +8 -3
package/dist/index.js
CHANGED
@@ -21249,11 +21249,11 @@ var require_react_dom_development = __commonJS({
|
|
21249
21249
|
}
|
21250
21250
|
function registerMutableSourceForHydration(root2, mutableSource) {
|
21251
21251
|
var getVersion2 = mutableSource._getVersion;
|
21252
|
-
var
|
21252
|
+
var version2 = getVersion2(mutableSource._source);
|
21253
21253
|
if (root2.mutableSourceEagerHydrationData == null) {
|
21254
|
-
root2.mutableSourceEagerHydrationData = [mutableSource,
|
21254
|
+
root2.mutableSourceEagerHydrationData = [mutableSource, version2];
|
21255
21255
|
} else {
|
21256
|
-
root2.mutableSourceEagerHydrationData.push(mutableSource,
|
21256
|
+
root2.mutableSourceEagerHydrationData.push(mutableSource, version2);
|
21257
21257
|
}
|
21258
21258
|
}
|
21259
21259
|
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig;
|
@@ -41046,6 +41046,374 @@ var init_index_module = __esm({
|
|
41046
41046
|
}
|
41047
41047
|
});
|
41048
41048
|
|
41049
|
+
// ../../node_modules/uuid/dist/esm-node/rng.js
|
41050
|
+
function rng() {
|
41051
|
+
if (poolPtr > rnds8Pool.length - 16) {
|
41052
|
+
import_crypto.default.randomFillSync(rnds8Pool);
|
41053
|
+
poolPtr = 0;
|
41054
|
+
}
|
41055
|
+
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
41056
|
+
}
|
41057
|
+
var import_crypto, rnds8Pool, poolPtr;
|
41058
|
+
var init_rng = __esm({
|
41059
|
+
"../../node_modules/uuid/dist/esm-node/rng.js"() {
|
41060
|
+
init_react_import();
|
41061
|
+
import_crypto = __toESM(require("crypto"));
|
41062
|
+
rnds8Pool = new Uint8Array(256);
|
41063
|
+
poolPtr = rnds8Pool.length;
|
41064
|
+
}
|
41065
|
+
});
|
41066
|
+
|
41067
|
+
// ../../node_modules/uuid/dist/esm-node/regex.js
|
41068
|
+
var regex_default;
|
41069
|
+
var init_regex = __esm({
|
41070
|
+
"../../node_modules/uuid/dist/esm-node/regex.js"() {
|
41071
|
+
init_react_import();
|
41072
|
+
regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
41073
|
+
}
|
41074
|
+
});
|
41075
|
+
|
41076
|
+
// ../../node_modules/uuid/dist/esm-node/validate.js
|
41077
|
+
function validate(uuid) {
|
41078
|
+
return typeof uuid === "string" && regex_default.test(uuid);
|
41079
|
+
}
|
41080
|
+
var validate_default;
|
41081
|
+
var init_validate = __esm({
|
41082
|
+
"../../node_modules/uuid/dist/esm-node/validate.js"() {
|
41083
|
+
init_react_import();
|
41084
|
+
init_regex();
|
41085
|
+
validate_default = validate;
|
41086
|
+
}
|
41087
|
+
});
|
41088
|
+
|
41089
|
+
// ../../node_modules/uuid/dist/esm-node/stringify.js
|
41090
|
+
function unsafeStringify(arr, offset3 = 0) {
|
41091
|
+
return byteToHex[arr[offset3 + 0]] + byteToHex[arr[offset3 + 1]] + byteToHex[arr[offset3 + 2]] + byteToHex[arr[offset3 + 3]] + "-" + byteToHex[arr[offset3 + 4]] + byteToHex[arr[offset3 + 5]] + "-" + byteToHex[arr[offset3 + 6]] + byteToHex[arr[offset3 + 7]] + "-" + byteToHex[arr[offset3 + 8]] + byteToHex[arr[offset3 + 9]] + "-" + byteToHex[arr[offset3 + 10]] + byteToHex[arr[offset3 + 11]] + byteToHex[arr[offset3 + 12]] + byteToHex[arr[offset3 + 13]] + byteToHex[arr[offset3 + 14]] + byteToHex[arr[offset3 + 15]];
|
41092
|
+
}
|
41093
|
+
function stringify(arr, offset3 = 0) {
|
41094
|
+
const uuid = unsafeStringify(arr, offset3);
|
41095
|
+
if (!validate_default(uuid)) {
|
41096
|
+
throw TypeError("Stringified UUID is invalid");
|
41097
|
+
}
|
41098
|
+
return uuid;
|
41099
|
+
}
|
41100
|
+
var byteToHex, stringify_default;
|
41101
|
+
var init_stringify = __esm({
|
41102
|
+
"../../node_modules/uuid/dist/esm-node/stringify.js"() {
|
41103
|
+
init_react_import();
|
41104
|
+
init_validate();
|
41105
|
+
byteToHex = [];
|
41106
|
+
for (let i2 = 0; i2 < 256; ++i2) {
|
41107
|
+
byteToHex.push((i2 + 256).toString(16).slice(1));
|
41108
|
+
}
|
41109
|
+
stringify_default = stringify;
|
41110
|
+
}
|
41111
|
+
});
|
41112
|
+
|
41113
|
+
// ../../node_modules/uuid/dist/esm-node/v1.js
|
41114
|
+
function v1(options, buf, offset3) {
|
41115
|
+
let i2 = buf && offset3 || 0;
|
41116
|
+
const b = buf || new Array(16);
|
41117
|
+
options = options || {};
|
41118
|
+
let node = options.node || _nodeId;
|
41119
|
+
let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
|
41120
|
+
if (node == null || clockseq == null) {
|
41121
|
+
const seedBytes = options.random || (options.rng || rng)();
|
41122
|
+
if (node == null) {
|
41123
|
+
node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
41124
|
+
}
|
41125
|
+
if (clockseq == null) {
|
41126
|
+
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
|
41127
|
+
}
|
41128
|
+
}
|
41129
|
+
let msecs = options.msecs !== void 0 ? options.msecs : Date.now();
|
41130
|
+
let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
|
41131
|
+
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
|
41132
|
+
if (dt < 0 && options.clockseq === void 0) {
|
41133
|
+
clockseq = clockseq + 1 & 16383;
|
41134
|
+
}
|
41135
|
+
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
|
41136
|
+
nsecs = 0;
|
41137
|
+
}
|
41138
|
+
if (nsecs >= 1e4) {
|
41139
|
+
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
41140
|
+
}
|
41141
|
+
_lastMSecs = msecs;
|
41142
|
+
_lastNSecs = nsecs;
|
41143
|
+
_clockseq = clockseq;
|
41144
|
+
msecs += 122192928e5;
|
41145
|
+
const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
|
41146
|
+
b[i2++] = tl >>> 24 & 255;
|
41147
|
+
b[i2++] = tl >>> 16 & 255;
|
41148
|
+
b[i2++] = tl >>> 8 & 255;
|
41149
|
+
b[i2++] = tl & 255;
|
41150
|
+
const tmh = msecs / 4294967296 * 1e4 & 268435455;
|
41151
|
+
b[i2++] = tmh >>> 8 & 255;
|
41152
|
+
b[i2++] = tmh & 255;
|
41153
|
+
b[i2++] = tmh >>> 24 & 15 | 16;
|
41154
|
+
b[i2++] = tmh >>> 16 & 255;
|
41155
|
+
b[i2++] = clockseq >>> 8 | 128;
|
41156
|
+
b[i2++] = clockseq & 255;
|
41157
|
+
for (let n2 = 0; n2 < 6; ++n2) {
|
41158
|
+
b[i2 + n2] = node[n2];
|
41159
|
+
}
|
41160
|
+
return buf || unsafeStringify(b);
|
41161
|
+
}
|
41162
|
+
var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default;
|
41163
|
+
var init_v1 = __esm({
|
41164
|
+
"../../node_modules/uuid/dist/esm-node/v1.js"() {
|
41165
|
+
init_react_import();
|
41166
|
+
init_rng();
|
41167
|
+
init_stringify();
|
41168
|
+
_lastMSecs = 0;
|
41169
|
+
_lastNSecs = 0;
|
41170
|
+
v1_default = v1;
|
41171
|
+
}
|
41172
|
+
});
|
41173
|
+
|
41174
|
+
// ../../node_modules/uuid/dist/esm-node/parse.js
|
41175
|
+
function parse3(uuid) {
|
41176
|
+
if (!validate_default(uuid)) {
|
41177
|
+
throw TypeError("Invalid UUID");
|
41178
|
+
}
|
41179
|
+
let v;
|
41180
|
+
const arr = new Uint8Array(16);
|
41181
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
41182
|
+
arr[1] = v >>> 16 & 255;
|
41183
|
+
arr[2] = v >>> 8 & 255;
|
41184
|
+
arr[3] = v & 255;
|
41185
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
41186
|
+
arr[5] = v & 255;
|
41187
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
41188
|
+
arr[7] = v & 255;
|
41189
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
41190
|
+
arr[9] = v & 255;
|
41191
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
|
41192
|
+
arr[11] = v / 4294967296 & 255;
|
41193
|
+
arr[12] = v >>> 24 & 255;
|
41194
|
+
arr[13] = v >>> 16 & 255;
|
41195
|
+
arr[14] = v >>> 8 & 255;
|
41196
|
+
arr[15] = v & 255;
|
41197
|
+
return arr;
|
41198
|
+
}
|
41199
|
+
var parse_default;
|
41200
|
+
var init_parse = __esm({
|
41201
|
+
"../../node_modules/uuid/dist/esm-node/parse.js"() {
|
41202
|
+
init_react_import();
|
41203
|
+
init_validate();
|
41204
|
+
parse_default = parse3;
|
41205
|
+
}
|
41206
|
+
});
|
41207
|
+
|
41208
|
+
// ../../node_modules/uuid/dist/esm-node/v35.js
|
41209
|
+
function stringToBytes(str) {
|
41210
|
+
str = unescape(encodeURIComponent(str));
|
41211
|
+
const bytes = [];
|
41212
|
+
for (let i2 = 0; i2 < str.length; ++i2) {
|
41213
|
+
bytes.push(str.charCodeAt(i2));
|
41214
|
+
}
|
41215
|
+
return bytes;
|
41216
|
+
}
|
41217
|
+
function v35(name, version2, hashfunc) {
|
41218
|
+
function generateUUID(value, namespace, buf, offset3) {
|
41219
|
+
var _namespace;
|
41220
|
+
if (typeof value === "string") {
|
41221
|
+
value = stringToBytes(value);
|
41222
|
+
}
|
41223
|
+
if (typeof namespace === "string") {
|
41224
|
+
namespace = parse_default(namespace);
|
41225
|
+
}
|
41226
|
+
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
41227
|
+
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
41228
|
+
}
|
41229
|
+
let bytes = new Uint8Array(16 + value.length);
|
41230
|
+
bytes.set(namespace);
|
41231
|
+
bytes.set(value, namespace.length);
|
41232
|
+
bytes = hashfunc(bytes);
|
41233
|
+
bytes[6] = bytes[6] & 15 | version2;
|
41234
|
+
bytes[8] = bytes[8] & 63 | 128;
|
41235
|
+
if (buf) {
|
41236
|
+
offset3 = offset3 || 0;
|
41237
|
+
for (let i2 = 0; i2 < 16; ++i2) {
|
41238
|
+
buf[offset3 + i2] = bytes[i2];
|
41239
|
+
}
|
41240
|
+
return buf;
|
41241
|
+
}
|
41242
|
+
return unsafeStringify(bytes);
|
41243
|
+
}
|
41244
|
+
try {
|
41245
|
+
generateUUID.name = name;
|
41246
|
+
} catch (err) {
|
41247
|
+
}
|
41248
|
+
generateUUID.DNS = DNS;
|
41249
|
+
generateUUID.URL = URL;
|
41250
|
+
return generateUUID;
|
41251
|
+
}
|
41252
|
+
var DNS, URL;
|
41253
|
+
var init_v35 = __esm({
|
41254
|
+
"../../node_modules/uuid/dist/esm-node/v35.js"() {
|
41255
|
+
init_react_import();
|
41256
|
+
init_stringify();
|
41257
|
+
init_parse();
|
41258
|
+
DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
41259
|
+
URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
41260
|
+
}
|
41261
|
+
});
|
41262
|
+
|
41263
|
+
// ../../node_modules/uuid/dist/esm-node/md5.js
|
41264
|
+
function md5(bytes) {
|
41265
|
+
if (Array.isArray(bytes)) {
|
41266
|
+
bytes = Buffer.from(bytes);
|
41267
|
+
} else if (typeof bytes === "string") {
|
41268
|
+
bytes = Buffer.from(bytes, "utf8");
|
41269
|
+
}
|
41270
|
+
return import_crypto2.default.createHash("md5").update(bytes).digest();
|
41271
|
+
}
|
41272
|
+
var import_crypto2, md5_default;
|
41273
|
+
var init_md5 = __esm({
|
41274
|
+
"../../node_modules/uuid/dist/esm-node/md5.js"() {
|
41275
|
+
init_react_import();
|
41276
|
+
import_crypto2 = __toESM(require("crypto"));
|
41277
|
+
md5_default = md5;
|
41278
|
+
}
|
41279
|
+
});
|
41280
|
+
|
41281
|
+
// ../../node_modules/uuid/dist/esm-node/v3.js
|
41282
|
+
var v3, v3_default;
|
41283
|
+
var init_v3 = __esm({
|
41284
|
+
"../../node_modules/uuid/dist/esm-node/v3.js"() {
|
41285
|
+
init_react_import();
|
41286
|
+
init_v35();
|
41287
|
+
init_md5();
|
41288
|
+
v3 = v35("v3", 48, md5_default);
|
41289
|
+
v3_default = v3;
|
41290
|
+
}
|
41291
|
+
});
|
41292
|
+
|
41293
|
+
// ../../node_modules/uuid/dist/esm-node/native.js
|
41294
|
+
var import_crypto3, native_default;
|
41295
|
+
var init_native = __esm({
|
41296
|
+
"../../node_modules/uuid/dist/esm-node/native.js"() {
|
41297
|
+
init_react_import();
|
41298
|
+
import_crypto3 = __toESM(require("crypto"));
|
41299
|
+
native_default = {
|
41300
|
+
randomUUID: import_crypto3.default.randomUUID
|
41301
|
+
};
|
41302
|
+
}
|
41303
|
+
});
|
41304
|
+
|
41305
|
+
// ../../node_modules/uuid/dist/esm-node/v4.js
|
41306
|
+
function v4(options, buf, offset3) {
|
41307
|
+
if (native_default.randomUUID && !buf && !options) {
|
41308
|
+
return native_default.randomUUID();
|
41309
|
+
}
|
41310
|
+
options = options || {};
|
41311
|
+
const rnds = options.random || (options.rng || rng)();
|
41312
|
+
rnds[6] = rnds[6] & 15 | 64;
|
41313
|
+
rnds[8] = rnds[8] & 63 | 128;
|
41314
|
+
if (buf) {
|
41315
|
+
offset3 = offset3 || 0;
|
41316
|
+
for (let i2 = 0; i2 < 16; ++i2) {
|
41317
|
+
buf[offset3 + i2] = rnds[i2];
|
41318
|
+
}
|
41319
|
+
return buf;
|
41320
|
+
}
|
41321
|
+
return unsafeStringify(rnds);
|
41322
|
+
}
|
41323
|
+
var v4_default;
|
41324
|
+
var init_v4 = __esm({
|
41325
|
+
"../../node_modules/uuid/dist/esm-node/v4.js"() {
|
41326
|
+
init_react_import();
|
41327
|
+
init_native();
|
41328
|
+
init_rng();
|
41329
|
+
init_stringify();
|
41330
|
+
v4_default = v4;
|
41331
|
+
}
|
41332
|
+
});
|
41333
|
+
|
41334
|
+
// ../../node_modules/uuid/dist/esm-node/sha1.js
|
41335
|
+
function sha1(bytes) {
|
41336
|
+
if (Array.isArray(bytes)) {
|
41337
|
+
bytes = Buffer.from(bytes);
|
41338
|
+
} else if (typeof bytes === "string") {
|
41339
|
+
bytes = Buffer.from(bytes, "utf8");
|
41340
|
+
}
|
41341
|
+
return import_crypto4.default.createHash("sha1").update(bytes).digest();
|
41342
|
+
}
|
41343
|
+
var import_crypto4, sha1_default;
|
41344
|
+
var init_sha1 = __esm({
|
41345
|
+
"../../node_modules/uuid/dist/esm-node/sha1.js"() {
|
41346
|
+
init_react_import();
|
41347
|
+
import_crypto4 = __toESM(require("crypto"));
|
41348
|
+
sha1_default = sha1;
|
41349
|
+
}
|
41350
|
+
});
|
41351
|
+
|
41352
|
+
// ../../node_modules/uuid/dist/esm-node/v5.js
|
41353
|
+
var v5, v5_default;
|
41354
|
+
var init_v5 = __esm({
|
41355
|
+
"../../node_modules/uuid/dist/esm-node/v5.js"() {
|
41356
|
+
init_react_import();
|
41357
|
+
init_v35();
|
41358
|
+
init_sha1();
|
41359
|
+
v5 = v35("v5", 80, sha1_default);
|
41360
|
+
v5_default = v5;
|
41361
|
+
}
|
41362
|
+
});
|
41363
|
+
|
41364
|
+
// ../../node_modules/uuid/dist/esm-node/nil.js
|
41365
|
+
var nil_default;
|
41366
|
+
var init_nil = __esm({
|
41367
|
+
"../../node_modules/uuid/dist/esm-node/nil.js"() {
|
41368
|
+
init_react_import();
|
41369
|
+
nil_default = "00000000-0000-0000-0000-000000000000";
|
41370
|
+
}
|
41371
|
+
});
|
41372
|
+
|
41373
|
+
// ../../node_modules/uuid/dist/esm-node/version.js
|
41374
|
+
function version(uuid) {
|
41375
|
+
if (!validate_default(uuid)) {
|
41376
|
+
throw TypeError("Invalid UUID");
|
41377
|
+
}
|
41378
|
+
return parseInt(uuid.slice(14, 15), 16);
|
41379
|
+
}
|
41380
|
+
var version_default;
|
41381
|
+
var init_version = __esm({
|
41382
|
+
"../../node_modules/uuid/dist/esm-node/version.js"() {
|
41383
|
+
init_react_import();
|
41384
|
+
init_validate();
|
41385
|
+
version_default = version;
|
41386
|
+
}
|
41387
|
+
});
|
41388
|
+
|
41389
|
+
// ../../node_modules/uuid/dist/esm-node/index.js
|
41390
|
+
var esm_node_exports = {};
|
41391
|
+
__export(esm_node_exports, {
|
41392
|
+
NIL: () => nil_default,
|
41393
|
+
parse: () => parse_default,
|
41394
|
+
stringify: () => stringify_default,
|
41395
|
+
v1: () => v1_default,
|
41396
|
+
v3: () => v3_default,
|
41397
|
+
v4: () => v4_default,
|
41398
|
+
v5: () => v5_default,
|
41399
|
+
validate: () => validate_default,
|
41400
|
+
version: () => version_default
|
41401
|
+
});
|
41402
|
+
var init_esm_node = __esm({
|
41403
|
+
"../../node_modules/uuid/dist/esm-node/index.js"() {
|
41404
|
+
init_react_import();
|
41405
|
+
init_v1();
|
41406
|
+
init_v3();
|
41407
|
+
init_v4();
|
41408
|
+
init_v5();
|
41409
|
+
init_nil();
|
41410
|
+
init_version();
|
41411
|
+
init_validate();
|
41412
|
+
init_stringify();
|
41413
|
+
init_parse();
|
41414
|
+
}
|
41415
|
+
});
|
41416
|
+
|
41049
41417
|
// ../../node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js
|
41050
41418
|
var react_hotkeys_hook_esm_exports = {};
|
41051
41419
|
__export(react_hotkeys_hook_esm_exports, {
|
@@ -49590,7 +49958,7 @@ var require_dist = __commonJS({
|
|
49590
49958
|
var HostPortal = 4;
|
49591
49959
|
var HostComponent = 5;
|
49592
49960
|
var HostText = 6;
|
49593
|
-
var
|
49961
|
+
var Fragment13 = 7;
|
49594
49962
|
var Mode = 8;
|
49595
49963
|
var ContextConsumer = 9;
|
49596
49964
|
var ContextProvider = 10;
|
@@ -50746,7 +51114,7 @@ var require_dist = __commonJS({
|
|
50746
51114
|
return "DehydratedFragment";
|
50747
51115
|
case ForwardRef:
|
50748
51116
|
return getWrappedName$1(type, type.render, "ForwardRef");
|
50749
|
-
case
|
51117
|
+
case Fragment13:
|
50750
51118
|
return "Fragment";
|
50751
51119
|
case HostComponent:
|
50752
51120
|
return type;
|
@@ -60417,7 +60785,7 @@ var require_dist = __commonJS({
|
|
60417
60785
|
}
|
60418
60786
|
}
|
60419
60787
|
function updateFragment2(returnFiber, current2, fragment, lanes, key) {
|
60420
|
-
if (current2 === null || current2.tag !==
|
60788
|
+
if (current2 === null || current2.tag !== Fragment13) {
|
60421
60789
|
var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
|
60422
60790
|
created.return = returnFiber;
|
60423
60791
|
return created;
|
@@ -60820,7 +61188,7 @@ var require_dist = __commonJS({
|
|
60820
61188
|
if (child.key === key) {
|
60821
61189
|
var elementType = element.type;
|
60822
61190
|
if (elementType === REACT_FRAGMENT_TYPE) {
|
60823
|
-
if (child.tag ===
|
61191
|
+
if (child.tag === Fragment13) {
|
60824
61192
|
deleteRemainingChildren(returnFiber, child.sibling);
|
60825
61193
|
var existing = useFiber(child, element.props.children);
|
60826
61194
|
existing.return = returnFiber;
|
@@ -61105,11 +61473,11 @@ var require_dist = __commonJS({
|
|
61105
61473
|
}
|
61106
61474
|
function registerMutableSourceForHydration(root2, mutableSource) {
|
61107
61475
|
var getVersion2 = mutableSource._getVersion;
|
61108
|
-
var
|
61476
|
+
var version2 = getVersion2(mutableSource._source);
|
61109
61477
|
if (root2.mutableSourceEagerHydrationData == null) {
|
61110
|
-
root2.mutableSourceEagerHydrationData = [mutableSource,
|
61478
|
+
root2.mutableSourceEagerHydrationData = [mutableSource, version2];
|
61111
61479
|
} else {
|
61112
|
-
root2.mutableSourceEagerHydrationData.push(mutableSource,
|
61480
|
+
root2.mutableSourceEagerHydrationData.push(mutableSource, version2);
|
61113
61481
|
}
|
61114
61482
|
}
|
61115
61483
|
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig;
|
@@ -64995,7 +65363,7 @@ var require_dist = __commonJS({
|
|
64995
65363
|
var _resolvedProps2 = workInProgress2.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
|
64996
65364
|
return updateForwardRef(current2, workInProgress2, type, _resolvedProps2, renderLanes2);
|
64997
65365
|
}
|
64998
|
-
case
|
65366
|
+
case Fragment13:
|
64999
65367
|
return updateFragment(current2, workInProgress2, renderLanes2);
|
65000
65368
|
case Mode:
|
65001
65369
|
return updateMode(current2, workInProgress2, renderLanes2);
|
@@ -65268,7 +65636,7 @@ var require_dist = __commonJS({
|
|
65268
65636
|
case SimpleMemoComponent:
|
65269
65637
|
case FunctionComponent:
|
65270
65638
|
case ForwardRef:
|
65271
|
-
case
|
65639
|
+
case Fragment13:
|
65272
65640
|
case Mode:
|
65273
65641
|
case Profiler:
|
65274
65642
|
case ContextConsumer:
|
@@ -69527,7 +69895,7 @@ var require_dist = __commonJS({
|
|
69527
69895
|
return fiber;
|
69528
69896
|
}
|
69529
69897
|
function createFiberFromFragment(elements, mode, lanes, key) {
|
69530
|
-
var fiber = createFiber(
|
69898
|
+
var fiber = createFiber(Fragment13, elements, key, mode);
|
69531
69899
|
fiber.lanes = lanes;
|
69532
69900
|
return fiber;
|
69533
69901
|
}
|
@@ -70667,7 +71035,7 @@ var require_dist = __commonJS({
|
|
70667
71035
|
init_react_import2();
|
70668
71036
|
var import_react22 = require("react");
|
70669
71037
|
init_react_import2();
|
70670
|
-
var Button_module_default = { "Button": "
|
71038
|
+
var Button_module_default = { "Button": "_Button_8fn3a_1", "Button--medium": "_Button--medium_8fn3a_29", "Button--large": "_Button--large_8fn3a_37", "Button-icon": "_Button-icon_8fn3a_44", "Button--primary": "_Button--primary_8fn3a_48", "Button--secondary": "_Button--secondary_8fn3a_67", "Button--flush": "_Button--flush_8fn3a_82", "Button--disabled": "_Button--disabled_8fn3a_86", "Button--fullWidth": "_Button--fullWidth_8fn3a_93", "Button-spinner": "_Button-spinner_8fn3a_98" };
|
70671
71039
|
init_react_import2();
|
70672
71040
|
var import_classnames2 = __toESM2(require_classnames2());
|
70673
71041
|
var getClassNameFactory2 = (rootClass, styles, { baseClass = "" } = {}) => (options = {}) => {
|
@@ -70717,7 +71085,7 @@ var require_dist = __commonJS({
|
|
70717
71085
|
}) => {
|
70718
71086
|
const [loading, setLoading] = (0, import_react22.useState)(loadingProp);
|
70719
71087
|
(0, import_react22.useEffect)(() => setLoading(loadingProp), [loadingProp]);
|
70720
|
-
const ElementType = href ? "a" :
|
71088
|
+
const ElementType = href ? "a" : type ? "button" : "span";
|
70721
71089
|
const el = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
70722
71090
|
ElementType,
|
70723
71091
|
{
|
@@ -70745,10 +71113,7 @@ var require_dist = __commonJS({
|
|
70745
71113
|
children: [
|
70746
71114
|
icon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("icon"), children: icon }),
|
70747
71115
|
children,
|
70748
|
-
loading && /* @__PURE__ */ (0, import_jsx_runtime7.
|
70749
|
-
"\xA0\xA0",
|
70750
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_spinners2.ClipLoader, { "aria-label": "loading", color: "inherit", size: "14px" })
|
70751
|
-
] })
|
71116
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("spinner"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_spinners2.ClipLoader, { "aria-label": "loading", color: "inherit", size: "14px" }) })
|
70752
71117
|
]
|
70753
71118
|
}
|
70754
71119
|
);
|
@@ -70757,7 +71122,7 @@ var require_dist = __commonJS({
|
|
70757
71122
|
init_react_import2();
|
70758
71123
|
var import_dnd2 = (init_dnd_esm(), __toCommonJS(dnd_esm_exports));
|
70759
71124
|
init_react_import2();
|
70760
|
-
var styles_module_default4 = { "
|
71125
|
+
var styles_module_default4 = { "Drawer": "_Drawer_6zh0b_1", "DrawerItem-default": "_DrawerItem-default_6zh0b_5", "DrawerItem-draggableWrapper": "_DrawerItem-draggableWrapper_6zh0b_5", "DrawerItem": "_DrawerItem_6zh0b_5", "DrawerItem-draggable": "_DrawerItem-draggable_6zh0b_5", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_6zh0b_31", "DrawerItem-name": "_DrawerItem-name_6zh0b_47" };
|
70761
71126
|
init_react_import2();
|
70762
71127
|
var import_dnd = (init_dnd_esm(), __toCommonJS(dnd_esm_exports));
|
70763
71128
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
@@ -70822,7 +71187,7 @@ var require_dist = __commonJS({
|
|
70822
71187
|
return result;
|
70823
71188
|
};
|
70824
71189
|
init_react_import2();
|
70825
|
-
var styles_module_default22 = { "DragIcon": "
|
71190
|
+
var styles_module_default22 = { "DragIcon": "_DragIcon_1p5wn_1" };
|
70826
71191
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
70827
71192
|
var getClassName22 = get_class_name_factory_default2("DragIcon", styles_module_default22);
|
70828
71193
|
var DragIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: getClassName22(), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("svg", { viewBox: "0 0 20 20", width: "12", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z" }) }) });
|
@@ -70858,10 +71223,10 @@ var require_dist = __commonJS({
|
|
70858
71223
|
const ctx = (0, import_react32.useContext)(drawerContext);
|
70859
71224
|
const resolvedId = `${ctx.droppableId}::${id || name}`;
|
70860
71225
|
const CustomInner = (0, import_react32.useMemo)(
|
70861
|
-
() => children || (({ children: children2 }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("default"), children: children2 })),
|
71226
|
+
() => children || (({ children: children2, name: name2 }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("default"), children: children2 })),
|
70862
71227
|
[children]
|
70863
71228
|
);
|
70864
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DrawerDraggable, { id: resolvedId, index, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CustomInner, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("draggableWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getClassNameItem2("draggable"), children: [
|
71229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DrawerDraggable, { id: resolvedId, index, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CustomInner, { name, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("draggableWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getClassNameItem2("draggable"), children: [
|
70865
71230
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("name"), children: name }),
|
70866
71231
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("icon"), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DragIcon, {}) })
|
70867
71232
|
] }) }) }) });
|
@@ -70892,7 +71257,7 @@ var require_dist = __commonJS({
|
|
70892
71257
|
var import_react62 = require("react");
|
70893
71258
|
var import_dnd3 = (init_dnd_esm(), __toCommonJS(dnd_esm_exports));
|
70894
71259
|
init_react_import2();
|
70895
|
-
var styles_module_default32 = { "DraggableComponent": "
|
71260
|
+
var styles_module_default32 = { "DraggableComponent": "_DraggableComponent_1vpvt_1", "DraggableComponent--isDragging": "_DraggableComponent--isDragging_1vpvt_10", "DraggableComponent-contents": "_DraggableComponent-contents_1vpvt_16", "DraggableComponent-overlay": "_DraggableComponent-overlay_1vpvt_29", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_1vpvt_42", "DraggableComponent--isLocked": "_DraggableComponent--isLocked_1vpvt_58", "DraggableComponent--forceHover": "_DraggableComponent--forceHover_1vpvt_64", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_1vpvt_69", "DraggableComponent--indicativeHover": "_DraggableComponent--indicativeHover_1vpvt_74", "DraggableComponent-actions": "_DraggableComponent-actions_1vpvt_100", "DraggableComponent-actionsLabel": "_DraggableComponent-actionsLabel_1vpvt_125", "DraggableComponent-action": "_DraggableComponent-action_1vpvt_100" };
|
70896
71261
|
init_react_import2();
|
70897
71262
|
init_react_import2();
|
70898
71263
|
var import_react42 = require("react");
|
@@ -71036,6 +71401,18 @@ var require_dist = __commonJS({
|
|
71036
71401
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
71037
71402
|
]);
|
71038
71403
|
init_react_import2();
|
71404
|
+
var SlidersHorizontal = createLucideIcon2("SlidersHorizontal", [
|
71405
|
+
["line", { x1: "21", x2: "14", y1: "4", y2: "4", key: "obuewd" }],
|
71406
|
+
["line", { x1: "10", x2: "3", y1: "4", y2: "4", key: "1q6298" }],
|
71407
|
+
["line", { x1: "21", x2: "12", y1: "12", y2: "12", key: "1iu8h1" }],
|
71408
|
+
["line", { x1: "8", x2: "3", y1: "12", y2: "12", key: "ntss68" }],
|
71409
|
+
["line", { x1: "21", x2: "16", y1: "20", y2: "20", key: "14d8ph" }],
|
71410
|
+
["line", { x1: "12", x2: "3", y1: "20", y2: "20", key: "m0wm8r" }],
|
71411
|
+
["line", { x1: "14", x2: "14", y1: "2", y2: "6", key: "14e1ph" }],
|
71412
|
+
["line", { x1: "8", x2: "8", y1: "10", y2: "14", key: "1i6ji0" }],
|
71413
|
+
["line", { x1: "16", x2: "16", y1: "18", y2: "22", key: "1lctlv" }]
|
71414
|
+
]);
|
71415
|
+
init_react_import2();
|
71039
71416
|
var Trash = createLucideIcon2("Trash", [
|
71040
71417
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
71041
71418
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
@@ -71169,7 +71546,7 @@ var require_dist = __commonJS({
|
|
71169
71546
|
return __spreadProps2(__spreadValues2({}, item), { props: dynamicProps[item.props.id] || item.props });
|
71170
71547
|
};
|
71171
71548
|
init_react_import2();
|
71172
|
-
var styles_module_default42 = { "DropZone": "
|
71549
|
+
var styles_module_default42 = { "DropZone": "_DropZone_utidm_1", "DropZone--zoomEnabled": "_DropZone--zoomEnabled_utidm_10", "DropZone-renderWrapper": "_DropZone-renderWrapper_utidm_14", "DropZone-content": "_DropZone-content_utidm_18", "DropZone--userIsDragging": "_DropZone--userIsDragging_utidm_23", "DropZone--draggingOverArea": "_DropZone--draggingOverArea_utidm_27", "DropZone--draggingNewComponent": "_DropZone--draggingNewComponent_utidm_28", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_utidm_34", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_utidm_35", "DropZone--isDisabled": "_DropZone--isDisabled_utidm_36", "DropZone--isRootZone": "_DropZone--isRootZone_utidm_37", "DropZone--hasChildren": "_DropZone--hasChildren_utidm_43", "DropZone--isDestination": "_DropZone--isDestination_utidm_48", "DropZone-item": "_DropZone-item_utidm_56", "DropZone-hitbox": "_DropZone-hitbox_utidm_60" };
|
71173
71550
|
init_react_import2();
|
71174
71551
|
var import_react72 = require("react");
|
71175
71552
|
var import_use_debounce = (init_index_module(), __toCommonJS(index_module_exports));
|
@@ -71574,7 +71951,7 @@ var require_dist = __commonJS({
|
|
71574
71951
|
{
|
71575
71952
|
"data-puck-placeholder": true,
|
71576
71953
|
style: __spreadProps2(__spreadValues2({}, placeholderStyle), {
|
71577
|
-
background: "var(--puck-color-azure-
|
71954
|
+
background: "var(--puck-color-azure-06)",
|
71578
71955
|
opacity: 0.3,
|
71579
71956
|
zIndex: 0
|
71580
71957
|
})
|
@@ -71632,7 +72009,7 @@ var require_dist = __commonJS({
|
|
71632
72009
|
init_react_import2();
|
71633
72010
|
var import_react102 = require("react");
|
71634
72011
|
init_react_import2();
|
71635
|
-
var IconButton_module_default = { "IconButton": "
|
72012
|
+
var IconButton_module_default = { "IconButton": "_IconButton_1xqlg_1", "IconButton-title": "_IconButton-title_1xqlg_33" };
|
71636
72013
|
var import_react_spinners3 = (init_esm(), __toCommonJS(esm_exports));
|
71637
72014
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
71638
72015
|
var getClassName6 = get_class_name_factory_default2("IconButton", IconButton_module_default);
|
@@ -71737,10 +72114,10 @@ var require_dist = __commonJS({
|
|
71737
72114
|
};
|
71738
72115
|
init_react_import2();
|
71739
72116
|
init_react_import2();
|
71740
|
-
var styles_module_default5 = { "SidebarSection": "
|
72117
|
+
var styles_module_default5 = { "SidebarSection": "_SidebarSection_125qe_1", "SidebarSection-title": "_SidebarSection-title_125qe_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_125qe_20", "SidebarSection-content": "_SidebarSection-content_125qe_24", "SidebarSection--noPadding": "_SidebarSection--noPadding_125qe_28", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_125qe_41", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_125qe_70", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_125qe_41", "SidebarSection-heading": "_SidebarSection-heading_125qe_82", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_125qe_86" };
|
71741
72118
|
init_react_import2();
|
71742
72119
|
init_react_import2();
|
71743
|
-
var styles_module_default6 = { "Heading": "
|
72120
|
+
var styles_module_default6 = { "Heading": "_Heading_qxrry_1", "Heading--xxxxl": "_Heading--xxxxl_qxrry_12", "Heading--xxxl": "_Heading--xxxl_qxrry_18", "Heading--xxl": "_Heading--xxl_qxrry_22", "Heading--xl": "_Heading--xl_qxrry_26", "Heading--l": "_Heading--l_qxrry_30", "Heading--m": "_Heading--m_qxrry_34", "Heading--s": "_Heading--s_qxrry_38", "Heading--xs": "_Heading--xs_qxrry_42" };
|
71744
72121
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
71745
72122
|
var getClassName7 = get_class_name_factory_default2("Heading", styles_module_default6);
|
71746
72123
|
var Heading2 = ({ children, rank, size = "m" }) => {
|
@@ -71842,7 +72219,7 @@ var require_dist = __commonJS({
|
|
71842
72219
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: getClassName8("title"), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: getClassName8("breadcrumbs"), children: [
|
71843
72220
|
showBreadcrumbs ? breadcrumbs.map((breadcrumb, i2) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: getClassName8("breadcrumb"), children: [
|
71844
72221
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
71845
|
-
"
|
72222
|
+
"button",
|
71846
72223
|
{
|
71847
72224
|
className: getClassName8("breadcrumbLabel"),
|
71848
72225
|
onClick: () => setUi({ itemSelector: breadcrumb.selector }),
|
@@ -71875,8 +72252,8 @@ var require_dist = __commonJS({
|
|
71875
72252
|
};
|
71876
72253
|
init_react_import2();
|
71877
72254
|
init_react_import2();
|
71878
|
-
var
|
71879
|
-
var generateId = (type) => `${type}-${(0,
|
72255
|
+
var import_uuid = (init_esm_node(), __toCommonJS(esm_node_exports));
|
72256
|
+
var generateId = (type) => `${type}-${(0, import_uuid.v4)()}`;
|
71880
72257
|
var reduceRelatedZones = (item, data, fn) => {
|
71881
72258
|
return __spreadProps2(__spreadValues2({}, data), {
|
71882
72259
|
zones: Object.keys(data.zones || {}).reduce(
|
@@ -72326,7 +72703,10 @@ var require_dist = __commonJS({
|
|
72326
72703
|
);
|
72327
72704
|
const runResolvers = () => __async(void 0, null, function* () {
|
72328
72705
|
const newData = newAppState.data;
|
72329
|
-
const flatContent = Object.keys(newData.zones || {}).reduce((acc, zone) => [...acc, ...newData.zones[zone]], newData.content).filter((item) =>
|
72706
|
+
const flatContent = Object.keys(newData.zones || {}).reduce((acc, zone) => [...acc, ...newData.zones[zone]], newData.content).filter((item) => {
|
72707
|
+
var _a;
|
72708
|
+
return !!((_a = config.components[item.type]) == null ? void 0 : _a.resolveData);
|
72709
|
+
});
|
72330
72710
|
const applyIfChange = (dynamicDataMap, dynamicRoot) => {
|
72331
72711
|
const processed = applyDynamicProps(
|
72332
72712
|
appState.data,
|
@@ -72392,7 +72772,7 @@ var require_dist = __commonJS({
|
|
72392
72772
|
};
|
72393
72773
|
init_react_import2();
|
72394
72774
|
init_react_import2();
|
72395
|
-
var styles_module_default7 = { "MenuBar": "
|
72775
|
+
var styles_module_default7 = { "MenuBar": "_MenuBar_8pf8c_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_8pf8c_14", "MenuBar-inner": "_MenuBar-inner_8pf8c_29", "MenuBar-history": "_MenuBar-history_8pf8c_45" };
|
72396
72776
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
72397
72777
|
var getClassName9 = get_class_name_factory_default2("MenuBar", styles_module_default7);
|
72398
72778
|
var MenuBar = ({
|
@@ -72428,14 +72808,14 @@ var require_dist = __commonJS({
|
|
72428
72808
|
ChevronLeft,
|
72429
72809
|
{
|
72430
72810
|
size: 21,
|
72431
|
-
stroke: hasPast ? "var(--puck-color-black)" : "var(--puck-color-grey-
|
72811
|
+
stroke: hasPast ? "var(--puck-color-black)" : "var(--puck-color-grey-08)"
|
72432
72812
|
}
|
72433
72813
|
) }),
|
72434
72814
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(IconButton, { title: "redo", disabled: !hasFuture, onClick: forward, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
72435
72815
|
ChevronRight2,
|
72436
72816
|
{
|
72437
72817
|
size: 21,
|
72438
|
-
stroke: hasFuture ? "var(--puck-color-black)" : "var(--puck-color-grey-
|
72818
|
+
stroke: hasFuture ? "var(--puck-color-black)" : "var(--puck-color-grey-08)"
|
72439
72819
|
}
|
72440
72820
|
) })
|
72441
72821
|
] }),
|
@@ -72458,17 +72838,17 @@ var require_dist = __commonJS({
|
|
72458
72838
|
);
|
72459
72839
|
};
|
72460
72840
|
init_react_import2();
|
72461
|
-
var styles_module_default8 = { "Puck": "
|
72841
|
+
var styles_module_default8 = { "Puck": "_Puck_1mnww_19", "Puck--leftSideBarVisible": "_Puck--leftSideBarVisible_1mnww_36", "Puck--rightSideBarVisible": "_Puck--rightSideBarVisible_1mnww_42", "Puck-header": "_Puck-header_1mnww_96", "Puck-headerInner": "_Puck-headerInner_1mnww_105", "Puck-headerToggle": "_Puck-headerToggle_1mnww_115", "Puck-rightSideBarToggle": "_Puck-rightSideBarToggle_1mnww_122", "Puck-leftSideBarToggle": "_Puck-leftSideBarToggle_1mnww_123", "Puck-headerTitle": "_Puck-headerTitle_1mnww_127", "Puck-headerPath": "_Puck-headerPath_1mnww_131", "Puck-headerTools": "_Puck-headerTools_1mnww_138", "Puck-menuButton": "_Puck-menuButton_1mnww_144", "Puck--menuOpen": "_Puck--menuOpen_1mnww_149", "Puck-leftSideBar": "_Puck-leftSideBar_1mnww_123", "Puck-frame": "_Puck-frame_1mnww_168", "Puck-root": "_Puck-root_1mnww_176", "Puck-rightSideBar": "_Puck-rightSideBar_1mnww_122" };
|
72462
72842
|
init_react_import2();
|
72463
72843
|
var import_react_spinners6 = (init_esm(), __toCommonJS(esm_exports));
|
72464
72844
|
init_react_import2();
|
72465
72845
|
init_react_import2();
|
72466
|
-
var styles_module_default9 = { "Input": "
|
72846
|
+
var styles_module_default9 = { "Input": "_Input_1qi5b_1", "Input-label": "_Input-label_1qi5b_26", "Input-labelIcon": "_Input-labelIcon_1qi5b_34", "Input-disabledIcon": "_Input-disabledIcon_1qi5b_41", "Input-input": "_Input-input_1qi5b_46", "Input--readOnly": "_Input--readOnly_1qi5b_90", "Input-radioGroupItems": "_Input-radioGroupItems_1qi5b_101", "Input-radio": "_Input-radio_1qi5b_101", "Input-radioInner": "_Input-radioInner_1qi5b_118", "Input-radioInput": "_Input-radioInput_1qi5b_163" };
|
72467
72847
|
var import_react18 = require("react");
|
72468
72848
|
init_react_import2();
|
72469
72849
|
init_react_import2();
|
72470
72850
|
init_react_import2();
|
72471
|
-
var styles_module_default10 = { "ArrayField": "
|
72851
|
+
var styles_module_default10 = { "ArrayField": "_ArrayField_1txra_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_1txra_13", "ArrayField-addButton": "_ArrayField-addButton_1txra_17", "ArrayField--hasItems": "_ArrayField--hasItems_1txra_32", "ArrayFieldItem": "_ArrayFieldItem_1txra_61", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_1txra_69", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_1txra_74", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_1txra_84", "ArrayFieldItem--readOnly": "_ArrayFieldItem--readOnly_1txra_108", "ArrayFieldItem-body": "_ArrayFieldItem-body_1txra_142", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_1txra_150", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_1txra_157", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_1txra_163" };
|
72472
72852
|
var import_dnd5 = (init_dnd_esm(), __toCommonJS(dnd_esm_exports));
|
72473
72853
|
var import_dnd6 = (init_dnd_esm(), __toCommonJS(dnd_esm_exports));
|
72474
72854
|
var import_react14 = require("react");
|
@@ -72756,6 +73136,7 @@ var require_dist = __commonJS({
|
|
72756
73136
|
}
|
72757
73137
|
},
|
72758
73138
|
readOnly,
|
73139
|
+
tabIndex: readOnly ? -1 : void 0,
|
72759
73140
|
id,
|
72760
73141
|
min: field.type === "number" ? field.min : void 0,
|
72761
73142
|
max: field.type === "number" ? field.max : void 0
|
@@ -72769,11 +73150,11 @@ var require_dist = __commonJS({
|
|
72769
73150
|
init_react_import2();
|
72770
73151
|
var import_react16 = require("react");
|
72771
73152
|
init_react_import2();
|
72772
|
-
var styles_module_default11 = { "ExternalInput": "
|
73153
|
+
var styles_module_default11 = { "ExternalInput-actions": "_ExternalInput-actions_q3l5a_1", "ExternalInput-button": "_ExternalInput-button_q3l5a_5", "ExternalInput--dataSelected": "_ExternalInput--dataSelected_q3l5a_25", "ExternalInput-detachButton": "_ExternalInput-detachButton_q3l5a_32", "ExternalInputModal": "_ExternalInputModal_q3l5a_74", "ExternalInputModal-grid": "_ExternalInputModal-grid_q3l5a_84", "ExternalInputModal--filtersToggled": "_ExternalInputModal--filtersToggled_q3l5a_95", "ExternalInputModal-filters": "_ExternalInputModal-filters_q3l5a_100", "ExternalInputModal-masthead": "_ExternalInputModal-masthead_q3l5a_119", "ExternalInputModal-tableWrapper": "_ExternalInputModal-tableWrapper_q3l5a_128", "ExternalInputModal-table": "_ExternalInputModal-table_q3l5a_128", "ExternalInputModal-thead": "_ExternalInputModal-thead_q3l5a_144", "ExternalInputModal-th": "_ExternalInputModal-th_q3l5a_144", "ExternalInputModal-td": "_ExternalInputModal-td_q3l5a_159", "ExternalInputModal-tr": "_ExternalInputModal-tr_q3l5a_164", "ExternalInputModal-tbody": "_ExternalInputModal-tbody_q3l5a_171", "ExternalInputModal--hasData": "_ExternalInputModal--hasData_q3l5a_197", "ExternalInputModal-loadingBanner": "_ExternalInputModal-loadingBanner_q3l5a_201", "ExternalInputModal--isLoading": "_ExternalInputModal--isLoading_q3l5a_218", "ExternalInputModal-searchForm": "_ExternalInputModal-searchForm_q3l5a_222", "ExternalInputModal-search": "_ExternalInputModal-search_q3l5a_222", "ExternalInputModal-searchIcon": "_ExternalInputModal-searchIcon_q3l5a_259", "ExternalInputModal-searchIconText": "_ExternalInputModal-searchIconText_q3l5a_284", "ExternalInputModal-searchInput": "_ExternalInputModal-searchInput_q3l5a_294", "ExternalInputModal-searchActions": "_ExternalInputModal-searchActions_q3l5a_308", "ExternalInputModal-searchActionIcon": "_ExternalInputModal-searchActionIcon_q3l5a_321", "ExternalInputModal-footer": "_ExternalInputModal-footer_q3l5a_325" };
|
72773
73154
|
init_react_import2();
|
72774
73155
|
var import_react15 = require("react");
|
72775
73156
|
init_react_import2();
|
72776
|
-
var styles_module_default12 = { "Modal": "
|
73157
|
+
var styles_module_default12 = { "Modal": "_Modal_zud0i_1", "Modal--isOpen": "_Modal--isOpen_zud0i_15", "Modal-inner": "_Modal-inner_zud0i_19" };
|
72777
73158
|
var import_react_dom3 = __toESM2(require_react_dom2());
|
72778
73159
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
72779
73160
|
var getClassName12 = get_class_name_factory_default2("Modal", styles_module_default12);
|
@@ -72813,13 +73194,23 @@ var require_dist = __commonJS({
|
|
72813
73194
|
name,
|
72814
73195
|
id
|
72815
73196
|
}) => {
|
72816
|
-
const {
|
73197
|
+
const {
|
73198
|
+
mapProp = (val) => val,
|
73199
|
+
mapRow = (val) => val,
|
73200
|
+
filterFields
|
73201
|
+
} = field || {};
|
72817
73202
|
const [data, setData] = (0, import_react16.useState)([]);
|
72818
73203
|
const [isOpen, setOpen] = (0, import_react16.useState)(false);
|
72819
73204
|
const [isLoading, setIsLoading] = (0, import_react16.useState)(true);
|
73205
|
+
const hasFilterFields = !!filterFields;
|
73206
|
+
const [filters, setFilters] = (0, import_react16.useState)(field.initialFilters || {});
|
73207
|
+
const [filtersToggled, setFiltersToggled] = (0, import_react16.useState)(hasFilterFields);
|
73208
|
+
const mappedData = (0, import_react16.useMemo)(() => {
|
73209
|
+
return data.map(mapRow);
|
73210
|
+
}, [data]);
|
72820
73211
|
const keys = (0, import_react16.useMemo)(() => {
|
72821
73212
|
const validKeys = /* @__PURE__ */ new Set();
|
72822
|
-
for (const item of
|
73213
|
+
for (const item of mappedData) {
|
72823
73214
|
for (const key of Object.keys(item)) {
|
72824
73215
|
if (typeof item[key] === "string" || typeof item[key] === "number") {
|
72825
73216
|
validKeys.add(key);
|
@@ -72827,13 +73218,13 @@ var require_dist = __commonJS({
|
|
72827
73218
|
}
|
72828
73219
|
}
|
72829
73220
|
return Array.from(validKeys);
|
72830
|
-
}, [
|
73221
|
+
}, [mappedData]);
|
72831
73222
|
const [searchQuery, setSearchQuery] = (0, import_react16.useState)(field.initialQuery || "");
|
72832
73223
|
const search = (0, import_react16.useCallback)(
|
72833
|
-
(query) => __async(void 0, null, function* () {
|
73224
|
+
(query, filters2) => __async(void 0, null, function* () {
|
72834
73225
|
setIsLoading(true);
|
72835
|
-
const cacheKey = `${id}-${name}-${query}`;
|
72836
|
-
const listData = dataCache[cacheKey] || (yield field.fetchList({ query }));
|
73226
|
+
const cacheKey = `${id}-${name}-${query}-${JSON.stringify(filters2)}`;
|
73227
|
+
const listData = dataCache[cacheKey] || (yield field.fetchList({ query, filters: filters2 }));
|
72837
73228
|
if (listData) {
|
72838
73229
|
setData(listData);
|
72839
73230
|
setIsLoading(false);
|
@@ -72843,7 +73234,7 @@ var require_dist = __commonJS({
|
|
72843
73234
|
[name, field]
|
72844
73235
|
);
|
72845
73236
|
(0, import_react16.useEffect)(() => {
|
72846
|
-
search(searchQuery);
|
73237
|
+
search(searchQuery, filters);
|
72847
73238
|
}, []);
|
72848
73239
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
72849
73240
|
"div",
|
@@ -72878,78 +73269,109 @@ var require_dist = __commonJS({
|
|
72878
73269
|
)
|
72879
73270
|
] }),
|
72880
73271
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Modal, { onClose: () => setOpen(false), isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
72881
|
-
"
|
73272
|
+
"form",
|
72882
73273
|
{
|
72883
73274
|
className: getClassNameModal({
|
72884
73275
|
isLoading,
|
72885
73276
|
loaded: !isLoading,
|
72886
|
-
hasData:
|
73277
|
+
hasData: mappedData.length > 0,
|
73278
|
+
filtersToggled
|
72887
73279
|
}),
|
73280
|
+
onSubmit: (e2) => {
|
73281
|
+
e2.preventDefault();
|
73282
|
+
search(searchQuery, filters);
|
73283
|
+
},
|
72888
73284
|
children: [
|
72889
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.
|
72890
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.
|
72891
|
-
|
72892
|
-
"
|
72893
|
-
|
72894
|
-
|
72895
|
-
onSubmit: (e2) => {
|
72896
|
-
e2.preventDefault();
|
72897
|
-
search(searchQuery);
|
72898
|
-
},
|
72899
|
-
children: [
|
72900
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { className: getClassNameModal("search"), children: [
|
72901
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: getClassNameModal("searchIconText"), children: "Search" }),
|
72902
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassNameModal("searchIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Search, { size: "18" }) }),
|
72903
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
72904
|
-
"input",
|
72905
|
-
{
|
72906
|
-
className: getClassNameModal("searchInput"),
|
72907
|
-
name: "q",
|
72908
|
-
type: "search",
|
72909
|
-
placeholder: "Search",
|
72910
|
-
onChange: (e2) => {
|
72911
|
-
setSearchQuery(e2.currentTarget.value);
|
72912
|
-
},
|
72913
|
-
autoComplete: "off",
|
72914
|
-
value: searchQuery
|
72915
|
-
}
|
72916
|
-
)
|
72917
|
-
] }),
|
72918
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button, { type: "submit", loading: isLoading, disabled: isLoading, children: "Search" })
|
72919
|
-
]
|
72920
|
-
}
|
72921
|
-
)
|
72922
|
-
] }),
|
72923
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: getClassNameModal("tableWrapper"), children: [
|
72924
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("table", { className: getClassNameModal("table"), children: [
|
72925
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { className: getClassNameModal("thead"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tr", { className: getClassNameModal("tr"), children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
72926
|
-
"th",
|
73285
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassNameModal("masthead"), children: field.showSearch ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: getClassNameModal("searchForm"), children: [
|
73286
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { className: getClassNameModal("search"), children: [
|
73287
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: getClassNameModal("searchIconText"), children: "Search" }),
|
73288
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassNameModal("searchIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Search, { size: "18" }) }),
|
73289
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
73290
|
+
"input",
|
72927
73291
|
{
|
72928
|
-
className: getClassNameModal("
|
72929
|
-
|
72930
|
-
|
73292
|
+
className: getClassNameModal("searchInput"),
|
73293
|
+
name: "q",
|
73294
|
+
type: "search",
|
73295
|
+
placeholder: field.placeholder,
|
73296
|
+
onChange: (e2) => {
|
73297
|
+
setSearchQuery(e2.currentTarget.value);
|
73298
|
+
},
|
73299
|
+
autoComplete: "off",
|
73300
|
+
value: searchQuery
|
73301
|
+
}
|
73302
|
+
)
|
73303
|
+
] }),
|
73304
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: getClassNameModal("searchActions"), children: [
|
73305
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button, { type: "submit", loading: isLoading, fullWidth: true, children: "Search" }),
|
73306
|
+
hasFilterFields && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassNameModal("searchActionIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
73307
|
+
IconButton,
|
73308
|
+
{
|
73309
|
+
title: "Toggle filters",
|
73310
|
+
onClick: (e2) => {
|
73311
|
+
e2.preventDefault();
|
73312
|
+
e2.stopPropagation();
|
73313
|
+
setFiltersToggled(!filtersToggled);
|
73314
|
+
},
|
73315
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(SlidersHorizontal, { size: 20 })
|
73316
|
+
}
|
73317
|
+
) })
|
73318
|
+
] })
|
73319
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Heading2, { rank: 2, size: "xs", children: field.placeholder || "Select data" }) }),
|
73320
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: getClassNameModal("grid"), children: [
|
73321
|
+
hasFilterFields && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassNameModal("filters"), children: hasFilterFields && Object.keys(filterFields).map((fieldName) => {
|
73322
|
+
const filterField = filterFields[fieldName];
|
73323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
73324
|
+
InputOrGroup,
|
73325
|
+
{
|
73326
|
+
field: filterField,
|
73327
|
+
name: fieldName,
|
73328
|
+
id: `external_field_${fieldName}_filter`,
|
73329
|
+
label: filterField.label || fieldName,
|
73330
|
+
value: filters[fieldName],
|
73331
|
+
onChange: (value2) => {
|
73332
|
+
const newFilters = __spreadProps2(__spreadValues2({}, filters), { [fieldName]: value2 });
|
73333
|
+
setFilters(newFilters);
|
73334
|
+
search(searchQuery, newFilters);
|
73335
|
+
}
|
72931
73336
|
},
|
72932
|
-
|
72933
|
-
)
|
72934
|
-
|
72935
|
-
|
72936
|
-
|
73337
|
+
fieldName
|
73338
|
+
);
|
73339
|
+
}) }),
|
73340
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: getClassNameModal("tableWrapper"), children: [
|
73341
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("table", { className: getClassNameModal("table"), children: [
|
73342
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { className: getClassNameModal("thead"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tr", { className: getClassNameModal("tr"), children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
73343
|
+
"th",
|
72937
73344
|
{
|
72938
|
-
|
72939
|
-
|
72940
|
-
|
72941
|
-
onChange(mapProp(item));
|
72942
|
-
setOpen(false);
|
72943
|
-
},
|
72944
|
-
children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { className: getClassNameModal("td"), children: item[key] }, key))
|
73345
|
+
className: getClassNameModal("th"),
|
73346
|
+
style: { textAlign: "left" },
|
73347
|
+
children: key
|
72945
73348
|
},
|
72946
|
-
|
72947
|
-
)
|
72948
|
-
|
72949
|
-
|
72950
|
-
|
73349
|
+
key
|
73350
|
+
)) }) }),
|
73351
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tbody", { className: getClassNameModal("tbody"), children: mappedData.map((item, i2) => {
|
73352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
73353
|
+
"tr",
|
73354
|
+
{
|
73355
|
+
style: { whiteSpace: "nowrap" },
|
73356
|
+
className: getClassNameModal("tr"),
|
73357
|
+
onClick: () => {
|
73358
|
+
onChange(mapProp(data[i2]));
|
73359
|
+
setOpen(false);
|
73360
|
+
},
|
73361
|
+
children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { className: getClassNameModal("td"), children: item[key] }, key))
|
73362
|
+
},
|
73363
|
+
i2
|
73364
|
+
);
|
73365
|
+
}) })
|
73366
|
+
] }),
|
73367
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassNameModal("loadingBanner"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_spinners5.ClipLoader, { size: 24, "aria-label": "Loading" }) })
|
73368
|
+
] })
|
72951
73369
|
] }),
|
72952
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.
|
73370
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: getClassNameModal("footer"), children: [
|
73371
|
+
mappedData.length,
|
73372
|
+
" result",
|
73373
|
+
mappedData.length === 1 ? "" : "s"
|
73374
|
+
] })
|
72953
73375
|
]
|
72954
73376
|
}
|
72955
73377
|
) })
|
@@ -72993,6 +73415,7 @@ var require_dist = __commonJS({
|
|
72993
73415
|
// DEPRECATED
|
72994
73416
|
placeholder: ((_a = deprecatedField.adaptor) == null ? void 0 : _a.name) ? `Select from ${deprecatedField.adaptor.name}` : validField.placeholder || "Select data",
|
72995
73417
|
mapProp: ((_b = deprecatedField.adaptor) == null ? void 0 : _b.mapProp) || validField.mapProp,
|
73418
|
+
mapRow: validField.mapRow,
|
72996
73419
|
fetchList: ((_c = deprecatedField.adaptor) == null ? void 0 : _c.fetchList) ? () => __async(void 0, null, function* () {
|
72997
73420
|
return yield deprecatedField.adaptor.fetchList(
|
72998
73421
|
deprecatedField.adaptorParams
|
@@ -73135,6 +73558,7 @@ var require_dist = __commonJS({
|
|
73135
73558
|
value: typeof value === "undefined" ? "" : value,
|
73136
73559
|
onChange: (e2) => onChange(e2.currentTarget.value),
|
73137
73560
|
readOnly,
|
73561
|
+
tabIndex: readOnly ? -1 : void 0,
|
73138
73562
|
rows: 5
|
73139
73563
|
}
|
73140
73564
|
)
|
@@ -73144,7 +73568,7 @@ var require_dist = __commonJS({
|
|
73144
73568
|
var import_use_debounce2 = (init_index_module(), __toCommonJS(index_module_exports));
|
73145
73569
|
init_react_import2();
|
73146
73570
|
init_react_import2();
|
73147
|
-
var styles_module_default13 = { "ObjectField": "
|
73571
|
+
var styles_module_default13 = { "ObjectField": "_ObjectField_15j63_5", "ObjectField-fieldset": "_ObjectField-fieldset_15j63_13" };
|
73148
73572
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
73149
73573
|
var getClassName17 = get_class_name_factory_default2("ObjectField", styles_module_default13);
|
73150
73574
|
var getClassNameItem3 = get_class_name_factory_default2("ObjectFieldItem", styles_module_default13);
|
@@ -73302,7 +73726,7 @@ var require_dist = __commonJS({
|
|
73302
73726
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Render2, __spreadProps2(__spreadValues2({}, mergedProps), { children }));
|
73303
73727
|
};
|
73304
73728
|
init_react_import2();
|
73305
|
-
var styles_module_default14 = { "PuckFields": "
|
73729
|
+
var styles_module_default14 = { "PuckFields": "_PuckFields_17k3p_1", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_17k3p_6" };
|
73306
73730
|
var import_react19 = require("react");
|
73307
73731
|
var import_jsx_runtime222 = require("react/jsx-runtime");
|
73308
73732
|
var getClassName19 = get_class_name_factory_default2("PuckFields", styles_module_default14);
|
@@ -73449,7 +73873,7 @@ var require_dist = __commonJS({
|
|
73449
73873
|
var import_react20 = require("react");
|
73450
73874
|
init_react_import2();
|
73451
73875
|
init_react_import2();
|
73452
|
-
var styles_module_default15 = { "ComponentList": "
|
73876
|
+
var styles_module_default15 = { "ComponentList": "_ComponentList_odh9d_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_odh9d_5", "ComponentList-content": "_ComponentList-content_odh9d_9", "ComponentList-title": "_ComponentList-title_odh9d_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_odh9d_53" };
|
73453
73877
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
73454
73878
|
var getClassName20 = get_class_name_factory_default2("ComponentList", styles_module_default15);
|
73455
73879
|
var ComponentListItem = ({
|
@@ -73468,7 +73892,7 @@ var require_dist = __commonJS({
|
|
73468
73892
|
const { expanded = true } = state.ui.componentList[id] || {};
|
73469
73893
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getClassName20({ isExpanded: expanded }), children: [
|
73470
73894
|
title && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
73471
|
-
"
|
73895
|
+
"button",
|
73472
73896
|
{
|
73473
73897
|
className: getClassName20("title"),
|
73474
73898
|
onClick: () => setUi({
|
@@ -73614,7 +74038,7 @@ var require_dist = __commonJS({
|
|
73614
74038
|
};
|
73615
74039
|
init_react_import2();
|
73616
74040
|
init_react_import2();
|
73617
|
-
var styles_module_default16 = { "LayerTree": "
|
74041
|
+
var styles_module_default16 = { "LayerTree": "_LayerTree_1pgw8_1", "LayerTree-zoneTitle": "_LayerTree-zoneTitle_1pgw8_11", "LayerTree-helper": "_LayerTree-helper_1pgw8_17", "Layer": "_Layer_1pgw8_1", "Layer-inner": "_Layer-inner_1pgw8_29", "Layer--containsZone": "_Layer--containsZone_1pgw8_35", "Layer-clickable": "_Layer-clickable_1pgw8_39", "Layer--isSelected": "_Layer--isSelected_1pgw8_61", "Layer-chevron": "_Layer-chevron_1pgw8_77", "Layer--childIsSelected": "_Layer--childIsSelected_1pgw8_78", "Layer-zones": "_Layer-zones_1pgw8_82", "Layer-title": "_Layer-title_1pgw8_96", "Layer-name": "_Layer-name_1pgw8_105", "Layer-icon": "_Layer-icon_1pgw8_111", "Layer-zoneIcon": "_Layer-zoneIcon_1pgw8_116" };
|
73618
74042
|
init_react_import2();
|
73619
74043
|
var scrollIntoView2 = (el) => {
|
73620
74044
|
const oldStyle = __spreadValues2({}, el.style);
|
@@ -73680,7 +74104,7 @@ var require_dist = __commonJS({
|
|
73680
74104
|
}),
|
73681
74105
|
children: [
|
73682
74106
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
73683
|
-
"
|
74107
|
+
"button",
|
73684
74108
|
{
|
73685
74109
|
className: getClassNameLayer("clickable"),
|
73686
74110
|
onClick: () => {
|
@@ -73794,7 +74218,7 @@ var require_dist = __commonJS({
|
|
73794
74218
|
overrides,
|
73795
74219
|
plugins
|
73796
74220
|
}) => {
|
73797
|
-
const collected = overrides;
|
74221
|
+
const collected = __spreadValues2({}, overrides);
|
73798
74222
|
plugins.forEach((plugin) => {
|
73799
74223
|
Object.keys(plugin.overrides).forEach((overridesType) => {
|
73800
74224
|
if (overridesType === "fieldTypes") {
|
@@ -74241,7 +74665,7 @@ var require_dist = __commonJS({
|
|
74241
74665
|
"div",
|
74242
74666
|
{
|
74243
74667
|
style: {
|
74244
|
-
background: "var(--puck-color-grey-
|
74668
|
+
background: "var(--puck-color-grey-11)",
|
74245
74669
|
height: "100%",
|
74246
74670
|
flexGrow: 1
|
74247
74671
|
}
|
@@ -74378,8 +74802,8 @@ var require_dist = __commonJS({
|
|
74378
74802
|
});
|
74379
74803
|
init_react_import2();
|
74380
74804
|
var usePuck2 = () => {
|
74381
|
-
const { state: appState, config, dispatch } = useAppContext2();
|
74382
|
-
return { appState, config, dispatch };
|
74805
|
+
const { state: appState, config, history, dispatch } = useAppContext2();
|
74806
|
+
return { appState, config, dispatch, history };
|
74383
74807
|
};
|
74384
74808
|
}
|
74385
74809
|
});
|
@@ -74454,7 +74878,7 @@ init_react_import();
|
|
74454
74878
|
|
74455
74879
|
// css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css#css-module
|
74456
74880
|
init_react_import();
|
74457
|
-
var styles_module_default = { "SidebarSection": "
|
74881
|
+
var styles_module_default = { "SidebarSection": "_SidebarSection_125qe_1", "SidebarSection-title": "_SidebarSection-title_125qe_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_125qe_20", "SidebarSection-content": "_SidebarSection-content_125qe_24", "SidebarSection--noPadding": "_SidebarSection--noPadding_125qe_28", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_125qe_41", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_125qe_70", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_125qe_41", "SidebarSection-heading": "_SidebarSection-heading_125qe_82", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_125qe_86" };
|
74458
74882
|
|
74459
74883
|
// ../core/lib/get-class-name-factory.ts
|
74460
74884
|
init_react_import();
|
@@ -74493,7 +74917,7 @@ init_react_import();
|
|
74493
74917
|
|
74494
74918
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
|
74495
74919
|
init_react_import();
|
74496
|
-
var styles_module_default2 = { "Heading": "
|
74920
|
+
var styles_module_default2 = { "Heading": "_Heading_qxrry_1", "Heading--xxxxl": "_Heading--xxxxl_qxrry_12", "Heading--xxxl": "_Heading--xxxl_qxrry_18", "Heading--xxl": "_Heading--xxl_qxrry_22", "Heading--xl": "_Heading--xl_qxrry_26", "Heading--l": "_Heading--l_qxrry_30", "Heading--m": "_Heading--m_qxrry_34", "Heading--s": "_Heading--s_qxrry_38", "Heading--xs": "_Heading--xs_qxrry_42" };
|
74497
74921
|
|
74498
74922
|
// ../core/components/Heading/index.tsx
|
74499
74923
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
@@ -74749,7 +75173,7 @@ var SidebarSection = ({
|
|
74749
75173
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: getClassName2("title"), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: getClassName2("breadcrumbs"), children: [
|
74750
75174
|
showBreadcrumbs ? breadcrumbs.map((breadcrumb, i2) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: getClassName2("breadcrumb"), children: [
|
74751
75175
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
74752
|
-
"
|
75176
|
+
"button",
|
74753
75177
|
{
|
74754
75178
|
className: getClassName2("breadcrumbLabel"),
|
74755
75179
|
onClick: () => setUi({ itemSelector: breadcrumb.selector }),
|
@@ -74772,7 +75196,7 @@ init_react_import();
|
|
74772
75196
|
|
74773
75197
|
// css-module:/home/runner/work/puck/puck/packages/core/components/OutlineList/styles.module.css#css-module
|
74774
75198
|
init_react_import();
|
74775
|
-
var styles_module_default3 = { "OutlineList": "
|
75199
|
+
var styles_module_default3 = { "OutlineList": "_OutlineList_18bgy_1", "OutlineListItem": "_OutlineListItem_18bgy_20", "OutlineListItem--clickable": "_OutlineListItem--clickable_18bgy_35" };
|
74776
75200
|
|
74777
75201
|
// ../core/components/OutlineList/index.tsx
|
74778
75202
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
@@ -74895,7 +75319,7 @@ var HeadingAnalyzer = () => {
|
|
74895
75319
|
const oldStyle = __spreadValues({}, el.style);
|
74896
75320
|
if (el) {
|
74897
75321
|
scrollIntoView(el);
|
74898
|
-
el.style.outline = "4px solid var(--puck-color-rose-
|
75322
|
+
el.style.outline = "4px solid var(--puck-color-rose-06)";
|
74899
75323
|
el.style.outlineOffset = "4px";
|
74900
75324
|
setTimeout(() => {
|
74901
75325
|
el.style.outline = oldStyle.outline || "";
|
@@ -74903,7 +75327,7 @@ var HeadingAnalyzer = () => {
|
|
74903
75327
|
}, 2e3);
|
74904
75328
|
}
|
74905
75329
|
},
|
74906
|
-
children: props.missing ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { style: { color: "var(--puck-color-red)" }, children: [
|
75330
|
+
children: props.missing ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { style: { color: "var(--puck-color-red-04)" }, children: [
|
74907
75331
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("b", { children: [
|
74908
75332
|
"H",
|
74909
75333
|
props.rank
|
@@ -75174,6 +75598,14 @@ lucide-react/dist/esm/icons/search.js:
|
|
75174
75598
|
* See the LICENSE file in the root directory of this source tree.
|
75175
75599
|
*)
|
75176
75600
|
|
75601
|
+
lucide-react/dist/esm/icons/sliders-horizontal.js:
|
75602
|
+
(**
|
75603
|
+
* @license lucide-react v0.298.0 - ISC
|
75604
|
+
*
|
75605
|
+
* This source code is licensed under the ISC license.
|
75606
|
+
* See the LICENSE file in the root directory of this source tree.
|
75607
|
+
*)
|
75608
|
+
|
75177
75609
|
lucide-react/dist/esm/icons/trash.js:
|
75178
75610
|
(**
|
75179
75611
|
* @license lucide-react v0.298.0 - ISC
|