@levo-so/studio 0.1.105 → 0.1.106

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.
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { t as e } from "./Button-DtPwDEN0.js";
2
+ import { t as e } from "./Button-BIpdwMrO.js";
3
3
  import { n as t } from "./AuthProvider-C6bvedwF.js";
4
- import { n, t as r } from "./StripePaymentModal-DrLMN18M.js";
5
- import { BillingStep as i } from "./BillingStep-2cKT5Pir.js";
4
+ import { n, t as r } from "./StripePaymentModal-Do1xHctU.js";
5
+ import { BillingStep as i } from "./BillingStep-BNRcxjRl.js";
6
6
  import { cn as a, errorHandler as o, useLevo as s } from "@levo-so/react";
7
7
  import { useEffect as c, useRef as l, useState as u } from "react";
8
8
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
package/collection.d.ts CHANGED
@@ -13,6 +13,7 @@ import { ILemaCollection } from '@levo-so/core';
13
13
  import { ILemaField } from '@levo-so/core';
14
14
  import { ILemaFieldOptions } from '@levo-so/core';
15
15
  import { ILevoMembership } from '@levo-so/core';
16
+ import { ILogicRule } from '@levo-so/core';
16
17
  import { JSX } from 'react/jsx-runtime';
17
18
  import { Mark } from '@tiptap/core';
18
19
  import { MediaKindList } from '@levo-so/core';
@@ -456,15 +457,14 @@ export declare const updateFieldWInterface: (tempField: ILemaField, field_interf
456
457
  options: ILemaFieldOptions;
457
458
  allow_public_view?: boolean;
458
459
  allow_public_submit?: boolean;
460
+ logic?: ILogicRule[];
459
461
  };
460
462
  fieldFocused: string | null;
461
463
  };
462
464
 
463
- export declare const useLevoForm: ({ schema: schemaProp, originalSchema: originalSchemaProp, saveToRemote, onSubmit, onSubmitSuccess, onSubmitError, setFormErrorAfterSubmit, }: {
465
+ export declare const useLevoForm: ({ schema: schemaProp, originalSchema: originalSchemaProp, onSubmitSuccess, onSubmitError, setFormErrorAfterSubmit, }: {
464
466
  schema: ILemaCollection | null;
465
467
  originalSchema?: ILemaCollection | null;
466
- saveToRemote?: boolean;
467
- onSubmit?: (v: any) => void;
468
468
  onSubmitSuccess?: () => void;
469
469
  onSubmitError?: (e: IFieldError[]) => void;
470
470
  setFormErrorAfterSubmit?: boolean;
@@ -475,7 +475,8 @@ export declare const useLevoForm: ({ schema: schemaProp, originalSchema: origina
475
475
  contentId: string | null;
476
476
  allFormValues: any;
477
477
  handleContentId: (id: string) => void;
478
- handleSubmit: (e?: React.BaseSyntheticEvent) => Promise<void>;
478
+ appendFormValues: (data: any) => void;
479
+ submitToRemote: (data: any) => Promise<void>;
479
480
  showSuccessOverlay: boolean;
480
481
  dismissSuccessOverlay: () => void;
481
482
  };
package/collection.js CHANGED
@@ -1,7 +1,7 @@
1
- import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, u as p } from "./dist-CsX9NP5P.js";
2
- import { a as m, c as h, d as g, f as _, i as v, l as y, n as b, o as x, r as S, s as C, t as w, u as T } from "./widgets-eu5zXTf-.js";
1
+ import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, u as p } from "./dist-BjFMATnH.js";
2
+ import { a as m, c as h, d as g, f as _, i as v, l as y, n as b, o as x, r as S, s as C, t as w, u as T } from "./widgets-NzmPF3Ji.js";
3
3
  import { t as E } from "./getFieldValidations-CSkSV2hW.js";
4
- import { t as D } from "./utils-CZLafTgN.js";
4
+ import { t as D } from "./utils-B01DL3RB.js";
5
5
  import { a as O, c as k, i as A, n as j, o as M, r as N, s as P, t as F, u as I } from "./CollectionField-xa-jed3_.js";
6
6
  import { t as L } from "./CollectionInput-CpNGIXJx.js";
7
7
  import { n as R, r as z, t as B } from "./Toolbar-Y6JtgPFn.js";