@measured/puck 0.14.0-canary.0337c8d → 0.14.0-canary.053d4c6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -0
- package/dist/{Config-shqT_YTp.d.ts → Config-09628f3c.d.ts} +2 -2
- package/dist/index.css +313 -307
- package/dist/index.d.ts +3 -3
- package/dist/index.js +453 -587
- package/dist/rsc.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -93,8 +93,7 @@ var init_react_import = __esm({
|
|
93
93
|
|
94
94
|
// ../../node_modules/classnames/index.js
|
95
95
|
var require_classnames = __commonJS({
|
96
|
-
"../../node_modules/classnames/index.js"(
|
97
|
-
"use strict";
|
96
|
+
"../../node_modules/classnames/index.js"(exports, module2) {
|
98
97
|
init_react_import();
|
99
98
|
(function() {
|
100
99
|
"use strict";
|
@@ -146,7 +145,7 @@ var require_classnames = __commonJS({
|
|
146
145
|
|
147
146
|
// ../../node_modules/scheduler/cjs/scheduler.production.min.js
|
148
147
|
var require_scheduler_production_min = __commonJS({
|
149
|
-
"../../node_modules/scheduler/cjs/scheduler.production.min.js"(
|
148
|
+
"../../node_modules/scheduler/cjs/scheduler.production.min.js"(exports) {
|
150
149
|
"use strict";
|
151
150
|
init_react_import();
|
152
151
|
function f(a, b) {
|
@@ -189,12 +188,12 @@ var require_scheduler_production_min = __commonJS({
|
|
189
188
|
}
|
190
189
|
if ("object" === typeof performance && "function" === typeof performance.now) {
|
191
190
|
l = performance;
|
192
|
-
|
191
|
+
exports.unstable_now = function() {
|
193
192
|
return l.now();
|
194
193
|
};
|
195
194
|
} else {
|
196
195
|
p = Date, q = p.now();
|
197
|
-
|
196
|
+
exports.unstable_now = function() {
|
198
197
|
return p.now() - q;
|
199
198
|
};
|
200
199
|
}
|
@@ -248,7 +247,7 @@ var require_scheduler_production_min = __commonJS({
|
|
248
247
|
v.callback = null;
|
249
248
|
y = v.priorityLevel;
|
250
249
|
var e = d(v.expirationTime <= b);
|
251
|
-
b =
|
250
|
+
b = exports.unstable_now();
|
252
251
|
"function" === typeof e ? v.callback = e : v === h(r) && k(r);
|
253
252
|
G(b);
|
254
253
|
} else
|
@@ -273,11 +272,11 @@ var require_scheduler_production_min = __commonJS({
|
|
273
272
|
var P = 5;
|
274
273
|
var Q = -1;
|
275
274
|
function M() {
|
276
|
-
return
|
275
|
+
return exports.unstable_now() - Q < P ? false : true;
|
277
276
|
}
|
278
277
|
function R() {
|
279
278
|
if (null !== O) {
|
280
|
-
var a =
|
279
|
+
var a = exports.unstable_now();
|
281
280
|
Q = a;
|
282
281
|
var b = true;
|
283
282
|
try {
|
@@ -311,31 +310,31 @@ var require_scheduler_production_min = __commonJS({
|
|
311
310
|
}
|
312
311
|
function K(a, b) {
|
313
312
|
L = D(function() {
|
314
|
-
a(
|
313
|
+
a(exports.unstable_now());
|
315
314
|
}, b);
|
316
315
|
}
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
316
|
+
exports.unstable_IdlePriority = 5;
|
317
|
+
exports.unstable_ImmediatePriority = 1;
|
318
|
+
exports.unstable_LowPriority = 4;
|
319
|
+
exports.unstable_NormalPriority = 3;
|
320
|
+
exports.unstable_Profiling = null;
|
321
|
+
exports.unstable_UserBlockingPriority = 2;
|
322
|
+
exports.unstable_cancelCallback = function(a) {
|
324
323
|
a.callback = null;
|
325
324
|
};
|
326
|
-
|
325
|
+
exports.unstable_continueExecution = function() {
|
327
326
|
A || z || (A = true, I(J));
|
328
327
|
};
|
329
|
-
|
328
|
+
exports.unstable_forceFrameRate = function(a) {
|
330
329
|
0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1e3 / a) : 5;
|
331
330
|
};
|
332
|
-
|
331
|
+
exports.unstable_getCurrentPriorityLevel = function() {
|
333
332
|
return y;
|
334
333
|
};
|
335
|
-
|
334
|
+
exports.unstable_getFirstCallbackNode = function() {
|
336
335
|
return h(r);
|
337
336
|
};
|
338
|
-
|
337
|
+
exports.unstable_next = function(a) {
|
339
338
|
switch (y) {
|
340
339
|
case 1:
|
341
340
|
case 2:
|
@@ -353,11 +352,11 @@ var require_scheduler_production_min = __commonJS({
|
|
353
352
|
y = c;
|
354
353
|
}
|
355
354
|
};
|
356
|
-
|
355
|
+
exports.unstable_pauseExecution = function() {
|
357
356
|
};
|
358
|
-
|
357
|
+
exports.unstable_requestPaint = function() {
|
359
358
|
};
|
360
|
-
|
359
|
+
exports.unstable_runWithPriority = function(a, b) {
|
361
360
|
switch (a) {
|
362
361
|
case 1:
|
363
362
|
case 2:
|
@@ -376,8 +375,8 @@ var require_scheduler_production_min = __commonJS({
|
|
376
375
|
y = c;
|
377
376
|
}
|
378
377
|
};
|
379
|
-
|
380
|
-
var d =
|
378
|
+
exports.unstable_scheduleCallback = function(a, b, c) {
|
379
|
+
var d = exports.unstable_now();
|
381
380
|
"object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
|
382
381
|
switch (a) {
|
383
382
|
case 1:
|
@@ -400,8 +399,8 @@ var require_scheduler_production_min = __commonJS({
|
|
400
399
|
c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = true, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = true, I(J)));
|
401
400
|
return a;
|
402
401
|
};
|
403
|
-
|
404
|
-
|
402
|
+
exports.unstable_shouldYield = M;
|
403
|
+
exports.unstable_wrapCallback = function(a) {
|
405
404
|
var b = y;
|
406
405
|
return function() {
|
407
406
|
var c = y;
|
@@ -418,7 +417,7 @@ var require_scheduler_production_min = __commonJS({
|
|
418
417
|
|
419
418
|
// ../../node_modules/scheduler/cjs/scheduler.development.js
|
420
419
|
var require_scheduler_development = __commonJS({
|
421
|
-
"../../node_modules/scheduler/cjs/scheduler.development.js"(
|
420
|
+
"../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
|
422
421
|
"use strict";
|
423
422
|
init_react_import();
|
424
423
|
if (process.env.NODE_ENV !== "production") {
|
@@ -506,13 +505,13 @@ var require_scheduler_development = __commonJS({
|
|
506
505
|
var hasPerformanceNow = typeof performance === "object" && typeof performance.now === "function";
|
507
506
|
if (hasPerformanceNow) {
|
508
507
|
var localPerformance = performance;
|
509
|
-
|
508
|
+
exports.unstable_now = function() {
|
510
509
|
return localPerformance.now();
|
511
510
|
};
|
512
511
|
} else {
|
513
512
|
var localDate = Date;
|
514
513
|
var initialTime = localDate.now();
|
515
|
-
|
514
|
+
exports.unstable_now = function() {
|
516
515
|
return localDate.now() - initialTime;
|
517
516
|
};
|
518
517
|
}
|
@@ -578,7 +577,7 @@ var require_scheduler_development = __commonJS({
|
|
578
577
|
return workLoop(hasTimeRemaining, initialTime2);
|
579
578
|
} catch (error) {
|
580
579
|
if (currentTask !== null) {
|
581
|
-
var currentTime =
|
580
|
+
var currentTime = exports.unstable_now();
|
582
581
|
markTaskErrored(currentTask, currentTime);
|
583
582
|
currentTask.isQueued = false;
|
584
583
|
}
|
@@ -607,7 +606,7 @@ var require_scheduler_development = __commonJS({
|
|
607
606
|
currentPriorityLevel = currentTask.priorityLevel;
|
608
607
|
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
609
608
|
var continuationCallback = callback(didUserCallbackTimeout);
|
610
|
-
currentTime =
|
609
|
+
currentTime = exports.unstable_now();
|
611
610
|
if (typeof continuationCallback === "function") {
|
612
611
|
currentTask.callback = continuationCallback;
|
613
612
|
} else {
|
@@ -683,7 +682,7 @@ var require_scheduler_development = __commonJS({
|
|
683
682
|
};
|
684
683
|
}
|
685
684
|
function unstable_scheduleCallback(priorityLevel, callback, options) {
|
686
|
-
var currentTime =
|
685
|
+
var currentTime = exports.unstable_now();
|
687
686
|
var startTime2;
|
688
687
|
if (typeof options === "object" && options !== null) {
|
689
688
|
var delay = options.delay;
|
@@ -767,7 +766,7 @@ var require_scheduler_development = __commonJS({
|
|
767
766
|
var frameInterval = frameYieldMs;
|
768
767
|
var startTime = -1;
|
769
768
|
function shouldYieldToHost() {
|
770
|
-
var timeElapsed =
|
769
|
+
var timeElapsed = exports.unstable_now() - startTime;
|
771
770
|
if (timeElapsed < frameInterval) {
|
772
771
|
return false;
|
773
772
|
}
|
@@ -788,7 +787,7 @@ var require_scheduler_development = __commonJS({
|
|
788
787
|
}
|
789
788
|
var performWorkUntilDeadline = function() {
|
790
789
|
if (scheduledHostCallback !== null) {
|
791
|
-
var currentTime =
|
790
|
+
var currentTime = exports.unstable_now();
|
792
791
|
startTime = currentTime;
|
793
792
|
var hasTimeRemaining = true;
|
794
793
|
var hasMoreWork = true;
|
@@ -832,7 +831,7 @@ var require_scheduler_development = __commonJS({
|
|
832
831
|
}
|
833
832
|
function requestHostTimeout(callback, ms) {
|
834
833
|
taskTimeoutID = localSetTimeout(function() {
|
835
|
-
callback(
|
834
|
+
callback(exports.unstable_now());
|
836
835
|
}, ms);
|
837
836
|
}
|
838
837
|
function cancelHostTimeout() {
|
@@ -841,24 +840,24 @@ var require_scheduler_development = __commonJS({
|
|
841
840
|
}
|
842
841
|
var unstable_requestPaint = requestPaint;
|
843
842
|
var unstable_Profiling = null;
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
843
|
+
exports.unstable_IdlePriority = IdlePriority;
|
844
|
+
exports.unstable_ImmediatePriority = ImmediatePriority;
|
845
|
+
exports.unstable_LowPriority = LowPriority;
|
846
|
+
exports.unstable_NormalPriority = NormalPriority;
|
847
|
+
exports.unstable_Profiling = unstable_Profiling;
|
848
|
+
exports.unstable_UserBlockingPriority = UserBlockingPriority;
|
849
|
+
exports.unstable_cancelCallback = unstable_cancelCallback;
|
850
|
+
exports.unstable_continueExecution = unstable_continueExecution;
|
851
|
+
exports.unstable_forceFrameRate = forceFrameRate;
|
852
|
+
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
|
853
|
+
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
|
854
|
+
exports.unstable_next = unstable_next;
|
855
|
+
exports.unstable_pauseExecution = unstable_pauseExecution;
|
856
|
+
exports.unstable_requestPaint = unstable_requestPaint;
|
857
|
+
exports.unstable_runWithPriority = unstable_runWithPriority;
|
858
|
+
exports.unstable_scheduleCallback = unstable_scheduleCallback;
|
859
|
+
exports.unstable_shouldYield = shouldYieldToHost;
|
860
|
+
exports.unstable_wrapCallback = unstable_wrapCallback;
|
862
861
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
863
862
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
864
863
|
}
|
@@ -869,7 +868,7 @@ var require_scheduler_development = __commonJS({
|
|
869
868
|
|
870
869
|
// ../../node_modules/scheduler/index.js
|
871
870
|
var require_scheduler = __commonJS({
|
872
|
-
"../../node_modules/scheduler/index.js"(
|
871
|
+
"../../node_modules/scheduler/index.js"(exports, module2) {
|
873
872
|
"use strict";
|
874
873
|
init_react_import();
|
875
874
|
if (process.env.NODE_ENV === "production") {
|
@@ -882,7 +881,7 @@ var require_scheduler = __commonJS({
|
|
882
881
|
|
883
882
|
// ../../node_modules/react-dom/cjs/react-dom.production.min.js
|
884
883
|
var require_react_dom_production_min = __commonJS({
|
885
|
-
"../../node_modules/react-dom/cjs/react-dom.production.min.js"(
|
884
|
+
"../../node_modules/react-dom/cjs/react-dom.production.min.js"(exports) {
|
886
885
|
"use strict";
|
887
886
|
init_react_import();
|
888
887
|
var aa = require("react");
|
@@ -7939,14 +7938,14 @@ var require_react_dom_production_min = __commonJS({
|
|
7939
7938
|
}
|
7940
7939
|
}
|
7941
7940
|
var wl;
|
7942
|
-
|
7943
|
-
|
7941
|
+
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tl;
|
7942
|
+
exports.createPortal = function(a, b) {
|
7944
7943
|
var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
7945
7944
|
if (!ol(b))
|
7946
7945
|
throw Error(p(200));
|
7947
7946
|
return dl(a, b, null, c);
|
7948
7947
|
};
|
7949
|
-
|
7948
|
+
exports.createRoot = function(a, b) {
|
7950
7949
|
if (!ol(a))
|
7951
7950
|
throw Error(p(299));
|
7952
7951
|
var c = false, d = "", e = ll;
|
@@ -7956,7 +7955,7 @@ var require_react_dom_production_min = __commonJS({
|
|
7956
7955
|
sf(8 === a.nodeType ? a.parentNode : a);
|
7957
7956
|
return new ml(b);
|
7958
7957
|
};
|
7959
|
-
|
7958
|
+
exports.findDOMNode = function(a) {
|
7960
7959
|
if (null == a)
|
7961
7960
|
return null;
|
7962
7961
|
if (1 === a.nodeType)
|
@@ -7972,15 +7971,15 @@ var require_react_dom_production_min = __commonJS({
|
|
7972
7971
|
a = null === a ? null : a.stateNode;
|
7973
7972
|
return a;
|
7974
7973
|
};
|
7975
|
-
|
7974
|
+
exports.flushSync = function(a) {
|
7976
7975
|
return Sk(a);
|
7977
7976
|
};
|
7978
|
-
|
7977
|
+
exports.hydrate = function(a, b, c) {
|
7979
7978
|
if (!pl(b))
|
7980
7979
|
throw Error(p(200));
|
7981
7980
|
return sl(null, a, b, true, c);
|
7982
7981
|
};
|
7983
|
-
|
7982
|
+
exports.hydrateRoot = function(a, b, c) {
|
7984
7983
|
if (!ol(a))
|
7985
7984
|
throw Error(p(405));
|
7986
7985
|
var d = null != c && c.hydratedSources || null, e = false, f = "", g = ll;
|
@@ -7996,12 +7995,12 @@ var require_react_dom_production_min = __commonJS({
|
|
7996
7995
|
);
|
7997
7996
|
return new nl(b);
|
7998
7997
|
};
|
7999
|
-
|
7998
|
+
exports.render = function(a, b, c) {
|
8000
7999
|
if (!pl(b))
|
8001
8000
|
throw Error(p(200));
|
8002
8001
|
return sl(null, a, b, false, c);
|
8003
8002
|
};
|
8004
|
-
|
8003
|
+
exports.unmountComponentAtNode = function(a) {
|
8005
8004
|
if (!pl(a))
|
8006
8005
|
throw Error(p(40));
|
8007
8006
|
return a._reactRootContainer ? (Sk(function() {
|
@@ -8011,21 +8010,21 @@ var require_react_dom_production_min = __commonJS({
|
|
8011
8010
|
});
|
8012
8011
|
}), true) : false;
|
8013
8012
|
};
|
8014
|
-
|
8015
|
-
|
8013
|
+
exports.unstable_batchedUpdates = Rk;
|
8014
|
+
exports.unstable_renderSubtreeIntoContainer = function(a, b, c, d) {
|
8016
8015
|
if (!pl(c))
|
8017
8016
|
throw Error(p(200));
|
8018
8017
|
if (null == a || void 0 === a._reactInternals)
|
8019
8018
|
throw Error(p(38));
|
8020
8019
|
return sl(a, b, c, false, d);
|
8021
8020
|
};
|
8022
|
-
|
8021
|
+
exports.version = "18.2.0-next-9e3b772b8-20220608";
|
8023
8022
|
}
|
8024
8023
|
});
|
8025
8024
|
|
8026
8025
|
// ../../node_modules/react-dom/cjs/react-dom.development.js
|
8027
8026
|
var require_react_dom_development = __commonJS({
|
8028
|
-
"../../node_modules/react-dom/cjs/react-dom.development.js"(
|
8027
|
+
"../../node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
8029
8028
|
"use strict";
|
8030
8029
|
init_react_import();
|
8031
8030
|
if (process.env.NODE_ENV !== "production") {
|
@@ -29095,18 +29094,18 @@ var require_react_dom_development = __commonJS({
|
|
29095
29094
|
}
|
29096
29095
|
}
|
29097
29096
|
}
|
29098
|
-
|
29099
|
-
|
29100
|
-
|
29101
|
-
|
29102
|
-
|
29103
|
-
|
29104
|
-
|
29105
|
-
|
29106
|
-
|
29107
|
-
|
29108
|
-
|
29109
|
-
|
29097
|
+
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
|
29098
|
+
exports.createPortal = createPortal$1;
|
29099
|
+
exports.createRoot = createRoot$1;
|
29100
|
+
exports.findDOMNode = findDOMNode;
|
29101
|
+
exports.flushSync = flushSync$1;
|
29102
|
+
exports.hydrate = hydrate;
|
29103
|
+
exports.hydrateRoot = hydrateRoot$1;
|
29104
|
+
exports.render = render;
|
29105
|
+
exports.unmountComponentAtNode = unmountComponentAtNode;
|
29106
|
+
exports.unstable_batchedUpdates = batchedUpdates$1;
|
29107
|
+
exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
|
29108
|
+
exports.version = ReactVersion;
|
29110
29109
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
29111
29110
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
29112
29111
|
}
|
@@ -29117,7 +29116,7 @@ var require_react_dom_development = __commonJS({
|
|
29117
29116
|
|
29118
29117
|
// ../../node_modules/react-dom/index.js
|
29119
29118
|
var require_react_dom = __commonJS({
|
29120
|
-
"../../node_modules/react-dom/index.js"(
|
29119
|
+
"../../node_modules/react-dom/index.js"(exports, module2) {
|
29121
29120
|
"use strict";
|
29122
29121
|
init_react_import();
|
29123
29122
|
function checkDCE() {
|
@@ -29172,19 +29171,9 @@ init_react_import();
|
|
29172
29171
|
init_react_import();
|
29173
29172
|
var import_react2 = require("react");
|
29174
29173
|
|
29175
|
-
// components/Button/Button.module.css
|
29176
|
-
|
29177
|
-
|
29178
|
-
"Button--medium": "Button_Button--medium",
|
29179
|
-
"Button--large": "Button_Button--large",
|
29180
|
-
"Button-icon": "Button_Button-icon",
|
29181
|
-
"Button--primary": "Button_Button--primary",
|
29182
|
-
"Button--secondary": "Button_Button--secondary",
|
29183
|
-
"Button--flush": "Button_Button--flush",
|
29184
|
-
"Button--disabled": "Button_Button--disabled",
|
29185
|
-
"Button--fullWidth": "Button_Button--fullWidth",
|
29186
|
-
"Button-spinner": "Button_Button-spinner"
|
29187
|
-
};
|
29174
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/Button/Button.module.css#css-module
|
29175
|
+
init_react_import();
|
29176
|
+
var Button_module_default = { "Button": "_Button_1t64k_1", "Button--medium": "_Button--medium_1t64k_29", "Button--large": "_Button--large_1t64k_37", "Button-icon": "_Button-icon_1t64k_44", "Button--primary": "_Button--primary_1t64k_48", "Button--secondary": "_Button--secondary_1t64k_67", "Button--flush": "_Button--flush_1t64k_84", "Button--disabled": "_Button--disabled_1t64k_88", "Button--fullWidth": "_Button--fullWidth_1t64k_95", "Button-spinner": "_Button-spinner_1t64k_100" };
|
29188
29177
|
|
29189
29178
|
// lib/get-class-name-factory.ts
|
29190
29179
|
init_react_import();
|
@@ -29221,7 +29210,7 @@ var get_class_name_factory_default = getClassNameFactory;
|
|
29221
29210
|
// components/Button/Button.tsx
|
29222
29211
|
var import_react_spinners = require("react-spinners");
|
29223
29212
|
var import_jsx_runtime = require("react/jsx-runtime");
|
29224
|
-
var getClassName = get_class_name_factory_default("Button",
|
29213
|
+
var getClassName = get_class_name_factory_default("Button", Button_module_default);
|
29225
29214
|
var Button = ({
|
29226
29215
|
children,
|
29227
29216
|
href,
|
@@ -29420,16 +29409,9 @@ var Droppable = (props) => {
|
|
29420
29409
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(El, __spreadValues({}, props));
|
29421
29410
|
};
|
29422
29411
|
|
29423
|
-
// components/Drawer/styles.module.css
|
29424
|
-
|
29425
|
-
|
29426
|
-
"DrawerItem-default": "styles_DrawerItem-default",
|
29427
|
-
"DrawerItem-draggableWrapper": "styles_DrawerItem-draggableWrapper",
|
29428
|
-
DrawerItem: "styles_DrawerItem",
|
29429
|
-
"DrawerItem-draggable": "styles_DrawerItem-draggable",
|
29430
|
-
"Drawer--isDraggingFrom": "styles_Drawer--isDraggingFrom",
|
29431
|
-
"DrawerItem-name": "styles_DrawerItem-name"
|
29432
|
-
};
|
29412
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css#css-module
|
29413
|
+
init_react_import();
|
29414
|
+
var styles_module_default = { "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" };
|
29433
29415
|
|
29434
29416
|
// components/Draggable/index.tsx
|
29435
29417
|
init_react_import();
|
@@ -29524,21 +29506,20 @@ var replace = (list, index, newItem) => {
|
|
29524
29506
|
return result;
|
29525
29507
|
};
|
29526
29508
|
|
29527
|
-
// components/DragIcon/styles.module.css
|
29528
|
-
|
29529
|
-
|
29530
|
-
};
|
29509
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/DragIcon/styles.module.css#css-module
|
29510
|
+
init_react_import();
|
29511
|
+
var styles_module_default2 = { "DragIcon": "_DragIcon_1p5wn_1" };
|
29531
29512
|
|
29532
29513
|
// components/DragIcon/index.tsx
|
29533
29514
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
29534
|
-
var getClassName2 = get_class_name_factory_default("DragIcon",
|
29515
|
+
var getClassName2 = get_class_name_factory_default("DragIcon", styles_module_default2);
|
29535
29516
|
var DragIcon = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: getClassName2(), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 20 20", width: "12", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime5.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" }) }) });
|
29536
29517
|
|
29537
29518
|
// components/Drawer/index.tsx
|
29538
29519
|
var import_react4 = require("react");
|
29539
29520
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
29540
|
-
var getClassName3 = get_class_name_factory_default("Drawer",
|
29541
|
-
var getClassNameItem = get_class_name_factory_default("DrawerItem",
|
29521
|
+
var getClassName3 = get_class_name_factory_default("Drawer", styles_module_default);
|
29522
|
+
var getClassNameItem = get_class_name_factory_default("DrawerItem", styles_module_default);
|
29542
29523
|
var drawerContext = (0, import_react4.createContext)({
|
29543
29524
|
droppableId: ""
|
29544
29525
|
});
|
@@ -29606,22 +29587,9 @@ init_react_import();
|
|
29606
29587
|
var import_react7 = require("react");
|
29607
29588
|
var import_dnd3 = require("@measured/dnd");
|
29608
29589
|
|
29609
|
-
// components/DraggableComponent/styles.module.css
|
29610
|
-
|
29611
|
-
|
29612
|
-
"DraggableComponent--isDragging": "styles_DraggableComponent--isDragging",
|
29613
|
-
"DraggableComponent-contents": "styles_DraggableComponent-contents",
|
29614
|
-
"DraggableComponent-overlay": "styles_DraggableComponent-overlay",
|
29615
|
-
"DraggableComponent-loadingOverlay": "styles_DraggableComponent-loadingOverlay",
|
29616
|
-
"DraggableComponent--isLocked": "styles_DraggableComponent--isLocked",
|
29617
|
-
"DraggableComponent--forceHover": "styles_DraggableComponent--forceHover",
|
29618
|
-
"DraggableComponent--isSelected": "styles_DraggableComponent--isSelected",
|
29619
|
-
"DraggableComponent--indicativeHover": "styles_DraggableComponent--indicativeHover",
|
29620
|
-
"DraggableComponent-actionsOverlay": "styles_DraggableComponent-actionsOverlay",
|
29621
|
-
"DraggableComponent-actions": "styles_DraggableComponent-actions",
|
29622
|
-
"DraggableComponent-actionsLabel": "styles_DraggableComponent-actionsLabel",
|
29623
|
-
"DraggableComponent-action": "styles_DraggableComponent-action"
|
29624
|
-
};
|
29590
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
|
29591
|
+
init_react_import();
|
29592
|
+
var styles_module_default3 = { "DraggableComponent": "_DraggableComponent_1542z_1", "DraggableComponent--isDragging": "_DraggableComponent--isDragging_1542z_11", "DraggableComponent-contents": "_DraggableComponent-contents_1542z_16", "DraggableComponent-overlay": "_DraggableComponent-overlay_1542z_29", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_1542z_49", "DraggableComponent--isLocked": "_DraggableComponent--isLocked_1542z_65", "DraggableComponent--forceHover": "_DraggableComponent--forceHover_1542z_71", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_1542z_76", "DraggableComponent--indicativeHover": "_DraggableComponent--indicativeHover_1542z_81", "DraggableComponent-actionsOverlay": "_DraggableComponent-actionsOverlay_1542z_97", "DraggableComponent-actions": "_DraggableComponent-actions_1542z_97", "DraggableComponent-actionsLabel": "_DraggableComponent-actionsLabel_1542z_127", "DraggableComponent-action": "_DraggableComponent-action_1542z_97" };
|
29625
29593
|
|
29626
29594
|
// ../../node_modules/lucide-react/dist/esm/lucide-react.js
|
29627
29595
|
init_react_import();
|
@@ -29911,10 +29879,22 @@ var useModifierHeld = (modifier) => {
|
|
29911
29879
|
return modifierHeld;
|
29912
29880
|
};
|
29913
29881
|
|
29882
|
+
// lib/is-ios.ts
|
29883
|
+
init_react_import();
|
29884
|
+
var isIos = () => [
|
29885
|
+
"iPad Simulator",
|
29886
|
+
"iPhone Simulator",
|
29887
|
+
"iPod Simulator",
|
29888
|
+
"iPad",
|
29889
|
+
"iPhone",
|
29890
|
+
"iPod"
|
29891
|
+
].includes(navigator.platform) || // iPad on iOS 13 detection
|
29892
|
+
navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
29893
|
+
|
29914
29894
|
// components/DraggableComponent/index.tsx
|
29915
29895
|
var import_react_spinners2 = require("react-spinners");
|
29916
29896
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
29917
|
-
var getClassName4 = get_class_name_factory_default("DraggableComponent",
|
29897
|
+
var getClassName4 = get_class_name_factory_default("DraggableComponent", styles_module_default3);
|
29918
29898
|
var space = 8;
|
29919
29899
|
var actionsOverlayTop = space * 6.5;
|
29920
29900
|
var actionsTop = -(actionsOverlayTop - 8);
|
@@ -29946,78 +29926,81 @@ var DraggableComponent = ({
|
|
29946
29926
|
const { status } = useAppContext();
|
29947
29927
|
const El = status !== "LOADING" ? import_dnd3.Draggable : DefaultDraggable;
|
29948
29928
|
(0, import_react7.useEffect)(onMount, []);
|
29949
|
-
|
29950
|
-
|
29951
|
-
|
29952
|
-
|
29953
|
-
}
|
29954
|
-
|
29955
|
-
|
29956
|
-
|
29957
|
-
|
29958
|
-
|
29959
|
-
|
29960
|
-
|
29961
|
-
|
29962
|
-
|
29963
|
-
|
29964
|
-
|
29965
|
-
|
29966
|
-
|
29967
|
-
|
29968
|
-
|
29969
|
-
|
29970
|
-
|
29971
|
-
|
29972
|
-
|
29973
|
-
|
29974
|
-
|
29975
|
-
{
|
29976
|
-
|
29977
|
-
|
29978
|
-
|
29979
|
-
|
29980
|
-
|
29929
|
+
const [disableSecondaryAnimation, setDisableSecondaryAnimation] = (0, import_react7.useState)(false);
|
29930
|
+
(0, import_react7.useEffect)(() => {
|
29931
|
+
if (isIos()) {
|
29932
|
+
setDisableSecondaryAnimation(true);
|
29933
|
+
}
|
29934
|
+
}, []);
|
29935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
29936
|
+
El,
|
29937
|
+
{
|
29938
|
+
draggableId: id,
|
29939
|
+
index,
|
29940
|
+
isDragDisabled,
|
29941
|
+
disableSecondaryAnimation,
|
29942
|
+
children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
29943
|
+
"div",
|
29944
|
+
__spreadProps(__spreadValues(__spreadValues({
|
29945
|
+
ref: provided.innerRef
|
29946
|
+
}, provided.draggableProps), provided.dragHandleProps), {
|
29947
|
+
className: getClassName4({
|
29948
|
+
isSelected,
|
29949
|
+
isModifierHeld,
|
29950
|
+
isDragging: snapshot.isDragging,
|
29951
|
+
isLocked,
|
29952
|
+
forceHover,
|
29953
|
+
indicativeHover
|
29954
|
+
}),
|
29955
|
+
style: __spreadProps(__spreadValues(__spreadValues({}, style), provided.draggableProps.style), {
|
29956
|
+
cursor: isModifierHeld ? "initial" : "grab"
|
29957
|
+
}),
|
29958
|
+
onMouseOver,
|
29959
|
+
onMouseOut,
|
29960
|
+
onMouseDown,
|
29961
|
+
onMouseUp,
|
29962
|
+
onClick,
|
29963
|
+
children: [
|
29964
|
+
debug,
|
29965
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_spinners2.ClipLoader, { "aria-label": "loading", size: 16, color: "inherit" }) }),
|
29966
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
29981
29967
|
"div",
|
29982
29968
|
{
|
29983
|
-
className: getClassName4("
|
29969
|
+
className: getClassName4("actionsOverlay"),
|
29984
29970
|
style: {
|
29985
|
-
|
29986
|
-
top: actionsTop / zoomConfig.zoom,
|
29987
|
-
right: actionsRight / zoomConfig.zoom
|
29971
|
+
top: actionsOverlayTop / zoomConfig.zoom
|
29988
29972
|
},
|
29989
|
-
children:
|
29990
|
-
|
29991
|
-
|
29992
|
-
|
29993
|
-
|
29973
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
29974
|
+
"div",
|
29975
|
+
{
|
29976
|
+
className: getClassName4("actions"),
|
29977
|
+
style: {
|
29978
|
+
transform: `scale(${1 / zoomConfig.zoom}`,
|
29979
|
+
top: actionsTop / zoomConfig.zoom,
|
29980
|
+
right: actionsRight / zoomConfig.zoom
|
29981
|
+
},
|
29982
|
+
children: [
|
29983
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("actionsLabel"), children: label }),
|
29984
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: getClassName4("action"), onClick: onDuplicate, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Copy, { size: 16 }) }),
|
29985
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: getClassName4("action"), onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Trash, { size: 16 }) })
|
29986
|
+
]
|
29987
|
+
}
|
29988
|
+
)
|
29994
29989
|
}
|
29995
|
-
)
|
29996
|
-
|
29997
|
-
|
29998
|
-
|
29999
|
-
|
30000
|
-
|
30001
|
-
}
|
30002
|
-
|
29990
|
+
),
|
29991
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("overlay") }),
|
29992
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("contents"), children })
|
29993
|
+
]
|
29994
|
+
})
|
29995
|
+
)
|
29996
|
+
},
|
29997
|
+
id
|
29998
|
+
);
|
30003
29999
|
};
|
30004
30000
|
|
30005
|
-
// components/DropZone/styles.module.css
|
30006
|
-
|
30007
|
-
|
30008
|
-
"DropZone-content": "styles_DropZone-content",
|
30009
|
-
"DropZone--userIsDragging": "styles_DropZone--userIsDragging",
|
30010
|
-
"DropZone--draggingOverArea": "styles_DropZone--draggingOverArea",
|
30011
|
-
"DropZone--draggingNewComponent": "styles_DropZone--draggingNewComponent",
|
30012
|
-
"DropZone--isAreaSelected": "styles_DropZone--isAreaSelected",
|
30013
|
-
"DropZone--hoveringOverArea": "styles_DropZone--hoveringOverArea",
|
30014
|
-
"DropZone--isDisabled": "styles_DropZone--isDisabled",
|
30015
|
-
"DropZone--isRootZone": "styles_DropZone--isRootZone",
|
30016
|
-
"DropZone--hasChildren": "styles_DropZone--hasChildren",
|
30017
|
-
"DropZone--isDestination": "styles_DropZone--isDestination",
|
30018
|
-
"DropZone-item": "styles_DropZone-item",
|
30019
|
-
"DropZone-hitbox": "styles_DropZone-hitbox"
|
30020
|
-
};
|
30001
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css#css-module
|
30002
|
+
init_react_import();
|
30003
|
+
var styles_module_default4 = { "DropZone": "_DropZone_w4btq_1", "DropZone-content": "_DropZone-content_w4btq_10", "DropZone--userIsDragging": "_DropZone--userIsDragging_w4btq_15", "DropZone--draggingOverArea": "_DropZone--draggingOverArea_w4btq_19", "DropZone--draggingNewComponent": "_DropZone--draggingNewComponent_w4btq_20", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_w4btq_26", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_w4btq_27", "DropZone--isDisabled": "_DropZone--isDisabled_w4btq_28", "DropZone--isRootZone": "_DropZone--isRootZone_w4btq_29", "DropZone--hasChildren": "_DropZone--hasChildren_w4btq_30", "DropZone--isDestination": "_DropZone--isDestination_w4btq_40", "DropZone-item": "_DropZone-item_w4btq_52", "DropZone-hitbox": "_DropZone-hitbox_w4btq_56" };
|
30021
30004
|
|
30022
30005
|
// components/DropZone/context.tsx
|
30023
30006
|
init_react_import();
|
@@ -30142,7 +30125,7 @@ var DropZoneProvider = ({
|
|
30142
30125
|
|
30143
30126
|
// components/DropZone/index.tsx
|
30144
30127
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
30145
|
-
var getClassName5 = get_class_name_factory_default("DropZone",
|
30128
|
+
var getClassName5 = get_class_name_factory_default("DropZone", styles_module_default4);
|
30146
30129
|
function DropZoneEdit({ zone, allow, disallow, style }) {
|
30147
30130
|
var _a;
|
30148
30131
|
const appContext2 = useAppContext();
|
@@ -30454,17 +30437,14 @@ init_react_import();
|
|
30454
30437
|
init_react_import();
|
30455
30438
|
var import_react10 = require("react");
|
30456
30439
|
|
30457
|
-
// components/IconButton/IconButton.module.css
|
30458
|
-
|
30459
|
-
|
30460
|
-
"IconButton--disabled": "IconButton_IconButton--disabled",
|
30461
|
-
"IconButton-title": "IconButton_IconButton-title"
|
30462
|
-
};
|
30440
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css#css-module
|
30441
|
+
init_react_import();
|
30442
|
+
var IconButton_module_default = { "IconButton": "_IconButton_swpni_1", "IconButton--disabled": "_IconButton--disabled_swpni_20", "IconButton-title": "_IconButton-title_swpni_33" };
|
30463
30443
|
|
30464
30444
|
// components/IconButton/IconButton.tsx
|
30465
30445
|
var import_react_spinners3 = require("react-spinners");
|
30466
30446
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
30467
|
-
var getClassName6 = get_class_name_factory_default("IconButton",
|
30447
|
+
var getClassName6 = get_class_name_factory_default("IconButton", IconButton_module_default);
|
30468
30448
|
var IconButton = ({
|
30469
30449
|
children,
|
30470
30450
|
href,
|
@@ -30584,39 +30564,20 @@ var usePlaceholderStyle = () => {
|
|
30584
30564
|
// components/SidebarSection/index.tsx
|
30585
30565
|
init_react_import();
|
30586
30566
|
|
30587
|
-
// components/SidebarSection/styles.module.css
|
30588
|
-
|
30589
|
-
|
30590
|
-
"SidebarSection-title": "styles_SidebarSection-title",
|
30591
|
-
"SidebarSection--noBorderTop": "styles_SidebarSection--noBorderTop",
|
30592
|
-
"SidebarSection-content": "styles_SidebarSection-content",
|
30593
|
-
"SidebarSection--noPadding": "styles_SidebarSection--noPadding",
|
30594
|
-
"SidebarSection-breadcrumbLabel": "styles_SidebarSection-breadcrumbLabel",
|
30595
|
-
"SidebarSection-breadcrumbs": "styles_SidebarSection-breadcrumbs",
|
30596
|
-
"SidebarSection-breadcrumb": "styles_SidebarSection-breadcrumb",
|
30597
|
-
"SidebarSection-heading": "styles_SidebarSection-heading",
|
30598
|
-
"SidebarSection-loadingOverlay": "styles_SidebarSection-loadingOverlay"
|
30599
|
-
};
|
30567
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css#css-module
|
30568
|
+
init_react_import();
|
30569
|
+
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" };
|
30600
30570
|
|
30601
30571
|
// components/Heading/index.tsx
|
30602
30572
|
init_react_import();
|
30603
30573
|
|
30604
|
-
// components/Heading/styles.module.css
|
30605
|
-
|
30606
|
-
|
30607
|
-
"Heading--xxxxl": "styles_Heading--xxxxl",
|
30608
|
-
"Heading--xxxl": "styles_Heading--xxxl",
|
30609
|
-
"Heading--xxl": "styles_Heading--xxl",
|
30610
|
-
"Heading--xl": "styles_Heading--xl",
|
30611
|
-
"Heading--l": "styles_Heading--l",
|
30612
|
-
"Heading--m": "styles_Heading--m",
|
30613
|
-
"Heading--s": "styles_Heading--s",
|
30614
|
-
"Heading--xs": "styles_Heading--xs"
|
30615
|
-
};
|
30574
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
|
30575
|
+
init_react_import();
|
30576
|
+
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" };
|
30616
30577
|
|
30617
30578
|
// components/Heading/index.tsx
|
30618
30579
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
30619
|
-
var getClassName7 = get_class_name_factory_default("Heading",
|
30580
|
+
var getClassName7 = get_class_name_factory_default("Heading", styles_module_default6);
|
30620
30581
|
var Heading = ({ children, rank, size = "m" }) => {
|
30621
30582
|
const Tag = rank ? `h${rank}` : "span";
|
30622
30583
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
@@ -30699,7 +30660,7 @@ var useBreadcrumbs = (renderCount) => {
|
|
30699
30660
|
// components/SidebarSection/index.tsx
|
30700
30661
|
var import_react_spinners4 = require("react-spinners");
|
30701
30662
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
30702
|
-
var getClassName8 = get_class_name_factory_default("SidebarSection",
|
30663
|
+
var getClassName8 = get_class_name_factory_default("SidebarSection", styles_module_default5);
|
30703
30664
|
var SidebarSection = ({
|
30704
30665
|
children,
|
30705
30666
|
title,
|
@@ -31309,17 +31270,13 @@ var useResolvedData = (appState, config, dispatch) => {
|
|
31309
31270
|
// components/MenuBar/index.tsx
|
31310
31271
|
init_react_import();
|
31311
31272
|
|
31312
|
-
// components/MenuBar/styles.module.css
|
31313
|
-
|
31314
|
-
|
31315
|
-
"MenuBar--menuOpen": "styles_MenuBar--menuOpen",
|
31316
|
-
"MenuBar-inner": "styles_MenuBar-inner",
|
31317
|
-
"MenuBar-history": "styles_MenuBar-history"
|
31318
|
-
};
|
31273
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/MenuBar/styles.module.css#css-module
|
31274
|
+
init_react_import();
|
31275
|
+
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" };
|
31319
31276
|
|
31320
31277
|
// components/MenuBar/index.tsx
|
31321
31278
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
31322
|
-
var getClassName9 = get_class_name_factory_default("MenuBar",
|
31279
|
+
var getClassName9 = get_class_name_factory_default("MenuBar", styles_module_default7);
|
31323
31280
|
var MenuBar = ({
|
31324
31281
|
appState,
|
31325
31282
|
data = { content: [], root: { props: { title: "" } } },
|
@@ -31383,24 +31340,9 @@ var MenuBar = ({
|
|
31383
31340
|
);
|
31384
31341
|
};
|
31385
31342
|
|
31386
|
-
// components/Puck/styles.module.css
|
31387
|
-
|
31388
|
-
|
31389
|
-
"Puck--leftSideBarVisible": "styles_Puck--leftSideBarVisible",
|
31390
|
-
"Puck--rightSideBarVisible": "styles_Puck--rightSideBarVisible",
|
31391
|
-
"Puck-header": "styles_Puck-header",
|
31392
|
-
"Puck-headerInner": "styles_Puck-headerInner",
|
31393
|
-
"Puck-headerToggle": "styles_Puck-headerToggle",
|
31394
|
-
"Puck-rightSideBarToggle": "styles_Puck-rightSideBarToggle",
|
31395
|
-
"Puck-leftSideBarToggle": "styles_Puck-leftSideBarToggle",
|
31396
|
-
"Puck-headerTitle": "styles_Puck-headerTitle",
|
31397
|
-
"Puck-headerPath": "styles_Puck-headerPath",
|
31398
|
-
"Puck-headerTools": "styles_Puck-headerTools",
|
31399
|
-
"Puck-menuButton": "styles_Puck-menuButton",
|
31400
|
-
"Puck--menuOpen": "styles_Puck--menuOpen",
|
31401
|
-
"Puck-leftSideBar": "styles_Puck-leftSideBar",
|
31402
|
-
"Puck-rightSideBar": "styles_Puck-rightSideBar"
|
31403
|
-
};
|
31343
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css#css-module
|
31344
|
+
init_react_import();
|
31345
|
+
var styles_module_default8 = { "Puck": "_Puck_u70b9_19", "Puck--mounted": "_Puck--mounted_u70b9_36", "Puck--leftSideBarVisible": "_Puck--leftSideBarVisible_u70b9_40", "Puck--rightSideBarVisible": "_Puck--rightSideBarVisible_u70b9_46", "Puck-mounted": "_Puck-mounted_u70b9_59", "Puck-header": "_Puck-header_u70b9_100", "Puck-headerInner": "_Puck-headerInner_u70b9_109", "Puck-headerToggle": "_Puck-headerToggle_u70b9_119", "Puck-rightSideBarToggle": "_Puck-rightSideBarToggle_u70b9_126", "Puck-leftSideBarToggle": "_Puck-leftSideBarToggle_u70b9_127", "Puck-headerTitle": "_Puck-headerTitle_u70b9_131", "Puck-headerPath": "_Puck-headerPath_u70b9_135", "Puck-headerTools": "_Puck-headerTools_u70b9_142", "Puck-menuButton": "_Puck-menuButton_u70b9_148", "Puck--menuOpen": "_Puck--menuOpen_u70b9_153", "Puck-leftSideBar": "_Puck-leftSideBar_u70b9_127", "Puck-rightSideBar": "_Puck-rightSideBar_u70b9_126", "Puck-portal": "_Puck-portal_u70b9_181" };
|
31404
31346
|
|
31405
31347
|
// components/Puck/components/Fields/index.tsx
|
31406
31348
|
init_react_import();
|
@@ -31409,19 +31351,9 @@ var import_react_spinners6 = require("react-spinners");
|
|
31409
31351
|
// components/InputOrGroup/index.tsx
|
31410
31352
|
init_react_import();
|
31411
31353
|
|
31412
|
-
// components/InputOrGroup/styles.module.css
|
31413
|
-
|
31414
|
-
|
31415
|
-
"Input-label": "styles_Input-label",
|
31416
|
-
"Input-labelIcon": "styles_Input-labelIcon",
|
31417
|
-
"Input-disabledIcon": "styles_Input-disabledIcon",
|
31418
|
-
"Input-input": "styles_Input-input",
|
31419
|
-
"Input--readOnly": "styles_Input--readOnly",
|
31420
|
-
"Input-radioGroupItems": "styles_Input-radioGroupItems",
|
31421
|
-
"Input-radio": "styles_Input-radio",
|
31422
|
-
"Input-radioInner": "styles_Input-radioInner",
|
31423
|
-
"Input-radioInput": "styles_Input-radioInput"
|
31424
|
-
};
|
31354
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/InputOrGroup/styles.module.css#css-module
|
31355
|
+
init_react_import();
|
31356
|
+
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" };
|
31425
31357
|
|
31426
31358
|
// components/InputOrGroup/index.tsx
|
31427
31359
|
var import_react18 = require("react");
|
@@ -31432,22 +31364,9 @@ init_react_import();
|
|
31432
31364
|
// components/InputOrGroup/fields/ArrayField/index.tsx
|
31433
31365
|
init_react_import();
|
31434
31366
|
|
31435
|
-
// components/InputOrGroup/fields/ArrayField/styles.module.css
|
31436
|
-
|
31437
|
-
|
31438
|
-
"ArrayField--isDraggingFrom": "styles_ArrayField--isDraggingFrom",
|
31439
|
-
"ArrayField-addButton": "styles_ArrayField-addButton",
|
31440
|
-
"ArrayField--hasItems": "styles_ArrayField--hasItems",
|
31441
|
-
ArrayFieldItem: "styles_ArrayFieldItem",
|
31442
|
-
"ArrayFieldItem--isDragging": "styles_ArrayFieldItem--isDragging",
|
31443
|
-
"ArrayFieldItem--isExpanded": "styles_ArrayFieldItem--isExpanded",
|
31444
|
-
"ArrayFieldItem-summary": "styles_ArrayFieldItem-summary",
|
31445
|
-
"ArrayField--addDisabled": "styles_ArrayField--addDisabled",
|
31446
|
-
"ArrayFieldItem-body": "styles_ArrayFieldItem-body",
|
31447
|
-
"ArrayFieldItem-fieldset": "styles_ArrayFieldItem-fieldset",
|
31448
|
-
"ArrayFieldItem-rhs": "styles_ArrayFieldItem-rhs",
|
31449
|
-
"ArrayFieldItem-actions": "styles_ArrayFieldItem-actions"
|
31450
|
-
};
|
31367
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/InputOrGroup/fields/ArrayField/styles.module.css#css-module
|
31368
|
+
init_react_import();
|
31369
|
+
var styles_module_default10 = { "ArrayField": "_ArrayField_1lr58_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_1lr58_13", "ArrayField-addButton": "_ArrayField-addButton_1lr58_18", "ArrayField--hasItems": "_ArrayField--hasItems_1lr58_33", "ArrayFieldItem": "_ArrayFieldItem_1lr58_63", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_1lr58_71", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_1lr58_81", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_1lr58_97", "ArrayField--addDisabled": "_ArrayField--addDisabled_1lr58_128", "ArrayFieldItem-body": "_ArrayFieldItem-body_1lr58_164", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_1lr58_173", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_1lr58_180", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_1lr58_186" };
|
31451
31370
|
|
31452
31371
|
// components/InputOrGroup/fields/ArrayField/index.tsx
|
31453
31372
|
var import_react14 = require("react");
|
@@ -31465,8 +31384,8 @@ var DragDropContext = (props) => {
|
|
31465
31384
|
|
31466
31385
|
// components/InputOrGroup/fields/ArrayField/index.tsx
|
31467
31386
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
31468
|
-
var getClassName10 = get_class_name_factory_default("ArrayField",
|
31469
|
-
var getClassNameItem2 = get_class_name_factory_default("ArrayFieldItem",
|
31387
|
+
var getClassName10 = get_class_name_factory_default("ArrayField", styles_module_default10);
|
31388
|
+
var getClassNameItem2 = get_class_name_factory_default("ArrayFieldItem", styles_module_default10);
|
31470
31389
|
var ArrayField = ({
|
31471
31390
|
field,
|
31472
31391
|
onChange,
|
@@ -31722,7 +31641,7 @@ var ArrayField = ({
|
|
31722
31641
|
// components/InputOrGroup/fields/DefaultField/index.tsx
|
31723
31642
|
init_react_import();
|
31724
31643
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
31725
|
-
var getClassName11 = get_class_name_factory_default("Input",
|
31644
|
+
var getClassName11 = get_class_name_factory_default("Input", styles_module_default9);
|
31726
31645
|
var DefaultField = ({
|
31727
31646
|
field,
|
31728
31647
|
onChange,
|
@@ -31775,52 +31694,22 @@ var import_react17 = require("react");
|
|
31775
31694
|
init_react_import();
|
31776
31695
|
var import_react16 = require("react");
|
31777
31696
|
|
31778
|
-
// components/ExternalInput/styles.module.css
|
31779
|
-
|
31780
|
-
|
31781
|
-
"ExternalInput-button": "styles_ExternalInput-button",
|
31782
|
-
"ExternalInput--dataSelected": "styles_ExternalInput--dataSelected",
|
31783
|
-
"ExternalInput-detachButton": "styles_ExternalInput-detachButton",
|
31784
|
-
ExternalInputModal: "styles_ExternalInputModal",
|
31785
|
-
"ExternalInputModal-grid": "styles_ExternalInputModal-grid",
|
31786
|
-
"ExternalInputModal--filtersToggled": "styles_ExternalInputModal--filtersToggled",
|
31787
|
-
"ExternalInputModal-filters": "styles_ExternalInputModal-filters",
|
31788
|
-
"ExternalInputModal-masthead": "styles_ExternalInputModal-masthead",
|
31789
|
-
"ExternalInputModal-tableWrapper": "styles_ExternalInputModal-tableWrapper",
|
31790
|
-
"ExternalInputModal-table": "styles_ExternalInputModal-table",
|
31791
|
-
"ExternalInputModal-thead": "styles_ExternalInputModal-thead",
|
31792
|
-
"ExternalInputModal-th": "styles_ExternalInputModal-th",
|
31793
|
-
"ExternalInputModal-td": "styles_ExternalInputModal-td",
|
31794
|
-
"ExternalInputModal-tr": "styles_ExternalInputModal-tr",
|
31795
|
-
"ExternalInputModal-tbody": "styles_ExternalInputModal-tbody",
|
31796
|
-
"ExternalInputModal--hasData": "styles_ExternalInputModal--hasData",
|
31797
|
-
"ExternalInputModal-loadingBanner": "styles_ExternalInputModal-loadingBanner",
|
31798
|
-
"ExternalInputModal--isLoading": "styles_ExternalInputModal--isLoading",
|
31799
|
-
"ExternalInputModal-searchForm": "styles_ExternalInputModal-searchForm",
|
31800
|
-
"ExternalInputModal-search": "styles_ExternalInputModal-search",
|
31801
|
-
"ExternalInputModal-searchIcon": "styles_ExternalInputModal-searchIcon",
|
31802
|
-
"ExternalInputModal-searchIconText": "styles_ExternalInputModal-searchIconText",
|
31803
|
-
"ExternalInputModal-searchInput": "styles_ExternalInputModal-searchInput",
|
31804
|
-
"ExternalInputModal-searchActions": "styles_ExternalInputModal-searchActions",
|
31805
|
-
"ExternalInputModal-searchActionIcon": "styles_ExternalInputModal-searchActionIcon",
|
31806
|
-
"ExternalInputModal-footer": "styles_ExternalInputModal-footer"
|
31807
|
-
};
|
31697
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css#css-module
|
31698
|
+
init_react_import();
|
31699
|
+
var styles_module_default11 = { "ExternalInput-actions": "_ExternalInput-actions_19obq_1", "ExternalInput-button": "_ExternalInput-button_19obq_5", "ExternalInput--dataSelected": "_ExternalInput--dataSelected_19obq_25", "ExternalInput-detachButton": "_ExternalInput-detachButton_19obq_32", "ExternalInputModal": "_ExternalInputModal_19obq_74", "ExternalInputModal-grid": "_ExternalInputModal-grid_19obq_84", "ExternalInputModal--filtersToggled": "_ExternalInputModal--filtersToggled_19obq_95", "ExternalInputModal-filters": "_ExternalInputModal-filters_19obq_100", "ExternalInputModal-masthead": "_ExternalInputModal-masthead_19obq_119", "ExternalInputModal-tableWrapper": "_ExternalInputModal-tableWrapper_19obq_128", "ExternalInputModal-table": "_ExternalInputModal-table_19obq_128", "ExternalInputModal-thead": "_ExternalInputModal-thead_19obq_144", "ExternalInputModal-th": "_ExternalInputModal-th_19obq_144", "ExternalInputModal-td": "_ExternalInputModal-td_19obq_159", "ExternalInputModal-tr": "_ExternalInputModal-tr_19obq_164", "ExternalInputModal-tbody": "_ExternalInputModal-tbody_19obq_171", "ExternalInputModal--hasData": "_ExternalInputModal--hasData_19obq_197", "ExternalInputModal-loadingBanner": "_ExternalInputModal-loadingBanner_19obq_201", "ExternalInputModal--isLoading": "_ExternalInputModal--isLoading_19obq_218", "ExternalInputModal-searchForm": "_ExternalInputModal-searchForm_19obq_222", "ExternalInputModal-search": "_ExternalInputModal-search_19obq_222", "ExternalInputModal-searchIcon": "_ExternalInputModal-searchIcon_19obq_259", "ExternalInputModal-searchIconText": "_ExternalInputModal-searchIconText_19obq_284", "ExternalInputModal-searchInput": "_ExternalInputModal-searchInput_19obq_294", "ExternalInputModal-searchActions": "_ExternalInputModal-searchActions_19obq_308", "ExternalInputModal-searchActionIcon": "_ExternalInputModal-searchActionIcon_19obq_321", "ExternalInputModal-footer": "_ExternalInputModal-footer_19obq_325" };
|
31808
31700
|
|
31809
31701
|
// components/Modal/index.tsx
|
31810
31702
|
init_react_import();
|
31811
31703
|
var import_react15 = require("react");
|
31812
31704
|
|
31813
|
-
// components/Modal/styles.module.css
|
31814
|
-
|
31815
|
-
|
31816
|
-
"Modal--isOpen": "styles_Modal--isOpen",
|
31817
|
-
"Modal-inner": "styles_Modal-inner"
|
31818
|
-
};
|
31705
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css#css-module
|
31706
|
+
init_react_import();
|
31707
|
+
var styles_module_default12 = { "Modal": "_Modal_ikbaj_1", "Modal--isOpen": "_Modal--isOpen_ikbaj_15", "Modal-inner": "_Modal-inner_ikbaj_19" };
|
31819
31708
|
|
31820
31709
|
// components/Modal/index.tsx
|
31821
31710
|
var import_react_dom = __toESM(require_react_dom());
|
31822
31711
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
31823
|
-
var getClassName12 = get_class_name_factory_default("Modal",
|
31712
|
+
var getClassName12 = get_class_name_factory_default("Modal", styles_module_default12);
|
31824
31713
|
var Modal = ({
|
31825
31714
|
children,
|
31826
31715
|
onClose,
|
@@ -31849,8 +31738,8 @@ var Modal = ({
|
|
31849
31738
|
// components/ExternalInput/index.tsx
|
31850
31739
|
var import_react_spinners5 = require("react-spinners");
|
31851
31740
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
31852
|
-
var getClassName13 = get_class_name_factory_default("ExternalInput",
|
31853
|
-
var getClassNameModal = get_class_name_factory_default("ExternalInputModal",
|
31741
|
+
var getClassName13 = get_class_name_factory_default("ExternalInput", styles_module_default11);
|
31742
|
+
var getClassNameModal = get_class_name_factory_default("ExternalInputModal", styles_module_default11);
|
31854
31743
|
var dataCache = {};
|
31855
31744
|
var ExternalInput = ({
|
31856
31745
|
field,
|
@@ -32102,7 +31991,7 @@ var ExternalField = ({
|
|
32102
31991
|
// components/InputOrGroup/fields/RadioField/index.tsx
|
32103
31992
|
init_react_import();
|
32104
31993
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
32105
|
-
var getClassName14 = get_class_name_factory_default("Input",
|
31994
|
+
var getClassName14 = get_class_name_factory_default("Input", styles_module_default9);
|
32106
31995
|
var RadioField = ({
|
32107
31996
|
field,
|
32108
31997
|
onChange,
|
@@ -32157,7 +32046,7 @@ var RadioField = ({
|
|
32157
32046
|
// components/InputOrGroup/fields/SelectField/index.tsx
|
32158
32047
|
init_react_import();
|
32159
32048
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
32160
|
-
var getClassName15 = get_class_name_factory_default("Input",
|
32049
|
+
var getClassName15 = get_class_name_factory_default("Input", styles_module_default9);
|
32161
32050
|
var SelectField = ({
|
32162
32051
|
field,
|
32163
32052
|
onChange,
|
@@ -32207,7 +32096,7 @@ var SelectField = ({
|
|
32207
32096
|
// components/InputOrGroup/fields/TextareaField/index.tsx
|
32208
32097
|
init_react_import();
|
32209
32098
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
32210
|
-
var getClassName16 = get_class_name_factory_default("Input",
|
32099
|
+
var getClassName16 = get_class_name_factory_default("Input", styles_module_default9);
|
32211
32100
|
var TextareaField = ({
|
32212
32101
|
onChange,
|
32213
32102
|
readOnly,
|
@@ -32246,16 +32135,14 @@ var import_use_debounce2 = require("use-debounce");
|
|
32246
32135
|
// components/InputOrGroup/fields/ObjectField/index.tsx
|
32247
32136
|
init_react_import();
|
32248
32137
|
|
32249
|
-
// components/InputOrGroup/fields/ObjectField/styles.module.css
|
32250
|
-
|
32251
|
-
|
32252
|
-
"ObjectField-fieldset": "styles_ObjectField-fieldset"
|
32253
|
-
};
|
32138
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/InputOrGroup/fields/ObjectField/styles.module.css#css-module
|
32139
|
+
init_react_import();
|
32140
|
+
var styles_module_default13 = { "ObjectField": "_ObjectField_15j63_5", "ObjectField-fieldset": "_ObjectField-fieldset_15j63_13" };
|
32254
32141
|
|
32255
32142
|
// components/InputOrGroup/fields/ObjectField/index.tsx
|
32256
32143
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
32257
|
-
var getClassName17 = get_class_name_factory_default("ObjectField",
|
32258
|
-
var getClassNameItem3 = get_class_name_factory_default("ObjectFieldItem",
|
32144
|
+
var getClassName17 = get_class_name_factory_default("ObjectField", styles_module_default13);
|
32145
|
+
var getClassNameItem3 = get_class_name_factory_default("ObjectFieldItem", styles_module_default13);
|
32259
32146
|
var ObjectField = ({
|
32260
32147
|
field,
|
32261
32148
|
onChange,
|
@@ -32309,7 +32196,7 @@ var ObjectField = ({
|
|
32309
32196
|
|
32310
32197
|
// components/InputOrGroup/index.tsx
|
32311
32198
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
32312
|
-
var getClassName18 = get_class_name_factory_default("Input",
|
32199
|
+
var getClassName18 = get_class_name_factory_default("Input", styles_module_default9);
|
32313
32200
|
var FieldLabel = ({
|
32314
32201
|
children,
|
32315
32202
|
icon,
|
@@ -32412,16 +32299,14 @@ var InputOrGroup = (_a) => {
|
|
32412
32299
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Render2, __spreadProps(__spreadValues({}, mergedProps), { children }));
|
32413
32300
|
};
|
32414
32301
|
|
32415
|
-
// components/Puck/components/Fields/styles.module.css
|
32416
|
-
|
32417
|
-
|
32418
|
-
"PuckFields-loadingOverlay": "styles_PuckFields-loadingOverlay"
|
32419
|
-
};
|
32302
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css#css-module
|
32303
|
+
init_react_import();
|
32304
|
+
var styles_module_default14 = { "PuckFields": "_PuckFields_17k3p_1", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_17k3p_6" };
|
32420
32305
|
|
32421
32306
|
// components/Puck/components/Fields/index.tsx
|
32422
32307
|
var import_react19 = require("react");
|
32423
32308
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
32424
|
-
var getClassName19 = get_class_name_factory_default("PuckFields",
|
32309
|
+
var getClassName19 = get_class_name_factory_default("PuckFields", styles_module_default14);
|
32425
32310
|
var defaultPageFields = {
|
32426
32311
|
title: { type: "text" }
|
32427
32312
|
};
|
@@ -32571,18 +32456,13 @@ var import_react20 = require("react");
|
|
32571
32456
|
// components/ComponentList/index.tsx
|
32572
32457
|
init_react_import();
|
32573
32458
|
|
32574
|
-
// components/ComponentList/styles.module.css
|
32575
|
-
|
32576
|
-
|
32577
|
-
"ComponentList--isExpanded": "styles_ComponentList--isExpanded",
|
32578
|
-
"ComponentList-content": "styles_ComponentList-content",
|
32579
|
-
"ComponentList-title": "styles_ComponentList-title",
|
32580
|
-
"ComponentList-titleIcon": "styles_ComponentList-titleIcon"
|
32581
|
-
};
|
32459
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css#css-module
|
32460
|
+
init_react_import();
|
32461
|
+
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" };
|
32582
32462
|
|
32583
32463
|
// components/ComponentList/index.tsx
|
32584
32464
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
32585
|
-
var getClassName20 = get_class_name_factory_default("ComponentList",
|
32465
|
+
var getClassName20 = get_class_name_factory_default("ComponentList", styles_module_default15);
|
32586
32466
|
var ComponentListItem = ({
|
32587
32467
|
name,
|
32588
32468
|
label,
|
@@ -32718,15 +32598,13 @@ init_react_import();
|
|
32718
32598
|
var import_react22 = require("react");
|
32719
32599
|
var import_auto_frame_component = __toESM(require("@measured/auto-frame-component"));
|
32720
32600
|
|
32721
|
-
// components/Puck/components/Preview/styles.module.css
|
32722
|
-
|
32723
|
-
|
32724
|
-
"PuckPreview-frame": "styles_PuckPreview-frame"
|
32725
|
-
};
|
32601
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Preview/styles.module.css#css-module
|
32602
|
+
init_react_import();
|
32603
|
+
var styles_module_default16 = { "PuckPreview": "_PuckPreview_1mia0_1", "PuckPreview-frame": "_PuckPreview-frame_1mia0_5" };
|
32726
32604
|
|
32727
32605
|
// components/Puck/components/Preview/index.tsx
|
32728
32606
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
32729
|
-
var getClassName21 = get_class_name_factory_default("PuckPreview",
|
32607
|
+
var getClassName21 = get_class_name_factory_default("PuckPreview", styles_module_default16);
|
32730
32608
|
var Preview = ({ id = "puck-preview" }) => {
|
32731
32609
|
const { config, dispatch, state, setStatus, iframe } = useAppContext();
|
32732
32610
|
const Page = (0, import_react22.useCallback)(
|
@@ -32795,24 +32673,9 @@ var areaContainsZones = (data, area) => {
|
|
32795
32673
|
// components/LayerTree/index.tsx
|
32796
32674
|
init_react_import();
|
32797
32675
|
|
32798
|
-
// components/LayerTree/styles.module.css
|
32799
|
-
|
32800
|
-
|
32801
|
-
"LayerTree-zoneTitle": "styles_LayerTree-zoneTitle",
|
32802
|
-
"LayerTree-helper": "styles_LayerTree-helper",
|
32803
|
-
Layer: "styles_Layer",
|
32804
|
-
"Layer-inner": "styles_Layer-inner",
|
32805
|
-
"Layer--containsZone": "styles_Layer--containsZone",
|
32806
|
-
"Layer-clickable": "styles_Layer-clickable",
|
32807
|
-
"Layer--isSelected": "styles_Layer--isSelected",
|
32808
|
-
"Layer-chevron": "styles_Layer-chevron",
|
32809
|
-
"Layer--childIsSelected": "styles_Layer--childIsSelected",
|
32810
|
-
"Layer-zones": "styles_Layer-zones",
|
32811
|
-
"Layer-title": "styles_Layer-title",
|
32812
|
-
"Layer-name": "styles_Layer-name",
|
32813
|
-
"Layer-icon": "styles_Layer-icon",
|
32814
|
-
"Layer-zoneIcon": "styles_Layer-zoneIcon"
|
32815
|
-
};
|
32676
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/LayerTree/styles.module.css#css-module
|
32677
|
+
init_react_import();
|
32678
|
+
var styles_module_default17 = { "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" };
|
32816
32679
|
|
32817
32680
|
// lib/scroll-into-view.ts
|
32818
32681
|
init_react_import();
|
@@ -32841,8 +32704,8 @@ var isChildOfZone = (item, maybeChild, ctx) => {
|
|
32841
32704
|
|
32842
32705
|
// components/LayerTree/index.tsx
|
32843
32706
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
32844
|
-
var getClassName22 = get_class_name_factory_default("LayerTree",
|
32845
|
-
var getClassNameLayer = get_class_name_factory_default("Layer",
|
32707
|
+
var getClassName22 = get_class_name_factory_default("LayerTree", styles_module_default17);
|
32708
|
+
var getClassNameLayer = get_class_name_factory_default("Layer", styles_module_default17);
|
32846
32709
|
var LayerTree = ({
|
32847
32710
|
data,
|
32848
32711
|
config,
|
@@ -33242,14 +33105,9 @@ var import_react27 = require("react");
|
|
33242
33105
|
init_react_import();
|
33243
33106
|
var import_react26 = require("react");
|
33244
33107
|
|
33245
|
-
// components/ViewportControls/styles.module.css
|
33246
|
-
|
33247
|
-
|
33248
|
-
"ViewportControls-divider": "styles_ViewportControls-divider",
|
33249
|
-
"ViewportControls-zoomSelect": "styles_ViewportControls-zoomSelect",
|
33250
|
-
"ViewportButton--isActive": "styles_ViewportButton--isActive",
|
33251
|
-
"ViewportButton-inner": "styles_ViewportButton-inner"
|
33252
|
-
};
|
33108
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css#css-module
|
33109
|
+
init_react_import();
|
33110
|
+
var styles_module_default18 = { "ViewportControls": "_ViewportControls_3zdvn_1", "ViewportControls-divider": "_ViewportControls-divider_3zdvn_15", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_3zdvn_21", "ViewportButton--isActive": "_ViewportButton--isActive_3zdvn_33", "ViewportButton-inner": "_ViewportButton-inner_3zdvn_33" };
|
33253
33111
|
|
33254
33112
|
// components/ViewportControls/index.tsx
|
33255
33113
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
@@ -33258,8 +33116,8 @@ var icons = {
|
|
33258
33116
|
Tablet: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Tablet, { size: 16 }),
|
33259
33117
|
Monitor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Monitor, { size: 16 })
|
33260
33118
|
};
|
33261
|
-
var getClassName23 = get_class_name_factory_default("ViewportControls",
|
33262
|
-
var getClassNameButton = get_class_name_factory_default("ViewportButton",
|
33119
|
+
var getClassName23 = get_class_name_factory_default("ViewportControls", styles_module_default18);
|
33120
|
+
var getClassNameButton = get_class_name_factory_default("ViewportButton", styles_module_default18);
|
33263
33121
|
var ViewportButton = ({
|
33264
33122
|
children,
|
33265
33123
|
height = "auto",
|
@@ -33385,14 +33243,9 @@ var ViewportControls = ({
|
|
33385
33243
|
] });
|
33386
33244
|
};
|
33387
33245
|
|
33388
|
-
// components/Puck/components/Canvas/styles.module.css
|
33389
|
-
|
33390
|
-
|
33391
|
-
"PuckCanvas-controls": "styles_PuckCanvas-controls",
|
33392
|
-
"PuckCanvas-inner": "styles_PuckCanvas-inner",
|
33393
|
-
"PuckCanvas-root": "styles_PuckCanvas-root",
|
33394
|
-
"PuckCanvas--ready": "styles_PuckCanvas--ready"
|
33395
|
-
};
|
33246
|
+
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css#css-module
|
33247
|
+
init_react_import();
|
33248
|
+
var styles_module_default19 = { "PuckCanvas": "_PuckCanvas_6zd4y_1", "PuckCanvas-controls": "_PuckCanvas-controls_6zd4y_16", "PuckCanvas-inner": "_PuckCanvas-inner_6zd4y_21", "PuckCanvas-root": "_PuckCanvas-root_6zd4y_32", "PuckCanvas--ready": "_PuckCanvas--ready_6zd4y_56" };
|
33396
33249
|
|
33397
33250
|
// lib/get-zoom-config.ts
|
33398
33251
|
init_react_import();
|
@@ -33426,7 +33279,7 @@ var getZoomConfig = (uiViewport, frame, zoom) => {
|
|
33426
33279
|
|
33427
33280
|
// components/Puck/components/Canvas/index.tsx
|
33428
33281
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
33429
|
-
var getClassName24 = get_class_name_factory_default("PuckCanvas",
|
33282
|
+
var getClassName24 = get_class_name_factory_default("PuckCanvas", styles_module_default19);
|
33430
33283
|
var ZOOM_ON_CHANGE = true;
|
33431
33284
|
var Canvas = () => {
|
33432
33285
|
const { status, iframe } = useAppContext();
|
@@ -33532,6 +33385,7 @@ var Canvas = () => {
|
|
33532
33385
|
transition: showTransition ? "width 150ms ease-out, height 150ms ease-out, transform 150ms ease-out" : "",
|
33533
33386
|
overflow: iframe.enabled ? void 0 : "auto"
|
33534
33387
|
},
|
33388
|
+
suppressHydrationWarning: true,
|
33535
33389
|
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CustomPreview, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Preview, {}) })
|
33536
33390
|
}
|
33537
33391
|
) })
|
@@ -33542,7 +33396,7 @@ var Canvas = () => {
|
|
33542
33396
|
|
33543
33397
|
// components/Puck/index.tsx
|
33544
33398
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
33545
|
-
var getClassName25 = get_class_name_factory_default("Puck",
|
33399
|
+
var getClassName25 = get_class_name_factory_default("Puck", styles_module_default8);
|
33546
33400
|
function Puck({
|
33547
33401
|
children,
|
33548
33402
|
config,
|
@@ -33571,6 +33425,12 @@ function Puck({
|
|
33571
33425
|
const initial = __spreadValues(__spreadValues({}, defaultAppState.ui), initialUi);
|
33572
33426
|
let clientUiState = {};
|
33573
33427
|
if (typeof window !== "undefined") {
|
33428
|
+
if (window.matchMedia("(max-width: 638px)").matches) {
|
33429
|
+
clientUiState = __spreadProps(__spreadValues({}, clientUiState), {
|
33430
|
+
leftSideBarVisible: false,
|
33431
|
+
rightSideBarVisible: false
|
33432
|
+
});
|
33433
|
+
}
|
33574
33434
|
const viewportWidth = window.innerWidth;
|
33575
33435
|
const viewportDifferences = Object.entries(viewports).map(([key, value]) => ({
|
33576
33436
|
key,
|
@@ -33578,17 +33438,14 @@ function Puck({
|
|
33578
33438
|
})).sort((a, b) => a.diff > b.diff ? 1 : -1);
|
33579
33439
|
const closestViewport = viewportDifferences[0].key;
|
33580
33440
|
if (iframe.enabled) {
|
33581
|
-
clientUiState =
|
33582
|
-
leftSideBarVisible: false,
|
33583
|
-
rightSideBarVisible: false
|
33584
|
-
}), {
|
33441
|
+
clientUiState = {
|
33585
33442
|
viewports: __spreadProps(__spreadValues({}, initial.viewports), {
|
33586
33443
|
current: __spreadProps(__spreadValues({}, initial.viewports.current), {
|
33587
33444
|
height: ((_b = (_a2 = initialUi == null ? void 0 : initialUi.viewports) == null ? void 0 : _a2.current) == null ? void 0 : _b.height) || viewports[closestViewport].height || "auto",
|
33588
33445
|
width: ((_d = (_c = initialUi == null ? void 0 : initialUi.viewports) == null ? void 0 : _c.current) == null ? void 0 : _d.width) || viewports[closestViewport].width
|
33589
33446
|
})
|
33590
33447
|
})
|
33591
|
-
}
|
33448
|
+
};
|
33592
33449
|
}
|
33593
33450
|
}
|
33594
33451
|
return __spreadProps(__spreadValues({}, defaultAppState), {
|
@@ -33734,199 +33591,208 @@ function Puck({
|
|
33734
33591
|
() => loadedOverrides.headerActions || defaultHeaderActionsRender,
|
33735
33592
|
[loadedOverrides]
|
33736
33593
|
);
|
33737
|
-
|
33738
|
-
|
33739
|
-
|
33740
|
-
|
33741
|
-
|
33742
|
-
|
33743
|
-
|
33744
|
-
|
33745
|
-
|
33746
|
-
|
33747
|
-
|
33748
|
-
|
33749
|
-
|
33750
|
-
|
33751
|
-
|
33752
|
-
|
33753
|
-
|
33754
|
-
|
33755
|
-
|
33756
|
-
|
33757
|
-
|
33758
|
-
|
33759
|
-
|
33760
|
-
|
33761
|
-
|
33762
|
-
|
33763
|
-
|
33764
|
-
|
33765
|
-
|
33766
|
-
|
33767
|
-
|
33768
|
-
|
33769
|
-
|
33770
|
-
|
33771
|
-
|
33772
|
-
|
33594
|
+
const [mounted, setMounted] = (0, import_react28.useState)(false);
|
33595
|
+
(0, import_react28.useEffect)(() => {
|
33596
|
+
setMounted(true);
|
33597
|
+
}, []);
|
33598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "Puck", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33599
|
+
AppProvider,
|
33600
|
+
{
|
33601
|
+
value: {
|
33602
|
+
state: appState,
|
33603
|
+
dispatch,
|
33604
|
+
config,
|
33605
|
+
componentState,
|
33606
|
+
resolveData,
|
33607
|
+
plugins,
|
33608
|
+
overrides: loadedOverrides,
|
33609
|
+
history,
|
33610
|
+
viewports,
|
33611
|
+
iframe
|
33612
|
+
},
|
33613
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33614
|
+
DragDropContext,
|
33615
|
+
{
|
33616
|
+
onDragUpdate: (update) => {
|
33617
|
+
setDraggedItem(__spreadValues(__spreadValues({}, draggedItem), update));
|
33618
|
+
onDragStartOrUpdate(update);
|
33619
|
+
},
|
33620
|
+
onBeforeDragStart: (start) => {
|
33621
|
+
onDragStartOrUpdate(start);
|
33622
|
+
setItemSelector(null);
|
33623
|
+
dispatch({ type: "setUi", ui: { isDragging: true } });
|
33624
|
+
},
|
33625
|
+
onDragEnd: (droppedItem) => {
|
33626
|
+
setDraggedItem(void 0);
|
33627
|
+
dispatch({ type: "setUi", ui: { isDragging: false } });
|
33628
|
+
if (!droppedItem.destination) {
|
33629
|
+
return;
|
33630
|
+
}
|
33631
|
+
if (droppedItem.source.droppableId.startsWith("component-list") && droppedItem.destination) {
|
33632
|
+
const [_, componentType] = droppedItem.draggableId.split("::");
|
33633
|
+
dispatch({
|
33634
|
+
type: "insert",
|
33635
|
+
componentType: componentType || droppedItem.draggableId,
|
33636
|
+
destinationIndex: droppedItem.destination.index,
|
33637
|
+
destinationZone: droppedItem.destination.droppableId
|
33638
|
+
});
|
33639
|
+
setItemSelector({
|
33640
|
+
index: droppedItem.destination.index,
|
33641
|
+
zone: droppedItem.destination.droppableId
|
33642
|
+
});
|
33643
|
+
return;
|
33644
|
+
} else {
|
33645
|
+
const { source, destination } = droppedItem;
|
33646
|
+
if (source.droppableId === destination.droppableId) {
|
33773
33647
|
dispatch({
|
33774
|
-
type: "
|
33775
|
-
|
33776
|
-
destinationIndex:
|
33777
|
-
destinationZone:
|
33778
|
-
});
|
33779
|
-
setItemSelector({
|
33780
|
-
index: droppedItem.destination.index,
|
33781
|
-
zone: droppedItem.destination.droppableId
|
33648
|
+
type: "reorder",
|
33649
|
+
sourceIndex: source.index,
|
33650
|
+
destinationIndex: destination.index,
|
33651
|
+
destinationZone: destination.droppableId
|
33782
33652
|
});
|
33783
|
-
return;
|
33784
33653
|
} else {
|
33785
|
-
|
33786
|
-
|
33787
|
-
|
33788
|
-
|
33789
|
-
|
33790
|
-
|
33791
|
-
destinationZone: destination.droppableId
|
33792
|
-
});
|
33793
|
-
} else {
|
33794
|
-
dispatch({
|
33795
|
-
type: "move",
|
33796
|
-
sourceZone: source.droppableId,
|
33797
|
-
sourceIndex: source.index,
|
33798
|
-
destinationIndex: destination.index,
|
33799
|
-
destinationZone: destination.droppableId
|
33800
|
-
});
|
33801
|
-
}
|
33802
|
-
setItemSelector({
|
33803
|
-
index: destination.index,
|
33804
|
-
zone: destination.droppableId
|
33654
|
+
dispatch({
|
33655
|
+
type: "move",
|
33656
|
+
sourceZone: source.droppableId,
|
33657
|
+
sourceIndex: source.index,
|
33658
|
+
destinationIndex: destination.index,
|
33659
|
+
destinationZone: destination.droppableId
|
33805
33660
|
});
|
33806
33661
|
}
|
33807
|
-
|
33808
|
-
|
33809
|
-
|
33810
|
-
|
33811
|
-
|
33812
|
-
|
33813
|
-
|
33814
|
-
|
33815
|
-
|
33816
|
-
|
33817
|
-
|
33818
|
-
|
33819
|
-
|
33820
|
-
|
33821
|
-
|
33822
|
-
|
33823
|
-
|
33824
|
-
|
33825
|
-
|
33826
|
-
|
33827
|
-
|
33828
|
-
|
33829
|
-
|
33830
|
-
|
33831
|
-
|
33832
|
-
|
33833
|
-
|
33834
|
-
|
33835
|
-
|
33836
|
-
|
33837
|
-
|
33662
|
+
setItemSelector({
|
33663
|
+
index: destination.index,
|
33664
|
+
zone: destination.droppableId
|
33665
|
+
});
|
33666
|
+
}
|
33667
|
+
},
|
33668
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33669
|
+
DropZoneProvider,
|
33670
|
+
{
|
33671
|
+
value: {
|
33672
|
+
data,
|
33673
|
+
itemSelector,
|
33674
|
+
setItemSelector,
|
33675
|
+
config,
|
33676
|
+
dispatch,
|
33677
|
+
draggedItem,
|
33678
|
+
placeholderStyle,
|
33679
|
+
mode: "edit",
|
33680
|
+
areaId: "root"
|
33681
|
+
},
|
33682
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomPuck, { children: children || /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
33683
|
+
"div",
|
33684
|
+
{
|
33685
|
+
className: getClassName25({
|
33686
|
+
leftSideBarVisible,
|
33687
|
+
menuOpen,
|
33688
|
+
mounted,
|
33689
|
+
rightSideBarVisible
|
33690
|
+
}),
|
33691
|
+
children: [
|
33692
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33693
|
+
CustomHeader,
|
33694
|
+
{
|
33695
|
+
actions: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
33696
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
|
33697
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33698
|
+
Button,
|
33699
|
+
{
|
33700
|
+
onClick: () => {
|
33701
|
+
onPublish && onPublish(data);
|
33702
|
+
},
|
33703
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Globe, { size: "14px" }),
|
33704
|
+
children: "Publish"
|
33705
|
+
}
|
33706
|
+
)
|
33707
|
+
] }),
|
33708
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("header", { className: getClassName25("header"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerInner"), children: [
|
33709
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerToggle"), children: [
|
33710
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("leftSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33711
|
+
IconButton,
|
33838
33712
|
{
|
33839
33713
|
onClick: () => {
|
33840
|
-
|
33714
|
+
toggleSidebars("left");
|
33841
33715
|
},
|
33842
|
-
|
33843
|
-
children: "
|
33716
|
+
title: "Toggle left sidebar",
|
33717
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelLeft, { focusable: "false" })
|
33844
33718
|
}
|
33845
|
-
)
|
33719
|
+
) }),
|
33720
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33721
|
+
IconButton,
|
33722
|
+
{
|
33723
|
+
onClick: () => {
|
33724
|
+
toggleSidebars("right");
|
33725
|
+
},
|
33726
|
+
title: "Toggle right sidebar",
|
33727
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelRight, { focusable: "false" })
|
33728
|
+
}
|
33729
|
+
) })
|
33846
33730
|
] }),
|
33847
|
-
|
33848
|
-
|
33849
|
-
|
33850
|
-
|
33851
|
-
|
33852
|
-
onClick: () => {
|
33853
|
-
toggleSidebars("left");
|
33854
|
-
},
|
33855
|
-
title: "Toggle left sidebar",
|
33856
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelLeft, { focusable: "false" })
|
33857
|
-
}
|
33858
|
-
) }),
|
33859
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33860
|
-
IconButton,
|
33861
|
-
{
|
33862
|
-
onClick: () => {
|
33863
|
-
toggleSidebars("right");
|
33864
|
-
},
|
33865
|
-
title: "Toggle right sidebar",
|
33866
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelRight, { focusable: "false" })
|
33867
|
-
}
|
33868
|
-
) })
|
33869
|
-
] }),
|
33870
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("headerTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Heading, { rank: 2, size: "xs", children: [
|
33871
|
-
headerTitle || rootProps.title || "Page",
|
33872
|
-
headerPath && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
33873
|
-
" ",
|
33874
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("code", { className: getClassName25("headerPath"), children: headerPath })
|
33875
|
-
] })
|
33876
|
-
] }) }),
|
33877
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerTools"), children: [
|
33878
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33879
|
-
IconButton,
|
33880
|
-
{
|
33881
|
-
onClick: () => {
|
33882
|
-
return setMenuOpen(!menuOpen);
|
33883
|
-
},
|
33884
|
-
title: "Toggle menu bar",
|
33885
|
-
children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronUp, { focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronDown, { focusable: "false" })
|
33886
|
-
}
|
33887
|
-
) }),
|
33888
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33889
|
-
MenuBar,
|
33890
|
-
{
|
33891
|
-
appState,
|
33892
|
-
data,
|
33893
|
-
dispatch,
|
33894
|
-
onPublish,
|
33895
|
-
menuOpen,
|
33896
|
-
renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
|
33897
|
-
setMenuOpen
|
33898
|
-
}
|
33899
|
-
)
|
33731
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("headerTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Heading, { rank: 2, size: "xs", children: [
|
33732
|
+
headerTitle || rootProps.title || "Page",
|
33733
|
+
headerPath && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
33734
|
+
" ",
|
33735
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("code", { className: getClassName25("headerPath"), children: headerPath })
|
33900
33736
|
] })
|
33901
|
-
] }) })
|
33902
|
-
|
33903
|
-
|
33904
|
-
|
33905
|
-
|
33906
|
-
|
33907
|
-
|
33908
|
-
|
33909
|
-
|
33910
|
-
|
33911
|
-
|
33912
|
-
|
33913
|
-
|
33914
|
-
|
33915
|
-
|
33916
|
-
|
33917
|
-
|
33918
|
-
|
33919
|
-
|
33920
|
-
|
33921
|
-
|
33922
|
-
|
33923
|
-
|
33924
|
-
|
33925
|
-
|
33926
|
-
|
33927
|
-
|
33928
|
-
|
33929
|
-
|
33737
|
+
] }) }),
|
33738
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerTools"), children: [
|
33739
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33740
|
+
IconButton,
|
33741
|
+
{
|
33742
|
+
onClick: () => {
|
33743
|
+
return setMenuOpen(!menuOpen);
|
33744
|
+
},
|
33745
|
+
title: "Toggle menu bar",
|
33746
|
+
children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronUp, { focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronDown, { focusable: "false" })
|
33747
|
+
}
|
33748
|
+
) }),
|
33749
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33750
|
+
MenuBar,
|
33751
|
+
{
|
33752
|
+
appState,
|
33753
|
+
data,
|
33754
|
+
dispatch,
|
33755
|
+
onPublish,
|
33756
|
+
menuOpen,
|
33757
|
+
renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
|
33758
|
+
setMenuOpen
|
33759
|
+
}
|
33760
|
+
)
|
33761
|
+
] })
|
33762
|
+
] }) })
|
33763
|
+
}
|
33764
|
+
),
|
33765
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("leftSideBar"), children: [
|
33766
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Components, {}) }),
|
33767
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Outline, {}) })
|
33768
|
+
] }),
|
33769
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Canvas, {}),
|
33770
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBar"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33771
|
+
SidebarSection,
|
33772
|
+
{
|
33773
|
+
noPadding: true,
|
33774
|
+
noBorderTop: true,
|
33775
|
+
showBreadcrumbs: true,
|
33776
|
+
title: selectedItem ? (_a = config.components[selectedItem.type]["label"]) != null ? _a : selectedItem.type : "Page",
|
33777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Fields, {})
|
33778
|
+
}
|
33779
|
+
) }),
|
33780
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33781
|
+
"div",
|
33782
|
+
{
|
33783
|
+
id: "puck-portal-root",
|
33784
|
+
className: getClassName25("portal")
|
33785
|
+
}
|
33786
|
+
)
|
33787
|
+
]
|
33788
|
+
}
|
33789
|
+
) })
|
33790
|
+
}
|
33791
|
+
)
|
33792
|
+
}
|
33793
|
+
)
|
33794
|
+
}
|
33795
|
+
) });
|
33930
33796
|
}
|
33931
33797
|
Puck.Components = Components;
|
33932
33798
|
Puck.Fields = Fields;
|