@mathews_cometchat/bubble-builder 1.0.0-alpha12 → 1.0.0-alpha14
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/App.d.ts +1 -0
- package/dist/bridge/api.d.ts +64 -0
- package/dist/bubble-builder.es.js +1403 -784
- package/dist/bubble-builder.umd.js +5 -5
- package/dist/components/Canvas.d.ts +2 -0
- package/dist/components/CanvasViewToggle.d.ts +4 -0
- package/dist/components/EditorLayout.d.ts +2 -0
- package/dist/components/ElementTree.d.ts +2 -0
- package/dist/components/LeftPanel.d.ts +2 -0
- package/dist/components/NotificationPreview.d.ts +3 -0
- package/dist/components/RightPanel.d.ts +2 -0
- package/dist/components/ShortcutsPanel.d.ts +2 -0
- package/dist/components/TemplateLibrary.d.ts +2 -0
- package/dist/components/TopBar.d.ts +2 -0
- package/dist/components/properties/ActionEditor.d.ts +7 -0
- package/dist/components/properties/BubbleSettingsEditor.d.ts +1 -0
- package/dist/components/properties/ElementPropertyEditor.d.ts +7 -0
- package/dist/components/properties/IconPicker.d.ts +6 -0
- package/dist/components/properties/NotificationEditor.d.ts +1 -0
- package/dist/components/properties/VariableInput.d.ts +10 -0
- package/dist/components/renderers/ElementRenderer.d.ts +19 -0
- package/dist/components/ui/Button.d.ts +8 -0
- package/dist/components/ui/Modal.d.ts +11 -0
- package/dist/config/builder-config.d.ts +31 -0
- package/dist/config/component-templates.d.ts +9 -0
- package/dist/config/element-defaults.d.ts +8 -0
- package/dist/config/icon-library.d.ts +11 -0
- package/dist/config/theme.d.ts +11 -0
- package/dist/config/uikit-theme.d.ts +73 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +1 -0
- package/dist/lib.d.ts +45 -0
- package/dist/store/builder-store.d.ts +86 -0
- package/dist/types/schema.d.ts +315 -0
- package/dist/utils/element-errors.d.ts +9 -0
- package/dist/utils/id.d.ts +4 -0
- package/dist/utils/validate.d.ts +6 -0
- package/package.json +10 -5
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { BubbleMessage } from '../types/schema';
|
|
2
|
+
export interface ApiTemplate {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
schemaVersion: string;
|
|
7
|
+
bubbleData: BubbleMessage;
|
|
8
|
+
thumbnail?: string;
|
|
9
|
+
createdBy?: string;
|
|
10
|
+
createdAt: number;
|
|
11
|
+
updatedAt: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ApiListMeta {
|
|
14
|
+
previous?: {
|
|
15
|
+
affix: string;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
};
|
|
18
|
+
current: {
|
|
19
|
+
limit: number;
|
|
20
|
+
count: number;
|
|
21
|
+
};
|
|
22
|
+
next?: {
|
|
23
|
+
affix: string;
|
|
24
|
+
createdAt: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface ApiError {
|
|
28
|
+
code: string;
|
|
29
|
+
message: string;
|
|
30
|
+
details?: string[];
|
|
31
|
+
}
|
|
32
|
+
export declare function listTemplates(params?: {
|
|
33
|
+
limit?: number;
|
|
34
|
+
affix?: 'prepend' | 'append';
|
|
35
|
+
createdAt?: number;
|
|
36
|
+
search?: string;
|
|
37
|
+
}): Promise<{
|
|
38
|
+
data: ApiTemplate[];
|
|
39
|
+
meta: ApiListMeta;
|
|
40
|
+
}>;
|
|
41
|
+
export declare function getTemplate(id: string): Promise<{
|
|
42
|
+
data: ApiTemplate;
|
|
43
|
+
}>;
|
|
44
|
+
export declare function createTemplate(body: {
|
|
45
|
+
name: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
bubbleData: BubbleMessage;
|
|
48
|
+
thumbnail?: string;
|
|
49
|
+
createdBy?: string;
|
|
50
|
+
}): Promise<{
|
|
51
|
+
data: ApiTemplate;
|
|
52
|
+
}>;
|
|
53
|
+
export declare function updateTemplate(id: string, body: {
|
|
54
|
+
name?: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
bubbleData?: BubbleMessage;
|
|
57
|
+
}): Promise<{
|
|
58
|
+
data: ApiTemplate;
|
|
59
|
+
}>;
|
|
60
|
+
export declare function deleteTemplate(id: string): Promise<{
|
|
61
|
+
data: {
|
|
62
|
+
success: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>;
|