@forge/react 0.0.0-experimental-9489df9 → 0.0.0-experimental-72f4150

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +98 -2
  2. package/out/__test__/styles.test.d.ts +2 -0
  3. package/out/__test__/styles.test.d.ts.map +1 -0
  4. package/out/__test__/styles.test.js +90 -0
  5. package/out/components.d.ts +61 -0
  6. package/out/components.d.ts.map +1 -0
  7. package/out/components.js +63 -0
  8. package/out/index.d.ts +4 -0
  9. package/out/index.d.ts.map +1 -0
  10. package/out/index.js +8 -0
  11. package/out/reconciler.d.ts +5 -0
  12. package/out/reconciler.d.ts.map +1 -0
  13. package/out/reconciler.js +144 -0
  14. package/out/styles/index.d.ts +29 -0
  15. package/out/styles/index.d.ts.map +1 -0
  16. package/out/styles/index.js +154 -0
  17. package/out/types/components.d.ts +387 -0
  18. package/out/types/components.d.ts.map +1 -0
  19. package/out/types/components.js +2 -0
  20. package/out/types/effect.d.ts +57 -0
  21. package/out/types/effect.d.ts.map +1 -0
  22. package/out/types/effect.js +23 -0
  23. package/out/types/extension.d.ts +10 -0
  24. package/out/types/extension.d.ts.map +1 -0
  25. package/out/types/extension.js +2 -0
  26. package/out/types/forge.d.ts +146 -0
  27. package/out/types/forge.d.ts.map +1 -0
  28. package/out/types/forge.js +30 -0
  29. package/out/types/icons.d.ts +2 -0
  30. package/out/types/icons.d.ts.map +1 -0
  31. package/out/types/icons.js +2 -0
  32. package/out/types/index.d.ts +11 -0
  33. package/out/types/index.d.ts.map +1 -0
  34. package/out/types/index.js +28 -0
  35. package/out/types/legacy-effect.d.ts +40 -0
  36. package/out/types/legacy-effect.d.ts.map +1 -0
  37. package/out/types/legacy-effect.js +25 -0
  38. package/out/types/styles.d.ts +154 -0
  39. package/out/types/styles.d.ts.map +1 -0
  40. package/out/types/styles.js +2 -0
  41. package/package.json +4 -3
  42. package/tsconfig.tsbuildinfo +1 -0
  43. package/src/globals.d.ts +0 -12
  44. package/src/index.ts +0 -1
  45. package/src/reconciler.ts +0 -219
  46. package/tsconfig.json +0 -9
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.active = exports.hover = exports.focus = exports.url = exports.skew = exports.rotate = exports.scale = exports.translate = exports.radialGradient = exports.linearGradient = exports.gradientStep = exports.shadow = exports.rgb = exports.rgba = exports.StyleSheet = void 0;
4
+ exports.StyleSheet = {
5
+ create(definitions) {
6
+ const stylesheet = {};
7
+ for (const key in definitions) {
8
+ const definition = definitions[key];
9
+ if (typeof definition === 'function') {
10
+ const compose = (...primitivesDefinitions) => {
11
+ return primitivesDefinitions.reduce((acc, primitives) => {
12
+ return Object.assign(Object.assign({}, acc), primitives);
13
+ }, {});
14
+ };
15
+ stylesheet[key] = definition(compose);
16
+ }
17
+ else {
18
+ stylesheet[key] = definition;
19
+ }
20
+ }
21
+ return stylesheet;
22
+ }
23
+ };
24
+ const rgba = (r, g, b, a) => {
25
+ return {
26
+ method: 'rgba',
27
+ value: {
28
+ r,
29
+ g,
30
+ b,
31
+ a
32
+ }
33
+ };
34
+ };
35
+ exports.rgba = rgba;
36
+ const rgb = (r, g, b) => {
37
+ return {
38
+ method: 'rgb',
39
+ value: {
40
+ r,
41
+ g,
42
+ b
43
+ }
44
+ };
45
+ };
46
+ exports.rgb = rgb;
47
+ function shadow(offsets, color) {
48
+ return {
49
+ method: 'shadow',
50
+ value: {
51
+ offsets,
52
+ color
53
+ }
54
+ };
55
+ }
56
+ exports.shadow = shadow;
57
+ function gradientStep(percent, value) {
58
+ return {
59
+ percent,
60
+ value
61
+ };
62
+ }
63
+ exports.gradientStep = gradientStep;
64
+ function linearGradient(degrees, ...steps) {
65
+ return {
66
+ method: 'gradient',
67
+ value: {
68
+ type: 'linear',
69
+ colors: steps,
70
+ degrees
71
+ }
72
+ };
73
+ }
74
+ exports.linearGradient = linearGradient;
75
+ function radialGradient(...steps) {
76
+ return {
77
+ method: 'gradient',
78
+ value: {
79
+ type: 'radial',
80
+ colors: steps
81
+ }
82
+ };
83
+ }
84
+ exports.radialGradient = radialGradient;
85
+ function translate(x, y, z) {
86
+ return {
87
+ method: 'translate',
88
+ value: {
89
+ x,
90
+ y,
91
+ z
92
+ }
93
+ };
94
+ }
95
+ exports.translate = translate;
96
+ function scale(x, y, z) {
97
+ return {
98
+ method: 'scale',
99
+ value: {
100
+ x,
101
+ y,
102
+ z
103
+ }
104
+ };
105
+ }
106
+ exports.scale = scale;
107
+ function rotate(x, y, z) {
108
+ return {
109
+ method: 'rotate',
110
+ value: {
111
+ x,
112
+ y,
113
+ z
114
+ }
115
+ };
116
+ }
117
+ exports.rotate = rotate;
118
+ function skew(x, y) {
119
+ return {
120
+ method: 'skew',
121
+ value: {
122
+ x,
123
+ y
124
+ }
125
+ };
126
+ }
127
+ exports.skew = skew;
128
+ function url(path) {
129
+ return {
130
+ method: 'url',
131
+ value: {
132
+ path
133
+ }
134
+ };
135
+ }
136
+ exports.url = url;
137
+ function focus(primitives) {
138
+ return {
139
+ __focus: primitives
140
+ };
141
+ }
142
+ exports.focus = focus;
143
+ function hover(primitives) {
144
+ return {
145
+ __hover: primitives
146
+ };
147
+ }
148
+ exports.hover = hover;
149
+ function active(primitives) {
150
+ return {
151
+ __active: primitives
152
+ };
153
+ }
154
+ exports.active = active;
@@ -0,0 +1,387 @@
1
+ import { ForgeChildren, ForgeNode, ForgeElement, CustomFieldValue } from './forge';
2
+ import { Icon } from './icons';
3
+ import { StyleProps } from './styles';
4
+ export interface AKOption {
5
+ label: string;
6
+ value: any;
7
+ }
8
+ export interface AuxPipelineUserVisibleError extends Error {
9
+ errorMessage?: string;
10
+ errorDetails?: string;
11
+ }
12
+ export interface BadgeProps {
13
+ appearance?: 'added' | 'default' | 'important' | 'primary' | 'removed';
14
+ text: string;
15
+ }
16
+ export declare type NativeBadgeProps = Omit<BadgeProps, 'text'> & {
17
+ children: string;
18
+ };
19
+ export declare type ButtonAppearance = 'default' | 'danger' | 'link' | 'primary' | 'subtle' | 'subtle-link' | 'warning';
20
+ export interface ButtonProps {
21
+ appearance?: ButtonAppearance;
22
+ text: string;
23
+ disabled?: boolean;
24
+ onClick: () => Promise<void> | void;
25
+ icon?: Icon;
26
+ iconPosition?: 'before' | 'after';
27
+ }
28
+ export interface ButtonSetProps {
29
+ children: ForgeChildren;
30
+ }
31
+ export interface ColumnsProps {
32
+ children: ForgeChildren;
33
+ }
34
+ export declare type Align = 'start' | 'center' | 'end';
35
+ export interface ColumnProps {
36
+ width?: number;
37
+ align?: Align;
38
+ children: ForgeChildren;
39
+ }
40
+ export interface ErrorPanelProps {
41
+ error: AuxPipelineUserVisibleError;
42
+ }
43
+ export declare type FormData = Record<string, any>;
44
+ export interface FormProps<T extends FormData> {
45
+ children: ForgeChildren;
46
+ onSubmit: (data: T) => Promise<void> | void;
47
+ submitButtonText?: string;
48
+ submitButtonAppearance?: 'default' | 'primary';
49
+ actionButtons?: ForgeElement<ButtonProps>[];
50
+ }
51
+ export interface FormConditionProps {
52
+ when: string;
53
+ is: boolean | string | Array<string>;
54
+ areChildrenPersisted?: boolean;
55
+ children: ForgeChildren;
56
+ }
57
+ export interface ConfigFormProps {
58
+ children: ForgeChildren;
59
+ }
60
+ export interface CustomFieldPrimitiveProps {
61
+ children: ForgeChildren;
62
+ }
63
+ export declare type ModalDialogWidth = 'small' | 'medium' | 'large' | 'x-large';
64
+ export interface CustomFieldEditPrimitiveProps {
65
+ children: ForgeChildren;
66
+ fieldValue: {
67
+ value: CustomFieldValue;
68
+ updated: boolean;
69
+ };
70
+ isModalOpen: boolean;
71
+ }
72
+ export interface CustomFieldContextConfigPrimitiveProps {
73
+ children: ForgeChildren;
74
+ data?: Record<string, any>;
75
+ }
76
+ export interface DashboardGadgetPrimitiveProps {
77
+ children: ForgeChildren;
78
+ }
79
+ export interface DashboardGadgetEditPrimitiveProps {
80
+ children: ForgeChildren;
81
+ formData: FormData;
82
+ }
83
+ export declare type ImageSizes = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
84
+ export interface ImageProps {
85
+ src: string;
86
+ alt: string;
87
+ size?: ImageSizes;
88
+ }
89
+ export interface NativeToggleProps extends ToggleProps {
90
+ onChange?: (value: boolean) => void;
91
+ }
92
+ export interface NativeImageProps extends StyleProps {
93
+ src: string;
94
+ alt?: string;
95
+ }
96
+ export interface NativeTextProps extends StyleProps {
97
+ children?: ForgeChildren<ForgeNode | string | number>;
98
+ }
99
+ export interface NativeBoxProps extends StyleProps {
100
+ children?: ForgeChildren;
101
+ }
102
+ export interface NativeLinkProps extends StyleProps {
103
+ href: string;
104
+ openNewTab?: boolean;
105
+ children?: ForgeChildren<ForgeNode | string | number>;
106
+ }
107
+ export interface NativeButtonProps {
108
+ appearance?: ButtonAppearance;
109
+ disabled?: boolean;
110
+ onClick: () => Promise<void> | void;
111
+ icon?: Icon;
112
+ iconPosition?: 'before' | 'after';
113
+ children?: string;
114
+ }
115
+ export interface FrameProps {
116
+ resource: string;
117
+ }
118
+ export interface InlineDialogProps {
119
+ children: ForgeChildren;
120
+ }
121
+ export interface ModalDialogProps {
122
+ appearance?: 'danger' | 'warning';
123
+ children: ForgeChildren;
124
+ closeButtonText?: string;
125
+ header: string;
126
+ onClose: () => Promise<void> | void;
127
+ width?: ModalDialogWidth;
128
+ }
129
+ export declare type ContainerProps = {};
130
+ declare type LayoutTemplate = 'grid-2' | 'grid-3' | 'sidebar-left' | 'sidebar-right';
131
+ export declare type LayoutProps = {
132
+ template: LayoutTemplate;
133
+ children: ForgeChildren;
134
+ };
135
+ export interface OptionProps {
136
+ defaultSelected?: boolean;
137
+ label: string;
138
+ value: any;
139
+ }
140
+ export interface SelectProps {
141
+ children?: ForgeChildren;
142
+ isMulti?: boolean;
143
+ label: string;
144
+ name: string;
145
+ description?: string;
146
+ isRequired?: boolean;
147
+ placeholder?: string;
148
+ }
149
+ export interface NativeSelectProps extends SelectProps {
150
+ onChange?: (option: AKOption | AKOption[]) => void;
151
+ }
152
+ export interface TabsProps {
153
+ children: ForgeChildren;
154
+ }
155
+ export interface TabProps {
156
+ label: string;
157
+ children: ForgeChildren;
158
+ }
159
+ export interface CheckboxProps {
160
+ label: string;
161
+ value: string;
162
+ defaultChecked?: boolean;
163
+ isRequired?: boolean;
164
+ }
165
+ export interface NativeCheckboxProps extends CheckboxProps {
166
+ key?: string;
167
+ onChange?: ({ value, isChecked, }: {
168
+ value: string;
169
+ isChecked: boolean;
170
+ }) => void;
171
+ }
172
+ export interface CheckboxGroupProps {
173
+ label: string;
174
+ name: string;
175
+ description?: string;
176
+ children: ForgeChildren;
177
+ }
178
+ export interface NativeCheckboxGroupProps extends CheckboxGroupProps {
179
+ onChange?: (values: Array<string>) => void;
180
+ }
181
+ export declare type CodeLanguages = 'abap' | 'actionscript' | 'ada' | 'arduino' | 'autoit' | 'c' | 'c++' | 'coffeescript' | 'csharp' | 'css' | 'cuda' | 'd' | 'dart' | 'delphi' | 'elixir' | 'erlang' | 'fortran' | 'foxpro' | 'go' | 'graphql' | 'groovy' | 'haskell' | 'haxe' | 'html' | 'java' | 'javascript' | 'json' | 'julia' | 'kotlin' | 'latex' | 'livescript' | 'lua' | 'mathematica' | 'matlab' | 'objective-c' | 'objective-j' | 'objectpascal' | 'ocaml' | 'octave' | 'perl' | 'php' | 'powershell' | 'prolog' | 'puppet' | 'python' | 'qml' | 'r' | 'racket' | 'restructuredtext' | 'ruby' | 'rust' | 'sass' | 'scala' | 'scheme' | 'shell' | 'smalltalk' | 'sql' | 'standardml' | 'swift' | 'tcl' | 'tex' | 'text' | 'typescript' | 'vala' | 'vbnet' | 'verilog' | 'vhdl' | 'xml' | 'xquery';
182
+ export interface CodeProps {
183
+ text: string;
184
+ language?: CodeLanguages;
185
+ showLineNumbers?: boolean;
186
+ }
187
+ export declare type NativeCodeProps = Omit<CodeProps, 'text'> & {
188
+ children: string;
189
+ };
190
+ export interface DateLozengeProps {
191
+ value: number;
192
+ }
193
+ export interface DatePickerProps {
194
+ name: string;
195
+ label: string;
196
+ defaultValue?: string;
197
+ description?: string;
198
+ isRequired?: boolean;
199
+ placeholder?: string;
200
+ }
201
+ export interface NativeDatePickerProps extends DatePickerProps {
202
+ onChange?: (value: string) => void;
203
+ }
204
+ export declare type StatusLozengeAppearance = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
205
+ export interface StatusLozengeProps {
206
+ appearance?: StatusLozengeAppearance;
207
+ text: string;
208
+ }
209
+ export declare type NativeStatusLozengeProps = Omit<StatusLozengeProps, 'text'> & {
210
+ children: string;
211
+ };
212
+ export interface MentionProps {
213
+ accountId: string;
214
+ }
215
+ export declare type TextFieldType = 'email' | 'number' | 'tel' | 'text' | 'password';
216
+ export interface TextFieldProps {
217
+ type?: TextFieldType;
218
+ name: string;
219
+ label: string;
220
+ isRequired?: boolean;
221
+ defaultValue?: string;
222
+ description?: string;
223
+ placeholder?: string;
224
+ autoComplete?: 'off';
225
+ }
226
+ export declare type NativeTextFieldProps = TextFieldProps & TextInputProps;
227
+ export declare type HeadingProps = {
228
+ size?: 'small' | 'medium' | 'large';
229
+ children: ForgeChildren<string>;
230
+ };
231
+ export declare type MarkupProps = {
232
+ children: ForgeChildren<ForgeNode | string | number>;
233
+ };
234
+ export declare type LinkProps = {
235
+ href: string;
236
+ openNewTab?: boolean;
237
+ appearance?: 'primary-button' | 'button' | 'link';
238
+ } & MarkupProps;
239
+ export declare type StringProps = {
240
+ text: string;
241
+ };
242
+ export interface ThreeLOPromptProps {
243
+ message?: string;
244
+ promptText?: string;
245
+ authUrl: string;
246
+ }
247
+ export interface RadioProps {
248
+ defaultChecked?: boolean;
249
+ label: string;
250
+ value: string;
251
+ }
252
+ export interface RadioGroupProps {
253
+ children?: ForgeChildren;
254
+ isRequired?: boolean;
255
+ label: string;
256
+ description?: string;
257
+ name: string;
258
+ }
259
+ export interface NativeRadioGroupProps extends RadioGroupProps {
260
+ onChange?: (value: string) => void;
261
+ }
262
+ export interface RangeProps {
263
+ label: string;
264
+ name: string;
265
+ defaultValue?: number;
266
+ min?: number;
267
+ max?: number;
268
+ step?: number;
269
+ }
270
+ export interface NativeRangeProps extends RangeProps {
271
+ onChange?: (v: number) => void;
272
+ }
273
+ export interface SectionMessageProps {
274
+ title?: string;
275
+ appearance?: 'info' | 'warning' | 'error' | 'confirmation' | 'change';
276
+ children: ForgeChildren;
277
+ }
278
+ export declare type TagColor = 'default' | 'green' | 'blue' | 'red' | 'purple' | 'grey' | 'teal' | 'yellow' | 'green-light' | 'blue-light' | 'red-light' | 'purple-light' | 'grey-light' | 'teal-light' | 'yellow-light';
279
+ export interface TagProps {
280
+ color?: TagColor;
281
+ text: string;
282
+ }
283
+ export declare type NativeTagProps = Omit<TagProps, 'text'> & {
284
+ children: string;
285
+ };
286
+ export interface TagGroupProps {
287
+ children: ForgeChildren;
288
+ }
289
+ interface TextInputProps {
290
+ onChange?: (text: string) => void;
291
+ value?: string;
292
+ }
293
+ export interface TextAreaProps {
294
+ name: string;
295
+ label: string;
296
+ defaultValue?: string;
297
+ isMonospaced?: boolean;
298
+ isRequired?: boolean;
299
+ description?: string;
300
+ placeholder?: string;
301
+ spellCheck?: boolean;
302
+ }
303
+ export declare type NativeTextAreaProps = TextAreaProps & TextInputProps;
304
+ export interface ToggleProps {
305
+ name: string;
306
+ label: string;
307
+ defaultChecked?: boolean;
308
+ }
309
+ export interface TooltipProps {
310
+ text: string;
311
+ children: ForgeNode;
312
+ }
313
+ export interface UserPickerProps {
314
+ name: string;
315
+ label: string;
316
+ description?: string;
317
+ placeholder?: string;
318
+ isRequired?: boolean;
319
+ isMulti?: boolean;
320
+ defaultValue?: string | string[];
321
+ includeUsers?: boolean;
322
+ includeGroups?: boolean;
323
+ baseUrl?: string;
324
+ }
325
+ export interface UserPickerValue {
326
+ id: string;
327
+ type: string;
328
+ avatarUrl: string;
329
+ name: string;
330
+ email: string;
331
+ }
332
+ export interface NativeUserPickerProps extends UserPickerProps {
333
+ onChange?: (user: UserPickerValue) => void;
334
+ }
335
+ interface TextProps {
336
+ format?: 'plaintext' | 'markup';
337
+ align?: 'start' | 'center' | 'end';
338
+ }
339
+ interface TextPropsWithContent extends TextProps {
340
+ content: string;
341
+ }
342
+ interface TextPropsWithChildren extends TextProps {
343
+ children: ForgeChildren<ForgeNode | string | number>;
344
+ }
345
+ export declare type JsxTextProps = TextPropsWithContent | TextPropsWithChildren;
346
+ export declare type TextAlign = 'start' | 'center' | 'end';
347
+ export declare type RenderedTextProps = {
348
+ content?: undefined;
349
+ align: TextAlign;
350
+ format: 'markup';
351
+ } | {
352
+ content: string;
353
+ format?: 'plaintext';
354
+ };
355
+ export interface TableProps {
356
+ rowsPerPage?: number;
357
+ children: ForgeChildren;
358
+ }
359
+ export interface HeadProps {
360
+ children: ForgeChildren;
361
+ }
362
+ export interface RowProps {
363
+ children: ForgeChildren;
364
+ }
365
+ export interface CellProps {
366
+ children?: ForgeChildren;
367
+ }
368
+ export declare type UserProps = {
369
+ accountId: string;
370
+ };
371
+ export declare type UserGroupProps = {
372
+ children: ForgeChildren;
373
+ };
374
+ export interface IssuePanelActionProps {
375
+ text: string;
376
+ onClick: () => Promise<void> | void;
377
+ }
378
+ export declare type PressableAppearance = 'default' | 'primary' | 'subtle';
379
+ export interface NativePressableProps {
380
+ onPress: () => void;
381
+ ariaLabel?: string;
382
+ disabled?: boolean;
383
+ appearance?: PressableAppearance;
384
+ children?: ForgeChildren<ForgeNode | string | number>;
385
+ }
386
+ export {};
387
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/types/components.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,SAAS,EACT,YAAY,EACZ,gBAAgB,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,QAAQ;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Y,cAAc,GAAG;IAC3B,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACrC;AAED,oBAAY,mBAAmB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AACnE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,QAAQ,CAAC,EAAE,aAAa,CAAC,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;CACvD"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,57 @@
1
+ import { RenderState, Handler, ForgeDoc } from './forge';
2
+ export interface BackendRuntimePayload {
3
+ effects: BackendEffect[];
4
+ }
5
+ export declare type ExtensionData = {
6
+ [k: string]: any;
7
+ };
8
+ export declare type ExtensionPayload = {
9
+ [k: string]: any;
10
+ };
11
+ export interface CoreData {
12
+ cloudId?: string;
13
+ localId: string;
14
+ environmentId?: string;
15
+ environmentType?: string;
16
+ }
17
+ export interface CoreDataInner extends CoreData {
18
+ moduleKey: string;
19
+ siteUrl: string;
20
+ }
21
+ export interface EventEffect {
22
+ type: 'event';
23
+ state: RenderState;
24
+ coreData: CoreData;
25
+ extensionData: ExtensionData;
26
+ handler: Handler;
27
+ args: any[];
28
+ }
29
+ export interface ActionEffect {
30
+ type: 'action';
31
+ state: RenderState;
32
+ coreData: CoreData;
33
+ extensionData: ExtensionData;
34
+ hookIndex: number;
35
+ componentKey: string;
36
+ payload?: any;
37
+ }
38
+ export interface RenderEffect {
39
+ type: 'render';
40
+ state: RenderState;
41
+ coreData: CoreData;
42
+ extensionData: ExtensionData;
43
+ }
44
+ export interface ResultEffect {
45
+ type: 'result';
46
+ forgeDoc: ForgeDoc;
47
+ state: RenderState;
48
+ }
49
+ export declare type BackendEffect = RenderEffect | ActionEffect | EventEffect;
50
+ export declare type ClientEffect = ResultEffect;
51
+ export declare type Effect = BackendEffect | ClientEffect;
52
+ export declare const isEventEffect: (effect: Effect) => effect is EventEffect;
53
+ export declare const isActionEffect: (effect: Effect) => effect is ActionEffect;
54
+ export declare const isRenderEffect: (effect: Effect) => effect is RenderEffect;
55
+ export declare const isResultEffect: (effect: Effect) => effect is ResultEffect;
56
+ export declare function isBackendEffect(effect: Effect): effect is BackendEffect;
57
+ //# sourceMappingURL=effect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effect.d.ts","sourceRoot":"","sources":["../../src/types/effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,WAAW,qBAAqB;IAEpC,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,oBAAY,aAAa,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEjD,oBAAY,gBAAgB,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEpD,MAAM,WAAW,QAAQ;IAIvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,GAAG,EAAE,CAAC;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,oBAAY,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;AACtE,oBAAY,YAAY,GAAG,YAAY,CAAC;AACxC,oBAAY,MAAM,GAAG,aAAa,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,aAAa,WAAY,MAAM,0BAE3C,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,2BAE5C,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,2BAE5C,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,2BAE5C,CAAC;AAEF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,aAAa,CAIvE"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isBackendEffect = exports.isResultEffect = exports.isRenderEffect = exports.isActionEffect = exports.isEventEffect = void 0;
4
+ const isEventEffect = (effect) => {
5
+ return effect.type === 'event';
6
+ };
7
+ exports.isEventEffect = isEventEffect;
8
+ const isActionEffect = (effect) => {
9
+ return effect.type === 'action';
10
+ };
11
+ exports.isActionEffect = isActionEffect;
12
+ const isRenderEffect = (effect) => {
13
+ return effect.type === 'render';
14
+ };
15
+ exports.isRenderEffect = isRenderEffect;
16
+ const isResultEffect = (effect) => {
17
+ return effect.type === 'result';
18
+ };
19
+ exports.isResultEffect = isResultEffect;
20
+ function isBackendEffect(effect) {
21
+ return ((0, exports.isActionEffect)(effect) || (0, exports.isEventEffect)(effect) || (0, exports.isRenderEffect)(effect));
22
+ }
23
+ exports.isBackendEffect = isBackendEffect;
@@ -0,0 +1,10 @@
1
+ export interface BackendRuntimeContext {
2
+ principal?: {
3
+ accountId?: string;
4
+ };
5
+ installContext?: string;
6
+ license?: {
7
+ isActive: boolean;
8
+ };
9
+ }
10
+ //# sourceMappingURL=extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/types/extension.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE;QACV,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE;QACR,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });