slackblock 0.4.0 → 1.0.0-0
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/CHANGELOG.md +33 -26
- package/LICENSE +21 -21
- package/README.md +95 -85
- package/dist/block.cjs +341 -0
- package/dist/block.cjs.map +1 -0
- package/dist/block.d.mts +412 -0
- package/dist/block.d.ts +412 -0
- package/dist/block.mjs +268 -0
- package/dist/block.mjs.map +1 -0
- package/dist/index.cjs +1202 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +1170 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types.d-DgQXbJte.d.mts +296 -0
- package/dist/types.d-DgQXbJte.d.ts +296 -0
- package/package.json +85 -135
- package/blocks.js +0 -12
- package/index.js +0 -7
- package/lib/components/block/button.js +0 -27
- package/lib/components/block/confirmation.js +0 -27
- package/lib/components/block/image.js +0 -27
- package/lib/components/block/text.js +0 -27
- package/lib/components/index.js +0 -42
- package/lib/components/input/date-picker.js +0 -27
- package/lib/components/input/option-group.js +0 -27
- package/lib/components/input/option.js +0 -27
- package/lib/components/input/overflow.js +0 -27
- package/lib/components/input/radio-group.js +0 -27
- package/lib/components/input/select.js +0 -34
- package/lib/components/input/text.js +0 -27
- package/lib/components/layout/actions.js +0 -27
- package/lib/components/layout/container.js +0 -27
- package/lib/components/layout/context.js +0 -27
- package/lib/components/layout/divider.js +0 -27
- package/lib/components/layout/file.js +0 -27
- package/lib/components/layout/image.js +0 -27
- package/lib/components/layout/input.js +0 -27
- package/lib/components/layout/section.js +0 -27
- package/lib/components/message.js +0 -27
- package/lib/index.js +0 -7
- package/lib/parser/index.js +0 -32
- package/lib/renderer/index.js +0 -71
- package/lib/transformers/block/button.js +0 -29
- package/lib/transformers/block/confirmation.js +0 -18
- package/lib/transformers/block/image.js +0 -10
- package/lib/transformers/block/text.js +0 -16
- package/lib/transformers/index.js +0 -54
- package/lib/transformers/input/date-picker.js +0 -30
- package/lib/transformers/input/option-group.js +0 -19
- package/lib/transformers/input/option.js +0 -19
- package/lib/transformers/input/overflow.js +0 -19
- package/lib/transformers/input/radio-group.js +0 -22
- package/lib/transformers/input/select.js +0 -84
- package/lib/transformers/input/text.js +0 -31
- package/lib/transformers/layout/actions.js +0 -18
- package/lib/transformers/layout/container.js +0 -11
- package/lib/transformers/layout/context.js +0 -18
- package/lib/transformers/layout/divider.js +0 -10
- package/lib/transformers/layout/file.js +0 -14
- package/lib/transformers/layout/image.js +0 -23
- package/lib/transformers/layout/input.js +0 -26
- package/lib/transformers/layout/section.js +0 -31
- package/lib/utils/get-type.js +0 -16
- package/lib/utils/type-helpers.js +0 -2
- package/src/components/block/button.tsx +0 -20
- package/src/components/block/confirmation.tsx +0 -19
- package/src/components/block/image.tsx +0 -8
- package/src/components/block/text.tsx +0 -10
- package/src/components/index.ts +0 -23
- package/src/components/input/date-picker.tsx +0 -11
- package/src/components/input/option-group.tsx +0 -9
- package/src/components/input/option.tsx +0 -9
- package/src/components/input/overflow.tsx +0 -12
- package/src/components/input/radio-group.tsx +0 -13
- package/src/components/input/select.tsx +0 -36
- package/src/components/input/text.tsx +0 -12
- package/src/components/layout/actions.tsx +0 -9
- package/src/components/layout/container.tsx +0 -9
- package/src/components/layout/context.tsx +0 -12
- package/src/components/layout/divider.tsx +0 -7
- package/src/components/layout/file.tsx +0 -8
- package/src/components/layout/image.tsx +0 -10
- package/src/components/layout/input.tsx +0 -12
- package/src/components/layout/section.tsx +0 -15
- package/src/components/message.tsx +0 -20
- package/src/constants/types.d.ts +0 -93
- package/src/index.ts +0 -3
- package/src/parser/index.ts +0 -32
- package/src/renderer/index.ts +0 -75
- package/src/transformers/block/button.tsx +0 -47
- package/src/transformers/block/confirmation.tsx +0 -26
- package/src/transformers/block/image.ts +0 -18
- package/src/transformers/block/text.ts +0 -34
- package/src/transformers/index.ts +0 -65
- package/src/transformers/input/date-picker.tsx +0 -43
- package/src/transformers/input/option-group.tsx +0 -26
- package/src/transformers/input/option.tsx +0 -27
- package/src/transformers/input/overflow.ts +0 -33
- package/src/transformers/input/radio-group.ts +0 -38
- package/src/transformers/input/select.tsx +0 -136
- package/src/transformers/input/text.tsx +0 -47
- package/src/transformers/layout/actions.ts +0 -29
- package/src/transformers/layout/container.ts +0 -16
- package/src/transformers/layout/context.ts +0 -35
- package/src/transformers/layout/divider.ts +0 -20
- package/src/transformers/layout/file.ts +0 -24
- package/src/transformers/layout/image.tsx +0 -34
- package/src/transformers/layout/input.tsx +0 -39
- package/src/transformers/layout/section.ts +0 -53
- package/src/tsconfig.json +0 -11
- package/src/utils/get-type.ts +0 -20
- package/src/utils/type-helpers.ts +0 -1
- package/test/index.test.tsx +0 -11
- package/test/parser/parser.test.tsx +0 -67
- package/test/renderer/renderer.test.tsx +0 -138
- package/test/transformers/block/button.test.tsx +0 -63
- package/test/transformers/block/confirmation.test.tsx +0 -37
- package/test/transformers/block/image.test.tsx +0 -20
- package/test/transformers/block/text.test.tsx +0 -32
- package/test/transformers/input/date-picker.test.tsx +0 -66
- package/test/transformers/input/option-group.test.tsx +0 -26
- package/test/transformers/input/option.test.tsx +0 -36
- package/test/transformers/input/overflow.test.tsx +0 -57
- package/test/transformers/input/radio-group.test.tsx +0 -81
- package/test/transformers/input/select.test.tsx +0 -249
- package/test/transformers/input/text.test.tsx +0 -42
- package/test/transformers/layout/actions.test.tsx +0 -33
- package/test/transformers/layout/container.test.tsx +0 -34
- package/test/transformers/layout/context.test.tsx +0 -43
- package/test/transformers/layout/divider.test.tsx +0 -20
- package/test/transformers/layout/file.test.tsx +0 -26
- package/test/transformers/layout/image.test.tsx +0 -43
- package/test/transformers/layout/input.test.tsx +0 -59
- package/test/transformers/layout/section.test.tsx +0 -89
- package/test/tsconfig.json +0 -9
- package/test/utils/get-type.test.tsx +0 -21
- package/tsconfig.json +0 -14
package/dist/block.d.ts
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { E as Element, I as InteractiveBlockElement, a as InputBlockElement, B as BlockElement, C as Child } from './types.d-DgQXbJte.js';
|
|
3
|
+
|
|
4
|
+
type Properties$2 = {
|
|
5
|
+
children: string | Element | Element[];
|
|
6
|
+
text?: string;
|
|
7
|
+
asUser?: boolean;
|
|
8
|
+
iconEmoji?: string;
|
|
9
|
+
iconUrl?: string;
|
|
10
|
+
markdown?: boolean;
|
|
11
|
+
parse?: 'full' | 'none';
|
|
12
|
+
replyBroadcast?: boolean;
|
|
13
|
+
replyTo?: string;
|
|
14
|
+
unfurlLinks?: boolean;
|
|
15
|
+
unfurlMedia?: boolean;
|
|
16
|
+
username?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
};
|
|
19
|
+
declare class Message extends React.Component<Properties$2> {
|
|
20
|
+
static slackType: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type Props$y = {
|
|
24
|
+
children: string;
|
|
25
|
+
plainText?: boolean;
|
|
26
|
+
emoji?: boolean;
|
|
27
|
+
verbatim?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare class Text extends React.Component<Props$y> {
|
|
30
|
+
static slackType: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type TopProperties$1 = {
|
|
34
|
+
title: string;
|
|
35
|
+
confirm: string;
|
|
36
|
+
deny: string;
|
|
37
|
+
};
|
|
38
|
+
type ConfirmationProps = TopProperties$1 & {
|
|
39
|
+
children: React.ReactElement<Text>;
|
|
40
|
+
};
|
|
41
|
+
type Properties$1 = ConfirmationProps;
|
|
42
|
+
declare class Confirmation extends React.Component<Properties$1> {
|
|
43
|
+
static slackType: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type TopProperties = {
|
|
47
|
+
children: string;
|
|
48
|
+
actionId: string;
|
|
49
|
+
url?: string;
|
|
50
|
+
value?: string;
|
|
51
|
+
style?: 'primary' | 'danger';
|
|
52
|
+
accessibilityLabel?: string;
|
|
53
|
+
};
|
|
54
|
+
type ButtonProps = TopProperties & {
|
|
55
|
+
confirm?: React.ReactElement<Confirmation>;
|
|
56
|
+
};
|
|
57
|
+
type Properties = ButtonProps;
|
|
58
|
+
declare class Button extends React.Component<Properties> {
|
|
59
|
+
static slackType: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type Props$x = {
|
|
63
|
+
url: string;
|
|
64
|
+
alt: string;
|
|
65
|
+
};
|
|
66
|
+
declare class Image$1 extends React.Component<Props$x> {
|
|
67
|
+
static slackType: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
type Props$w = {
|
|
71
|
+
actionId: string;
|
|
72
|
+
placeholder?: string;
|
|
73
|
+
initialDate?: string;
|
|
74
|
+
confirm?: React.ReactElement<Confirmation>;
|
|
75
|
+
focusOnLoad?: boolean;
|
|
76
|
+
};
|
|
77
|
+
declare class DatePicker extends React.Component<Props$w> {
|
|
78
|
+
static slackType: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
type Props$v = {
|
|
82
|
+
actionId: string;
|
|
83
|
+
initialDateTime?: number;
|
|
84
|
+
confirm?: React.ReactElement<Confirmation>;
|
|
85
|
+
focusOnLoad?: boolean;
|
|
86
|
+
};
|
|
87
|
+
declare class DateTimePicker extends React.Component<Props$v> {
|
|
88
|
+
static slackType: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
type SingleOrArray<T> = T | T[];
|
|
92
|
+
|
|
93
|
+
type Props$u = {
|
|
94
|
+
children: string;
|
|
95
|
+
value: string;
|
|
96
|
+
url?: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
};
|
|
99
|
+
declare class Option extends React.Component<Props$u> {
|
|
100
|
+
static slackType: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
type Props$t = {
|
|
104
|
+
actionId: string;
|
|
105
|
+
children: SingleOrArray<React.ReactElement<Option>>;
|
|
106
|
+
initialOptions?: Array<React.ReactElement<Option>>;
|
|
107
|
+
confirm?: React.ReactElement<Confirmation>;
|
|
108
|
+
focusOnLoad?: boolean;
|
|
109
|
+
};
|
|
110
|
+
declare class Checkboxes extends React.Component<Props$t> {
|
|
111
|
+
static slackType: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
type Props$s = {
|
|
115
|
+
label: string;
|
|
116
|
+
children: React.ReactElement<Option> | Array<React.ReactElement<Option>>;
|
|
117
|
+
};
|
|
118
|
+
declare class OptionGroup extends React.Component<Props$s> {
|
|
119
|
+
static slackType: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
type Props$r = {
|
|
123
|
+
actionId: string;
|
|
124
|
+
children: SingleOrArray<React.ReactElement<Option>>;
|
|
125
|
+
confirm?: React.ReactElement<Confirmation>;
|
|
126
|
+
};
|
|
127
|
+
declare class Overflow extends React.Component<Props$r> {
|
|
128
|
+
static slackType: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
type Props$q = {
|
|
132
|
+
actionId: string;
|
|
133
|
+
children: SingleOrArray<React.ReactElement<Option>>;
|
|
134
|
+
initialOption?: React.ReactElement<Option>;
|
|
135
|
+
confirm?: React.ReactElement<Confirmation>;
|
|
136
|
+
focusOnLoad?: boolean;
|
|
137
|
+
};
|
|
138
|
+
declare class RadioGroup extends React.Component<Props$q> {
|
|
139
|
+
static slackType: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare const selectTypes: {
|
|
143
|
+
readonly STATIC: "static";
|
|
144
|
+
readonly EXTERNAL: "external";
|
|
145
|
+
readonly USER: "user";
|
|
146
|
+
readonly CONVERSATION: "conversation";
|
|
147
|
+
readonly CHANNEL: "channel";
|
|
148
|
+
};
|
|
149
|
+
type SelectType = typeof selectTypes[keyof typeof selectTypes];
|
|
150
|
+
type ConversationFilter = {
|
|
151
|
+
include?: Array<'im' | 'mpim' | 'private' | 'public'>;
|
|
152
|
+
excludeExternalSharedChannels?: boolean;
|
|
153
|
+
excludeBotUsers?: boolean;
|
|
154
|
+
};
|
|
155
|
+
type Props$p = {
|
|
156
|
+
placeholder: string;
|
|
157
|
+
actionId: string;
|
|
158
|
+
type?: SelectType;
|
|
159
|
+
multi?: boolean;
|
|
160
|
+
children?: SingleOrArray<React.ReactElement<Option>> | SingleOrArray<React.ReactElement<OptionGroup>>;
|
|
161
|
+
initialOptions?: Array<React.ReactElement<Option>>;
|
|
162
|
+
confirm?: React.ReactElement<Confirmation>;
|
|
163
|
+
maxSelectedItems?: number;
|
|
164
|
+
minQueryLength?: number;
|
|
165
|
+
focusOnLoad?: boolean;
|
|
166
|
+
initialUsers?: string[];
|
|
167
|
+
initialConversations?: string[];
|
|
168
|
+
initialChannels?: string[];
|
|
169
|
+
defaultToCurrentConversation?: boolean;
|
|
170
|
+
responseUrlEnabled?: boolean;
|
|
171
|
+
filter?: ConversationFilter;
|
|
172
|
+
};
|
|
173
|
+
declare class Select extends React.Component<Props$p> {
|
|
174
|
+
static slackType: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
type Props$o = {
|
|
178
|
+
actionId: string;
|
|
179
|
+
placeholder?: string;
|
|
180
|
+
initial?: string;
|
|
181
|
+
multiline?: boolean;
|
|
182
|
+
minLength?: number;
|
|
183
|
+
maxLength?: number;
|
|
184
|
+
focusOnLoad?: boolean;
|
|
185
|
+
dispatchActionConfig?: {
|
|
186
|
+
triggerActionsOn: Array<'on_enter_pressed' | 'on_character_entered'>;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
declare class TextInput extends React.Component<Props$o> {
|
|
190
|
+
static slackType: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
type Props$n = {
|
|
194
|
+
actionId: string;
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
initialTime?: string;
|
|
197
|
+
confirm?: React.ReactElement<Confirmation>;
|
|
198
|
+
focusOnLoad?: boolean;
|
|
199
|
+
};
|
|
200
|
+
declare class TimePicker extends React.Component<Props$n> {
|
|
201
|
+
static slackType: string;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
type Props$m = {
|
|
205
|
+
children: InteractiveBlockElement | InteractiveBlockElement[];
|
|
206
|
+
blockId?: string;
|
|
207
|
+
};
|
|
208
|
+
declare class Actions extends React.Component<Props$m> {
|
|
209
|
+
static slackType: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
type ImageOrText = React.ReactElement<Text> | React.ReactElement<Image$1>;
|
|
213
|
+
type Props$l = {
|
|
214
|
+
children: ImageOrText | ImageOrText[];
|
|
215
|
+
blockId?: string;
|
|
216
|
+
};
|
|
217
|
+
declare class Context extends React.Component<Props$l> {
|
|
218
|
+
static slackType: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
type Props$k = {
|
|
222
|
+
blockId?: string;
|
|
223
|
+
};
|
|
224
|
+
declare class Divider extends React.Component<Props$k> {
|
|
225
|
+
static slackType: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
type Props$j = {
|
|
229
|
+
externalId: string;
|
|
230
|
+
blockId?: string;
|
|
231
|
+
};
|
|
232
|
+
declare class File extends React.Component<Props$j> {
|
|
233
|
+
static slackType: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
type Props$i = {
|
|
237
|
+
text: string;
|
|
238
|
+
blockId?: string;
|
|
239
|
+
emoji?: boolean;
|
|
240
|
+
};
|
|
241
|
+
declare class Header extends React.Component<Props$i> {
|
|
242
|
+
static slackType: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
type Props$h = {
|
|
246
|
+
url: string;
|
|
247
|
+
alt: string;
|
|
248
|
+
title?: string;
|
|
249
|
+
blockId?: string;
|
|
250
|
+
};
|
|
251
|
+
declare class Image extends React.Component<Props$h> {
|
|
252
|
+
static slackType: string;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
type Props$g = {
|
|
256
|
+
label: string;
|
|
257
|
+
element: InputBlockElement;
|
|
258
|
+
hint?: string;
|
|
259
|
+
optional?: boolean;
|
|
260
|
+
blockId?: string;
|
|
261
|
+
};
|
|
262
|
+
declare class Input extends React.Component<Props$g> {
|
|
263
|
+
static slackType: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
type RichTextElement = Record<string, any>;
|
|
267
|
+
type Props$f = {
|
|
268
|
+
elements?: RichTextElement[];
|
|
269
|
+
children?: SingleOrArray<React.ReactElement | string>;
|
|
270
|
+
blockId?: string;
|
|
271
|
+
};
|
|
272
|
+
declare class RichText extends React.Component<Props$f> {
|
|
273
|
+
static slackType: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
type TextElement = React.ReactElement<Text>;
|
|
277
|
+
type Props$e = {
|
|
278
|
+
text: React.ReactElement<Text>;
|
|
279
|
+
blockId?: string;
|
|
280
|
+
children?: TextElement | TextElement[];
|
|
281
|
+
accessory?: BlockElement;
|
|
282
|
+
};
|
|
283
|
+
declare class Section extends React.Component<Props$e> {
|
|
284
|
+
static slackType: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
type Props$d = {
|
|
288
|
+
children: SingleOrArray<Child>;
|
|
289
|
+
};
|
|
290
|
+
declare class Container extends React.Component<Props$d> {
|
|
291
|
+
static slackType: string;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
type Props$c = {
|
|
295
|
+
title: string;
|
|
296
|
+
videoUrl: string;
|
|
297
|
+
thumbnailUrl: string;
|
|
298
|
+
altText: string;
|
|
299
|
+
titleUrl?: string;
|
|
300
|
+
description?: string;
|
|
301
|
+
authorName?: string;
|
|
302
|
+
providerName?: string;
|
|
303
|
+
providerIconUrl?: string;
|
|
304
|
+
blockId?: string;
|
|
305
|
+
};
|
|
306
|
+
declare class Video extends React.Component<Props$c> {
|
|
307
|
+
static slackType: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
type Props$b = {
|
|
311
|
+
children: SingleOrArray<React.ReactElement | string>;
|
|
312
|
+
};
|
|
313
|
+
declare class RichTextSection extends React.Component<Props$b> {
|
|
314
|
+
static slackType: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
type RichTextStyle = {
|
|
318
|
+
bold?: boolean;
|
|
319
|
+
italic?: boolean;
|
|
320
|
+
strike?: boolean;
|
|
321
|
+
code?: boolean;
|
|
322
|
+
};
|
|
323
|
+
type RichTextListStyle = 'ordered' | 'bullet';
|
|
324
|
+
type RichTextBroadcastRange = 'here' | 'channel' | 'everyone';
|
|
325
|
+
|
|
326
|
+
type Props$a = {
|
|
327
|
+
style: RichTextListStyle;
|
|
328
|
+
children: SingleOrArray<React.ReactElement | string>;
|
|
329
|
+
indent?: number;
|
|
330
|
+
border?: number;
|
|
331
|
+
};
|
|
332
|
+
declare class RichTextList extends React.Component<Props$a> {
|
|
333
|
+
static slackType: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
type Props$9 = {
|
|
337
|
+
children: SingleOrArray<React.ReactElement | string>;
|
|
338
|
+
};
|
|
339
|
+
declare class RichTextQuote extends React.Component<Props$9> {
|
|
340
|
+
static slackType: string;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
type Props$8 = {
|
|
344
|
+
children: SingleOrArray<React.ReactElement | string>;
|
|
345
|
+
};
|
|
346
|
+
declare class RichTextPreformatted extends React.Component<Props$8> {
|
|
347
|
+
static slackType: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
type Props$7 = {
|
|
351
|
+
children: string;
|
|
352
|
+
style?: RichTextStyle;
|
|
353
|
+
};
|
|
354
|
+
declare class RichTextText extends React.Component<Props$7> {
|
|
355
|
+
static slackType: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
type Props$6 = {
|
|
359
|
+
url: string;
|
|
360
|
+
children?: string;
|
|
361
|
+
style?: RichTextStyle;
|
|
362
|
+
};
|
|
363
|
+
declare class RichTextLink extends React.Component<Props$6> {
|
|
364
|
+
static slackType: string;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
type Props$5 = {
|
|
368
|
+
userId: string;
|
|
369
|
+
};
|
|
370
|
+
declare class RichTextUser extends React.Component<Props$5> {
|
|
371
|
+
static slackType: string;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
type Props$4 = {
|
|
375
|
+
channelId: string;
|
|
376
|
+
};
|
|
377
|
+
declare class RichTextChannel extends React.Component<Props$4> {
|
|
378
|
+
static slackType: string;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
type Props$3 = {
|
|
382
|
+
name: string;
|
|
383
|
+
};
|
|
384
|
+
declare class RichTextEmoji extends React.Component<Props$3> {
|
|
385
|
+
static slackType: string;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
type Props$2 = {
|
|
389
|
+
timestamp: number;
|
|
390
|
+
format: string;
|
|
391
|
+
fallback: string;
|
|
392
|
+
link?: string;
|
|
393
|
+
};
|
|
394
|
+
declare class RichTextDate extends React.Component<Props$2> {
|
|
395
|
+
static slackType: string;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
type Props$1 = {
|
|
399
|
+
range: RichTextBroadcastRange;
|
|
400
|
+
};
|
|
401
|
+
declare class RichTextBroadcast extends React.Component<Props$1> {
|
|
402
|
+
static slackType: string;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
type Props = {
|
|
406
|
+
usergroupId: string;
|
|
407
|
+
};
|
|
408
|
+
declare class RichTextUserGroup extends React.Component<Props> {
|
|
409
|
+
static slackType: string;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export { Actions, Button, Checkboxes, Confirmation, Container, Context, DatePicker, DateTimePicker, Divider, File, Header, Image$1 as Image, Image as ImageLayout, Input, Message, Option, OptionGroup, Overflow, RadioGroup, RichText, RichTextBroadcast, RichTextChannel, RichTextDate, RichTextEmoji, RichTextLink, RichTextList, RichTextPreformatted, RichTextQuote, RichTextSection, RichTextText, RichTextUser, RichTextUserGroup, Section, Select, Text, TextInput, TimePicker, Video };
|
package/dist/block.mjs
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
// src/components/message.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
var Message = class extends React.Component {
|
|
4
|
+
};
|
|
5
|
+
Message.slackType = "Message";
|
|
6
|
+
|
|
7
|
+
// src/components/block/button.tsx
|
|
8
|
+
import React2 from "react";
|
|
9
|
+
var Button = class extends React2.Component {
|
|
10
|
+
};
|
|
11
|
+
Button.slackType = "Button";
|
|
12
|
+
|
|
13
|
+
// src/components/block/confirmation.tsx
|
|
14
|
+
import React3 from "react";
|
|
15
|
+
var Confirmation = class extends React3.Component {
|
|
16
|
+
};
|
|
17
|
+
Confirmation.slackType = "Confirmation";
|
|
18
|
+
|
|
19
|
+
// src/components/block/image.tsx
|
|
20
|
+
import React4 from "react";
|
|
21
|
+
var Image = class extends React4.Component {
|
|
22
|
+
};
|
|
23
|
+
Image.slackType = "Image";
|
|
24
|
+
|
|
25
|
+
// src/components/block/text.tsx
|
|
26
|
+
import React5 from "react";
|
|
27
|
+
var Text = class extends React5.Component {
|
|
28
|
+
};
|
|
29
|
+
Text.slackType = "Text";
|
|
30
|
+
|
|
31
|
+
// src/components/input/date-picker.tsx
|
|
32
|
+
import React6 from "react";
|
|
33
|
+
var DatePicker = class extends React6.Component {
|
|
34
|
+
};
|
|
35
|
+
DatePicker.slackType = "DatePicker";
|
|
36
|
+
|
|
37
|
+
// src/components/input/date-time-picker.tsx
|
|
38
|
+
import React7 from "react";
|
|
39
|
+
var DateTimePicker = class extends React7.Component {
|
|
40
|
+
};
|
|
41
|
+
DateTimePicker.slackType = "DateTimePicker";
|
|
42
|
+
|
|
43
|
+
// src/components/input/checkboxes.tsx
|
|
44
|
+
import React8 from "react";
|
|
45
|
+
var Checkboxes = class extends React8.Component {
|
|
46
|
+
};
|
|
47
|
+
Checkboxes.slackType = "Checkboxes";
|
|
48
|
+
|
|
49
|
+
// src/components/input/option-group.tsx
|
|
50
|
+
import React9 from "react";
|
|
51
|
+
var OptionGroup = class extends React9.Component {
|
|
52
|
+
};
|
|
53
|
+
OptionGroup.slackType = "OptionGroup";
|
|
54
|
+
|
|
55
|
+
// src/components/input/option.tsx
|
|
56
|
+
import React10 from "react";
|
|
57
|
+
var Option = class extends React10.Component {
|
|
58
|
+
};
|
|
59
|
+
Option.slackType = "Option";
|
|
60
|
+
|
|
61
|
+
// src/components/input/overflow.tsx
|
|
62
|
+
import React11 from "react";
|
|
63
|
+
var Overflow = class extends React11.Component {
|
|
64
|
+
};
|
|
65
|
+
Overflow.slackType = "Overflow";
|
|
66
|
+
|
|
67
|
+
// src/components/input/radio-group.tsx
|
|
68
|
+
import React12 from "react";
|
|
69
|
+
var RadioGroup = class extends React12.Component {
|
|
70
|
+
};
|
|
71
|
+
RadioGroup.slackType = "RadioGroup";
|
|
72
|
+
|
|
73
|
+
// src/components/input/select.tsx
|
|
74
|
+
import React13 from "react";
|
|
75
|
+
var Select = class extends React13.Component {
|
|
76
|
+
};
|
|
77
|
+
Select.slackType = "Select";
|
|
78
|
+
|
|
79
|
+
// src/components/input/text.tsx
|
|
80
|
+
import React14 from "react";
|
|
81
|
+
var TextInput = class extends React14.Component {
|
|
82
|
+
};
|
|
83
|
+
TextInput.slackType = "TextInput";
|
|
84
|
+
|
|
85
|
+
// src/components/input/time-picker.tsx
|
|
86
|
+
import React15 from "react";
|
|
87
|
+
var TimePicker = class extends React15.Component {
|
|
88
|
+
};
|
|
89
|
+
TimePicker.slackType = "TimePicker";
|
|
90
|
+
|
|
91
|
+
// src/components/layout/actions.tsx
|
|
92
|
+
import React16 from "react";
|
|
93
|
+
var Actions = class extends React16.Component {
|
|
94
|
+
};
|
|
95
|
+
Actions.slackType = "Actions";
|
|
96
|
+
|
|
97
|
+
// src/components/layout/context.tsx
|
|
98
|
+
import React17 from "react";
|
|
99
|
+
var Context = class extends React17.Component {
|
|
100
|
+
};
|
|
101
|
+
Context.slackType = "Context";
|
|
102
|
+
|
|
103
|
+
// src/components/layout/divider.tsx
|
|
104
|
+
import React18 from "react";
|
|
105
|
+
var Divider = class extends React18.Component {
|
|
106
|
+
};
|
|
107
|
+
Divider.slackType = "Divider";
|
|
108
|
+
|
|
109
|
+
// src/components/layout/file.tsx
|
|
110
|
+
import React19 from "react";
|
|
111
|
+
var File = class extends React19.Component {
|
|
112
|
+
};
|
|
113
|
+
File.slackType = "File";
|
|
114
|
+
|
|
115
|
+
// src/components/layout/header.tsx
|
|
116
|
+
import React20 from "react";
|
|
117
|
+
var Header = class extends React20.Component {
|
|
118
|
+
};
|
|
119
|
+
Header.slackType = "Header";
|
|
120
|
+
|
|
121
|
+
// src/components/layout/image.tsx
|
|
122
|
+
import React21 from "react";
|
|
123
|
+
var Image2 = class extends React21.Component {
|
|
124
|
+
};
|
|
125
|
+
Image2.slackType = "ImageLayout";
|
|
126
|
+
|
|
127
|
+
// src/components/layout/input.tsx
|
|
128
|
+
import React22 from "react";
|
|
129
|
+
var Input = class extends React22.Component {
|
|
130
|
+
};
|
|
131
|
+
Input.slackType = "Input";
|
|
132
|
+
|
|
133
|
+
// src/components/layout/rich-text.tsx
|
|
134
|
+
import React23 from "react";
|
|
135
|
+
var RichText = class extends React23.Component {
|
|
136
|
+
};
|
|
137
|
+
RichText.slackType = "RichText";
|
|
138
|
+
|
|
139
|
+
// src/components/layout/section.tsx
|
|
140
|
+
import React24 from "react";
|
|
141
|
+
var Section = class extends React24.Component {
|
|
142
|
+
};
|
|
143
|
+
Section.slackType = "Section";
|
|
144
|
+
|
|
145
|
+
// src/components/layout/container.tsx
|
|
146
|
+
import React25 from "react";
|
|
147
|
+
var Container = class extends React25.Component {
|
|
148
|
+
};
|
|
149
|
+
Container.slackType = "Container";
|
|
150
|
+
|
|
151
|
+
// src/components/layout/video.tsx
|
|
152
|
+
import React26 from "react";
|
|
153
|
+
var Video = class extends React26.Component {
|
|
154
|
+
};
|
|
155
|
+
Video.slackType = "Video";
|
|
156
|
+
|
|
157
|
+
// src/components/rich-text/section.tsx
|
|
158
|
+
import React27 from "react";
|
|
159
|
+
var RichTextSection = class extends React27.Component {
|
|
160
|
+
};
|
|
161
|
+
RichTextSection.slackType = "RichTextSection";
|
|
162
|
+
|
|
163
|
+
// src/components/rich-text/list.tsx
|
|
164
|
+
import React28 from "react";
|
|
165
|
+
var RichTextList = class extends React28.Component {
|
|
166
|
+
};
|
|
167
|
+
RichTextList.slackType = "RichTextList";
|
|
168
|
+
|
|
169
|
+
// src/components/rich-text/quote.tsx
|
|
170
|
+
import React29 from "react";
|
|
171
|
+
var RichTextQuote = class extends React29.Component {
|
|
172
|
+
};
|
|
173
|
+
RichTextQuote.slackType = "RichTextQuote";
|
|
174
|
+
|
|
175
|
+
// src/components/rich-text/preformatted.tsx
|
|
176
|
+
import React30 from "react";
|
|
177
|
+
var RichTextPreformatted = class extends React30.Component {
|
|
178
|
+
};
|
|
179
|
+
RichTextPreformatted.slackType = "RichTextPreformatted";
|
|
180
|
+
|
|
181
|
+
// src/components/rich-text/text.tsx
|
|
182
|
+
import React31 from "react";
|
|
183
|
+
var RichTextText = class extends React31.Component {
|
|
184
|
+
};
|
|
185
|
+
RichTextText.slackType = "RichTextText";
|
|
186
|
+
|
|
187
|
+
// src/components/rich-text/link.tsx
|
|
188
|
+
import React32 from "react";
|
|
189
|
+
var RichTextLink = class extends React32.Component {
|
|
190
|
+
};
|
|
191
|
+
RichTextLink.slackType = "RichTextLink";
|
|
192
|
+
|
|
193
|
+
// src/components/rich-text/user.tsx
|
|
194
|
+
import React33 from "react";
|
|
195
|
+
var RichTextUser = class extends React33.Component {
|
|
196
|
+
};
|
|
197
|
+
RichTextUser.slackType = "RichTextUser";
|
|
198
|
+
|
|
199
|
+
// src/components/rich-text/channel.tsx
|
|
200
|
+
import React34 from "react";
|
|
201
|
+
var RichTextChannel = class extends React34.Component {
|
|
202
|
+
};
|
|
203
|
+
RichTextChannel.slackType = "RichTextChannel";
|
|
204
|
+
|
|
205
|
+
// src/components/rich-text/emoji.tsx
|
|
206
|
+
import React35 from "react";
|
|
207
|
+
var RichTextEmoji = class extends React35.Component {
|
|
208
|
+
};
|
|
209
|
+
RichTextEmoji.slackType = "RichTextEmoji";
|
|
210
|
+
|
|
211
|
+
// src/components/rich-text/date.tsx
|
|
212
|
+
import React36 from "react";
|
|
213
|
+
var RichTextDate = class extends React36.Component {
|
|
214
|
+
};
|
|
215
|
+
RichTextDate.slackType = "RichTextDate";
|
|
216
|
+
|
|
217
|
+
// src/components/rich-text/broadcast.tsx
|
|
218
|
+
import React37 from "react";
|
|
219
|
+
var RichTextBroadcast = class extends React37.Component {
|
|
220
|
+
};
|
|
221
|
+
RichTextBroadcast.slackType = "RichTextBroadcast";
|
|
222
|
+
|
|
223
|
+
// src/components/rich-text/user-group.tsx
|
|
224
|
+
import React38 from "react";
|
|
225
|
+
var RichTextUserGroup = class extends React38.Component {
|
|
226
|
+
};
|
|
227
|
+
RichTextUserGroup.slackType = "RichTextUserGroup";
|
|
228
|
+
export {
|
|
229
|
+
Actions,
|
|
230
|
+
Button,
|
|
231
|
+
Checkboxes,
|
|
232
|
+
Confirmation,
|
|
233
|
+
Container,
|
|
234
|
+
Context,
|
|
235
|
+
DatePicker,
|
|
236
|
+
DateTimePicker,
|
|
237
|
+
Divider,
|
|
238
|
+
File,
|
|
239
|
+
Header,
|
|
240
|
+
Image,
|
|
241
|
+
Image2 as ImageLayout,
|
|
242
|
+
Input,
|
|
243
|
+
Message,
|
|
244
|
+
Option,
|
|
245
|
+
OptionGroup,
|
|
246
|
+
Overflow,
|
|
247
|
+
RadioGroup,
|
|
248
|
+
RichText,
|
|
249
|
+
RichTextBroadcast,
|
|
250
|
+
RichTextChannel,
|
|
251
|
+
RichTextDate,
|
|
252
|
+
RichTextEmoji,
|
|
253
|
+
RichTextLink,
|
|
254
|
+
RichTextList,
|
|
255
|
+
RichTextPreformatted,
|
|
256
|
+
RichTextQuote,
|
|
257
|
+
RichTextSection,
|
|
258
|
+
RichTextText,
|
|
259
|
+
RichTextUser,
|
|
260
|
+
RichTextUserGroup,
|
|
261
|
+
Section,
|
|
262
|
+
Select,
|
|
263
|
+
Text,
|
|
264
|
+
TextInput,
|
|
265
|
+
TimePicker,
|
|
266
|
+
Video
|
|
267
|
+
};
|
|
268
|
+
//# sourceMappingURL=block.mjs.map
|