@puckeditor/plugin-pages 0.10.0-canary.e516c08f → 0.10.1-canary.0cc8f843
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 +59 -7
- package/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +6513 -823
- package/dist/index.mjs +6492 -802
- package/package.json +4 -4
package/dist/index.css
CHANGED
|
@@ -628,6 +628,53 @@ p {
|
|
|
628
628
|
padding: 0px !important;
|
|
629
629
|
}
|
|
630
630
|
|
|
631
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Callout/styles.module.css/#css-module-data */
|
|
632
|
+
._Callout_xnl9p_1 {
|
|
633
|
+
align-items: baseline;
|
|
634
|
+
border: var(--_puck-platform-callout-border, 1px solid);
|
|
635
|
+
border-radius: var(--_puck-platform-callout-radius, 8px);
|
|
636
|
+
display: flex;
|
|
637
|
+
font-size: var(--_puck-platform-callout-font-size, var(--puck-font-size-xxs));
|
|
638
|
+
gap: 8px;
|
|
639
|
+
line-height: var(--_puck-platform-callout-line-height, 20px);
|
|
640
|
+
padding: 12px 16px;
|
|
641
|
+
}
|
|
642
|
+
._Callout-icon_xnl9p_12 {
|
|
643
|
+
--icon-size: 16px;
|
|
644
|
+
flex-shrink: 0;
|
|
645
|
+
}
|
|
646
|
+
._Callout-icon_xnl9p_12 > svg {
|
|
647
|
+
display: inline;
|
|
648
|
+
height: var(--icon-size);
|
|
649
|
+
width: var(--icon-size);
|
|
650
|
+
vertical-align: calc((1cap - var(--icon-size)) / 2);
|
|
651
|
+
}
|
|
652
|
+
._Callout-content_xnl9p_26 {
|
|
653
|
+
flex-grow: 1;
|
|
654
|
+
min-width: 0;
|
|
655
|
+
overflow-wrap: anywhere;
|
|
656
|
+
}
|
|
657
|
+
._Callout--info_xnl9p_32 {
|
|
658
|
+
background-color: var( --_puck-platform-callout-info-color-bg, var(--puck-color-azure-12) );
|
|
659
|
+
border-color: var( --_puck-platform-callout-info-color-border, var(--puck-color-azure-09) );
|
|
660
|
+
color: var( --_puck-platform-callout-info-color-text, var(--puck-color-azure-04) );
|
|
661
|
+
}
|
|
662
|
+
._Callout--warning_xnl9p_47 {
|
|
663
|
+
background-color: var( --_puck-platform-callout-warning-color-bg, var(--puck-color-yellow-12) );
|
|
664
|
+
border-color: var( --_puck-platform-callout-warning-color-border, var(--puck-color-yellow-09) );
|
|
665
|
+
color: var( --_puck-platform-callout-warning-color-text, var(--puck-color-yellow-03) );
|
|
666
|
+
}
|
|
667
|
+
._Callout--error_xnl9p_62 {
|
|
668
|
+
background-color: var( --_puck-platform-callout-error-color-bg, var(--puck-color-red-12) );
|
|
669
|
+
border-color: var( --_puck-platform-callout-error-color-border, var(--puck-color-red-09) );
|
|
670
|
+
color: var( --_puck-platform-callout-error-color-text, var(--puck-color-red-04) );
|
|
671
|
+
}
|
|
672
|
+
._Callout--success_xnl9p_77 {
|
|
673
|
+
background-color: var( --_puck-platform-callout-success-color-bg, var(--puck-color-green-12) );
|
|
674
|
+
border-color: var( --_puck-platform-callout-success-color-border, var(--puck-color-green-09) );
|
|
675
|
+
color: var( --_puck-platform-callout-success-color-text, var(--puck-color-green-04) );
|
|
676
|
+
}
|
|
677
|
+
|
|
631
678
|
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Card/Card.module.css/#css-module-data */
|
|
632
679
|
._Card_rpnal_1 {
|
|
633
680
|
background-color: white;
|
|
@@ -827,13 +874,13 @@ p {
|
|
|
827
874
|
}
|
|
828
875
|
|
|
829
876
|
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/ConfirmModal/styles.module.css/#css-module-data */
|
|
830
|
-
._ConfirmModal-
|
|
877
|
+
._ConfirmModal-overlay_g6lut_2 {
|
|
831
878
|
background: var(--puck-color-overlay-backdrop, rgba(0, 0, 0, 0.4));
|
|
832
879
|
inset: 0;
|
|
833
880
|
position: fixed;
|
|
834
881
|
z-index: 10003;
|
|
835
882
|
}
|
|
836
|
-
.
|
|
883
|
+
._ConfirmModal_g6lut_2 {
|
|
837
884
|
background: var(--puck-color-surface, var(--puck-color-white));
|
|
838
885
|
border-radius: 16px;
|
|
839
886
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
|
|
@@ -852,22 +899,27 @@ p {
|
|
|
852
899
|
transform: translate(-50%, -50%);
|
|
853
900
|
z-index: 10004;
|
|
854
901
|
}
|
|
855
|
-
.
|
|
902
|
+
._ConfirmModal_g6lut_2:focus-visible {
|
|
856
903
|
outline: none;
|
|
857
904
|
}
|
|
858
|
-
._ConfirmModal-
|
|
905
|
+
._ConfirmModal-title_g6lut_33 {
|
|
859
906
|
margin: 0;
|
|
860
907
|
padding: 24px 24px 8px;
|
|
861
908
|
}
|
|
862
|
-
._ConfirmModal-
|
|
909
|
+
._ConfirmModal-description_g6lut_38 {
|
|
910
|
+
display: flex;
|
|
911
|
+
flex-direction: column;
|
|
912
|
+
gap: 16px;
|
|
913
|
+
padding: 0 24px;
|
|
914
|
+
}
|
|
915
|
+
._ConfirmModal-message_g6lut_45 {
|
|
863
916
|
color: var(--puck-color-text-secondary, var(--puck-color-grey-04));
|
|
864
917
|
font-size: var(--puck-font-size-xxs);
|
|
865
918
|
line-height: 20px;
|
|
866
919
|
margin: 0;
|
|
867
920
|
overflow-wrap: anywhere;
|
|
868
|
-
padding: 0 24px;
|
|
869
921
|
}
|
|
870
|
-
._ConfirmModal-
|
|
922
|
+
._ConfirmModal-footer_g6lut_53 {
|
|
871
923
|
background-color: var(--puck-color-surface-subtle, var(--puck-color-grey-12));
|
|
872
924
|
border-top: 1px solid var(--puck-color-border-muted, var(--puck-color-grey-10));
|
|
873
925
|
display: flex;
|
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,11 @@ type RequestOptions = {
|
|
|
9
9
|
headers?: HeadersInit;
|
|
10
10
|
credentials?: RequestCredentials;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Options for `createPagesPlugin`.
|
|
14
|
+
*
|
|
15
|
+
* @experimental
|
|
16
|
+
*/
|
|
12
17
|
type PagePluginOptions = {
|
|
13
18
|
/** Where `puckHandler` serves the pages API. Defaults to `/api/puck/pages`. */
|
|
14
19
|
host?: string;
|
|
@@ -23,6 +28,14 @@ type PagePluginOptions = {
|
|
|
23
28
|
prepareRequest?: (opts: RequestOptions) => RequestOptions | Promise<RequestOptions>;
|
|
24
29
|
};
|
|
25
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Create the pages plugin, for creating, editing and publishing Puck Cloud pages.
|
|
33
|
+
*
|
|
34
|
+
* @param opts The pages API host, site URL, first page and request options.
|
|
35
|
+
* @returns The plugin.
|
|
36
|
+
*
|
|
37
|
+
* @experimental
|
|
38
|
+
*/
|
|
26
39
|
declare function createPagesPlugin(opts?: PagePluginOptions): {
|
|
27
40
|
label: string;
|
|
28
41
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ type RequestOptions = {
|
|
|
9
9
|
headers?: HeadersInit;
|
|
10
10
|
credentials?: RequestCredentials;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Options for `createPagesPlugin`.
|
|
14
|
+
*
|
|
15
|
+
* @experimental
|
|
16
|
+
*/
|
|
12
17
|
type PagePluginOptions = {
|
|
13
18
|
/** Where `puckHandler` serves the pages API. Defaults to `/api/puck/pages`. */
|
|
14
19
|
host?: string;
|
|
@@ -23,6 +28,14 @@ type PagePluginOptions = {
|
|
|
23
28
|
prepareRequest?: (opts: RequestOptions) => RequestOptions | Promise<RequestOptions>;
|
|
24
29
|
};
|
|
25
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Create the pages plugin, for creating, editing and publishing Puck Cloud pages.
|
|
33
|
+
*
|
|
34
|
+
* @param opts The pages API host, site URL, first page and request options.
|
|
35
|
+
* @returns The plugin.
|
|
36
|
+
*
|
|
37
|
+
* @experimental
|
|
38
|
+
*/
|
|
26
39
|
declare function createPagesPlugin(opts?: PagePluginOptions): {
|
|
27
40
|
label: string;
|
|
28
41
|
name: string;
|