@charisol/plexo-sdk 1.0.23 → 1.0.24
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/components/sidebarTabs/ContentTab.d.ts +5 -3
- package/dist/components/sidebarTabs/SidebarTabsRail.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11300 -11193
- package/dist/playground.d.ts +1 -1
- package/dist/utilities/playground.interfaces.d.ts +26 -0
- package/package.json +1 -1
package/dist/playground.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PlexoBuilderProps, PlexoBuilderRef } from './utilities/playground.interfaces';
|
|
3
|
-
export type { PlexoBuilderProps, PlexoBuilderRef, PlexoTargetType } from './utilities/playground.interfaces';
|
|
3
|
+
export type { PlexoBuilderProps, PlexoBuilderRef, PlexoTargetType, MergeTag } from './utilities/playground.interfaces';
|
|
4
4
|
export declare const PlexoBuilder: React.ForwardRefExoticComponent<PlexoBuilderProps & React.RefAttributes<PlexoBuilderRef>>;
|
|
5
5
|
export declare const Playground: React.FC;
|
|
@@ -48,6 +48,19 @@ export interface PlexoBuilderRef {
|
|
|
48
48
|
}>;
|
|
49
49
|
getJson: () => TemplateJSON;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* A merge tag that hosts can register so it appears in the sidebar's Merge Tags tab.
|
|
53
|
+
* When a user clicks a merge tag item, its `value` (e.g. `{{first_name}}`) is inserted
|
|
54
|
+
* into the currently selected text element or copied to the clipboard.
|
|
55
|
+
*/
|
|
56
|
+
export interface MergeTag {
|
|
57
|
+
/** Human-readable label shown in the sidebar, e.g. "First Name" */
|
|
58
|
+
label: string;
|
|
59
|
+
/** The raw merge tag string to insert, e.g. "{{first_name}}" */
|
|
60
|
+
value: string;
|
|
61
|
+
/** Optional category for grouping, e.g. "Contact", "Email" */
|
|
62
|
+
category?: string;
|
|
63
|
+
}
|
|
51
64
|
export interface PlexoBuilderProps {
|
|
52
65
|
showSaveButton?: boolean;
|
|
53
66
|
mode: PlexoTargetType;
|
|
@@ -110,6 +123,19 @@ export interface PlexoBuilderProps {
|
|
|
110
123
|
* Lets the host render its own actions/content in that slot.
|
|
111
124
|
*/
|
|
112
125
|
headerRightContent?: ReactNode;
|
|
126
|
+
/**
|
|
127
|
+
* Optional list of merge tags to expose in the sidebar's "Merge Tags" tab.
|
|
128
|
+
* When provided, a dedicated tab appears allowing users to click (copy) or
|
|
129
|
+
* drag merge tag tokens directly into text/paragraph elements on the canvas.
|
|
130
|
+
* If omitted or empty, the Merge Tags tab is hidden.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* mergeTags={[
|
|
134
|
+
* { label: 'First Name', value: '{{first_name}}', category: 'Contact' },
|
|
135
|
+
* { label: 'Unsubscribe Link', value: '{{unsubscribe_link}}', category: 'Email' },
|
|
136
|
+
* ]}
|
|
137
|
+
*/
|
|
138
|
+
mergeTags?: MergeTag[];
|
|
113
139
|
}
|
|
114
140
|
export interface ColumnLayoutOption {
|
|
115
141
|
label: string;
|
package/package.json
CHANGED