@levo-so/studio 0.1.100 → 0.1.102
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/Beams-DkcjMVZl.js +102 -0
- package/{BillingStep-Brc1Mzo3.js → BillingStep-BTRobf00.js} +1 -1
- package/{Button-XTKnNIl9.js → Button-DTrN8kki.js} +32 -18
- package/{Input-Btdc1Dee.js → CollectionField-7uXvhxYK.js} +57 -76
- package/CollectionInput-lHOvWWav.js +147 -0
- package/{DateTimeWidget-B5lBr0_R.js → DateTimeWidget-BHCP5osb.js} +9 -9
- package/Dots-BrEPvoj3.js +100 -0
- package/{EntryCard-CYdsSkIk.js → EntryCard-CqZlbw1Z.js} +6 -6
- package/Grid-B4XWU9eL.js +99 -0
- package/{LoginCard-5LaKaFCO.js → LoginCard-DWLnYJJU.js} +3 -3
- package/{LoginForm-Ck-xFaDg.js → LoginForm-CEUbBeE3.js} +23 -22
- package/{LoginModal-BdYM8INu.js → LoginModal-AWNLO49X.js} +3 -3
- package/{MessageCard-ChDBqLVG.js → MessageCard-C5ULcfuw.js} +2 -2
- package/{MessageFooter-AzAtJWMo.js → MessageFooter-CATwNJJU.js} +1 -1
- package/{ModalManager-SggxCIno.js → ModalManager-DQXhkmyC.js} +1 -1
- package/{PendingApprovalCard-z2sdLyCa.js → PendingApprovalCard-BowwZMBu.js} +3 -3
- package/{PhoneWidget-1ffYuESC.js → PhoneWidget-C6uZmrk8.js} +3 -3
- package/{Popover-BdKCElnb.js → Popover-Du4iigVw.js} +1 -1
- package/RichTextWidget-iYdVRBGB.js +112 -0
- package/Toolbar-BHi_B-nE.js +737 -0
- package/{Tooltip-BOq5vSOW.js → Tooltip-K_gFzjOa.js} +1 -1
- package/{VerifyButton-CdPQqtc2.js → VerifyButton-D21AOIX3.js} +92 -103
- package/authentication-fXmNYss1.js +36 -0
- package/{bookingCard-D3ZSjq-P.js → bookingCard--NlgtcJs.js} +3 -3
- package/collection.d.ts +83 -0
- package/collection.js +9 -8
- package/{dist-ir7pIkAm.js → dist-x5VFEnQl.js} +1167 -1097
- package/index.d.ts +43 -12
- package/index.js +1517 -1441
- package/inlineRteTheme-Cn_Vqgsm.js +23 -0
- package/{nodeAlignment-BZbdafVA.js → nodeAlignment-DoVbjk29.js} +39 -60
- package/package.json +2 -2
- package/studio.css +1 -1
- package/useLogin-D2VCOHYI.js +127 -0
- package/{utils-CsfPGq4R.js → utils-Bh9uGjo1.js} +1 -1
- package/{widgets-DD4OjK2Y.js → widgets-CG5Z_dk7.js} +49 -54
- package/Beams-B0O3uyYF.js +0 -118
- package/CollectionInput-cmJ0RXzG.js +0 -132
- package/Dots-DjezbpLp.js +0 -137
- package/Grid-C9aUfXM-.js +0 -145
- package/RichTextWidget-CjEoGecM.js +0 -1136
- /package/{Gradient-B1K9Yi04.js → Gradient-B4Er9hym.js} +0 -0
- /package/{StripePaymentModal-BHIBBvRj.js → StripePaymentModal-DC-ySB_o.js} +0 -0
- /package/{Waves-BkaAfGqA.js → Waves-kW-EBDdJ.js} +0 -0
- /package/{card-BQr9258p.js → card-BwNr7kQS.js} +0 -0
- /package/{dialog-Dw6n_36P.js → dialog-CCWrvmHd.js} +0 -0
package/index.d.ts
CHANGED
|
@@ -96,12 +96,18 @@ export declare const AuthProvider: React.FC<{
|
|
|
96
96
|
|
|
97
97
|
export declare function Avatar({ className, ...props }: React_2.ComponentProps<typeof Avatar_2.Root>): JSX.Element;
|
|
98
98
|
|
|
99
|
+
export declare function AvatarBadge({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
|
|
100
|
+
|
|
99
101
|
export declare function AvatarFallback({ className, isActive, ...props }: React_2.ComponentProps<typeof Avatar_2.Fallback> & {
|
|
100
102
|
isActive?: boolean;
|
|
101
103
|
}): JSX.Element;
|
|
102
104
|
|
|
103
105
|
export declare function AvatarFallbackV2({ className, ...props }: React_2.ComponentProps<typeof Avatar_2.Fallback>): JSX.Element;
|
|
104
106
|
|
|
107
|
+
export declare function AvatarGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
108
|
+
|
|
109
|
+
export declare function AvatarGroupCount({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
110
|
+
|
|
105
111
|
export declare function AvatarImage({ className, isActive, ...props }: React_2.ComponentProps<typeof Avatar_2.Image> & {
|
|
106
112
|
isActive?: boolean;
|
|
107
113
|
}): JSX.Element;
|
|
@@ -124,8 +130,6 @@ export declare interface BackgroundEffectConfig {
|
|
|
124
130
|
frequency?: number;
|
|
125
131
|
speed?: number;
|
|
126
132
|
isInteractive?: boolean;
|
|
127
|
-
rows?: number;
|
|
128
|
-
cols?: number;
|
|
129
133
|
gridSize?: number;
|
|
130
134
|
hoverColor?: string;
|
|
131
135
|
lineWidth?: number;
|
|
@@ -273,13 +277,15 @@ declare type BlockProviderInput = {
|
|
|
273
277
|
parsedBlockData?: IBlockInstance;
|
|
274
278
|
blockData?: IBlockInstance;
|
|
275
279
|
pageContext?: IPageContext;
|
|
280
|
+
/** Per-source API response meta keyed by source identifier, parallel to pageContext */
|
|
281
|
+
pageMeta?: TPageMeta;
|
|
276
282
|
blockContext?: IBlockContext;
|
|
277
283
|
renderMode: IRenderMode;
|
|
278
284
|
workspace_id: string;
|
|
279
285
|
pageSource: IPage["source"];
|
|
280
286
|
};
|
|
281
287
|
|
|
282
|
-
export declare const BlockSourceModuleList: readonly ["collection", "event", "blog", "community", "context", "form"];
|
|
288
|
+
export declare const BlockSourceModuleList: readonly ["collection", "event", "blog", "community", "context", "form", "blog_author", "blog_category", "blog_tag"];
|
|
283
289
|
|
|
284
290
|
export declare class BlocksRegistry {
|
|
285
291
|
private static instance;
|
|
@@ -568,6 +574,8 @@ export declare const DEMO_SCHEMA: ILemaCollection;
|
|
|
568
574
|
|
|
569
575
|
export declare const DevTools: React.FC<IDevToolsProps>;
|
|
570
576
|
|
|
577
|
+
export declare const DevToolsPreview: React.FC<IDevToolsPreviewProps>;
|
|
578
|
+
|
|
571
579
|
export declare const EditForm: WithBlockPropsComponent<BaseElementProps & {
|
|
572
580
|
className?: string;
|
|
573
581
|
initialValues?: Record<string, any>;
|
|
@@ -816,6 +824,7 @@ export declare const getPageSource: ({ levoClient, pageData, slugs, cookies, dra
|
|
|
816
824
|
draft?: boolean;
|
|
817
825
|
}) => Promise<{
|
|
818
826
|
pageContext: IPageContext;
|
|
827
|
+
pageMeta: TPageMeta;
|
|
819
828
|
pageNotFound: boolean;
|
|
820
829
|
}>;
|
|
821
830
|
|
|
@@ -1075,11 +1084,6 @@ declare interface ICollectionTheme {
|
|
|
1075
1084
|
checkbox: {
|
|
1076
1085
|
labelFontSize: string;
|
|
1077
1086
|
};
|
|
1078
|
-
button: {
|
|
1079
|
-
fontSize: string;
|
|
1080
|
-
padding: string;
|
|
1081
|
-
borderRadius: string;
|
|
1082
|
-
};
|
|
1083
1087
|
}
|
|
1084
1088
|
|
|
1085
1089
|
declare interface ICommentsRestrictionOverlayProps {
|
|
@@ -1132,6 +1136,12 @@ declare interface ICreateForumPostProps {
|
|
|
1132
1136
|
onPostCreated?: (post: IForumPost) => void;
|
|
1133
1137
|
}
|
|
1134
1138
|
|
|
1139
|
+
declare interface IDevToolsPreviewProps {
|
|
1140
|
+
blockInstance: IBlockInstance;
|
|
1141
|
+
blocks: Record<string, BlockComponent>;
|
|
1142
|
+
theme?: ITheme;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1135
1145
|
export declare interface IDevToolsProps {
|
|
1136
1146
|
schema: IBlock;
|
|
1137
1147
|
component: React.ComponentType<any>;
|
|
@@ -1171,6 +1181,7 @@ export declare interface IFieldConfig {
|
|
|
1171
1181
|
action?: {
|
|
1172
1182
|
type: "page" | "external_link" | "email" | "phone" | "login" | "none";
|
|
1173
1183
|
value: string;
|
|
1184
|
+
alt?: string;
|
|
1174
1185
|
options: {
|
|
1175
1186
|
openInNewTab?: boolean;
|
|
1176
1187
|
};
|
|
@@ -1292,6 +1303,8 @@ export declare interface IInputProps extends IBaseInputProps {
|
|
|
1292
1303
|
leftIconBoxStyles?: string;
|
|
1293
1304
|
rightIconBoxStyles?: string;
|
|
1294
1305
|
inputContainerStyles?: string;
|
|
1306
|
+
leftIconBoxProps?: Omit<React_2.ComponentProps<"div">, "children" | "className">;
|
|
1307
|
+
rightIconBoxProps?: Omit<React_2.ComponentProps<"div">, "children" | "className">;
|
|
1295
1308
|
}
|
|
1296
1309
|
|
|
1297
1310
|
declare interface IJoinRequestFormProps {
|
|
@@ -1302,6 +1315,12 @@ declare interface IJoinRequestFormProps {
|
|
|
1302
1315
|
className?: string;
|
|
1303
1316
|
}
|
|
1304
1317
|
|
|
1318
|
+
declare interface IJsonEditorProps {
|
|
1319
|
+
label: string;
|
|
1320
|
+
value: Record<string, any>;
|
|
1321
|
+
onChange: (value: Record<string, any>) => void;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1305
1324
|
declare interface ILazyMotionProviderProps {
|
|
1306
1325
|
children: ReactNode;
|
|
1307
1326
|
/** Enforce m component usage - throws if motion component is used */
|
|
@@ -1572,6 +1591,7 @@ export declare type IPageContext = Record<string, unknown>;
|
|
|
1572
1591
|
|
|
1573
1592
|
export declare interface IPageDataContext {
|
|
1574
1593
|
page?: IPageContext;
|
|
1594
|
+
meta?: TPageMeta;
|
|
1575
1595
|
blocks: Record<string, IBlockContext>;
|
|
1576
1596
|
}
|
|
1577
1597
|
|
|
@@ -1592,7 +1612,7 @@ export declare interface IPageFromPath {
|
|
|
1592
1612
|
access: IPageAccessCheck | null;
|
|
1593
1613
|
}
|
|
1594
1614
|
|
|
1595
|
-
export declare type IPageKind = "blog.page" | "collection.page" | "community.page" | "event.page" | "static";
|
|
1615
|
+
export declare type IPageKind = "blog.page" | "blog.author.page" | "blog.category.page" | "blog.tag.page" | "collection.page" | "community.page" | "event.page" | "static";
|
|
1596
1616
|
|
|
1597
1617
|
export declare interface IPageMeta {
|
|
1598
1618
|
meta_title: string;
|
|
@@ -1817,8 +1837,10 @@ export declare type IStudioSource = {
|
|
|
1817
1837
|
field_key: string;
|
|
1818
1838
|
params?: Record<string, any>;
|
|
1819
1839
|
options?: {
|
|
1820
|
-
sub_module?: "popular_posts" | "related_posts";
|
|
1821
|
-
|
|
1840
|
+
sub_module?: "latest_posts" | "popular_posts" | "related_posts" | "author_posts" | "category_posts" | "tag_posts";
|
|
1841
|
+
post_id?: string;
|
|
1842
|
+
/** Blog slug for the blog_author module */
|
|
1843
|
+
blog_identifier?: string;
|
|
1822
1844
|
context_key?: string;
|
|
1823
1845
|
filters?: {
|
|
1824
1846
|
enabled?: boolean;
|
|
@@ -2102,6 +2124,8 @@ declare type IWidgetRegistry = Record<(typeof CommonFieldInterfacesList)[number]
|
|
|
2102
2124
|
*/
|
|
2103
2125
|
export declare const JoinRequestForm: default_2.FC<IJoinRequestFormProps>;
|
|
2104
2126
|
|
|
2127
|
+
export declare const JsonEditor: React.FC<IJsonEditorProps>;
|
|
2128
|
+
|
|
2105
2129
|
export declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): JSX.Element;
|
|
2106
2130
|
|
|
2107
2131
|
export declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
@@ -2116,7 +2140,7 @@ export declare const KindList: readonly ["element", "group"];
|
|
|
2116
2140
|
*/
|
|
2117
2141
|
export declare const LazyMotionProvider: React.FC<ILazyMotionProviderProps>;
|
|
2118
2142
|
|
|
2119
|
-
export declare const LevoBlock: default_2.MemoExoticComponent<({ html_id, renderMode, blocks, parsedBlockData, blockData, pageContext, blockContext, workspace_id, pageSource, }: LevoBlockProps) => JSX.Element>;
|
|
2143
|
+
export declare const LevoBlock: default_2.MemoExoticComponent<({ html_id, renderMode, blocks, parsedBlockData, blockData, pageContext, pageMeta, blockContext, workspace_id, pageSource, }: LevoBlockProps) => JSX.Element>;
|
|
2120
2144
|
|
|
2121
2145
|
declare interface LevoBlockProps {
|
|
2122
2146
|
html_id?: string;
|
|
@@ -2126,6 +2150,7 @@ declare interface LevoBlockProps {
|
|
|
2126
2150
|
workspace_id: string;
|
|
2127
2151
|
blockData?: IBlockInstance;
|
|
2128
2152
|
pageContext?: IPageContext;
|
|
2153
|
+
pageMeta?: TPageMeta;
|
|
2129
2154
|
blockContext?: IPageDataContext["blocks"][number];
|
|
2130
2155
|
pageSource?: IPage["source"];
|
|
2131
2156
|
}
|
|
@@ -2671,6 +2696,9 @@ export declare const TooltipProvider: React_2.FC<Tooltip_2.TooltipProviderProps>
|
|
|
2671
2696
|
|
|
2672
2697
|
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<Tooltip_2.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
2673
2698
|
|
|
2699
|
+
/** Per-source API response meta (pagination counts, etc.) keyed by source identifier */
|
|
2700
|
+
export declare type TPageMeta = Record<string, unknown>;
|
|
2701
|
+
|
|
2674
2702
|
/** Transition configuration for animations */
|
|
2675
2703
|
export declare interface TransitionConfig {
|
|
2676
2704
|
type?: "spring" | "tween" | "keyframes";
|
|
@@ -2763,6 +2791,9 @@ export declare const useLogin: () => IUseLoginReturn;
|
|
|
2763
2791
|
|
|
2764
2792
|
export declare const usePageContext: (module: IStudioSource["module"]) => any;
|
|
2765
2793
|
|
|
2794
|
+
/** Returns the API response meta (pagination counts, etc.) for the page-level source matching the given module */
|
|
2795
|
+
export declare const usePageMeta: (module: IStudioSource["module"]) => unknown;
|
|
2796
|
+
|
|
2766
2797
|
export declare const UserMenu: WithBlockPropsComponent<BaseUserMenuProps>;
|
|
2767
2798
|
|
|
2768
2799
|
/**
|