@levo-so/studio 0.3.7 → 0.3.9
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/{BillingStep-B80goip6.js → BillingStep-CvRmZGdq.js} +1 -1
- package/{Button-B1Qi1fm7.js → Button-Dza3e6Mv.js} +1 -1
- package/{EntryCard-C4vDZv_F.js → EntryCard-BpcaCqXU.js} +1 -1
- package/{KBChatWidget-B-SNBtoX.js → KBChatWidget-Cgsubvuk.js} +10 -9
- package/{LoginCard-ChhvGFp2.js → LoginCard-B_anBE4b.js} +1 -1
- package/{PendingApprovalCard-R_AHT42r.js → PendingApprovalCard-DbYp0nSk.js} +1 -1
- package/{PopupBody-DZVwDLkg-DmA1NH8D.js → PopupBody-BI-MJqmd-BrzdFaaE.js} +47 -44
- package/{PopupRenderer-BjW1jg70-DTDWpyNa.js → PopupRenderer-D66Gx63H-GHfJebm6.js} +140 -139
- package/{ProfileCard-4LQEbe-3.js → ProfileCard-DmAnVf5R.js} +1 -1
- package/{bookingCard-u639dmlO.js → bookingCard-CLhIpOpR.js} +2 -2
- package/collection.js +1 -1
- package/{dist-DLSqcZ3k.js → dist-D5mTOitS.js} +221 -199
- package/index.d.ts +14 -0
- package/index.js +2557 -2244
- package/{kbChat-zJcrfsqJ.js → kbChat-QDHdRejh.js} +1 -1
- package/package.json +41 -41
- package/studio.css +1 -1
- package/{usePopupRedirect-BThP_YPW-jXtfhYu6.js → usePopupRedirect-CAAdcpaW-DdME0F7f.js} +14 -12
package/index.d.ts
CHANGED
|
@@ -733,6 +733,20 @@ initialValues?: Record<string, any>;
|
|
|
733
733
|
theme?: ILevoFormContext["theme"];
|
|
734
734
|
}>;
|
|
735
735
|
|
|
736
|
+
/**
|
|
737
|
+
* Replaces variable tokens in a string with values from a flat context map.
|
|
738
|
+
*
|
|
739
|
+
* Supports both legacy `{path}` syntax and pipe-syntax transforms
|
|
740
|
+
* (`{path | default:"X" | upper | …}`). See `variableExpression.ts`.
|
|
741
|
+
*
|
|
742
|
+
* Backward-compat: a token with no transforms whose value is missing/null
|
|
743
|
+
* is left as a literal `{path}` — matches the prior behavior.
|
|
744
|
+
*
|
|
745
|
+
* @example format("Hello {name}", { name: "World" }) => "Hello World"
|
|
746
|
+
* @example format("Hi {name | upper | default:\"there\"}", { name: null }) => "Hi there"
|
|
747
|
+
*/
|
|
748
|
+
export declare const format: (template: string, values: Record<string, unknown>) => string;
|
|
749
|
+
|
|
736
750
|
export declare const FormInput: React_2.ForwardRefExoticComponent<IInputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
737
751
|
|
|
738
752
|
export declare const FormTextarea: React_2.ForwardRefExoticComponent<ITextareaProps & React_2.RefAttributes<HTMLTextAreaElement>>;
|