@trycourier/react-designer 0.0.0-canary-20251205172857 → 0.0.0-canary-20251207160907
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/cjs/index.js +55 -55
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/styles.css +4 -0
- package/dist/components/TemplateEditor/Channels/Email/SideBar/SideBarItemDetails/SideBarItemDetails.d.ts +3 -1
- package/dist/components/extensions/Button/ButtonForm.d.ts +3 -1
- package/dist/components/extensions/ImageBlock/components/ImageBlockForm.d.ts +3 -1
- package/dist/components/ui/TextInput/TextInput.d.ts +2 -0
- package/dist/components/ui/VariableEditor/VariableInput.d.ts +11 -0
- package/dist/components/ui/VariableEditor/VariableTextarea.d.ts +9 -0
- package/dist/components/ui/VariableEditor/index.d.ts +6 -0
- package/dist/components/ui/VariableEditor/shared.d.ts +51 -0
- package/dist/esm/index.js +53 -53
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/styles.css +4 -0
- package/dist/styles.css +4 -0
- package/package.json +1 -1
- package/dist/components/ui/VariableInput/VariableInput.d.ts +0 -28
- package/dist/components/ui/VariableInput/index.d.ts +0 -2
- package/dist/components/ui/VariableTextarea/VariableTextarea.d.ts +0 -26
- package/dist/components/ui/VariableTextarea/index.d.ts +0 -2
package/dist/esm/styles.css
CHANGED
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface VariableInputProps {
|
|
3
|
-
/** The current value with {{variable}} syntax */
|
|
4
|
-
value?: string;
|
|
5
|
-
/** Called when the value changes */
|
|
6
|
-
onChange?: (value: string) => void;
|
|
7
|
-
/** List of available variable names for autocomplete */
|
|
8
|
-
variables?: string[];
|
|
9
|
-
/** Placeholder text */
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
/** Additional CSS classes */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Whether the input is disabled */
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
/** Whether the input is read-only */
|
|
16
|
-
readOnly?: boolean;
|
|
17
|
-
/** Whether to disable variable autocomplete suggestions */
|
|
18
|
-
disableVariableAutocomplete?: boolean;
|
|
19
|
-
/** Called when the input gains focus */
|
|
20
|
-
onFocus?: () => void;
|
|
21
|
-
/** Called when the input loses focus */
|
|
22
|
-
onBlur?: () => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A single-line input that renders {{variable}} patterns as styled chips.
|
|
26
|
-
* Uses a minimal TipTap editor under the hood for rich content rendering.
|
|
27
|
-
*/
|
|
28
|
-
export declare const VariableInput: React.ForwardRefExoticComponent<VariableInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface VariableTextareaProps {
|
|
3
|
-
/** The current value with {{variable}} syntax */
|
|
4
|
-
value?: string;
|
|
5
|
-
/** Called when the value changes */
|
|
6
|
-
onChange?: (value: string) => void;
|
|
7
|
-
/** List of available variable names for autocomplete */
|
|
8
|
-
variables?: string[];
|
|
9
|
-
/** Placeholder text */
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
/** Additional CSS classes */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Whether the input is disabled */
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
/** Whether to disable variable autocomplete suggestions */
|
|
16
|
-
disableVariableAutocomplete?: boolean;
|
|
17
|
-
/** Called when the input gains focus */
|
|
18
|
-
onFocus?: () => void;
|
|
19
|
-
/** Called when the input loses focus */
|
|
20
|
-
onBlur?: () => void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* A textarea-like input that renders {{variable}} patterns as styled chips.
|
|
24
|
-
* Uses a minimal TipTap editor under the hood for rich content rendering.
|
|
25
|
-
*/
|
|
26
|
-
export declare const VariableTextarea: React.ForwardRefExoticComponent<VariableTextareaProps & React.RefAttributes<HTMLDivElement>>;
|