@puckeditor/plugin-pages 0.6.1-canary.e4418837 → 0.6.1-canary.f1d4df0c
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 +34 -34
- package/dist/index.d.mts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +49 -44
- package/dist/index.mjs +57 -52
- package/package.json +13 -13
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* css-module:/
|
|
1
|
+
/* css-module:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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:/home/runner/work/platform/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,13 +1836,13 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1836
1836
|
padding: 16px 24px;
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
1839
|
-
/* css-module:/
|
|
1840
|
-
.
|
|
1839
|
+
/* css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/HeaderActions/styles.module.css/#css-module-data */
|
|
1840
|
+
._HeaderActions-publish_7nzbl_1 {
|
|
1841
1841
|
position: relative;
|
|
1842
1842
|
display: inline-flex;
|
|
1843
1843
|
align-items: stretch;
|
|
1844
1844
|
}
|
|
1845
|
-
._HeaderActions-
|
|
1845
|
+
._HeaderActions-trigger_7nzbl_7 {
|
|
1846
1846
|
display: inline-flex;
|
|
1847
1847
|
align-items: center;
|
|
1848
1848
|
justify-content: center;
|
|
@@ -1853,19 +1853,19 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1853
1853
|
background: var(--puck-color-white);
|
|
1854
1854
|
color: var(--puck-color-grey-01);
|
|
1855
1855
|
}
|
|
1856
|
-
._HeaderActions-
|
|
1856
|
+
._HeaderActions-versionHeader_7nzbl_19 {
|
|
1857
1857
|
align-items: center;
|
|
1858
1858
|
display: flex;
|
|
1859
1859
|
gap: 8px;
|
|
1860
1860
|
height: 21px;
|
|
1861
1861
|
}
|
|
1862
|
-
._HeaderActions-
|
|
1862
|
+
._HeaderActions-versionLabel_7nzbl_26 {
|
|
1863
1863
|
font-family: var(--puck-font-family-monospaced);
|
|
1864
1864
|
font-size: var(--puck-font-size-xs);
|
|
1865
1865
|
font-weight: 600;
|
|
1866
1866
|
line-height: 1;
|
|
1867
1867
|
}
|
|
1868
|
-
._HeaderActions-
|
|
1868
|
+
._HeaderActions-versionDate_7nzbl_33 {
|
|
1869
1869
|
color: var(--puck-color-grey-06);
|
|
1870
1870
|
font-size: var(--puck-font-size-xxxs);
|
|
1871
1871
|
font-weight: 500;
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
type PagePluginOptions = {
|
|
5
|
+
host?: string;
|
|
6
|
+
siteId?: string;
|
|
7
|
+
parentOrigin?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare function createPagesPlugin(opts?: PagePluginOptions): {
|
|
11
|
+
label: string;
|
|
12
|
+
name: string;
|
|
13
|
+
render: () => react_jsx_runtime.JSX.Element;
|
|
14
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
15
|
+
overrides: {
|
|
16
|
+
headerActions: () => react_jsx_runtime.JSX.Element;
|
|
17
|
+
preview: ({ children }: {
|
|
18
|
+
children: react.ReactNode;
|
|
19
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { createPagesPlugin };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
type PagePluginOptions = {
|
|
5
|
+
host?: string;
|
|
6
|
+
siteId?: string;
|
|
7
|
+
parentOrigin?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare function createPagesPlugin(opts?: PagePluginOptions): {
|
|
11
|
+
label: string;
|
|
12
|
+
name: string;
|
|
13
|
+
render: () => react_jsx_runtime.JSX.Element;
|
|
14
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
15
|
+
overrides: {
|
|
16
|
+
headerActions: () => react_jsx_runtime.JSX.Element;
|
|
17
|
+
preview: ({ children }: {
|
|
18
|
+
children: react.ReactNode;
|
|
19
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { createPagesPlugin };
|
package/dist/index.js
CHANGED
|
@@ -4649,7 +4649,7 @@ var toastManager = index_parts_exports.createToastManager();
|
|
|
4649
4649
|
// ../platform-client/components/Toast/Toast.tsx
|
|
4650
4650
|
init_react_import();
|
|
4651
4651
|
|
|
4652
|
-
// css-module:/
|
|
4652
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Toast/Toast.module.css#css-module
|
|
4653
4653
|
init_react_import();
|
|
4654
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" };
|
|
4655
4655
|
|
|
@@ -4710,7 +4710,7 @@ init_react_import();
|
|
|
4710
4710
|
// ../platform-client/components/ActionModal/ActionModal.tsx
|
|
4711
4711
|
init_react_import();
|
|
4712
4712
|
|
|
4713
|
-
// css-module:/
|
|
4713
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/ActionModal/ActionModal.module.css#css-module
|
|
4714
4714
|
init_react_import();
|
|
4715
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" };
|
|
4716
4716
|
|
|
@@ -4754,7 +4754,7 @@ var get_class_name_factory_default = getClassNameFactory;
|
|
|
4754
4754
|
// ../platform-client/components/Modal/Modal.tsx
|
|
4755
4755
|
init_react_import();
|
|
4756
4756
|
|
|
4757
|
-
// css-module:/
|
|
4757
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Modal/Modal.module.css#css-module
|
|
4758
4758
|
init_react_import();
|
|
4759
4759
|
var Modal_module_default = { "Modal-background": "_Modal-background_1bedq_1", "Modal--visible": "_Modal--visible_1bedq_16", "Modal-modal": "_Modal-modal_1bedq_22" };
|
|
4760
4760
|
|
|
@@ -4768,6 +4768,9 @@ var useModalVisible = (defaultVisible) => {
|
|
|
4768
4768
|
const [visible, setVisible] = (0, import_react7.useState)(defaultVisible ?? false);
|
|
4769
4769
|
const ref = (0, import_react7.useRef)(null);
|
|
4770
4770
|
(0, import_react7.useEffect)(() => {
|
|
4771
|
+
if (!visible) {
|
|
4772
|
+
return;
|
|
4773
|
+
}
|
|
4771
4774
|
const handler = (e2) => {
|
|
4772
4775
|
if (ref.current && !ref.current.contains(e2.target)) {
|
|
4773
4776
|
setVisible(false);
|
|
@@ -4777,7 +4780,7 @@ var useModalVisible = (defaultVisible) => {
|
|
|
4777
4780
|
return () => {
|
|
4778
4781
|
document.body.removeEventListener("click", handler);
|
|
4779
4782
|
};
|
|
4780
|
-
}, []);
|
|
4783
|
+
}, [visible]);
|
|
4781
4784
|
return [visible, setVisible, ref];
|
|
4782
4785
|
};
|
|
4783
4786
|
|
|
@@ -4788,14 +4791,14 @@ init_react_import();
|
|
|
4788
4791
|
init_react_import();
|
|
4789
4792
|
var import_react8 = require("react");
|
|
4790
4793
|
|
|
4791
|
-
// css-module:/
|
|
4794
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Button/Button.module.css#css-module
|
|
4792
4795
|
init_react_import();
|
|
4793
4796
|
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" };
|
|
4794
4797
|
|
|
4795
4798
|
// ../platform-client/components/Loader/index.tsx
|
|
4796
4799
|
init_react_import();
|
|
4797
4800
|
|
|
4798
|
-
// css-module:/
|
|
4801
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Loader/styles.module.css#css-module
|
|
4799
4802
|
init_react_import();
|
|
4800
4803
|
var styles_module_default = { "Loader": "_Loader_nacdm_13", "loader-animation": "_loader-animation_nacdm_1" };
|
|
4801
4804
|
|
|
@@ -4914,8 +4917,10 @@ var Modal = ({
|
|
|
4914
4917
|
!hideButton && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassName3("button"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4915
4918
|
Button,
|
|
4916
4919
|
{
|
|
4920
|
+
type: "button",
|
|
4917
4921
|
variant: buttonVariant,
|
|
4918
|
-
onClick: () => {
|
|
4922
|
+
onClick: (e2) => {
|
|
4923
|
+
e2.stopPropagation();
|
|
4919
4924
|
setVisible(!visible);
|
|
4920
4925
|
},
|
|
4921
4926
|
children: actionLabel
|
|
@@ -4931,7 +4936,7 @@ init_react_import();
|
|
|
4931
4936
|
// ../platform-client/components/Heading/Heading.tsx
|
|
4932
4937
|
init_react_import();
|
|
4933
4938
|
|
|
4934
|
-
// css-module:/
|
|
4939
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Heading/Heading.module.css#css-module
|
|
4935
4940
|
init_react_import();
|
|
4936
4941
|
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" };
|
|
4937
4942
|
|
|
@@ -4985,7 +4990,7 @@ init_react_import();
|
|
|
4985
4990
|
init_react_import();
|
|
4986
4991
|
var import_react10 = __toESM(require("react"));
|
|
4987
4992
|
|
|
4988
|
-
// css-module:/
|
|
4993
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Align/Align.module.css#css-module
|
|
4989
4994
|
init_react_import();
|
|
4990
4995
|
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" };
|
|
4991
4996
|
|
|
@@ -5104,7 +5109,7 @@ init_react_import();
|
|
|
5104
5109
|
var import_core2 = require("@puckeditor/core");
|
|
5105
5110
|
var import_react11 = require("react");
|
|
5106
5111
|
|
|
5107
|
-
// css-module:/
|
|
5112
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
|
|
5108
5113
|
init_react_import();
|
|
5109
5114
|
var AutoForm_module_default = { "AutoForm": "_AutoForm_1vmh9_1" };
|
|
5110
5115
|
|
|
@@ -5118,7 +5123,7 @@ init_react_import();
|
|
|
5118
5123
|
// ../platform-client/components/Card/Card.tsx
|
|
5119
5124
|
init_react_import();
|
|
5120
5125
|
|
|
5121
|
-
// css-module:/
|
|
5126
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Card/Card.module.css#css-module
|
|
5122
5127
|
init_react_import();
|
|
5123
5128
|
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" };
|
|
5124
5129
|
|
|
@@ -5163,7 +5168,7 @@ var getClassNameFactory2 = (rootClass, styles, { baseClass = "" } = {}) => (opti
|
|
|
5163
5168
|
};
|
|
5164
5169
|
var get_class_name_factory_default2 = getClassNameFactory2;
|
|
5165
5170
|
|
|
5166
|
-
// css-module:/
|
|
5171
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/CardSelector/styles.module.css#css-module
|
|
5167
5172
|
init_react_import();
|
|
5168
5173
|
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" };
|
|
5169
5174
|
|
|
@@ -5178,7 +5183,7 @@ init_react_import();
|
|
|
5178
5183
|
// ../platform-client/components/Code/Code.tsx
|
|
5179
5184
|
init_react_import();
|
|
5180
5185
|
|
|
5181
|
-
// css-module:/
|
|
5186
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Code/Code.module.css#css-module
|
|
5182
5187
|
init_react_import();
|
|
5183
5188
|
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" };
|
|
5184
5189
|
|
|
@@ -5200,7 +5205,7 @@ init_react_import();
|
|
|
5200
5205
|
init_react_import();
|
|
5201
5206
|
var import_react14 = require("react");
|
|
5202
5207
|
|
|
5203
|
-
// css-module:/
|
|
5208
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/IconButton/IconButton.module.css#css-module
|
|
5204
5209
|
init_react_import();
|
|
5205
5210
|
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" };
|
|
5206
5211
|
|
|
@@ -5214,7 +5219,7 @@ init_react_import();
|
|
|
5214
5219
|
// ../platform-client/components/InfoBar/InfoBar.tsx
|
|
5215
5220
|
init_react_import();
|
|
5216
5221
|
|
|
5217
|
-
// css-module:/
|
|
5222
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/InfoBar/InfoBar.module.css#css-module
|
|
5218
5223
|
init_react_import();
|
|
5219
5224
|
var InfoBar_module_default = { "InfoBar": "_InfoBar_kchdj_1", "Info": "_Info_kchdj_1", "Info-title": "_Info-title_kchdj_21" };
|
|
5220
5225
|
|
|
@@ -5239,7 +5244,7 @@ init_react_import();
|
|
|
5239
5244
|
// ../platform-client/components/Inline/Inline.tsx
|
|
5240
5245
|
init_react_import();
|
|
5241
5246
|
|
|
5242
|
-
// css-module:/
|
|
5247
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Inline/Inline.module.css#css-module
|
|
5243
5248
|
init_react_import();
|
|
5244
5249
|
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" };
|
|
5245
5250
|
|
|
@@ -5291,7 +5296,7 @@ init_react_import();
|
|
|
5291
5296
|
// ../platform-client/components/Link/Link.tsx
|
|
5292
5297
|
init_react_import();
|
|
5293
5298
|
|
|
5294
|
-
// css-module:/
|
|
5299
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Link/Link.module.css#css-module
|
|
5295
5300
|
init_react_import();
|
|
5296
5301
|
var Link_module_default = { "Link": "_Link_1j70m_1" };
|
|
5297
5302
|
|
|
@@ -5303,7 +5308,7 @@ var getClassName12 = get_class_name_factory_default("Link", Link_module_default)
|
|
|
5303
5308
|
init_react_import();
|
|
5304
5309
|
var import_react16 = require("react");
|
|
5305
5310
|
|
|
5306
|
-
// css-module:/
|
|
5311
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css#css-module
|
|
5307
5312
|
init_react_import();
|
|
5308
5313
|
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" };
|
|
5309
5314
|
|
|
@@ -7851,7 +7856,7 @@ init_react_import();
|
|
|
7851
7856
|
// ../platform-client/components/Page/Page.tsx
|
|
7852
7857
|
init_react_import();
|
|
7853
7858
|
|
|
7854
|
-
// css-module:/
|
|
7859
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Page/Page.module.css#css-module
|
|
7855
7860
|
init_react_import();
|
|
7856
7861
|
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" };
|
|
7857
7862
|
|
|
@@ -7866,7 +7871,7 @@ init_react_import();
|
|
|
7866
7871
|
init_react_import();
|
|
7867
7872
|
var import_react17 = require("react");
|
|
7868
7873
|
|
|
7869
|
-
// css-module:/
|
|
7874
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Pagination/Pagination.module.css#css-module
|
|
7870
7875
|
init_react_import();
|
|
7871
7876
|
var Pagination_module_default = { "Pagination": "_Pagination_1okv2_1", "PaginationButton": "_PaginationButton_1okv2_8", "PaginationButton--isActive": "_PaginationButton--isActive_1okv2_20", "Pagination-ellipsis": "_Pagination-ellipsis_1okv2_30" };
|
|
7872
7877
|
|
|
@@ -7878,14 +7883,14 @@ var cxButton = getClassNameFactory("PaginationButton", Pagination_module_default
|
|
|
7878
7883
|
// ../platform-client/components/PlanGrid/index.tsx
|
|
7879
7884
|
init_react_import();
|
|
7880
7885
|
|
|
7881
|
-
// css-module:/
|
|
7886
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanGrid/styles.module.css#css-module
|
|
7882
7887
|
init_react_import();
|
|
7883
7888
|
var styles_module_default4 = { "PlanGrid--loading": "_PlanGrid--loading_97rn7_1", "PlanGrid-grid": "_PlanGrid-grid_97rn7_5", "PlanGrid-enterprise": "_PlanGrid-enterprise_97rn7_16" };
|
|
7884
7889
|
|
|
7885
7890
|
// ../platform-client/components/PlanCard/index.tsx
|
|
7886
7891
|
init_react_import();
|
|
7887
7892
|
|
|
7888
|
-
// css-module:/
|
|
7893
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanCard/styles.module.css#css-module
|
|
7889
7894
|
init_react_import();
|
|
7890
7895
|
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" };
|
|
7891
7896
|
|
|
@@ -12857,7 +12862,7 @@ init_react_import();
|
|
|
12857
12862
|
// ../platform-client/components/Section/Section.tsx
|
|
12858
12863
|
init_react_import();
|
|
12859
12864
|
|
|
12860
|
-
// css-module:/
|
|
12865
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Section/Section.module.css#css-module
|
|
12861
12866
|
init_react_import();
|
|
12862
12867
|
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" };
|
|
12863
12868
|
|
|
@@ -12877,7 +12882,7 @@ init_react_import();
|
|
|
12877
12882
|
// ../platform-client/components/Tag/Tag.tsx
|
|
12878
12883
|
init_react_import();
|
|
12879
12884
|
|
|
12880
|
-
// css-module:/
|
|
12885
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Tag/Tag.module.css#css-module
|
|
12881
12886
|
init_react_import();
|
|
12882
12887
|
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" };
|
|
12883
12888
|
|
|
@@ -12930,7 +12935,7 @@ init_react_import();
|
|
|
12930
12935
|
init_react_import();
|
|
12931
12936
|
var import_react20 = require("react");
|
|
12932
12937
|
|
|
12933
|
-
// css-module:/
|
|
12938
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Table/Table.module.css#css-module
|
|
12934
12939
|
init_react_import();
|
|
12935
12940
|
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" };
|
|
12936
12941
|
|
|
@@ -12948,7 +12953,7 @@ init_react_import();
|
|
|
12948
12953
|
// ../platform-client/components/VerticalSpace/VerticalSpace.tsx
|
|
12949
12954
|
init_react_import();
|
|
12950
12955
|
|
|
12951
|
-
// css-module:/
|
|
12956
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css#css-module
|
|
12952
12957
|
init_react_import();
|
|
12953
12958
|
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" };
|
|
12954
12959
|
|
|
@@ -12959,7 +12964,7 @@ var getClassName17 = get_class_name_factory_default("VerticalSpace", VerticalSpa
|
|
|
12959
12964
|
// ../platform-client/components/Viewport/index.tsx
|
|
12960
12965
|
init_react_import();
|
|
12961
12966
|
|
|
12962
|
-
// css-module:/
|
|
12967
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Viewport/styles.module.css#css-module
|
|
12963
12968
|
init_react_import();
|
|
12964
12969
|
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" };
|
|
12965
12970
|
|
|
@@ -12973,7 +12978,7 @@ var import_react21 = require("react");
|
|
|
12973
12978
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
12974
12979
|
var ctx = (0, import_react21.createContext)({});
|
|
12975
12980
|
|
|
12976
|
-
// css-module:/
|
|
12981
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/PagePlugin/styles.module.css#css-module
|
|
12977
12982
|
init_react_import();
|
|
12978
12983
|
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" };
|
|
12979
12984
|
|
|
@@ -26937,7 +26942,7 @@ var usePagesStore = (0, import_zustand.create)((set3) => ({
|
|
|
26937
26942
|
setSearchQuery: (query) => set3({ searchQuery: query })
|
|
26938
26943
|
}));
|
|
26939
26944
|
|
|
26940
|
-
// css-module:/
|
|
26945
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/CreateForm/styles.module.css#css-module
|
|
26941
26946
|
init_react_import();
|
|
26942
26947
|
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" };
|
|
26943
26948
|
|
|
@@ -27074,7 +27079,7 @@ var useSiteId = () => (0, import_react23.useMemo)(() => {
|
|
|
27074
27079
|
// src/components/ConfirmModal/index.tsx
|
|
27075
27080
|
init_react_import();
|
|
27076
27081
|
|
|
27077
|
-
// css-module:/
|
|
27082
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/ConfirmModal/styles.module.css#css-module
|
|
27078
27083
|
init_react_import();
|
|
27079
27084
|
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" };
|
|
27080
27085
|
|
|
@@ -29617,9 +29622,9 @@ init_react_import();
|
|
|
29617
29622
|
var import_core12 = require("@puckeditor/core");
|
|
29618
29623
|
var import_react26 = require("react");
|
|
29619
29624
|
|
|
29620
|
-
// css-module:/
|
|
29625
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/HeaderActions/styles.module.css#css-module
|
|
29621
29626
|
init_react_import();
|
|
29622
|
-
var styles_module_default10 = { "HeaderActions": "
|
|
29627
|
+
var styles_module_default10 = { "HeaderActions-publish": "_HeaderActions-publish_7nzbl_1", "HeaderActions-trigger": "_HeaderActions-trigger_7nzbl_7", "HeaderActions-versionHeader": "_HeaderActions-versionHeader_7nzbl_19", "HeaderActions-versionLabel": "_HeaderActions-versionLabel_7nzbl_26", "HeaderActions-versionDate": "_HeaderActions-versionDate_7nzbl_33" };
|
|
29623
29628
|
|
|
29624
29629
|
// src/components/HeaderActions/index.tsx
|
|
29625
29630
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
@@ -29979,17 +29984,6 @@ var HeaderActions = (opts) => {
|
|
|
29979
29984
|
title: "Unpublish page"
|
|
29980
29985
|
};
|
|
29981
29986
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
29982
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
29983
|
-
ConfirmModal,
|
|
29984
|
-
{
|
|
29985
|
-
visible: confirmAction !== null,
|
|
29986
|
-
onClose: () => setConfirmAction(null),
|
|
29987
|
-
confirmLabel: confirmConfig.confirmLabel,
|
|
29988
|
-
message: confirmConfig.message,
|
|
29989
|
-
onConfirm: confirmConfig.onConfirm,
|
|
29990
|
-
title: confirmConfig.title
|
|
29991
|
-
}
|
|
29992
|
-
),
|
|
29993
29987
|
canvasIsDirty ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
29994
29988
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: cx10("version"), children: [
|
|
29995
29989
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cx10("versionHeader"), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cx10("versionLabel"), children: "Draft" }) }),
|
|
@@ -30019,7 +30013,7 @@ var HeaderActions = (opts) => {
|
|
|
30019
30013
|
] }),
|
|
30020
30014
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cx10("versionDate"), children: currentVersion.createdAt ? format(currentVersion.createdAt, "MMM d yyy, HH:mm") : "" })
|
|
30021
30015
|
] }) }) : null,
|
|
30022
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: cx10(), children: [
|
|
30016
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: cx10("publish"), children: [
|
|
30023
30017
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
30024
30018
|
Button,
|
|
30025
30019
|
{
|
|
@@ -30056,6 +30050,17 @@ var HeaderActions = (opts) => {
|
|
|
30056
30050
|
],
|
|
30057
30051
|
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: cx10("trigger"), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronDown, { size: 16 }) })
|
|
30058
30052
|
}
|
|
30053
|
+
),
|
|
30054
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
30055
|
+
ConfirmModal,
|
|
30056
|
+
{
|
|
30057
|
+
visible: confirmAction !== null,
|
|
30058
|
+
onClose: () => setConfirmAction(null),
|
|
30059
|
+
confirmLabel: confirmConfig.confirmLabel,
|
|
30060
|
+
message: confirmConfig.message,
|
|
30061
|
+
onConfirm: confirmConfig.onConfirm,
|
|
30062
|
+
title: confirmConfig.title
|
|
30063
|
+
}
|
|
30059
30064
|
)
|
|
30060
30065
|
] })
|
|
30061
30066
|
] });
|
package/dist/index.mjs
CHANGED
|
@@ -4641,7 +4641,7 @@ var toastManager = index_parts_exports.createToastManager();
|
|
|
4641
4641
|
// ../platform-client/components/Toast/Toast.tsx
|
|
4642
4642
|
init_react_import();
|
|
4643
4643
|
|
|
4644
|
-
// css-module:/
|
|
4644
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Toast/Toast.module.css#css-module
|
|
4645
4645
|
init_react_import();
|
|
4646
4646
|
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" };
|
|
4647
4647
|
|
|
@@ -4702,7 +4702,7 @@ init_react_import();
|
|
|
4702
4702
|
// ../platform-client/components/ActionModal/ActionModal.tsx
|
|
4703
4703
|
init_react_import();
|
|
4704
4704
|
|
|
4705
|
-
// css-module:/
|
|
4705
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/ActionModal/ActionModal.module.css#css-module
|
|
4706
4706
|
init_react_import();
|
|
4707
4707
|
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" };
|
|
4708
4708
|
|
|
@@ -4746,7 +4746,7 @@ var get_class_name_factory_default = getClassNameFactory;
|
|
|
4746
4746
|
// ../platform-client/components/Modal/Modal.tsx
|
|
4747
4747
|
init_react_import();
|
|
4748
4748
|
|
|
4749
|
-
// css-module:/
|
|
4749
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Modal/Modal.module.css#css-module
|
|
4750
4750
|
init_react_import();
|
|
4751
4751
|
var Modal_module_default = { "Modal-background": "_Modal-background_1bedq_1", "Modal--visible": "_Modal--visible_1bedq_16", "Modal-modal": "_Modal-modal_1bedq_22" };
|
|
4752
4752
|
|
|
@@ -4760,6 +4760,9 @@ var useModalVisible = (defaultVisible) => {
|
|
|
4760
4760
|
const [visible, setVisible] = useState7(defaultVisible ?? false);
|
|
4761
4761
|
const ref = useRef8(null);
|
|
4762
4762
|
useEffect9(() => {
|
|
4763
|
+
if (!visible) {
|
|
4764
|
+
return;
|
|
4765
|
+
}
|
|
4763
4766
|
const handler = (e2) => {
|
|
4764
4767
|
if (ref.current && !ref.current.contains(e2.target)) {
|
|
4765
4768
|
setVisible(false);
|
|
@@ -4769,7 +4772,7 @@ var useModalVisible = (defaultVisible) => {
|
|
|
4769
4772
|
return () => {
|
|
4770
4773
|
document.body.removeEventListener("click", handler);
|
|
4771
4774
|
};
|
|
4772
|
-
}, []);
|
|
4775
|
+
}, [visible]);
|
|
4773
4776
|
return [visible, setVisible, ref];
|
|
4774
4777
|
};
|
|
4775
4778
|
|
|
@@ -4780,14 +4783,14 @@ init_react_import();
|
|
|
4780
4783
|
init_react_import();
|
|
4781
4784
|
import { useEffect as useEffect10, useState as useState8 } from "react";
|
|
4782
4785
|
|
|
4783
|
-
// css-module:/
|
|
4786
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Button/Button.module.css#css-module
|
|
4784
4787
|
init_react_import();
|
|
4785
4788
|
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" };
|
|
4786
4789
|
|
|
4787
4790
|
// ../platform-client/components/Loader/index.tsx
|
|
4788
4791
|
init_react_import();
|
|
4789
4792
|
|
|
4790
|
-
// css-module:/
|
|
4793
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Loader/styles.module.css#css-module
|
|
4791
4794
|
init_react_import();
|
|
4792
4795
|
var styles_module_default = { "Loader": "_Loader_nacdm_13", "loader-animation": "_loader-animation_nacdm_1" };
|
|
4793
4796
|
|
|
@@ -4906,8 +4909,10 @@ var Modal = ({
|
|
|
4906
4909
|
!hideButton && /* @__PURE__ */ jsx5("div", { className: getClassName3("button"), children: /* @__PURE__ */ jsx5(
|
|
4907
4910
|
Button,
|
|
4908
4911
|
{
|
|
4912
|
+
type: "button",
|
|
4909
4913
|
variant: buttonVariant,
|
|
4910
|
-
onClick: () => {
|
|
4914
|
+
onClick: (e2) => {
|
|
4915
|
+
e2.stopPropagation();
|
|
4911
4916
|
setVisible(!visible);
|
|
4912
4917
|
},
|
|
4913
4918
|
children: actionLabel
|
|
@@ -4923,7 +4928,7 @@ init_react_import();
|
|
|
4923
4928
|
// ../platform-client/components/Heading/Heading.tsx
|
|
4924
4929
|
init_react_import();
|
|
4925
4930
|
|
|
4926
|
-
// css-module:/
|
|
4931
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Heading/Heading.module.css#css-module
|
|
4927
4932
|
init_react_import();
|
|
4928
4933
|
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" };
|
|
4929
4934
|
|
|
@@ -4977,7 +4982,7 @@ init_react_import();
|
|
|
4977
4982
|
init_react_import();
|
|
4978
4983
|
import React29 from "react";
|
|
4979
4984
|
|
|
4980
|
-
// css-module:/
|
|
4985
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Align/Align.module.css#css-module
|
|
4981
4986
|
init_react_import();
|
|
4982
4987
|
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" };
|
|
4983
4988
|
|
|
@@ -5094,9 +5099,9 @@ init_react_import();
|
|
|
5094
5099
|
// ../platform-client/components/AutoForm/AutoForm.tsx
|
|
5095
5100
|
init_react_import();
|
|
5096
5101
|
import { AutoField, FieldLabel } from "@puckeditor/core";
|
|
5097
|
-
import { useEffect as useEffect11, useState as useState9 } from "react";
|
|
5102
|
+
import { useEffect as useEffect11, useRef as useRef9, useState as useState9 } from "react";
|
|
5098
5103
|
|
|
5099
|
-
// css-module:/
|
|
5104
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
|
|
5100
5105
|
init_react_import();
|
|
5101
5106
|
var AutoForm_module_default = { "AutoForm": "_AutoForm_1vmh9_1" };
|
|
5102
5107
|
|
|
@@ -5110,7 +5115,7 @@ init_react_import();
|
|
|
5110
5115
|
// ../platform-client/components/Card/Card.tsx
|
|
5111
5116
|
init_react_import();
|
|
5112
5117
|
|
|
5113
|
-
// css-module:/
|
|
5118
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Card/Card.module.css#css-module
|
|
5114
5119
|
init_react_import();
|
|
5115
5120
|
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" };
|
|
5116
5121
|
|
|
@@ -5155,7 +5160,7 @@ var getClassNameFactory2 = (rootClass, styles, { baseClass = "" } = {}) => (opti
|
|
|
5155
5160
|
};
|
|
5156
5161
|
var get_class_name_factory_default2 = getClassNameFactory2;
|
|
5157
5162
|
|
|
5158
|
-
// css-module:/
|
|
5163
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/CardSelector/styles.module.css#css-module
|
|
5159
5164
|
init_react_import();
|
|
5160
5165
|
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" };
|
|
5161
5166
|
|
|
@@ -5170,7 +5175,7 @@ init_react_import();
|
|
|
5170
5175
|
// ../platform-client/components/Code/Code.tsx
|
|
5171
5176
|
init_react_import();
|
|
5172
5177
|
|
|
5173
|
-
// css-module:/
|
|
5178
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Code/Code.module.css#css-module
|
|
5174
5179
|
init_react_import();
|
|
5175
5180
|
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" };
|
|
5176
5181
|
|
|
@@ -5180,7 +5185,7 @@ import { useEffect as useEffect12, useState as useState10 } from "react";
|
|
|
5180
5185
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
5181
5186
|
|
|
5182
5187
|
// ../platform-client/components/Code/Code.tsx
|
|
5183
|
-
import { useRef as
|
|
5188
|
+
import { useRef as useRef10, useState as useState11 } from "react";
|
|
5184
5189
|
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
5185
5190
|
var getClassName9 = get_class_name_factory_default2("Code", Code_module_default);
|
|
5186
5191
|
var getClassNameTab = get_class_name_factory_default2("Tab", Code_module_default);
|
|
@@ -5192,7 +5197,7 @@ init_react_import();
|
|
|
5192
5197
|
init_react_import();
|
|
5193
5198
|
import { useState as useState12 } from "react";
|
|
5194
5199
|
|
|
5195
|
-
// css-module:/
|
|
5200
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/IconButton/IconButton.module.css#css-module
|
|
5196
5201
|
init_react_import();
|
|
5197
5202
|
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" };
|
|
5198
5203
|
|
|
@@ -5206,7 +5211,7 @@ init_react_import();
|
|
|
5206
5211
|
// ../platform-client/components/InfoBar/InfoBar.tsx
|
|
5207
5212
|
init_react_import();
|
|
5208
5213
|
|
|
5209
|
-
// css-module:/
|
|
5214
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/InfoBar/InfoBar.module.css#css-module
|
|
5210
5215
|
init_react_import();
|
|
5211
5216
|
var InfoBar_module_default = { "InfoBar": "_InfoBar_kchdj_1", "Info": "_Info_kchdj_1", "Info-title": "_Info-title_kchdj_21" };
|
|
5212
5217
|
|
|
@@ -5231,7 +5236,7 @@ init_react_import();
|
|
|
5231
5236
|
// ../platform-client/components/Inline/Inline.tsx
|
|
5232
5237
|
init_react_import();
|
|
5233
5238
|
|
|
5234
|
-
// css-module:/
|
|
5239
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Inline/Inline.module.css#css-module
|
|
5235
5240
|
init_react_import();
|
|
5236
5241
|
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" };
|
|
5237
5242
|
|
|
@@ -5283,7 +5288,7 @@ init_react_import();
|
|
|
5283
5288
|
// ../platform-client/components/Link/Link.tsx
|
|
5284
5289
|
init_react_import();
|
|
5285
5290
|
|
|
5286
|
-
// css-module:/
|
|
5291
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Link/Link.module.css#css-module
|
|
5287
5292
|
init_react_import();
|
|
5288
5293
|
var Link_module_default = { "Link": "_Link_1j70m_1" };
|
|
5289
5294
|
|
|
@@ -5295,7 +5300,7 @@ var getClassName12 = get_class_name_factory_default("Link", Link_module_default)
|
|
|
5295
5300
|
init_react_import();
|
|
5296
5301
|
import { useState as useState25 } from "react";
|
|
5297
5302
|
|
|
5298
|
-
// css-module:/
|
|
5303
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css#css-module
|
|
5299
5304
|
init_react_import();
|
|
5300
5305
|
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" };
|
|
5301
5306
|
|
|
@@ -7843,7 +7848,7 @@ init_react_import();
|
|
|
7843
7848
|
// ../platform-client/components/Page/Page.tsx
|
|
7844
7849
|
init_react_import();
|
|
7845
7850
|
|
|
7846
|
-
// css-module:/
|
|
7851
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Page/Page.module.css#css-module
|
|
7847
7852
|
init_react_import();
|
|
7848
7853
|
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" };
|
|
7849
7854
|
|
|
@@ -7858,7 +7863,7 @@ init_react_import();
|
|
|
7858
7863
|
init_react_import();
|
|
7859
7864
|
import { useMemo as useMemo17 } from "react";
|
|
7860
7865
|
|
|
7861
|
-
// css-module:/
|
|
7866
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Pagination/Pagination.module.css#css-module
|
|
7862
7867
|
init_react_import();
|
|
7863
7868
|
var Pagination_module_default = { "Pagination": "_Pagination_1okv2_1", "PaginationButton": "_PaginationButton_1okv2_8", "PaginationButton--isActive": "_PaginationButton--isActive_1okv2_20", "Pagination-ellipsis": "_Pagination-ellipsis_1okv2_30" };
|
|
7864
7869
|
|
|
@@ -7870,14 +7875,14 @@ var cxButton = getClassNameFactory("PaginationButton", Pagination_module_default
|
|
|
7870
7875
|
// ../platform-client/components/PlanGrid/index.tsx
|
|
7871
7876
|
init_react_import();
|
|
7872
7877
|
|
|
7873
|
-
// css-module:/
|
|
7878
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanGrid/styles.module.css#css-module
|
|
7874
7879
|
init_react_import();
|
|
7875
7880
|
var styles_module_default4 = { "PlanGrid--loading": "_PlanGrid--loading_97rn7_1", "PlanGrid-grid": "_PlanGrid-grid_97rn7_5", "PlanGrid-enterprise": "_PlanGrid-enterprise_97rn7_16" };
|
|
7876
7881
|
|
|
7877
7882
|
// ../platform-client/components/PlanCard/index.tsx
|
|
7878
7883
|
init_react_import();
|
|
7879
7884
|
|
|
7880
|
-
// css-module:/
|
|
7885
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanCard/styles.module.css#css-module
|
|
7881
7886
|
init_react_import();
|
|
7882
7887
|
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" };
|
|
7883
7888
|
|
|
@@ -12849,7 +12854,7 @@ init_react_import();
|
|
|
12849
12854
|
// ../platform-client/components/Section/Section.tsx
|
|
12850
12855
|
init_react_import();
|
|
12851
12856
|
|
|
12852
|
-
// css-module:/
|
|
12857
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Section/Section.module.css#css-module
|
|
12853
12858
|
init_react_import();
|
|
12854
12859
|
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" };
|
|
12855
12860
|
|
|
@@ -12869,7 +12874,7 @@ init_react_import();
|
|
|
12869
12874
|
// ../platform-client/components/Tag/Tag.tsx
|
|
12870
12875
|
init_react_import();
|
|
12871
12876
|
|
|
12872
|
-
// css-module:/
|
|
12877
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Tag/Tag.module.css#css-module
|
|
12873
12878
|
init_react_import();
|
|
12874
12879
|
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" };
|
|
12875
12880
|
|
|
@@ -12920,9 +12925,9 @@ init_react_import();
|
|
|
12920
12925
|
|
|
12921
12926
|
// ../platform-client/components/Table/Table.tsx
|
|
12922
12927
|
init_react_import();
|
|
12923
|
-
import { useEffect as useEffect28, useMemo as useMemo19, useRef as
|
|
12928
|
+
import { useEffect as useEffect28, useMemo as useMemo19, useRef as useRef21, useState as useState27 } from "react";
|
|
12924
12929
|
|
|
12925
|
-
// css-module:/
|
|
12930
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Table/Table.module.css#css-module
|
|
12926
12931
|
init_react_import();
|
|
12927
12932
|
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" };
|
|
12928
12933
|
|
|
@@ -12940,7 +12945,7 @@ init_react_import();
|
|
|
12940
12945
|
// ../platform-client/components/VerticalSpace/VerticalSpace.tsx
|
|
12941
12946
|
init_react_import();
|
|
12942
12947
|
|
|
12943
|
-
// css-module:/
|
|
12948
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css#css-module
|
|
12944
12949
|
init_react_import();
|
|
12945
12950
|
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" };
|
|
12946
12951
|
|
|
@@ -12951,7 +12956,7 @@ var getClassName17 = get_class_name_factory_default("VerticalSpace", VerticalSpa
|
|
|
12951
12956
|
// ../platform-client/components/Viewport/index.tsx
|
|
12952
12957
|
init_react_import();
|
|
12953
12958
|
|
|
12954
|
-
// css-module:/
|
|
12959
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Viewport/styles.module.css#css-module
|
|
12955
12960
|
init_react_import();
|
|
12956
12961
|
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" };
|
|
12957
12962
|
|
|
@@ -12965,12 +12970,12 @@ import { createContext as createContext9, useContext as useContext10, useState a
|
|
|
12965
12970
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
12966
12971
|
var ctx = createContext9({});
|
|
12967
12972
|
|
|
12968
|
-
// css-module:/
|
|
12973
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/PagePlugin/styles.module.css#css-module
|
|
12969
12974
|
init_react_import();
|
|
12970
12975
|
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" };
|
|
12971
12976
|
|
|
12972
12977
|
// src/components/PagePlugin/index.tsx
|
|
12973
|
-
import { useCallback as useCallback9, useEffect as useEffect29, useMemo as useMemo22, useRef as
|
|
12978
|
+
import { useCallback as useCallback9, useEffect as useEffect29, useMemo as useMemo22, useRef as useRef22, useState as useState30 } from "react";
|
|
12974
12979
|
import { resolveAllData as resolveAllData2, useGetPuck as useGetPuck2 } from "@puckeditor/core";
|
|
12975
12980
|
|
|
12976
12981
|
// src/components/CreateForm/index.tsx
|
|
@@ -26929,7 +26934,7 @@ var usePagesStore = create((set3) => ({
|
|
|
26929
26934
|
setSearchQuery: (query) => set3({ searchQuery: query })
|
|
26930
26935
|
}));
|
|
26931
26936
|
|
|
26932
|
-
// css-module:/
|
|
26937
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/CreateForm/styles.module.css#css-module
|
|
26933
26938
|
init_react_import();
|
|
26934
26939
|
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" };
|
|
26935
26940
|
|
|
@@ -27066,7 +27071,7 @@ var useSiteId = () => useMemo20(() => {
|
|
|
27066
27071
|
// src/components/ConfirmModal/index.tsx
|
|
27067
27072
|
init_react_import();
|
|
27068
27073
|
|
|
27069
|
-
// css-module:/
|
|
27074
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/ConfirmModal/styles.module.css#css-module
|
|
27070
27075
|
init_react_import();
|
|
27071
27076
|
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" };
|
|
27072
27077
|
|
|
@@ -29277,7 +29282,7 @@ var PagePlugin = (opts) => {
|
|
|
29277
29282
|
const getPuck = useGetPuck2();
|
|
29278
29283
|
const [confirmModalOpen, setConfirmModalOpen] = useState30(false);
|
|
29279
29284
|
const [pendingNavigation, setPendingNavigation] = useState30(null);
|
|
29280
|
-
const lastRequestedPathRef =
|
|
29285
|
+
const lastRequestedPathRef = useRef22(void 0);
|
|
29281
29286
|
const parentOrigin = opts?.parentOrigin ?? "https://cloud.puckeditor.com";
|
|
29282
29287
|
const siteIdHeader = useSiteId();
|
|
29283
29288
|
const path = usePath();
|
|
@@ -29607,11 +29612,11 @@ var PagePlugin = (opts) => {
|
|
|
29607
29612
|
// src/components/HeaderActions/index.tsx
|
|
29608
29613
|
init_react_import();
|
|
29609
29614
|
import { createUsePuck, useGetPuck as useGetPuck3 } from "@puckeditor/core";
|
|
29610
|
-
import { useMemo as useMemo23, useRef as
|
|
29615
|
+
import { useMemo as useMemo23, useRef as useRef23, useState as useState31 } from "react";
|
|
29611
29616
|
|
|
29612
|
-
// css-module:/
|
|
29617
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-pages/src/components/HeaderActions/styles.module.css#css-module
|
|
29613
29618
|
init_react_import();
|
|
29614
|
-
var styles_module_default10 = { "HeaderActions": "
|
|
29619
|
+
var styles_module_default10 = { "HeaderActions-publish": "_HeaderActions-publish_7nzbl_1", "HeaderActions-trigger": "_HeaderActions-trigger_7nzbl_7", "HeaderActions-versionHeader": "_HeaderActions-versionHeader_7nzbl_19", "HeaderActions-versionLabel": "_HeaderActions-versionLabel_7nzbl_26", "HeaderActions-versionDate": "_HeaderActions-versionDate_7nzbl_33" };
|
|
29615
29620
|
|
|
29616
29621
|
// src/components/HeaderActions/index.tsx
|
|
29617
29622
|
import { Fragment as Fragment9, jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
@@ -29803,7 +29808,7 @@ var HeaderActions = (opts) => {
|
|
|
29803
29808
|
const defaultVersion = getDefaultPageVersion(resolvedPage);
|
|
29804
29809
|
replaceEditorState(defaultVersion?.data);
|
|
29805
29810
|
};
|
|
29806
|
-
const saving =
|
|
29811
|
+
const saving = useRef23(false);
|
|
29807
29812
|
const handleSaveDraft = async () => {
|
|
29808
29813
|
if (saving.current) return;
|
|
29809
29814
|
const path = activePage;
|
|
@@ -29840,7 +29845,7 @@ var HeaderActions = (opts) => {
|
|
|
29840
29845
|
saving.current = false;
|
|
29841
29846
|
}
|
|
29842
29847
|
};
|
|
29843
|
-
const publishing =
|
|
29848
|
+
const publishing = useRef23(false);
|
|
29844
29849
|
const handlePublish = async () => {
|
|
29845
29850
|
if (publishing.current) return;
|
|
29846
29851
|
const path = activePage;
|
|
@@ -29971,17 +29976,6 @@ var HeaderActions = (opts) => {
|
|
|
29971
29976
|
title: "Unpublish page"
|
|
29972
29977
|
};
|
|
29973
29978
|
return /* @__PURE__ */ jsxs22(Fragment9, { children: [
|
|
29974
|
-
/* @__PURE__ */ jsx44(
|
|
29975
|
-
ConfirmModal,
|
|
29976
|
-
{
|
|
29977
|
-
visible: confirmAction !== null,
|
|
29978
|
-
onClose: () => setConfirmAction(null),
|
|
29979
|
-
confirmLabel: confirmConfig.confirmLabel,
|
|
29980
|
-
message: confirmConfig.message,
|
|
29981
|
-
onConfirm: confirmConfig.onConfirm,
|
|
29982
|
-
title: confirmConfig.title
|
|
29983
|
-
}
|
|
29984
|
-
),
|
|
29985
29979
|
canvasIsDirty ? /* @__PURE__ */ jsxs22(Fragment9, { children: [
|
|
29986
29980
|
/* @__PURE__ */ jsxs22("div", { className: cx10("version"), children: [
|
|
29987
29981
|
/* @__PURE__ */ jsx44("div", { className: cx10("versionHeader"), children: /* @__PURE__ */ jsx44("div", { className: cx10("versionLabel"), children: "Draft" }) }),
|
|
@@ -30011,7 +30005,7 @@ var HeaderActions = (opts) => {
|
|
|
30011
30005
|
] }),
|
|
30012
30006
|
/* @__PURE__ */ jsx44("div", { className: cx10("versionDate"), children: currentVersion.createdAt ? format(currentVersion.createdAt, "MMM d yyy, HH:mm") : "" })
|
|
30013
30007
|
] }) }) : null,
|
|
30014
|
-
/* @__PURE__ */ jsxs22("div", { className: cx10(), children: [
|
|
30008
|
+
/* @__PURE__ */ jsxs22("div", { className: cx10("publish"), children: [
|
|
30015
30009
|
/* @__PURE__ */ jsx44(
|
|
30016
30010
|
Button,
|
|
30017
30011
|
{
|
|
@@ -30048,6 +30042,17 @@ var HeaderActions = (opts) => {
|
|
|
30048
30042
|
],
|
|
30049
30043
|
children: /* @__PURE__ */ jsx44("span", { className: cx10("trigger"), children: /* @__PURE__ */ jsx44(ChevronDown, { size: 16 }) })
|
|
30050
30044
|
}
|
|
30045
|
+
),
|
|
30046
|
+
/* @__PURE__ */ jsx44(
|
|
30047
|
+
ConfirmModal,
|
|
30048
|
+
{
|
|
30049
|
+
visible: confirmAction !== null,
|
|
30050
|
+
onClose: () => setConfirmAction(null),
|
|
30051
|
+
confirmLabel: confirmConfig.confirmLabel,
|
|
30052
|
+
message: confirmConfig.message,
|
|
30053
|
+
onConfirm: confirmConfig.onConfirm,
|
|
30054
|
+
title: confirmConfig.title
|
|
30055
|
+
}
|
|
30051
30056
|
)
|
|
30052
30057
|
] })
|
|
30053
30058
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/plugin-pages",
|
|
3
|
-
"version": "0.6.1-canary.
|
|
3
|
+
"version": "0.6.1-canary.f1d4df0c",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": "puckeditor/puck",
|
|
6
6
|
"bugs": "https://github.com/puckeditor/puck/issues",
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"./styles.css": "./dist/index.css"
|
|
20
20
|
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"lint": "eslint \"**/*.ts*\"",
|
|
23
|
+
"build": "rm -rf dist && tsup index.ts",
|
|
24
|
+
"dev": "tsup index.ts --watch src",
|
|
25
|
+
"test": "vitest run --config vitest.config.ts"
|
|
26
|
+
},
|
|
21
27
|
"files": [
|
|
22
28
|
"dist"
|
|
23
29
|
],
|
|
@@ -25,6 +31,7 @@
|
|
|
25
31
|
"zustand": "^5.0.8"
|
|
26
32
|
},
|
|
27
33
|
"devDependencies": {
|
|
34
|
+
"@puckeditor/platform-types": "workspace:*",
|
|
28
35
|
"@radix-ui/react-popover": "^1.1.15",
|
|
29
36
|
"@testing-library/dom": "^10.4.1",
|
|
30
37
|
"@testing-library/react": "^16.3.2",
|
|
@@ -34,27 +41,20 @@
|
|
|
34
41
|
"@types/react-dom": "^19.1.6",
|
|
35
42
|
"date-fns": "^4.1.0",
|
|
36
43
|
"eslint": "^7.32.0",
|
|
44
|
+
"eslint-config-custom": "workspace:*",
|
|
37
45
|
"fast-equals": "^6.0.0",
|
|
38
46
|
"jsdom": "^28.1.0",
|
|
39
47
|
"lucide-react": "^0.452.0",
|
|
48
|
+
"tsconfig": "workspace:*",
|
|
40
49
|
"tsup": "^8.2.4",
|
|
50
|
+
"tsup-config": "workspace:*",
|
|
41
51
|
"typescript": "^5.5.4",
|
|
42
52
|
"vite-tsconfig-paths": "^5.1.4",
|
|
43
53
|
"vitest": "^3.2.4",
|
|
44
|
-
"zod": "^4.1.9"
|
|
45
|
-
"tsup-config": "0.6.1-canary.e4418837",
|
|
46
|
-
"@puckeditor/platform-types": "0.6.1-canary.e4418837",
|
|
47
|
-
"eslint-config-custom": "0.6.1-canary.e4418837",
|
|
48
|
-
"tsconfig": "0.6.1-canary.e4418837"
|
|
54
|
+
"zod": "^4.1.9"
|
|
49
55
|
},
|
|
50
56
|
"peerDependencies": {
|
|
51
57
|
"@puckeditor/core": "^0.21.0 || 0.21.0-canary.de0baf39",
|
|
52
58
|
"react": "^18.0.0 || ^19.0.0"
|
|
53
|
-
},
|
|
54
|
-
"scripts": {
|
|
55
|
-
"lint": "eslint \"**/*.ts*\"",
|
|
56
|
-
"build": "rm -rf dist && tsup index.ts",
|
|
57
|
-
"dev": "tsup index.ts --watch src",
|
|
58
|
-
"test": "vitest run --config vitest.config.ts"
|
|
59
59
|
}
|
|
60
|
-
}
|
|
60
|
+
}
|