@levo-so/studio 0.1.101 → 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.
Files changed (46) hide show
  1. package/Beams-DkcjMVZl.js +102 -0
  2. package/{BillingStep-Brc1Mzo3.js → BillingStep-BTRobf00.js} +1 -1
  3. package/{Button-XTKnNIl9.js → Button-DTrN8kki.js} +32 -18
  4. package/{Input-Btdc1Dee.js → CollectionField-7uXvhxYK.js} +57 -76
  5. package/CollectionInput-lHOvWWav.js +147 -0
  6. package/{DateTimeWidget-B5lBr0_R.js → DateTimeWidget-BHCP5osb.js} +9 -9
  7. package/Dots-BrEPvoj3.js +100 -0
  8. package/{EntryCard-DTcx6wfA.js → EntryCard-CqZlbw1Z.js} +6 -6
  9. package/Grid-B4XWU9eL.js +99 -0
  10. package/{LoginCard-CnHmCKUF.js → LoginCard-DWLnYJJU.js} +3 -3
  11. package/{LoginForm-Ck-xFaDg.js → LoginForm-CEUbBeE3.js} +23 -22
  12. package/{LoginModal-BdYM8INu.js → LoginModal-AWNLO49X.js} +3 -3
  13. package/{MessageCard-ChDBqLVG.js → MessageCard-C5ULcfuw.js} +2 -2
  14. package/{MessageFooter-AzAtJWMo.js → MessageFooter-CATwNJJU.js} +1 -1
  15. package/{ModalManager-SggxCIno.js → ModalManager-DQXhkmyC.js} +1 -1
  16. package/{PendingApprovalCard-C6ORDqrY.js → PendingApprovalCard-BowwZMBu.js} +3 -3
  17. package/{PhoneWidget-BRIAve47.js → PhoneWidget-C6uZmrk8.js} +3 -3
  18. package/{Popover-BdKCElnb.js → Popover-Du4iigVw.js} +1 -1
  19. package/RichTextWidget-iYdVRBGB.js +112 -0
  20. package/Toolbar-BHi_B-nE.js +737 -0
  21. package/{Tooltip-BOq5vSOW.js → Tooltip-K_gFzjOa.js} +1 -1
  22. package/{VerifyButton-Bl2QqMpB.js → VerifyButton-D21AOIX3.js} +2 -2
  23. package/authentication-fXmNYss1.js +36 -0
  24. package/{bookingCard-D3ZSjq-P.js → bookingCard--NlgtcJs.js} +3 -3
  25. package/collection.d.ts +83 -0
  26. package/collection.js +9 -8
  27. package/{dist-DuTd566a.js → dist-x5VFEnQl.js} +1132 -1059
  28. package/index.d.ts +43 -7
  29. package/index.js +1517 -1441
  30. package/inlineRteTheme-Cn_Vqgsm.js +23 -0
  31. package/{nodeAlignment-BZbdafVA.js → nodeAlignment-DoVbjk29.js} +39 -60
  32. package/package.json +2 -2
  33. package/studio.css +1 -1
  34. package/useLogin-D2VCOHYI.js +127 -0
  35. package/{utils-kDaDLLGt.js → utils-Bh9uGjo1.js} +1 -1
  36. package/{widgets-CWDiqXm9.js → widgets-CG5Z_dk7.js} +48 -48
  37. package/Beams-B0O3uyYF.js +0 -118
  38. package/CollectionInput-cmJ0RXzG.js +0 -132
  39. package/Dots-DjezbpLp.js +0 -137
  40. package/Grid-C9aUfXM-.js +0 -145
  41. package/RichTextWidget-CjEoGecM.js +0 -1136
  42. /package/{Gradient-B1K9Yi04.js → Gradient-B4Er9hym.js} +0 -0
  43. /package/{StripePaymentModal-BHIBBvRj.js → StripePaymentModal-DC-ySB_o.js} +0 -0
  44. /package/{Waves-BkaAfGqA.js → Waves-kW-EBDdJ.js} +0 -0
  45. /package/{card-BQr9258p.js → card-BwNr7kQS.js} +0 -0
  46. /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
 
@@ -1127,6 +1136,12 @@ declare interface ICreateForumPostProps {
1127
1136
  onPostCreated?: (post: IForumPost) => void;
1128
1137
  }
1129
1138
 
