@truecodeio/sdk-react 0.2.13 → 0.2.15
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/index.d.ts +2 -124
- package/dist/index.js +1340 -71
- package/dist/index.js.map +1 -1
- package/dist/sdk-react/src/index.d.ts +150 -0
- package/package.json +13 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,124 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
client: ReturnType<typeof createBokoClient>;
|
|
4
|
-
}>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const useClient: () => {
|
|
6
|
-
getEligibleCampaign: () => Promise<{
|
|
7
|
-
template: {
|
|
8
|
-
content: Readonly<{
|
|
9
|
-
id: string;
|
|
10
|
-
type: "root";
|
|
11
|
-
name: string;
|
|
12
|
-
isCollapsed: boolean;
|
|
13
|
-
props: Readonly<{
|
|
14
|
-
color: string;
|
|
15
|
-
}>;
|
|
16
|
-
children: readonly Readonly<{
|
|
17
|
-
id: string;
|
|
18
|
-
type: "row";
|
|
19
|
-
name: string;
|
|
20
|
-
isCollapsed: boolean;
|
|
21
|
-
props: Readonly<{
|
|
22
|
-
padding: Readonly<{
|
|
23
|
-
top: number;
|
|
24
|
-
right: number;
|
|
25
|
-
bottom: number;
|
|
26
|
-
left: number;
|
|
27
|
-
}>;
|
|
28
|
-
gap: number;
|
|
29
|
-
background: Readonly<{
|
|
30
|
-
color: string;
|
|
31
|
-
}>;
|
|
32
|
-
alignment: Readonly<{
|
|
33
|
-
horizontal: "default" | "start" | "center" | "end";
|
|
34
|
-
}>;
|
|
35
|
-
}>;
|
|
36
|
-
children: readonly Readonly<{
|
|
37
|
-
id: string;
|
|
38
|
-
type: "column";
|
|
39
|
-
name: string;
|
|
40
|
-
isCollapsed: boolean;
|
|
41
|
-
props: Readonly<{
|
|
42
|
-
flexChildSize: "default" | "equal" | "none";
|
|
43
|
-
alignment: Readonly<{
|
|
44
|
-
vertical: "start" | "center" | "end";
|
|
45
|
-
}>;
|
|
46
|
-
}>;
|
|
47
|
-
children: readonly (Readonly<{
|
|
48
|
-
id: string;
|
|
49
|
-
type: "spacer";
|
|
50
|
-
name: string;
|
|
51
|
-
isCollapsed: boolean;
|
|
52
|
-
props: Readonly<{
|
|
53
|
-
size: number;
|
|
54
|
-
}>;
|
|
55
|
-
}> | Readonly<{
|
|
56
|
-
id: string;
|
|
57
|
-
type: "text";
|
|
58
|
-
name: string;
|
|
59
|
-
isCollapsed: boolean;
|
|
60
|
-
props: Readonly<{
|
|
61
|
-
content: string;
|
|
62
|
-
}>;
|
|
63
|
-
}> | Readonly<{
|
|
64
|
-
id: string;
|
|
65
|
-
type: "image";
|
|
66
|
-
name: string;
|
|
67
|
-
isCollapsed: boolean;
|
|
68
|
-
props: Readonly<{
|
|
69
|
-
type: "placeholder";
|
|
70
|
-
}> | Readonly<{
|
|
71
|
-
type: "image";
|
|
72
|
-
url: string;
|
|
73
|
-
fileName: string;
|
|
74
|
-
altText: string;
|
|
75
|
-
width: number;
|
|
76
|
-
height: number;
|
|
77
|
-
preserveAspectRatio: boolean;
|
|
78
|
-
}>;
|
|
79
|
-
}> | Readonly<{
|
|
80
|
-
id: string;
|
|
81
|
-
type: "button";
|
|
82
|
-
name: string;
|
|
83
|
-
isCollapsed: boolean;
|
|
84
|
-
props: Readonly<{
|
|
85
|
-
title: string;
|
|
86
|
-
background: Readonly<{
|
|
87
|
-
color: Readonly<{
|
|
88
|
-
default: string;
|
|
89
|
-
hover: string;
|
|
90
|
-
}>;
|
|
91
|
-
}>;
|
|
92
|
-
text: Readonly<{
|
|
93
|
-
color: Readonly<{
|
|
94
|
-
default: string;
|
|
95
|
-
hover: string;
|
|
96
|
-
}>;
|
|
97
|
-
}>;
|
|
98
|
-
padding: Readonly<{
|
|
99
|
-
top: number;
|
|
100
|
-
right: number;
|
|
101
|
-
bottom: number;
|
|
102
|
-
left: number;
|
|
103
|
-
}>;
|
|
104
|
-
borderRadius: number;
|
|
105
|
-
fontSize: number;
|
|
106
|
-
fontWeight: number;
|
|
107
|
-
}>;
|
|
108
|
-
}>)[];
|
|
109
|
-
}>[];
|
|
110
|
-
}>[];
|
|
111
|
-
}>;
|
|
112
|
-
id: string;
|
|
113
|
-
name: string;
|
|
114
|
-
organizationId: string;
|
|
115
|
-
createdBy: string;
|
|
116
|
-
createdAt: Date;
|
|
117
|
-
updatedAt: Date;
|
|
118
|
-
status: string;
|
|
119
|
-
};
|
|
120
|
-
id: string;
|
|
121
|
-
} | null>;
|
|
122
|
-
};
|
|
123
|
-
export declare const Renderer: () => any;
|
|
124
|
-
export { createBokoClient } from '@truecodeio/sdk-core';
|
|
1
|
+
export * from './sdk-react/src/index'
|
|
2
|
+
export {}
|