@puckeditor/plugin-pages 0.6.1-canary.a7fda263 → 0.6.1-canary.e4418837
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +29 -29
- package/dist/index.js +31 -133
- package/dist/index.mjs +70 -41
- package/package.json +13 -17
- package/dist/api/edit.js +0 -163
- package/dist/api/edit.mjs +0 -58
- package/dist/api/view.js +0 -114
- package/dist/api/view.mjs +0 -8
- package/dist/chunk-BZD7XJC3.mjs +0 -6
- package/dist/chunk-CFUMG5V5.mjs +0 -26
- package/dist/chunk-UYZYALB5.mjs +0 -128
- package/dist/server.js +0 -129
- package/dist/server.mjs +0 -13
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* css-module:/
|
|
1
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Toast/Toast.module.css/#css-module-data */
|
|
2
2
|
._Viewport_13rvx_1 {
|
|
3
3
|
position: fixed;
|
|
4
4
|
width: 250px;
|
|
@@ -280,7 +280,7 @@ p {
|
|
|
280
280
|
margin: 0;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
/* css-module:/
|
|
283
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/ActionModal/ActionModal.module.css/#css-module-data */
|
|
284
284
|
._ActionModal_r3pvy_1 {
|
|
285
285
|
display: block;
|
|
286
286
|
min-width: 356px;
|
|
@@ -307,7 +307,7 @@ p {
|
|
|
307
307
|
padding: 16px 24px;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
/* css-module:/
|
|
310
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Modal/Modal.module.css/#css-module-data */
|
|
311
311
|
._Modal-background_1bedq_1 {
|
|
312
312
|
align-items: center;
|
|
313
313
|
display: flex;
|
|
@@ -336,7 +336,7 @@ p {
|
|
|
336
336
|
overflow: auto;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
/* css-module:/
|
|
339
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Button/Button.module.css/#css-module-data */
|
|
340
340
|
._Button_1sk6w_1 {
|
|
341
341
|
appearance: none;
|
|
342
342
|
background: none;
|
|
@@ -469,7 +469,7 @@ p {
|
|
|
469
469
|
padding-left: 8px;
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
/* css-module:/
|
|
472
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Loader/styles.module.css/#css-module-data */
|
|
473
473
|
@keyframes _loader-animation_nacdm_1 {
|
|
474
474
|
0% {
|
|
475
475
|
transform: rotate(0deg) scale(1);
|
|
@@ -491,7 +491,7 @@ p {
|
|
|
491
491
|
animation-fill-mode: both;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
/* css-module:/
|
|
494
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Heading/Heading.module.css/#css-module-data */
|
|
495
495
|
._Heading_qkzg9_1 {
|
|
496
496
|
display: block;
|
|
497
497
|
font-weight: 700;
|
|
@@ -559,7 +559,7 @@ p {
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
/* css-module:/
|
|
562
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Align/Align.module.css/#css-module-data */
|
|
563
563
|
._Align_oewlu_1 {
|
|
564
564
|
align-items: flex-start;
|
|
565
565
|
display: flex;
|
|
@@ -583,7 +583,7 @@ p {
|
|
|
583
583
|
position: relative;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
/* css-module:/
|
|
586
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/AutoForm/AutoForm.module.css/#css-module-data */
|
|
587
587
|
._AutoForm_1vmh9_1 {
|
|
588
588
|
display: flex;
|
|
589
589
|
gap: 16px;
|
|
@@ -594,7 +594,7 @@ p {
|
|
|
594
594
|
padding: 0px !important;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
/* css-module:/
|
|
597
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Card/Card.module.css/#css-module-data */
|
|
598
598
|
._Card_rpnal_1 {
|
|
599
599
|
background-color: white;
|
|
600
600
|
border: 1px solid var(--puck-color-grey-08);
|
|
@@ -634,7 +634,7 @@ p {
|
|
|
634
634
|
color: var(--puck-color-azure-04);
|
|
635
635
|
}
|
|
636
636
|
|
|
637
|
-
/* css-module:/
|
|
637
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/CardSelector/styles.module.css/#css-module-data */
|
|
638
638
|
._CardSelector_1ogry_1 {
|
|
639
639
|
display: grid;
|
|
640
640
|
gap: 16px;
|
|
@@ -672,7 +672,7 @@ p {
|
|
|
672
672
|
cursor: pointer;
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
-
/* css-module:/
|
|
675
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Code/Code.module.css/#css-module-data */
|
|
676
676
|
._Code_d4378_1 {
|
|
677
677
|
border-radius: 8px;
|
|
678
678
|
position: relative;
|
|
@@ -792,7 +792,7 @@ p {
|
|
|
792
792
|
background: var(--puck-color-grey-11);
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
/* css-module:/
|
|
795
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/IconButton/IconButton.module.css/#css-module-data */
|
|
796
796
|
._IconButton_thegm_1 {
|
|
797
797
|
align-items: center;
|
|
798
798
|
background: transparent;
|
|
@@ -837,7 +837,7 @@ p {
|
|
|
837
837
|
color: var(--puck-color-grey-07);
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
/* css-module:/
|
|
840
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/InfoBar/InfoBar.module.css/#css-module-data */
|
|
841
841
|
._InfoBar_kchdj_1 {
|
|
842
842
|
border: 1px solid var(--puck-color-grey-10);
|
|
843
843
|
border-radius: 8px;
|
|
@@ -860,7 +860,7 @@ p {
|
|
|
860
860
|
font-weight: 600;
|
|
861
861
|
}
|
|
862
862
|
|
|
863
|
-
/* css-module:/
|
|
863
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Inline/Inline.module.css/#css-module-data */
|
|
864
864
|
._Inline_6o5on_3 {
|
|
865
865
|
display: block;
|
|
866
866
|
}
|
|
@@ -900,7 +900,7 @@ p {
|
|
|
900
900
|
flex-grow: 1;
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
/* css-module:/
|
|
903
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Link/Link.module.css/#css-module-data */
|
|
904
904
|
._Link_1j70m_1 {
|
|
905
905
|
color: var(--puck-color-azure-04);
|
|
906
906
|
text-decoration: none;
|
|
@@ -909,7 +909,7 @@ p {
|
|
|
909
909
|
color: var(--puck-color-azure-05);
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
/* css-module:/
|
|
912
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Menu/styles.module.css/#css-module-data */
|
|
913
913
|
._Menu_1tu16_1 {
|
|
914
914
|
display: flex;
|
|
915
915
|
position: relative;
|
|
@@ -985,7 +985,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
985
985
|
opacity: 0.5;
|
|
986
986
|
}
|
|
987
987
|
|
|
988
|
-
/* css-module:/
|
|
988
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Page/Page.module.css/#css-module-data */
|
|
989
989
|
._Page_nkzj9_1 {
|
|
990
990
|
display: flex;
|
|
991
991
|
flex-direction: column;
|
|
@@ -1044,7 +1044,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1044
1044
|
padding: 16px 24px;
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
-
/* css-module:/
|
|
1047
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Pagination/Pagination.module.css/#css-module-data */
|
|
1048
1048
|
._Pagination_1okv2_1 {
|
|
1049
1049
|
align-items: baseline;
|
|
1050
1050
|
display: flex;
|
|
@@ -1072,7 +1072,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1072
1072
|
color: var(--puck-color-grey-05);
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
|
-
/* css-module:/
|
|
1075
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/PlanGrid/styles.module.css/#css-module-data */
|
|
1076
1076
|
._PlanGrid--loading_97rn7_1 {
|
|
1077
1077
|
opacity: 0;
|
|
1078
1078
|
}
|
|
@@ -1100,7 +1100,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1100
1100
|
font-weight: 500;
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
|
-
/* css-module:/
|
|
1103
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/PlanCard/styles.module.css/#css-module-data */
|
|
1104
1104
|
._PlanCard_16zmu_1 {
|
|
1105
1105
|
border: 1px solid var(--puck-color-grey-09);
|
|
1106
1106
|
border-radius: 16px;
|
|
@@ -1284,7 +1284,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1284
1284
|
grid-auto-flow: column;
|
|
1285
1285
|
}
|
|
1286
1286
|
|
|
1287
|
-
/* css-module:/
|
|
1287
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Section/Section.module.css/#css-module-data */
|
|
1288
1288
|
._Section-inner_1uwo0_1 {
|
|
1289
1289
|
margin-left: auto;
|
|
1290
1290
|
margin-right: auto;
|
|
@@ -1302,7 +1302,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1302
1302
|
max-width: unset;
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
|
-
/* css-module:/
|
|
1305
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Tag/Tag.module.css/#css-module-data */
|
|
1306
1306
|
._Tag_s2h0n_1 {
|
|
1307
1307
|
align-items: center;
|
|
1308
1308
|
display: flex;
|
|
@@ -1373,7 +1373,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1373
1373
|
margin-top: 1px;
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
1376
|
-
/* css-module:/
|
|
1376
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Table/Table.module.css/#css-module-data */
|
|
1377
1377
|
._Table_o345u_1 {
|
|
1378
1378
|
color: black;
|
|
1379
1379
|
display: flex;
|
|
@@ -1473,7 +1473,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1473
1473
|
background-color: var(--puck-color-grey-12);
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
|
-
/* css-module:/
|
|
1476
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css/#css-module-data */
|
|
1477
1477
|
._VerticalSpace_1tjaw_1 {
|
|
1478
1478
|
padding-top: 16px;
|
|
1479
1479
|
}
|
|
@@ -1505,7 +1505,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1505
1505
|
padding-top: 128px;
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
|
-
/* css-module:/
|
|
1508
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Viewport/styles.module.css/#css-module-data */
|
|
1509
1509
|
._Viewport_1vvhm_3 {
|
|
1510
1510
|
}
|
|
1511
1511
|
._Viewport--standard_1vvhm_6,
|
|
@@ -1540,7 +1540,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
1542
|
|
|
1543
|
-
/* css-module:/
|
|
1543
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/PagePlugin/styles.module.css/#css-module-data */
|
|
1544
1544
|
._Pages_ey49w_5 {
|
|
1545
1545
|
display: flex;
|
|
1546
1546
|
flex-direction: column;
|
|
@@ -1720,7 +1720,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1720
1720
|
white-space: nowrap;
|
|
1721
1721
|
}
|
|
1722
1722
|
|
|
1723
|
-
/* css-module:/
|
|
1723
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/CreateForm/styles.module.css/#css-module-data */
|
|
1724
1724
|
._CreateForm_kkdt2_1 {
|
|
1725
1725
|
width: 100%;
|
|
1726
1726
|
}
|
|
@@ -1765,7 +1765,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1765
1765
|
line-height: 1.2;
|
|
1766
1766
|
}
|
|
1767
1767
|
|
|
1768
|
-
/* css-module:/
|
|
1768
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/ConfirmModal/styles.module.css/#css-module-data */
|
|
1769
1769
|
._ConfirmModal_1r63q_1 {
|
|
1770
1770
|
width: 100%;
|
|
1771
1771
|
}
|
|
@@ -1836,7 +1836,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1836
1836
|
padding: 16px 24px;
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
1839
|
-
/* css-module:/
|
|
1839
|
+
/* css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/HeaderActions/styles.module.css/#css-module-data */
|
|
1840
1840
|
._HeaderActions_1dhws_1 {
|
|
1841
1841
|
position: relative;
|
|
1842
1842
|
display: inline-flex;
|
package/dist/index.js
CHANGED
|
@@ -107,8 +107,7 @@ var require_classnames = __commonJS({
|
|
|
107
107
|
// index.ts
|
|
108
108
|
var index_exports = {};
|
|
109
109
|
__export(index_exports, {
|
|
110
|
-
createPagesPlugin: () => createPagesPlugin
|
|
111
|
-
getPage: () => getPage
|
|
110
|
+
createPagesPlugin: () => createPagesPlugin
|
|
112
111
|
});
|
|
113
112
|
module.exports = __toCommonJS(index_exports);
|
|
114
113
|
init_react_import();
|
|
@@ -4650,7 +4649,7 @@ var toastManager = index_parts_exports.createToastManager();
|
|
|
4650
4649
|
// ../platform-client/components/Toast/Toast.tsx
|
|
4651
4650
|
init_react_import();
|
|
4652
4651
|
|
|
4653
|
-
// css-module:/
|
|
4652
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Toast/Toast.module.css#css-module
|
|
4654
4653
|
init_react_import();
|
|
4655
4654
|
var Toast_module_default = { "Viewport": "_Viewport_13rvx_1", "Toast": "_Toast_13rvx_17", "Title": "_Title_13rvx_95", "Description": "_Description_13rvx_102", "Action": "_Action_13rvx_109", "Close": "_Close_13rvx_143", "Icon": "_Icon_13rvx_163" };
|
|
4656
4655
|
|
|
@@ -4711,7 +4710,7 @@ init_react_import();
|
|
|
4711
4710
|
// ../platform-client/components/ActionModal/ActionModal.tsx
|
|
4712
4711
|
init_react_import();
|
|
4713
4712
|
|
|
4714
|
-
// css-module:/
|
|
4713
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/ActionModal/ActionModal.module.css#css-module
|
|
4715
4714
|
init_react_import();
|
|
4716
4715
|
var ActionModal_module_default = { "ActionModal": "_ActionModal_r3pvy_1", "ActionModal-header": "_ActionModal-header_r3pvy_6", "ActionModal-body": "_ActionModal-body_r3pvy_17", "ActionModal-footer": "_ActionModal-footer_r3pvy_22" };
|
|
4717
4716
|
|
|
@@ -4755,7 +4754,7 @@ var get_class_name_factory_default = getClassNameFactory;
|
|
|
4755
4754
|
// ../platform-client/components/Modal/Modal.tsx
|
|
4756
4755
|
init_react_import();
|
|
4757
4756
|
|
|
4758
|
-
// css-module:/
|
|
4757
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Modal/Modal.module.css#css-module
|
|
4759
4758
|
init_react_import();
|
|
4760
4759
|
var Modal_module_default = { "Modal-background": "_Modal-background_1bedq_1", "Modal--visible": "_Modal--visible_1bedq_16", "Modal-modal": "_Modal-modal_1bedq_22" };
|
|
4761
4760
|
|
|
@@ -4789,14 +4788,14 @@ init_react_import();
|
|
|
4789
4788
|
init_react_import();
|
|
4790
4789
|
var import_react8 = require("react");
|
|
4791
4790
|
|
|
4792
|
-
// css-module:/
|
|
4791
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Button/Button.module.css#css-module
|
|
4793
4792
|
init_react_import();
|
|
4794
4793
|
var Button_module_default = { "Button": "_Button_1sk6w_1", "Button--medium": "_Button--medium_1sk6w_34", "Button--large": "_Button--large_1sk6w_42", "Button--brand": "_Button--brand_1sk6w_49", "Button--primary": "_Button--primary_1sk6w_70", "Button--secondary": "_Button--secondary_1sk6w_84", "Button--danger": "_Button--danger_1sk6w_101", "Button--flush": "_Button--flush_1sk6w_115", "Button--ghost": "_Button--ghost_1sk6w_119", "Button--disabled": "_Button--disabled_1sk6w_136", "Button--fullWidth": "_Button--fullWidth_1sk6w_146", "Button-spinner": "_Button-spinner_1sk6w_151" };
|
|
4795
4794
|
|
|
4796
4795
|
// ../platform-client/components/Loader/index.tsx
|
|
4797
4796
|
init_react_import();
|
|
4798
4797
|
|
|
4799
|
-
// css-module:/
|
|
4798
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Loader/styles.module.css#css-module
|
|
4800
4799
|
init_react_import();
|
|
4801
4800
|
var styles_module_default = { "Loader": "_Loader_nacdm_13", "loader-animation": "_loader-animation_nacdm_1" };
|
|
4802
4801
|
|
|
@@ -4932,7 +4931,7 @@ init_react_import();
|
|
|
4932
4931
|
// ../platform-client/components/Heading/Heading.tsx
|
|
4933
4932
|
init_react_import();
|
|
4934
4933
|
|
|
4935
|
-
// css-module:/
|
|
4934
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Heading/Heading.module.css#css-module
|
|
4936
4935
|
init_react_import();
|
|
4937
4936
|
var Heading_module_default = { "Heading": "_Heading_qkzg9_1", "Heading--xxxxl": "_Heading--xxxxl_qkzg9_11", "Heading--xxxl": "_Heading--xxxl_qkzg9_15", "Heading--xxl": "_Heading--xxl_qkzg9_19", "Heading--xl": "_Heading--xl_qkzg9_23", "Heading--l": "_Heading--l_qkzg9_27", "Heading--m": "_Heading--m_qkzg9_31", "Heading--s": "_Heading--s_qkzg9_35", "Heading--xs": "_Heading--xs_qkzg9_39", "Heading--xxs": "_Heading--xxs_qkzg9_43" };
|
|
4938
4937
|
|
|
@@ -4986,7 +4985,7 @@ init_react_import();
|
|
|
4986
4985
|
init_react_import();
|
|
4987
4986
|
var import_react10 = __toESM(require("react"));
|
|
4988
4987
|
|
|
4989
|
-
// css-module:/
|
|
4988
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Align/Align.module.css#css-module
|
|
4990
4989
|
init_react_import();
|
|
4991
4990
|
var Align_module_default = { "Align": "_Align_oewlu_1", "Align--horizontalCenter": "_Align--horizontalCenter_oewlu_7", "Align--horizontalRight": "_Align--horizontalRight_oewlu_11", "Align--verticalBottom": "_Align--verticalBottom_oewlu_15", "Align--verticalCenter": "_Align--verticalCenter_oewlu_20", "Align-item": "_Align-item_oewlu_25" };
|
|
4992
4991
|
|
|
@@ -5105,7 +5104,7 @@ init_react_import();
|
|
|
5105
5104
|
var import_core2 = require("@puckeditor/core");
|
|
5106
5105
|
var import_react11 = require("react");
|
|
5107
5106
|
|
|
5108
|
-
// css-module:/
|
|
5107
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
|
|
5109
5108
|
init_react_import();
|
|
5110
5109
|
var AutoForm_module_default = { "AutoForm": "_AutoForm_1vmh9_1" };
|
|
5111
5110
|
|
|
@@ -5119,7 +5118,7 @@ init_react_import();
|
|
|
5119
5118
|
// ../platform-client/components/Card/Card.tsx
|
|
5120
5119
|
init_react_import();
|
|
5121
5120
|
|
|
5122
|
-
// css-module:/
|
|
5121
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Card/Card.module.css#css-module
|
|
5123
5122
|
init_react_import();
|
|
5124
5123
|
var Card_module_default = { "Card": "_Card_rpnal_1", "Card-body": "_Card-body_rpnal_17", "Card-title": "_Card-title_rpnal_23", "Card-subtitle": "_Card-subtitle_rpnal_27", "Card-chevron": "_Card-chevron_rpnal_32", "Card--showChevron": "_Card--showChevron_rpnal_38", "Card--isActive": "_Card--isActive_rpnal_42" };
|
|
5125
5124
|
|
|
@@ -5164,7 +5163,7 @@ var getClassNameFactory2 = (rootClass, styles, { baseClass = "" } = {}) => (opti
|
|
|
5164
5163
|
};
|
|
5165
5164
|
var get_class_name_factory_default2 = getClassNameFactory2;
|
|
5166
5165
|
|
|
5167
|
-
// css-module:/
|
|
5166
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/CardSelector/styles.module.css#css-module
|
|
5168
5167
|
init_react_import();
|
|
5169
5168
|
var styles_module_default2 = { "CardSelector": "_CardSelector_1ogry_1", "CardSelectorOption": "_CardSelectorOption_1ogry_12", "CardSelectorOption--isSelected": "_CardSelectorOption--isSelected_1ogry_23", "CardSelectorOption--disabled": "_CardSelectorOption--disabled_1ogry_27", "CardSelectorOption-description": "_CardSelectorOption-description_1ogry_31", "CardSelectorOption-body": "_CardSelectorOption-body_1ogry_35" };
|
|
5170
5169
|
|
|
@@ -5179,7 +5178,7 @@ init_react_import();
|
|
|
5179
5178
|
// ../platform-client/components/Code/Code.tsx
|
|
5180
5179
|
init_react_import();
|
|
5181
5180
|
|
|
5182
|
-
// css-module:/
|
|
5181
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Code/Code.module.css#css-module
|
|
5183
5182
|
init_react_import();
|
|
5184
5183
|
var Code_module_default = { "Code": "_Code_d4378_1", "Code-body": "_Code-body_d4378_8", "Code--light": "_Code--light_d4378_19", "Code-header": "_Code-header_d4378_34", "Code-corner": "_Code-corner_d4378_51", "Code-actions": "_Code-actions_d4378_71", "Code--lineNumbers": "_Code--lineNumbers_d4378_76", "Code-tabs": "_Code-tabs_d4378_91", "Tab": "_Tab_d4378_99", "Tab--isActive": "_Tab--isActive_d4378_104", "Tab--light": "_Tab--light_d4378_108", "Tab-button": "_Tab-button_d4378_112" };
|
|
5185
5184
|
|
|
@@ -5201,7 +5200,7 @@ init_react_import();
|
|
|
5201
5200
|
init_react_import();
|
|
5202
5201
|
var import_react14 = require("react");
|
|
5203
5202
|
|
|
5204
|
-
// css-module:/
|
|
5203
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/IconButton/IconButton.module.css#css-module
|
|
5205
5204
|
init_react_import();
|
|
5206
5205
|
var IconButton_module_default = { "IconButton": "_IconButton_thegm_1", "IconButton--disabled": "_IconButton--disabled_thegm_20", "IconButton--dark": "_IconButton--dark_thegm_26", "IconButton-title": "_IconButton-title_thegm_37" };
|
|
5207
5206
|
|
|
@@ -5215,7 +5214,7 @@ init_react_import();
|
|
|
5215
5214
|
// ../platform-client/components/InfoBar/InfoBar.tsx
|
|
5216
5215
|
init_react_import();
|
|
5217
5216
|
|
|
5218
|
-
// css-module:/
|
|
5217
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/InfoBar/InfoBar.module.css#css-module
|
|
5219
5218
|
init_react_import();
|
|
5220
5219
|
var InfoBar_module_default = { "InfoBar": "_InfoBar_kchdj_1", "Info": "_Info_kchdj_1", "Info-title": "_Info-title_kchdj_21" };
|
|
5221
5220
|
|
|
@@ -5240,7 +5239,7 @@ init_react_import();
|
|
|
5240
5239
|
// ../platform-client/components/Inline/Inline.tsx
|
|
5241
5240
|
init_react_import();
|
|
5242
5241
|
|
|
5243
|
-
// css-module:/
|
|
5242
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Inline/Inline.module.css#css-module
|
|
5244
5243
|
init_react_import();
|
|
5245
5244
|
var Inline_module_default = { "Inline": "_Inline_6o5on_3", "Inline-inner": "_Inline-inner_6o5on_7", "Inline--noWrap": "_Inline--noWrap_6o5on_12", "Inline--sizeNONE": "_Inline--sizeNONE_6o5on_16", "Inline--sizeXXS": "_Inline--sizeXXS_6o5on_20", "Inline--sizeXS": "_Inline--sizeXS_6o5on_24", "Inline--sizeS": "_Inline--sizeS_6o5on_28", "Inline--sizeM": "_Inline--sizeM_6o5on_32", "Inline--sizeL": "_Inline--sizeL_6o5on_36", "Inline--center": "_Inline--center_6o5on_40", "Inline--centerH": "_Inline--centerH_6o5on_44", "Inline--grow": "_Inline--grow_6o5on_48" };
|
|
5246
5245
|
|
|
@@ -5292,7 +5291,7 @@ init_react_import();
|
|
|
5292
5291
|
// ../platform-client/components/Link/Link.tsx
|
|
5293
5292
|
init_react_import();
|
|
5294
5293
|
|
|
5295
|
-
// css-module:/
|
|
5294
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Link/Link.module.css#css-module
|
|
5296
5295
|
init_react_import();
|
|
5297
5296
|
var Link_module_default = { "Link": "_Link_1j70m_1" };
|
|
5298
5297
|
|
|
@@ -5304,7 +5303,7 @@ var getClassName12 = get_class_name_factory_default("Link", Link_module_default)
|
|
|
5304
5303
|
init_react_import();
|
|
5305
5304
|
var import_react16 = require("react");
|
|
5306
5305
|
|
|
5307
|
-
// css-module:/
|
|
5306
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Menu/styles.module.css#css-module
|
|
5308
5307
|
init_react_import();
|
|
5309
5308
|
var styles_module_default3 = { "Menu": "_Menu_1tu16_1", "Menu-content": "_Menu-content_1tu16_6", "Menu-sections": "_Menu-sections_1tu16_11", "Menu-action": "_Menu-action_1tu16_22", "Menu-list": "_Menu-list_1tu16_44", "Menu-item": "_Menu-item_1tu16_55", "Menu-item--disabled": "_Menu-item--disabled_1tu16_83" };
|
|
5310
5309
|
|
|
@@ -7852,7 +7851,7 @@ init_react_import();
|
|
|
7852
7851
|
// ../platform-client/components/Page/Page.tsx
|
|
7853
7852
|
init_react_import();
|
|
7854
7853
|
|
|
7855
|
-
// css-module:/
|
|
7854
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Page/Page.module.css#css-module
|
|
7856
7855
|
init_react_import();
|
|
7857
7856
|
var Page_module_default = { "Page": "_Page_nkzj9_1", "Page-masthead": "_Page-masthead_nkzj9_8", "Page-crumbs": "_Page-crumbs_nkzj9_18", "Page-crumb": "_Page-crumb_nkzj9_18", "Page-crumbLink": "_Page-crumbLink_nkzj9_29", "Page-actions": "_Page-actions_nkzj9_61", "Page-footer": "_Page-footer_nkzj9_65" };
|
|
7858
7857
|
|
|
@@ -7867,7 +7866,7 @@ init_react_import();
|
|
|
7867
7866
|
init_react_import();
|
|
7868
7867
|
var import_react17 = require("react");
|
|
7869
7868
|
|
|
7870
|
-
// css-module:/
|
|
7869
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Pagination/Pagination.module.css#css-module
|
|
7871
7870
|
init_react_import();
|
|
7872
7871
|
var Pagination_module_default = { "Pagination": "_Pagination_1okv2_1", "PaginationButton": "_PaginationButton_1okv2_8", "PaginationButton--isActive": "_PaginationButton--isActive_1okv2_20", "Pagination-ellipsis": "_Pagination-ellipsis_1okv2_30" };
|
|
7873
7872
|
|
|
@@ -7879,14 +7878,14 @@ var cxButton = getClassNameFactory("PaginationButton", Pagination_module_default
|
|
|
7879
7878
|
// ../platform-client/components/PlanGrid/index.tsx
|
|
7880
7879
|
init_react_import();
|
|
7881
7880
|
|
|
7882
|
-
// css-module:/
|
|
7881
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/PlanGrid/styles.module.css#css-module
|
|
7883
7882
|
init_react_import();
|
|
7884
7883
|
var styles_module_default4 = { "PlanGrid--loading": "_PlanGrid--loading_97rn7_1", "PlanGrid-grid": "_PlanGrid-grid_97rn7_5", "PlanGrid-enterprise": "_PlanGrid-enterprise_97rn7_16" };
|
|
7885
7884
|
|
|
7886
7885
|
// ../platform-client/components/PlanCard/index.tsx
|
|
7887
7886
|
init_react_import();
|
|
7888
7887
|
|
|
7889
|
-
// css-module:/
|
|
7888
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/PlanCard/styles.module.css#css-module
|
|
7890
7889
|
init_react_import();
|
|
7891
7890
|
var styles_module_default5 = { "PlanCard": "_PlanCard_16zmu_1", "PlanCard--enterprise": "_PlanCard--enterprise_16zmu_12", "PlanCard-title": "_PlanCard-title_16zmu_17", "PlanCard-header": "_PlanCard-header_16zmu_26", "PlanCard-features": "_PlanCard-features_16zmu_35", "PlanCard-feature": "_PlanCard-feature_16zmu_35", "PlanCard-featureIcon": "_PlanCard-featureIcon_16zmu_51", "PlanCard-featureTitle": "_PlanCard-featureTitle_16zmu_56", "PlanCard-priceValue": "_PlanCard-priceValue_16zmu_61", "PlanCard-priceInterval": "_PlanCard-priceInterval_16zmu_65", "PlanCard-body": "_PlanCard-body_16zmu_69", "PlanCard-section": "_PlanCard-section_16zmu_83", "PlanCard-sectionTitle": "_PlanCard-sectionTitle_16zmu_106", "PlanCard-sectionBody": "_PlanCard-sectionBody_16zmu_112", "PlanCard-usageItem": "_PlanCard-usageItem_16zmu_125", "PlanCard-usageLabel": "_PlanCard-usageLabel_16zmu_131", "PlanCard-usageValue": "_PlanCard-usageValue_16zmu_136", "PlanCard-action": "_PlanCard-action_16zmu_142", "PlanCard-description": "_PlanCard-description_16zmu_149", "PlanCard--highlight": "_PlanCard--highlight_16zmu_154", "PlanCard-highlightText": "_PlanCard-highlightText_16zmu_184", "PlanCard--fullWidth": "_PlanCard--fullWidth_16zmu_200" };
|
|
7892
7891
|
|
|
@@ -12858,7 +12857,7 @@ init_react_import();
|
|
|
12858
12857
|
// ../platform-client/components/Section/Section.tsx
|
|
12859
12858
|
init_react_import();
|
|
12860
12859
|
|
|
12861
|
-
// css-module:/
|
|
12860
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Section/Section.module.css#css-module
|
|
12862
12861
|
init_react_import();
|
|
12863
12862
|
var Section_module_default = { "Section-inner": "_Section-inner_1uwo0_1", "Section--flush": "_Section--flush_1uwo0_8", "Section": "_Section_1uwo0_1", "Section--full": "_Section--full_1uwo0_17" };
|
|
12864
12863
|
|
|
@@ -12878,7 +12877,7 @@ init_react_import();
|
|
|
12878
12877
|
// ../platform-client/components/Tag/Tag.tsx
|
|
12879
12878
|
init_react_import();
|
|
12880
12879
|
|
|
12881
|
-
// css-module:/
|
|
12880
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Tag/Tag.module.css#css-module
|
|
12882
12881
|
init_react_import();
|
|
12883
12882
|
var Tag_module_default = { "Tag": "_Tag_s2h0n_1", "Tag--borderless": "_Tag--borderless_s2h0n_21", "Tag--colorBlue": "_Tag--colorBlue_s2h0n_25", "Tag--colorGreen": "_Tag--colorGreen_s2h0n_29", "Tag--colorRed": "_Tag--colorRed_s2h0n_33", "Tag--colorMuted": "_Tag--colorMuted_s2h0n_37", "Tag-sprite": "_Tag-sprite_s2h0n_41", "Tag--pulse": "_Tag--pulse_s2h0n_45", "pulse": "_pulse_s2h0n_1", "Tag-label": "_Tag-label_s2h0n_79" };
|
|
12884
12883
|
|
|
@@ -12931,7 +12930,7 @@ init_react_import();
|
|
|
12931
12930
|
init_react_import();
|
|
12932
12931
|
var import_react20 = require("react");
|
|
12933
12932
|
|
|
12934
|
-
// css-module:/
|
|
12933
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Table/Table.module.css#css-module
|
|
12935
12934
|
init_react_import();
|
|
12936
12935
|
var Table_module_default = { "Table": "_Table_o345u_1", "Table-filters": "_Table-filters_o345u_9", "Table-inner": "_Table-inner_o345u_13", "Table-table": "_Table-table_o345u_17", "Table--hideHeader": "_Table--hideHeader_o345u_41", "Table-footer": "_Table-footer_o345u_89", "Table--clickableRows": "_Table--clickableRows_o345u_93", "Table-placeholder": "_Table-placeholder_o345u_98", "Table-loader": "_Table-loader_o345u_110", "TableRow--highlightRow": "_TableRow--highlightRow_o345u_114" };
|
|
12937
12936
|
|
|
@@ -12949,7 +12948,7 @@ init_react_import();
|
|
|
12949
12948
|
// ../platform-client/components/VerticalSpace/VerticalSpace.tsx
|
|
12950
12949
|
init_react_import();
|
|
12951
12950
|
|
|
12952
|
-
// css-module:/
|
|
12951
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css#css-module
|
|
12953
12952
|
init_react_import();
|
|
12954
12953
|
var VerticalSpace_module_default = { "VerticalSpace": "_VerticalSpace_1tjaw_1", "VerticalSpace--size4": "_VerticalSpace--size4_1tjaw_5", "VerticalSpace--size8": "_VerticalSpace--size8_1tjaw_9", "VerticalSpace--size16": "_VerticalSpace--size16_1tjaw_13", "VerticalSpace--size32": "_VerticalSpace--size32_1tjaw_17", "VerticalSpace--size40": "_VerticalSpace--size40_1tjaw_21", "VerticalSpace--size48": "_VerticalSpace--size48_1tjaw_25", "VerticalSpace--size56": "_VerticalSpace--size56_1tjaw_29", "VerticalSpace--size96": "_VerticalSpace--size96_1tjaw_33", "VerticalSpace--size128": "_VerticalSpace--size128_1tjaw_37" };
|
|
12955
12954
|
|
|
@@ -12960,7 +12959,7 @@ var getClassName17 = get_class_name_factory_default("VerticalSpace", VerticalSpa
|
|
|
12960
12959
|
// ../platform-client/components/Viewport/index.tsx
|
|
12961
12960
|
init_react_import();
|
|
12962
12961
|
|
|
12963
|
-
// css-module:/
|
|
12962
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Viewport/styles.module.css#css-module
|
|
12964
12963
|
init_react_import();
|
|
12965
12964
|
var styles_module_default6 = { "Viewport": "_Viewport_1vvhm_3", "Viewport--standard": "_Viewport--standard_1vvhm_6", "Viewport--inline": "_Viewport--inline_1vvhm_7", "Viewport--narrow": "_Viewport--narrow_1vvhm_11", "Viewport--flex": "_Viewport--flex_1vvhm_19" };
|
|
12966
12965
|
|
|
@@ -12974,7 +12973,7 @@ var import_react21 = require("react");
|
|
|
12974
12973
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
12975
12974
|
var ctx = (0, import_react21.createContext)({});
|
|
12976
12975
|
|
|
12977
|
-
// css-module:/
|
|
12976
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/PagePlugin/styles.module.css#css-module
|
|
12978
12977
|
init_react_import();
|
|
12979
12978
|
var styles_module_default7 = { "Pages": "_Pages_ey49w_5", "Pages-addPage": "_Pages-addPage_ey49w_12", "Pages-loader": "_Pages-loader_ey49w_18", "Pages-list": "_Pages-list_ey49w_26", "Pages-search": "_Pages-search_ey49w_34", "Pages-searchInput": "_Pages-searchInput_ey49w_38", "PagesPage": "_PagesPage_ey49w_59", "PagesPage--expanded": "_PagesPage--expanded_ey49w_69", "PagesPage-versions": "_PagesPage-versions_ey49w_73", "PagesPage-header": "_PagesPage-header_ey49w_96", "PagesPage--active": "_PagesPage--active_ey49w_124", "PagesPage-headerMain": "_PagesPage-headerMain_ey49w_137", "PagesPage-headerIcon": "_PagesPage-headerIcon_ey49w_144", "PagesPage-loader": "_PagesPage-loader_ey49w_148", "PagesVersion": "_PagesVersion_ey49w_174", "PagesVersion-inner": "_PagesVersion-inner_ey49w_174", "PagesVersion--current": "_PagesVersion--current_ey49w_189", "PagesVersion-header": "_PagesVersion-header_ey49w_204", "PagesVersion-version": "_PagesVersion-version_ey49w_210", "PagesVersion-date": "_PagesVersion-date_ey49w_216" };
|
|
12980
12979
|
|
|
@@ -26938,7 +26937,7 @@ var usePagesStore = (0, import_zustand.create)((set3) => ({
|
|
|
26938
26937
|
setSearchQuery: (query) => set3({ searchQuery: query })
|
|
26939
26938
|
}));
|
|
26940
26939
|
|
|
26941
|
-
// css-module:/
|
|
26940
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/CreateForm/styles.module.css#css-module
|
|
26942
26941
|
init_react_import();
|
|
26943
26942
|
var styles_module_default8 = { "CreateForm": "_CreateForm_kkdt2_1", "CreateForm-field": "_CreateForm-field_kkdt2_5", "CreateForm-label": "_CreateForm-label_kkdt2_13", "CreateForm-input": "_CreateForm-input_kkdt2_20", "CreateForm-error": "_CreateForm-error_kkdt2_43" };
|
|
26944
26943
|
|
|
@@ -27075,7 +27074,7 @@ var useSiteId = () => (0, import_react23.useMemo)(() => {
|
|
|
27075
27074
|
// src/components/ConfirmModal/index.tsx
|
|
27076
27075
|
init_react_import();
|
|
27077
27076
|
|
|
27078
|
-
// css-module:/
|
|
27077
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/ConfirmModal/styles.module.css#css-module
|
|
27079
27078
|
init_react_import();
|
|
27080
27079
|
var styles_module_default9 = { "ConfirmModal": "_ConfirmModal_1r63q_1", "ConfirmModal-button": "_ConfirmModal-button_1r63q_5", "ConfirmModal-background": "_ConfirmModal-background_1r63q_9", "ConfirmModal-modal": "_ConfirmModal-modal_1r63q_22", "ConfirmModal-header": "_ConfirmModal-header_1r63q_33", "ConfirmModal-close": "_ConfirmModal-close_1r63q_42", "ConfirmModal-body": "_ConfirmModal-body_1r63q_65", "ConfirmModal-footer": "_ConfirmModal-footer_1r63q_71" };
|
|
27081
27080
|
|
|
@@ -29618,7 +29617,7 @@ init_react_import();
|
|
|
29618
29617
|
var import_core12 = require("@puckeditor/core");
|
|
29619
29618
|
var import_react26 = require("react");
|
|
29620
29619
|
|
|
29621
|
-
// css-module:/
|
|
29620
|
+
// css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/HeaderActions/styles.module.css#css-module
|
|
29622
29621
|
init_react_import();
|
|
29623
29622
|
var styles_module_default10 = { "HeaderActions": "_HeaderActions_1dhws_1", "HeaderActions-trigger": "_HeaderActions-trigger_1dhws_7", "HeaderActions-versionHeader": "_HeaderActions-versionHeader_1dhws_19", "HeaderActions-versionLabel": "_HeaderActions-versionLabel_1dhws_26", "HeaderActions-versionDate": "_HeaderActions-versionDate_1dhws_33" };
|
|
29624
29623
|
|
|
@@ -30096,110 +30095,9 @@ function createPagesPlugin(opts) {
|
|
|
30096
30095
|
}
|
|
30097
30096
|
};
|
|
30098
30097
|
}
|
|
30099
|
-
|
|
30100
|
-
// src/lib/get-page.ts
|
|
30101
|
-
init_react_import();
|
|
30102
|
-
|
|
30103
|
-
// api/view.ts
|
|
30104
|
-
init_react_import();
|
|
30105
|
-
|
|
30106
|
-
// api/lib/read-page.ts
|
|
30107
|
-
init_react_import();
|
|
30108
|
-
|
|
30109
|
-
// api/lib/transport.ts
|
|
30110
|
-
init_react_import();
|
|
30111
|
-
|
|
30112
|
-
// ../cloud-client/src/lib/get-api-key.ts
|
|
30113
|
-
init_react_import();
|
|
30114
|
-
var getApiKey = () => process.env.PUCK_API_KEY;
|
|
30115
|
-
|
|
30116
|
-
// api/lib/transport.ts
|
|
30117
|
-
var resolveRequestOptions = (options = {}) => {
|
|
30118
|
-
const {
|
|
30119
|
-
apiKey = getApiKey(),
|
|
30120
|
-
host = "https://cloud.puckeditor.com/api",
|
|
30121
|
-
token
|
|
30122
|
-
} = options;
|
|
30123
|
-
if (!apiKey && !token) {
|
|
30124
|
-
throw new Error(
|
|
30125
|
-
"No Puck API key specified. Set the PUCK_API_KEY environment variable, or provide one to the function"
|
|
30126
|
-
);
|
|
30127
|
-
}
|
|
30128
|
-
return {
|
|
30129
|
-
apiKey,
|
|
30130
|
-
host,
|
|
30131
|
-
token
|
|
30132
|
-
};
|
|
30133
|
-
};
|
|
30134
|
-
var assertPuckResponse = async (res) => {
|
|
30135
|
-
if (!res.body) {
|
|
30136
|
-
throw new Error(`Puck ${res.status} (${res.statusText})`);
|
|
30137
|
-
}
|
|
30138
|
-
if (!res.ok) {
|
|
30139
|
-
const body = await res.json();
|
|
30140
|
-
throw new Error(
|
|
30141
|
-
`Puck ${res.status} (${res.statusText}): ${body.error ?? "Unknown reason"}`
|
|
30142
|
-
);
|
|
30143
|
-
}
|
|
30144
|
-
};
|
|
30145
|
-
var requestPage = async (route, {
|
|
30146
|
-
path,
|
|
30147
|
-
siteId,
|
|
30148
|
-
versionId,
|
|
30149
|
-
body,
|
|
30150
|
-
method = "GET"
|
|
30151
|
-
}, options = {}) => {
|
|
30152
|
-
const { apiKey, host, token } = resolveRequestOptions(options);
|
|
30153
|
-
const searchParams = new URLSearchParams();
|
|
30154
|
-
if (method === "GET") {
|
|
30155
|
-
if (path) {
|
|
30156
|
-
searchParams.set("path", path);
|
|
30157
|
-
}
|
|
30158
|
-
if (versionId) {
|
|
30159
|
-
searchParams.set("versionId", versionId);
|
|
30160
|
-
}
|
|
30161
|
-
}
|
|
30162
|
-
const queryString = searchParams.toString();
|
|
30163
|
-
const res = await fetch(
|
|
30164
|
-
`${host}${route}${queryString ? `?${queryString}` : ""}`,
|
|
30165
|
-
{
|
|
30166
|
-
method,
|
|
30167
|
-
headers: {
|
|
30168
|
-
"x-site-id": siteId,
|
|
30169
|
-
...token ? { "x-one-time-token": token } : {},
|
|
30170
|
-
...apiKey && !token ? { "x-api-key": apiKey } : {},
|
|
30171
|
-
...body ? { "content-type": "application/json" } : {}
|
|
30172
|
-
},
|
|
30173
|
-
...body ? { body: JSON.stringify(body) } : {}
|
|
30174
|
-
}
|
|
30175
|
-
);
|
|
30176
|
-
await assertPuckResponse(res);
|
|
30177
|
-
return res;
|
|
30178
|
-
};
|
|
30179
|
-
|
|
30180
|
-
// api/lib/read-page.ts
|
|
30181
|
-
var getPublishedPage = (args, options = {}) => requestPage("/pages/published", args, options);
|
|
30182
|
-
|
|
30183
|
-
// src/lib/get-page.ts
|
|
30184
|
-
var getPage = async ({
|
|
30185
|
-
apiKey,
|
|
30186
|
-
host,
|
|
30187
|
-
path,
|
|
30188
|
-
siteId
|
|
30189
|
-
}) => {
|
|
30190
|
-
const data = await getPublishedPage(
|
|
30191
|
-
{ path, siteId },
|
|
30192
|
-
{
|
|
30193
|
-
host: `${host}/api`,
|
|
30194
|
-
apiKey
|
|
30195
|
-
}
|
|
30196
|
-
);
|
|
30197
|
-
return (await data.json()).page?.versions?.at(0)?.data ?? null;
|
|
30198
|
-
};
|
|
30199
30098
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30200
30099
|
0 && (module.exports = {
|
|
30201
|
-
createPagesPlugin
|
|
30202
|
-
getPage
|
|
30100
|
+
createPagesPlugin
|
|
30203
30101
|
});
|
|
30204
30102
|
/*! Bundled license information:
|
|
30205
30103
|
|