@puckeditor/plugin-pages 0.6.1-canary.ced08d75 → 0.6.1-canary.ee6f7b13

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.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:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Toast/Toast.module.css#css-module
4652
+ // css-module:/home/runner/work/puck-platform/puck-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:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/ActionModal/ActionModal.module.css#css-module
4713
+ // css-module:/home/runner/work/puck-platform/puck-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:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Modal/Modal.module.css#css-module
4757
+ // css-module:/home/runner/work/puck-platform/puck-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
 
@@ -4764,25 +4764,9 @@ var import_react9 = require("react");
4764
4764
  // ../platform-client/lib/use-modal-visible.ts
4765
4765
  init_react_import();
4766
4766
  var import_react7 = require("react");
4767
- var useModalVisible = ({
4768
- defaultVisible,
4769
- visible: controlledVisible,
4770
- onVisibleChange
4771
- } = {}) => {
4772
- const [uncontrolledVisible, setUncontrolledVisible] = (0, import_react7.useState)(
4773
- defaultVisible ?? false
4774
- );
4767
+ var useModalVisible = (defaultVisible) => {
4768
+ const [visible, setVisible] = (0, import_react7.useState)(defaultVisible ?? false);
4775
4769
  const ref = (0, import_react7.useRef)(null);
4776
- const visible = controlledVisible ?? uncontrolledVisible;
4777
- const setVisible = (0, import_react7.useCallback)(
4778
- (value) => {
4779
- if (controlledVisible === void 0) {
4780
- setUncontrolledVisible(value);
4781
- }
4782
- onVisibleChange?.(value);
4783
- },
4784
- [controlledVisible, onVisibleChange]
4785
- );
4786
4770
  (0, import_react7.useEffect)(() => {
4787
4771
  if (!visible) {
4788
4772
  return;
@@ -4796,7 +4780,7 @@ var useModalVisible = ({
4796
4780
  return () => {
4797
4781
  document.body.removeEventListener("click", handler);
4798
4782
  };
4799
- }, [setVisible, visible]);
4783
+ }, [visible]);
4800
4784
  return [visible, setVisible, ref];
4801
4785
  };
4802
4786
 
@@ -4807,14 +4791,14 @@ init_react_import();
4807
4791
  init_react_import();
4808
4792
  var import_react8 = require("react");
4809
4793
 
4810
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Button/Button.module.css#css-module
4794
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Button/Button.module.css#css-module
4811
4795
  init_react_import();
4812
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" };
4813
4797
 
4814
4798
  // ../platform-client/components/Loader/index.tsx
4815
4799
  init_react_import();
4816
4800
 
4817
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Loader/styles.module.css#css-module
4801
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Loader/styles.module.css#css-module
4818
4802
  init_react_import();
4819
4803
  var styles_module_default = { "Loader": "_Loader_nacdm_13", "loader-animation": "_loader-animation_nacdm_1" };
4820
4804
 
@@ -4914,22 +4898,10 @@ var modalContext = (0, import_react9.createContext)({
4914
4898
  var ModalProvider = ({
4915
4899
  children,
4916
4900
  defaultVisible,
4917
- visible,
4918
- onVisibleChange,
4919
4901
  buttonVariant = "primary"
4920
4902
  }) => {
4921
- const [resolvedVisible, setVisible, ref] = useModalVisible({
4922
- defaultVisible,
4923
- visible,
4924
- onVisibleChange
4925
- });
4926
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4927
- modalContext.Provider,
4928
- {
4929
- value: { buttonVariant, visible: resolvedVisible, setVisible, ref },
4930
- children
4931
- }
4932
- );
4903
+ const [visible, setVisible, ref] = useModalVisible(defaultVisible);
4904
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(modalContext.Provider, { value: { buttonVariant, visible, setVisible, ref }, children });
4933
4905
  };
4934
4906
  var useModal = () => {
4935
4907
  const { visible, setVisible } = (0, import_react9.useContext)(modalContext);
@@ -4947,7 +4919,8 @@ var Modal = ({
4947
4919
  {
4948
4920
  type: "button",
4949
4921
  variant: buttonVariant,
4950
- onClick: () => {
4922
+ onClick: (e2) => {
4923
+ e2.stopPropagation();
4951
4924
  setVisible(!visible);
4952
4925
  },
4953
4926
  children: actionLabel
@@ -4963,7 +4936,7 @@ init_react_import();
4963
4936
  // ../platform-client/components/Heading/Heading.tsx
4964
4937
  init_react_import();
4965
4938
 
4966
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Heading/Heading.module.css#css-module
4939
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Heading/Heading.module.css#css-module
4967
4940
  init_react_import();
4968
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" };
4969
4942
 
@@ -5017,7 +4990,7 @@ init_react_import();
5017
4990
  init_react_import();
5018
4991
  var import_react10 = __toESM(require("react"));
5019
4992
 
5020
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Align/Align.module.css#css-module
4993
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Align/Align.module.css#css-module
5021
4994
  init_react_import();
5022
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" };
5023
4996
 
@@ -5136,7 +5109,7 @@ init_react_import();
5136
5109
  var import_core2 = require("@puckeditor/core");
5137
5110
  var import_react11 = require("react");
5138
5111
 
5139
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
5112
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
5140
5113
  init_react_import();
5141
5114
  var AutoForm_module_default = { "AutoForm": "_AutoForm_1vmh9_1" };
5142
5115
 
@@ -5150,7 +5123,7 @@ init_react_import();
5150
5123
  // ../platform-client/components/Card/Card.tsx
5151
5124
  init_react_import();
5152
5125
 
5153
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Card/Card.module.css#css-module
5126
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Card/Card.module.css#css-module
5154
5127
  init_react_import();
5155
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" };
5156
5129
 
@@ -5195,7 +5168,7 @@ var getClassNameFactory2 = (rootClass, styles, { baseClass = "" } = {}) => (opti
5195
5168
  };
5196
5169
  var get_class_name_factory_default2 = getClassNameFactory2;
5197
5170
 
5198
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/CardSelector/styles.module.css#css-module
5171
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/CardSelector/styles.module.css#css-module
5199
5172
  init_react_import();
5200
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" };
5201
5174
 
@@ -5210,7 +5183,7 @@ init_react_import();
5210
5183
  // ../platform-client/components/Code/Code.tsx
5211
5184
  init_react_import();
5212
5185
 
5213
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Code/Code.module.css#css-module
5186
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Code/Code.module.css#css-module
5214
5187
  init_react_import();
5215
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" };
5216
5189
 
@@ -5232,7 +5205,7 @@ init_react_import();
5232
5205
  init_react_import();
5233
5206
  var import_react14 = require("react");
5234
5207
 
5235
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/IconButton/IconButton.module.css#css-module
5208
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/IconButton/IconButton.module.css#css-module
5236
5209
  init_react_import();
5237
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" };
5238
5211
 
@@ -5246,7 +5219,7 @@ init_react_import();
5246
5219
  // ../platform-client/components/InfoBar/InfoBar.tsx
5247
5220
  init_react_import();
5248
5221
 
5249
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/InfoBar/InfoBar.module.css#css-module
5222
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/InfoBar/InfoBar.module.css#css-module
5250
5223
  init_react_import();
5251
5224
  var InfoBar_module_default = { "InfoBar": "_InfoBar_kchdj_1", "Info": "_Info_kchdj_1", "Info-title": "_Info-title_kchdj_21" };
5252
5225
 
@@ -5271,7 +5244,7 @@ init_react_import();
5271
5244
  // ../platform-client/components/Inline/Inline.tsx
5272
5245
  init_react_import();
5273
5246
 
5274
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Inline/Inline.module.css#css-module
5247
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Inline/Inline.module.css#css-module
5275
5248
  init_react_import();
5276
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" };
5277
5250
 
@@ -5323,7 +5296,7 @@ init_react_import();
5323
5296
  // ../platform-client/components/Link/Link.tsx
5324
5297
  init_react_import();
5325
5298
 
5326
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Link/Link.module.css#css-module
5299
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Link/Link.module.css#css-module
5327
5300
  init_react_import();
5328
5301
  var Link_module_default = { "Link": "_Link_1j70m_1" };
5329
5302
 
@@ -5335,7 +5308,7 @@ var getClassName12 = get_class_name_factory_default("Link", Link_module_default)
5335
5308
  init_react_import();
5336
5309
  var import_react16 = require("react");
5337
5310
 
5338
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Menu/styles.module.css#css-module
5311
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Menu/styles.module.css#css-module
5339
5312
  init_react_import();
5340
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" };
5341
5314
 
@@ -7883,7 +7856,7 @@ init_react_import();
7883
7856
  // ../platform-client/components/Page/Page.tsx
7884
7857
  init_react_import();
7885
7858
 
7886
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Page/Page.module.css#css-module
7859
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Page/Page.module.css#css-module
7887
7860
  init_react_import();
7888
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" };
7889
7862
 
@@ -7898,7 +7871,7 @@ init_react_import();
7898
7871
  init_react_import();
7899
7872
  var import_react17 = require("react");
7900
7873
 
7901
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Pagination/Pagination.module.css#css-module
7874
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Pagination/Pagination.module.css#css-module
7902
7875
  init_react_import();
7903
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" };
7904
7877
 
@@ -7910,14 +7883,14 @@ var cxButton = getClassNameFactory("PaginationButton", Pagination_module_default
7910
7883
  // ../platform-client/components/PlanGrid/index.tsx
7911
7884
  init_react_import();
7912
7885
 
7913
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/PlanGrid/styles.module.css#css-module
7886
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/PlanGrid/styles.module.css#css-module
7914
7887
  init_react_import();
7915
7888
  var styles_module_default4 = { "PlanGrid--loading": "_PlanGrid--loading_97rn7_1", "PlanGrid-grid": "_PlanGrid-grid_97rn7_5", "PlanGrid-enterprise": "_PlanGrid-enterprise_97rn7_16" };
7916
7889
 
7917
7890
  // ../platform-client/components/PlanCard/index.tsx
7918
7891
  init_react_import();
7919
7892
 
7920
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/PlanCard/styles.module.css#css-module
7893
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/PlanCard/styles.module.css#css-module
7921
7894
  init_react_import();
7922
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" };
7923
7896
 
@@ -12889,7 +12862,7 @@ init_react_import();
12889
12862
  // ../platform-client/components/Section/Section.tsx
12890
12863
  init_react_import();
12891
12864
 
12892
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Section/Section.module.css#css-module
12865
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Section/Section.module.css#css-module
12893
12866
  init_react_import();
12894
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" };
12895
12868
 
@@ -12909,7 +12882,7 @@ init_react_import();
12909
12882
  // ../platform-client/components/Tag/Tag.tsx
12910
12883
  init_react_import();
12911
12884
 
12912
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Tag/Tag.module.css#css-module
12885
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Tag/Tag.module.css#css-module
12913
12886
  init_react_import();
12914
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" };
12915
12888
 
@@ -12962,7 +12935,7 @@ init_react_import();
12962
12935
  init_react_import();
12963
12936
  var import_react20 = require("react");
12964
12937
 
12965
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Table/Table.module.css#css-module
12938
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Table/Table.module.css#css-module
12966
12939
  init_react_import();
12967
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" };
12968
12941
 
@@ -12980,7 +12953,7 @@ init_react_import();
12980
12953
  // ../platform-client/components/VerticalSpace/VerticalSpace.tsx
12981
12954
  init_react_import();
12982
12955
 
12983
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css#css-module
12956
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css#css-module
12984
12957
  init_react_import();
12985
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" };
12986
12959
 
@@ -12991,7 +12964,7 @@ var getClassName17 = get_class_name_factory_default("VerticalSpace", VerticalSpa
12991
12964
  // ../platform-client/components/Viewport/index.tsx
12992
12965
  init_react_import();
12993
12966
 
12994
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/platform-client/components/Viewport/styles.module.css#css-module
12967
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Viewport/styles.module.css#css-module
12995
12968
  init_react_import();
12996
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" };
12997
12970
 
@@ -13005,7 +12978,7 @@ var import_react21 = require("react");
13005
12978
  var import_jsx_runtime46 = require("react/jsx-runtime");
13006
12979
  var ctx = (0, import_react21.createContext)({});
13007
12980
 
13008
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/PagePlugin/styles.module.css#css-module
12981
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-pages/src/components/PagePlugin/styles.module.css#css-module
13009
12982
  init_react_import();
13010
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" };
13011
12984
 
@@ -26969,7 +26942,7 @@ var usePagesStore = (0, import_zustand.create)((set3) => ({
26969
26942
  setSearchQuery: (query) => set3({ searchQuery: query })
26970
26943
  }));
26971
26944
 
26972
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/CreateForm/styles.module.css#css-module
26945
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-pages/src/components/CreateForm/styles.module.css#css-module
26973
26946
  init_react_import();
26974
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" };
26975
26948
 
@@ -27106,9 +27079,9 @@ var useSiteId = () => (0, import_react23.useMemo)(() => {
27106
27079
  // src/components/ConfirmModal/index.tsx
27107
27080
  init_react_import();
27108
27081
 
27109
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/ConfirmModal/styles.module.css#css-module
27082
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-pages/src/components/ConfirmModal/styles.module.css#css-module
27110
27083
  init_react_import();
27111
- var styles_module_default9 = { "ConfirmModal-close": "_ConfirmModal-close_1tbjv_1", "ConfirmModal-actions": "_ConfirmModal-actions_1tbjv_24", "ConfirmModal-body": "_ConfirmModal-body_1tbjv_29" };
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" };
27112
27085
 
27113
27086
  // src/components/ConfirmModal/index.tsx
27114
27087
  var import_jsx_runtime49 = require("react/jsx-runtime");
@@ -27121,51 +27094,44 @@ var ConfirmModal = ({
27121
27094
  title = "Unsaved changes",
27122
27095
  visible
27123
27096
  }) => {
27124
- if (!visible) {
27125
- return null;
27126
- }
27127
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
27128
- ModalProvider,
27097
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cx8(), children: visible ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
27098
+ "div",
27129
27099
  {
27130
- visible,
27131
- onVisibleChange: (nextVisible) => {
27132
- if (!nextVisible) {
27100
+ className: cx8("background"),
27101
+ onClick: (event) => {
27102
+ if (event.target === event.currentTarget) {
27133
27103
  onClose();
27134
27104
  }
27135
27105
  },
27136
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
27137
- ActionModal,
27138
- {
27139
- title,
27140
- hideButton: true,
27141
- actions: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cx8("actions"), children: [
27142
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
27143
- "button",
27144
- {
27145
- className: cx8("close"),
27146
- type: "button",
27147
- "aria-label": "Close confirmation modal",
27148
- onClick: onClose,
27149
- children: "Cancel"
27150
- }
27151
- ),
27152
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
27153
- Button,
27154
- {
27155
- type: "button",
27156
- onClick: async () => {
27157
- await onConfirm?.();
27158
- onClose();
27159
- },
27160
- children: confirmLabel
27161
- }
27162
- )
27163
- ] }),
27164
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cx8("body"), children: message2 })
27165
- }
27166
- )
27106
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cx8("modal"), children: [
27107
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cx8("header"), children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Heading, { size: "s", children: title }) }),
27108
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cx8("body"), children: message2 }),
27109
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cx8("footer"), children: [
27110
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
27111
+ "button",
27112
+ {
27113
+ className: cx8("close"),
27114
+ type: "button",
27115
+ "aria-label": "Close confirmation modal",
27116
+ onClick: onClose,
27117
+ children: "Cancel"
27118
+ }
27119
+ ),
27120
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
27121
+ Button,
27122
+ {
27123
+ type: "button",
27124
+ onClick: async () => {
27125
+ await onConfirm?.();
27126
+ onClose();
27127
+ },
27128
+ children: confirmLabel
27129
+ }
27130
+ )
27131
+ ] })
27132
+ ] })
27167
27133
  }