1139
+ declare interface IDevToolsPreviewProps {
1140
+ blockInstance: IBlockInstance;
1141
+ blocks: Record<string, BlockComponent>;
1142
+ theme?: ITheme;
1143
+ }
1144
+
1130
1145
  export declare interface IDevToolsProps {
1131
1146
  schema: IBlock;
1132
1147
  component: React.ComponentType<any>;
@@ -1166,6 +1181,7 @@ export declare interface IFieldConfig {
1166
1181
  action?: {
1167
1182
  type: "page" | "external_link" | "email" | "phone" | "login" | "none";
1168
1183
  value: string;
1184
+ alt?: string;
1169
1185
  options: {
1170
1186
  openInNewTab?: boolean;
1171
1187
  };
@@ -1287,6 +1303,8 @@ export declare interface IInputProps extends IBaseInputProps {
1287
1303
  leftIconBoxStyles?: string;
1288
1304
  rightIconBoxStyles?: string;
1289
1305
  inputContainerStyles?: string;
1306
+ leftIconBoxProps?: Omit<React_2.ComponentProps<"div">, "children" | "className">;
1307
+ rightIconBoxProps?: Omit<React_2.ComponentProps<"div">, "children" | "className">;
1290
1308
  }
1291
1309
 
1292
1310
  declare interface IJoinRequestFormProps {
@@ -1297,6 +1315,12 @@ declare interface IJoinRequestFormProps {
1297
1315
  className?: string;
1298
1316
  }
1299
1317
 
1318
+ declare interface IJsonEditorProps {
1319
+ label: string;
1320
+ value: Record<string, any>;
1321
+ onChange: (value: Record<string, any>) => void;
1322
+ }
1323
+
1300
1324
  declare interface ILazyMotionProviderProps {
1301
1325
  children: ReactNode;
1302
1326
  /** Enforce m component usage - throws if motion component is used */
@@ -1567,6 +1591,7 @@ export declare type IPageContext = Record<string, unknown>;
1567
1591
 
1568
1592
  export declare interface IPageDataContext {
1569
1593
  page?: IPageContext;
1594
+ meta?: TPageMeta;
1570
1595
  blocks: Record<string, IBlockContext>;
1571
1596
  }
1572
1597
 
@@ -1587,7 +1612,7 @@ export declare interface IPageFromPath {
1587
1612
  access: IPageAccessCheck | null;
1588
1613
  }
1589
1614
 
1590
- 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";
1591
1616
 
1592
1617
  export declare interface IPageMeta {
1593
1618
  meta_title: string;
@@ -1812,8 +1837,10 @@ export declare type IStudioSource = {
1812
1837
  field_key: string;
1813
1838
  params?: Record<string, any>;
1814
1839
  options?: {
1815
- sub_module?: "popular_posts" | "related_posts";
1816
- blog_id?: string;
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;
1817
1844
  context_key?: string;
1818
1845
  filters?: {
1819
1846
  enabled?: boolean;
@@ -2097,6 +2124,8 @@ declare type IWidgetRegistry = Record<(typeof CommonFieldInterfacesList)[number]
2097
2124
  */
2098
2125
  export declare const JoinRequestForm: default_2.FC<IJoinRequestFormProps>;
2099
2126
 
2127
+ export declare const JsonEditor: React.FC<IJsonEditorProps>;
2128
+
2100
2129
  export declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): JSX.Element;
2101
2130
 
2102
2131
  export declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
@@ -2111,7 +2140,7 @@ export declare const KindList: readonly ["element", "group"];
2111
2140
  */
2112
2141
  export declare const LazyMotionProvider: React.FC<ILazyMotionProviderProps>;
2113
2142
 
2114
- 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>;
2115
2144
 
2116
2145
  declare interface LevoBlockProps {
2117
2146
  html_id?: string;
@@ -2121,6 +2150,7 @@ declare interface LevoBlockProps {
2121
2150
  workspace_id: string;
2122
2151
  blockData?: IBlockInstance;
2123
2152
  pageContext?: IPageContext;
2153
+ pageMeta?: TPageMeta;
2124
2154
  blockContext?: IPageDataContext["blocks"][number];
2125
2155
  pageSource?: IPage["source"];
2126
2156
  }
@@ -2666,6 +2696,9 @@ export declare const TooltipProvider: React_2.FC<Tooltip_2.TooltipProviderProps>
2666
2696
 
2667
2697
  export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<Tooltip_2.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
2668
2698
 
2699
+ /** Per-source API response meta (pagination counts, etc.) keyed by source identifier */
2700
+ export declare type TPageMeta = Record<string, unknown>;
2701
+
2669
2702
  /** Transition configuration for animations */
2670
2703
  export declare interface TransitionConfig {
2671
2704
  type?: "spring" | "tween" | "keyframes";
@@ -2758,6 +2791,9 @@ export declare const useLogin: () => IUseLoginReturn;
2758
2791
 
2759
2792
  export declare const usePageContext: (module: IStudioSource["module"]) => any;
2760
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
+
2761
2797
  export declare const UserMenu: WithBlockPropsComponent<BaseUserMenuProps>;
2762
2798
 
2763
2799
  /**