27168
- );
27134
+ ) : null });
27169
27135
  };
27170
27136
 
27171
27137
  // src/lib/request-token.ts
@@ -29656,9 +29622,9 @@ init_react_import();
29656
29622
  var import_core12 = require("@puckeditor/core");
29657
29623
  var import_react26 = require("react");
29658
29624
 
29659
- // css-module:/Users/chrisvilla/Projects/puck-platform/packages/plugin-pages/src/components/HeaderActions/styles.module.css#css-module
29625
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-pages/src/components/HeaderActions/styles.module.css#css-module
29660
29626
  init_react_import();
29661
- 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" };
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" };
29662
29628
 
29663
29629
  // src/components/HeaderActions/index.tsx
29664
29630
  var import_jsx_runtime51 = require("react/jsx-runtime");
@@ -30018,17 +29984,6 @@ var HeaderActions = (opts) => {
30018
29984
  title: "Unpublish page"
30019
29985
  };
30020
29986
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
30021
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
30022
- ConfirmModal,
30023
- {
30024
- visible: confirmAction !== null,
30025
- onClose: () => setConfirmAction(null),
30026
- confirmLabel: confirmConfig.confirmLabel,
30027
- message: confirmConfig.message,
30028
- onConfirm: confirmConfig.onConfirm,
30029
- title: confirmConfig.title
30030
- }
30031
- ),
30032
29987
  canvasIsDirty ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
30033
29988
  /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: cx10("version"), children: [
30034
29989
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cx10("versionHeader"), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cx10("versionLabel"), children: "Draft" }) }),
@@ -30058,7 +30013,7 @@ var HeaderActions = (opts) => {
30058
30013
  ] }),
30059
30014
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cx10("versionDate"), children: currentVersion.createdAt ? format(currentVersion.createdAt, "MMM d yyy, HH:mm") : "" })
30060
30015
  ] }) }) : null,
30061
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: cx10(), children: [
30016
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: cx10("publish"), children: [
30062
30017
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
30063
30018
  Button,
30064
30019
  {
@@ -30095,6 +30050,17 @@ var HeaderActions = (opts) => {
30095
30050
  ],
30096
30051
  children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: cx10("trigger"), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronDown, { size: 16 }) })
30097
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
+ }
30098
30064
  )
30099
30065
  ] })
30100
30066
  ] });