@schematichq/schematic-react 0.1.8 → 0.2.0-rc.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.
@@ -1,38 +1,1529 @@
1
+ import { Context } from 'react';
2
+ import * as Craft from '@craftjs/core';
3
+ import { DetailedHTMLProps } from 'react';
4
+ import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES } from 'react';
1
5
  import { Event as Event_2 } from '@schematichq/schematic-js';
2
6
  import { EventBody } from '@schematichq/schematic-js';
3
- import { EventBodyCompany } from '@schematichq/schematic-js';
4
7
  import { EventBodyIdentify } from '@schematichq/schematic-js';
5
8
  import { EventBodyTrack } from '@schematichq/schematic-js';
6
9
  import { EventType } from '@schematichq/schematic-js';
10
+ import { FastOmit } from 'styled-components';
7
11
  import { FlagCheckResponseBody } from '@schematichq/schematic-js';
8
12
  import { FlagCheckWithKeyResponseBody } from '@schematichq/schematic-js';
13
+ import { ForwardRefExoticComponent } from 'react';
14
+ import { HTMLAttributes } from 'react';
15
+ import { IStyledComponentBase } from 'styled-components/dist/types';
16
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
9
17
  import { Keys } from '@schematichq/schematic-js';
10
18
  import { default as React_2 } from 'react';
11
19
  import { ReactNode } from 'react';
20
+ import { RefAttributes } from 'react';
21
+ import { RefObject } from 'react';
12
22
  import { Schematic } from '@schematichq/schematic-js';
13
23
  import { SchematicContext } from '@schematichq/schematic-js';
14
24
  import * as SchematicJS from '@schematichq/schematic-js';
15
25
  import { SchematicOptions } from '@schematichq/schematic-js';
26
+ import { Substitute } from 'styled-components/dist/types';
16
27
  import { Traits } from '@schematichq/schematic-js';
17
28
 
29
+ declare type BaseSchematicProviderProps = Omit<SchematicJS.SchematicOptions, "client" | "publishableKey"> & {
30
+ children: ReactNode;
31
+ };
32
+
33
+ export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ComponentProps>> & string;
34
+
35
+ export declare type BoxProps = ComponentProps;
36
+
37
+ export declare const Button: ({ color, size, variant, disabled, children, ...props }: ButtonProps) => JSX_2.Element;
38
+
39
+ export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
40
+ color?: ButtonStyleTypes;
41
+ size?: ButtonSizeTypes;
42
+ variant?: ButtonVariantTypes;
43
+ }
44
+
45
+ export declare type ButtonSizeTypes = "sm" | "md" | "lg";
46
+
47
+ export declare type ButtonStyleTypes = "blue" | "white" | "red" | "black";
48
+
49
+ export declare type ButtonVariantTypes = "solid" | "outline" | "ghost" | "link";
50
+
51
+ export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
52
+
53
+ export declare interface CardProps {
54
+ children?: React.ReactNode;
55
+ className?: string;
56
+ }
57
+
58
+ /**
59
+ *
60
+ * @export
61
+ * @interface CompanyDetailResponseData
62
+ */
63
+ declare interface CompanyDetailResponseData {
64
+ /**
65
+ *
66
+ * @type {Array<PreviewObject>}
67
+ * @memberof CompanyDetailResponseData
68
+ */
69
+ addOns: Array<PreviewObject>;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof CompanyDetailResponseData
74
+ */
75
+ createdAt: Date;
76
+ /**
77
+ *
78
+ * @type {Array<EntityTraitDetailResponseData>}
79
+ * @memberof CompanyDetailResponseData
80
+ */
81
+ entityTraits: Array<EntityTraitDetailResponseData>;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof CompanyDetailResponseData
86
+ */
87
+ environmentId: string;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof CompanyDetailResponseData
92
+ */
93
+ id: string;
94
+ /**
95
+ *
96
+ * @type {Array<EntityKeyDetailResponseData>}
97
+ * @memberof CompanyDetailResponseData
98
+ */
99
+ keys: Array<EntityKeyDetailResponseData>;
100
+ /**
101
+ *
102
+ * @type {Date}
103
+ * @memberof CompanyDetailResponseData
104
+ */
105
+ lastSeenAt?: Date | null;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof CompanyDetailResponseData
110
+ */
111
+ logoUrl?: string | null;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof CompanyDetailResponseData
116
+ */
117
+ name: string;
118
+ /**
119
+ *
120
+ * @type {PreviewObject}
121
+ * @memberof CompanyDetailResponseData
122
+ */
123
+ plan?: PreviewObject;
124
+ /**
125
+ *
126
+ * @type {Array<PreviewObject>}
127
+ * @memberof CompanyDetailResponseData
128
+ */
129
+ plans: Array<PreviewObject>;
130
+ /**
131
+ * A map of trait names to trait values
132
+ * @type {object}
133
+ * @memberof CompanyDetailResponseData
134
+ */
135
+ traits?: object;
136
+ /**
137
+ *
138
+ * @type {Date}
139
+ * @memberof CompanyDetailResponseData
140
+ */
141
+ updatedAt: Date;
142
+ /**
143
+ *
144
+ * @type {number}
145
+ * @memberof CompanyDetailResponseData
146
+ */
147
+ userCount: number;
148
+ }
149
+
150
+ /**
151
+ * The returned resource
152
+ * @export
153
+ * @interface ComponentHydrateResponseData
154
+ */
155
+ declare interface ComponentHydrateResponseData {
156
+ /**
157
+ *
158
+ * @type {CompanyDetailResponseData}
159
+ * @memberof ComponentHydrateResponseData
160
+ */
161
+ company?: CompanyDetailResponseData;
162
+ /**
163
+ *
164
+ * @type {ComponentResponseData}
165
+ * @memberof ComponentHydrateResponseData
166
+ */
167
+ component?: ComponentResponseData;
168
+ /**
169
+ *
170
+ * @type {FeatureUsageDetailResponseData}
171
+ * @memberof ComponentHydrateResponseData
172
+ */
173
+ featureUsage?: FeatureUsageDetailResponseData;
174
+ }
175
+
176
+ declare interface ComponentProps extends TransientCSSProperties {
177
+ children?: React.ReactNode;
178
+ }
179
+
180
+ /**
181
+ * Schematic API
182
+ * Schematic API
183
+ *
184
+ * The version of the OpenAPI document: 0.1
185
+ *
186
+ *
187
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
188
+ * https://openapi-generator.tech
189
+ * Do not edit the class manually.
190
+ */
191
+ /**
192
+ *
193
+ * @export
194
+ * @interface ComponentResponseData
195
+ */
196
+ declare interface ComponentResponseData {
197
+ /**
198
+ *
199
+ * @type {Array<number>}
200
+ * @memberof ComponentResponseData
201
+ */
202
+ ast: Array<number>;
203
+ /**
204
+ *
205
+ * @type {Date}
206
+ * @memberof ComponentResponseData
207
+ */
208
+ createdAt: Date;
209
+ /**
210
+ *
211
+ * @type {string}
212
+ * @memberof ComponentResponseData
213
+ */
214
+ id: string;
215
+ /**
216
+ *
217
+ * @type {string}
218
+ * @memberof ComponentResponseData
219
+ */
220
+ name: string;
221
+ /**
222
+ *
223
+ * @type {string}
224
+ * @memberof ComponentResponseData
225
+ */
226
+ state: string;
227
+ /**
228
+ *
229
+ * @type {string}
230
+ * @memberof ComponentResponseData
231
+ */
232
+ type: string;
233
+ /**
234
+ *
235
+ * @type {Date}
236
+ * @memberof ComponentResponseData
237
+ */
238
+ updatedAt: Date;
239
+ }
240
+
241
+ declare const _default: {
242
+ alarm: number;
243
+ "arrow-curved": number;
244
+ "arrow-down": number;
245
+ "arrow-left": number;
246
+ "arrow-right": number;
247
+ "arrow-up": number;
248
+ "arrow-upward": number;
249
+ backspace: number;
250
+ bell: number;
251
+ board: number;
252
+ bookmark: number;
253
+ "boolean-on": number;
254
+ boolean: number;
255
+ bulb: number;
256
+ burger: number;
257
+ "check-rounded": number;
258
+ check: number;
259
+ "chevron-down": number;
260
+ "chevron-left": number;
261
+ "chevron-right": number;
262
+ "chevron-up": number;
263
+ chip: number;
264
+ chips: number;
265
+ "close-rounded-filled": number;
266
+ close: number;
267
+ "cloud-up": number;
268
+ club: number;
269
+ cmd: number;
270
+ code: number;
271
+ coffee: number;
272
+ cog: number;
273
+ "collapse-empty": number;
274
+ collapse: number;
275
+ compass: number;
276
+ connection: number;
277
+ copy: number;
278
+ cylnder: number;
279
+ diamond: number;
280
+ "dollar-rounded": number;
281
+ "dots-horizontal": number;
282
+ "dots-vertical": number;
283
+ entitlements: number;
284
+ equalizer: number;
285
+ "exclamation-rounded-filled": number;
286
+ eye: number;
287
+ filter: number;
288
+ "folder-minus": number;
289
+ "folder-plus": number;
290
+ folder: number;
291
+ glasses: number;
292
+ globe: number;
293
+ hammer: number;
294
+ hash: number;
295
+ heart: number;
296
+ hubspot: number;
297
+ image: number;
298
+ "info-rounded": number;
299
+ juice: number;
300
+ key: number;
301
+ music: number;
302
+ "node-minus": number;
303
+ "node-plus": number;
304
+ package: number;
305
+ "paper-plane": number;
306
+ pencil: number;
307
+ picker: number;
308
+ plan: number;
309
+ plug: number;
310
+ "plus-minus": number;
311
+ "plus-rounded-outline": number;
312
+ present: number;
313
+ schematic: number;
314
+ search: number;
315
+ segment: number;
316
+ "server-search": number;
317
+ sidebar: number;
318
+ signal: number;
319
+ silence: number;
320
+ spade: number;
321
+ speaker: number;
322
+ stacks: number;
323
+ stripe: number;
324
+ text: number;
325
+ thunder: number;
326
+ tornado: number;
327
+ truck: number;
328
+ tube: number;
329
+ unprotected: number;
330
+ verified: number;
331
+ "video-camera": number;
332
+ wallet: number;
333
+ "watch-hand": number;
334
+ "watch-pocket": number;
335
+ "water-drop": number;
336
+ waves: number;
337
+ webhook: number;
338
+ wind: number;
339
+ };
340
+
341
+ declare interface DesignProps {
342
+ name?: {
343
+ text: string;
344
+ style: {
345
+ fontFamily: string;
346
+ fontSize: number;
347
+ fontWeight: number;
348
+ color: string;
349
+ };
350
+ };
351
+ limits?: {
352
+ isVisible: boolean;
353
+ };
354
+ usage?: {
355
+ isVisible: boolean;
356
+ };
357
+ count?: number;
358
+ }
359
+
360
+ declare interface DesignProps_2 {
361
+ header?: {
362
+ isVisible: boolean;
363
+ title: TextDesignProps;
364
+ description: TextDesignProps;
365
+ price: TextDesignProps;
366
+ };
367
+ addOns?: {
368
+ isVisible: boolean;
369
+ };
370
+ usageBased?: {
371
+ isVisible: boolean;
372
+ };
373
+ callToAction?: {
374
+ isVisible: boolean;
375
+ size: "sm" | "md" | "lg";
376
+ color: string;
377
+ backgroundColor: string;
378
+ };
379
+ }
380
+
381
+ declare interface ElementProps {
382
+ children?: React.ReactNode;
383
+ className?: string;
384
+ style?: React.CSSProperties;
385
+ }
386
+
387
+ export declare const EmbedContext: Context<EmbedContextProps>;
388
+
389
+ export declare interface EmbedContextProps {
390
+ data: RecursivePartial<ComponentHydrateResponseData>;
391
+ nodes: SerializedNodeWithChildren[];
392
+ settings: RecursivePartial<Settings>;
393
+ error?: Error;
394
+ setData: SetData;
395
+ setSettings: SetSettings;
396
+ updateSettings: SetSettings;
397
+ }
398
+
399
+ export declare interface EmbedProps {
400
+ accessToken?: string;
401
+ id?: string;
402
+ }
403
+
404
+ export declare const EmbedProvider: ({ id, accessToken, children, }: EmbedProviderProps) => JSX_2.Element;
405
+
406
+ export declare interface EmbedProviderProps {
407
+ id?: string;
408
+ accessToken?: string;
409
+ children?: React.ReactNode;
410
+ }
411
+
412
+ /**
413
+ * Schematic API
414
+ * Schematic API
415
+ *
416
+ * The version of the OpenAPI document: 0.1
417
+ *
418
+ *
419
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
420
+ * https://openapi-generator.tech
421
+ * Do not edit the class manually.
422
+ */
423
+ /**
424
+ *
425
+ * @export
426
+ * @interface EntityKeyDefinitionResponseData
427
+ */
428
+ declare interface EntityKeyDefinitionResponseData {
429
+ /**
430
+ *
431
+ * @type {Date}
432
+ * @memberof EntityKeyDefinitionResponseData
433
+ */
434
+ createdAt: Date;
435
+ /**
436
+ *
437
+ * @type {string}
438
+ * @memberof EntityKeyDefinitionResponseData
439
+ */
440
+ entityType: string;
441
+ /**
442
+ *
443
+ * @type {string}
444
+ * @memberof EntityKeyDefinitionResponseData
445
+ */
446
+ id: string;
447
+ /**
448
+ *
449
+ * @type {string}
450
+ * @memberof EntityKeyDefinitionResponseData
451
+ */
452
+ key: string;
453
+ /**
454
+ *
455
+ * @type {Date}
456
+ * @memberof EntityKeyDefinitionResponseData
457
+ */
458
+ updatedAt: Date;
459
+ }
460
+
461
+ /**
462
+ *
463
+ * @export
464
+ * @interface EntityKeyDetailResponseData
465
+ */
466
+ declare interface EntityKeyDetailResponseData {
467
+ /**
468
+ *
469
+ * @type {Date}
470
+ * @memberof EntityKeyDetailResponseData
471
+ */
472
+ createdAt: Date;
473
+ /**
474
+ *
475
+ * @type {EntityKeyDefinitionResponseData}
476
+ * @memberof EntityKeyDetailResponseData
477
+ */
478
+ definition?: EntityKeyDefinitionResponseData;
479
+ /**
480
+ *
481
+ * @type {string}
482
+ * @memberof EntityKeyDetailResponseData
483
+ */
484
+ definitionId: string;
485
+ /**
486
+ *
487
+ * @type {string}
488
+ * @memberof EntityKeyDetailResponseData
489
+ */
490
+ entityId: string;
491
+ /**
492
+ *
493
+ * @type {string}
494
+ * @memberof EntityKeyDetailResponseData
495
+ */
496
+ entityType: string;
497
+ /**
498
+ *
499
+ * @type {string}
500
+ * @memberof EntityKeyDetailResponseData
501
+ */
502
+ environmentId: string;
503
+ /**
504
+ *
505
+ * @type {string}
506
+ * @memberof EntityKeyDetailResponseData
507
+ */
508
+ id: string;
509
+ /**
510
+ *
511
+ * @type {string}
512
+ * @memberof EntityKeyDetailResponseData
513
+ */
514
+ key: string;
515
+ /**
516
+ *
517
+ * @type {Date}
518
+ * @memberof EntityKeyDetailResponseData
519
+ */
520
+ updatedAt: Date;
521
+ /**
522
+ *
523
+ * @type {string}
524
+ * @memberof EntityKeyDetailResponseData
525
+ */
526
+ value: string;
527
+ }
528
+
529
+ /**
530
+ * Schematic API
531
+ * Schematic API
532
+ *
533
+ * The version of the OpenAPI document: 0.1
534
+ *
535
+ *
536
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
537
+ * https://openapi-generator.tech
538
+ * Do not edit the class manually.
539
+ */
540
+ /**
541
+ *
542
+ * @export
543
+ * @interface EntityTraitDefinitionResponseData
544
+ */
545
+ declare interface EntityTraitDefinitionResponseData {
546
+ /**
547
+ *
548
+ * @type {Date}
549
+ * @memberof EntityTraitDefinitionResponseData
550
+ */
551
+ createdAt: Date;
552
+ /**
553
+ *
554
+ * @type {string}
555
+ * @memberof EntityTraitDefinitionResponseData
556
+ */
557
+ displayName: string;
558
+ /**
559
+ *
560
+ * @type {string}
561
+ * @memberof EntityTraitDefinitionResponseData
562
+ */
563
+ entityType: string;
564
+ /**
565
+ *
566
+ * @type {Array<string>}
567
+ * @memberof EntityTraitDefinitionResponseData
568
+ */
569
+ hierarchy: Array<string>;
570
+ /**
571
+ *
572
+ * @type {string}
573
+ * @memberof EntityTraitDefinitionResponseData
574
+ */
575
+ id: string;
576
+ /**
577
+ *
578
+ * @type {string}
579
+ * @memberof EntityTraitDefinitionResponseData
580
+ */
581
+ traitType: string;
582
+ /**
583
+ *
584
+ * @type {Date}
585
+ * @memberof EntityTraitDefinitionResponseData
586
+ */
587
+ updatedAt: Date;
588
+ }
589
+
590
+ /**
591
+ *
592
+ * @export
593
+ * @interface EntityTraitDetailResponseData
594
+ */
595
+ declare interface EntityTraitDetailResponseData {
596
+ /**
597
+ *
598
+ * @type {Date}
599
+ * @memberof EntityTraitDetailResponseData
600
+ */
601
+ createdAt: Date;
602
+ /**
603
+ *
604
+ * @type {EntityTraitDefinitionResponseData}
605
+ * @memberof EntityTraitDetailResponseData
606
+ */
607
+ definition?: EntityTraitDefinitionResponseData;
608
+ /**
609
+ *
610
+ * @type {string}
611
+ * @memberof EntityTraitDetailResponseData
612
+ */
613
+ definitionId: string;
614
+ /**
615
+ *
616
+ * @type {string}
617
+ * @memberof EntityTraitDetailResponseData
618
+ */
619
+ environmentId: string;
620
+ /**
621
+ *
622
+ * @type {string}
623
+ * @memberof EntityTraitDetailResponseData
624
+ */
625
+ id: string;
626
+ /**
627
+ *
628
+ * @type {Date}
629
+ * @memberof EntityTraitDetailResponseData
630
+ */
631
+ updatedAt: Date;
632
+ /**
633
+ *
634
+ * @type {string}
635
+ * @memberof EntityTraitDetailResponseData
636
+ */
637
+ value: string;
638
+ }
639
+
18
640
  export { Event_2 as Event }
19
641
 
20
642
  export { EventBody }
21
643
 
22
- export { EventBodyCompany }
23
-
24
644
  export { EventBodyIdentify }
25
645
 
26
646
  export { EventBodyTrack }
27
647
 
648
+ /**
649
+ * Schematic API
650
+ * Schematic API
651
+ *
652
+ * The version of the OpenAPI document: 0.1
653
+ *
654
+ *
655
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
656
+ * https://openapi-generator.tech
657
+ * Do not edit the class manually.
658
+ */
659
+ /**
660
+ *
661
+ * @export
662
+ * @interface EventSummaryResponseData
663
+ */
664
+ declare interface EventSummaryResponseData {
665
+ /**
666
+ *
667
+ * @type {number}
668
+ * @memberof EventSummaryResponseData
669
+ */
670
+ companyCount: number;
671
+ /**
672
+ *
673
+ * @type {string}
674
+ * @memberof EventSummaryResponseData
675
+ */
676
+ environmentId: string;
677
+ /**
678
+ *
679
+ * @type {number}
680
+ * @memberof EventSummaryResponseData
681
+ */
682
+ eventCount: number;
683
+ /**
684
+ *
685
+ * @type {string}
686
+ * @memberof EventSummaryResponseData
687
+ */
688
+ eventSubtype: string;
689
+ /**
690
+ *
691
+ * @type {Date}
692
+ * @memberof EventSummaryResponseData
693
+ */
694
+ lastSeenAt?: Date | null;
695
+ /**
696
+ *
697
+ * @type {number}
698
+ * @memberof EventSummaryResponseData
699
+ */
700
+ userCount: number;
701
+ }
702
+
28
703
  export { EventType }
29
704
 
705
+ /**
706
+ *
707
+ * @export
708
+ * @interface FeatureDetailResponseData
709
+ */
710
+ declare interface FeatureDetailResponseData {
711
+ /**
712
+ *
713
+ * @type {Date}
714
+ * @memberof FeatureDetailResponseData
715
+ */
716
+ createdAt: Date;
717
+ /**
718
+ *
719
+ * @type {string}
720
+ * @memberof FeatureDetailResponseData
721
+ */
722
+ description: string;
723
+ /**
724
+ *
725
+ * @type {string}
726
+ * @memberof FeatureDetailResponseData
727
+ */
728
+ eventSubtype?: string | null;
729
+ /**
730
+ *
731
+ * @type {EventSummaryResponseData}
732
+ * @memberof FeatureDetailResponseData
733
+ */
734
+ eventSummary?: EventSummaryResponseData;
735
+ /**
736
+ *
737
+ * @type {string}
738
+ * @memberof FeatureDetailResponseData
739
+ */
740
+ featureType: string;
741
+ /**
742
+ *
743
+ * @type {Array<FlagDetailResponseData>}
744
+ * @memberof FeatureDetailResponseData
745
+ */
746
+ flags: Array<FlagDetailResponseData>;
747
+ /**
748
+ *
749
+ * @type {string}
750
+ * @memberof FeatureDetailResponseData
751
+ */
752
+ icon: string;
753
+ /**
754
+ *
755
+ * @type {string}
756
+ * @memberof FeatureDetailResponseData
757
+ */
758
+ id: string;
759
+ /**
760
+ *
761
+ * @type {string}
762
+ * @memberof FeatureDetailResponseData
763
+ */
764
+ lifecyclePhase?: string | null;
765
+ /**
766
+ *
767
+ * @type {string}
768
+ * @memberof FeatureDetailResponseData
769
+ */
770
+ maintainerId?: string | null;
771
+ /**
772
+ *
773
+ * @type {string}
774
+ * @memberof FeatureDetailResponseData
775
+ */
776
+ name: string;
777
+ /**
778
+ *
779
+ * @type {Array<PreviewObject>}
780
+ * @memberof FeatureDetailResponseData
781
+ */
782
+ plans: Array<PreviewObject>;
783
+ /**
784
+ *
785
+ * @type {EntityTraitDefinitionResponseData}
786
+ * @memberof FeatureDetailResponseData
787
+ */
788
+ trait?: EntityTraitDefinitionResponseData;
789
+ /**
790
+ *
791
+ * @type {string}
792
+ * @memberof FeatureDetailResponseData
793
+ */
794
+ traitId?: string | null;
795
+ /**
796
+ *
797
+ * @type {Date}
798
+ * @memberof FeatureDetailResponseData
799
+ */
800
+ updatedAt: Date;
801
+ }
802
+
803
+ /**
804
+ * Schematic API
805
+ * Schematic API
806
+ *
807
+ * The version of the OpenAPI document: 0.1
808
+ *
809
+ *
810
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
811
+ * https://openapi-generator.tech
812
+ * Do not edit the class manually.
813
+ */
814
+ /**
815
+ *
816
+ * @export
817
+ * @interface FeatureResponseData
818
+ */
819
+ declare interface FeatureResponseData {
820
+ /**
821
+ *
822
+ * @type {Date}
823
+ * @memberof FeatureResponseData
824
+ */
825
+ createdAt: Date;
826
+ /**
827
+ *
828
+ * @type {string}
829
+ * @memberof FeatureResponseData
830
+ */
831
+ description: string;
832
+ /**
833
+ *
834
+ * @type {string}
835
+ * @memberof FeatureResponseData
836
+ */
837
+ eventSubtype?: string | null;
838
+ /**
839
+ *
840
+ * @type {string}
841
+ * @memberof FeatureResponseData
842
+ */
843
+ featureType: string;
844
+ /**
845
+ *
846
+ * @type {string}
847
+ * @memberof FeatureResponseData
848
+ */
849
+ icon: string;
850
+ /**
851
+ *
852
+ * @type {string}
853
+ * @memberof FeatureResponseData
854
+ */
855
+ id: string;
856
+ /**
857
+ *
858
+ * @type {string}
859
+ * @memberof FeatureResponseData
860
+ */
861
+ lifecyclePhase?: string | null;
862
+ /**
863
+ *
864
+ * @type {string}
865
+ * @memberof FeatureResponseData
866
+ */
867
+ maintainerId?: string | null;
868
+ /**
869
+ *
870
+ * @type {string}
871
+ * @memberof FeatureResponseData
872
+ */
873
+ name: string;
874
+ /**
875
+ *
876
+ * @type {string}
877
+ * @memberof FeatureResponseData
878
+ */
879
+ traitId?: string | null;
880
+ /**
881
+ *
882
+ * @type {Date}
883
+ * @memberof FeatureResponseData
884
+ */
885
+ updatedAt: Date;
886
+ }
887
+
888
+ /**
889
+ *
890
+ * @export
891
+ * @interface FeatureUsageDetailResponseData
892
+ */
893
+ declare interface FeatureUsageDetailResponseData {
894
+ /**
895
+ *
896
+ * @type {Array<FeatureUsageResponseData>}
897
+ * @memberof FeatureUsageDetailResponseData
898
+ */
899
+ features: Array<FeatureUsageResponseData>;
900
+ }
901
+
902
+ /**
903
+ *
904
+ * @export
905
+ * @interface FeatureUsageResponseData
906
+ */
907
+ declare interface FeatureUsageResponseData {
908
+ /**
909
+ * Whether further usage is permitted.
910
+ * @type {boolean}
911
+ * @memberof FeatureUsageResponseData
912
+ */
913
+ access: boolean;
914
+ /**
915
+ * The maximum amount of usage that is permitted; a null value indicates that unlimited usage is permitted.
916
+ * @type {number}
917
+ * @memberof FeatureUsageResponseData
918
+ */
919
+ allocation?: number | null;
920
+ /**
921
+ * The type of allocation that is being used.
922
+ * @type {string}
923
+ * @memberof FeatureUsageResponseData
924
+ */
925
+ allocationType: FeatureUsageResponseDataAllocationTypeEnum;
926
+ /**
927
+ *
928
+ * @type {string}
929
+ * @memberof FeatureUsageResponseData
930
+ */
931
+ entitlementId: string;
932
+ /**
933
+ *
934
+ * @type {string}
935
+ * @memberof FeatureUsageResponseData
936
+ */
937
+ entitlementType: string;
938
+ /**
939
+ *
940
+ * @type {FeatureDetailResponseData}
941
+ * @memberof FeatureUsageResponseData
942
+ */
943
+ feature?: FeatureDetailResponseData;
944
+ /**
945
+ * The period over which usage is measured.
946
+ * @type {string}
947
+ * @memberof FeatureUsageResponseData
948
+ */
949
+ period?: string | null;
950
+ /**
951
+ *
952
+ * @type {PlanResponseData}
953
+ * @memberof FeatureUsageResponseData
954
+ */
955
+ plan?: PlanResponseData;
956
+ /**
957
+ * The amount of usage that has been consumed; a null value indicates that usage is not being measured.
958
+ * @type {number}
959
+ * @memberof FeatureUsageResponseData
960
+ */
961
+ usage?: number | null;
962
+ }
963
+
964
+ /**
965
+ * @export
966
+ */
967
+ declare const FeatureUsageResponseDataAllocationTypeEnum: {
968
+ readonly Boolean: "boolean";
969
+ readonly Numeric: "numeric";
970
+ readonly Trait: "trait";
971
+ readonly Unlimited: "unlimited";
972
+ };
973
+
974
+ declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageResponseDataAllocationTypeEnum)[keyof typeof FeatureUsageResponseDataAllocationTypeEnum];
975
+
30
976
  export { FlagCheckResponseBody }
31
977
 
32
978
  export { FlagCheckWithKeyResponseBody }
33
979
 
980
+ /**
981
+ *
982
+ * @export
983
+ * @interface FlagDetailResponseData
984
+ */
985
+ declare interface FlagDetailResponseData {
986
+ /**
987
+ *
988
+ * @type {Date}
989
+ * @memberof FlagDetailResponseData
990
+ */
991
+ createdAt: Date;
992
+ /**
993
+ *
994
+ * @type {boolean}
995
+ * @memberof FlagDetailResponseData
996
+ */
997
+ defaultValue: boolean;
998
+ /**
999
+ *
1000
+ * @type {string}
1001
+ * @memberof FlagDetailResponseData
1002
+ */
1003
+ description: string;
1004
+ /**
1005
+ *
1006
+ * @type {FeatureResponseData}
1007
+ * @memberof FlagDetailResponseData
1008
+ */
1009
+ feature?: FeatureResponseData;
1010
+ /**
1011
+ *
1012
+ * @type {string}
1013
+ * @memberof FlagDetailResponseData
1014
+ */
1015
+ featureId?: string | null;
1016
+ /**
1017
+ *
1018
+ * @type {string}
1019
+ * @memberof FlagDetailResponseData
1020
+ */
1021
+ flagType: string;
1022
+ /**
1023
+ *
1024
+ * @type {string}
1025
+ * @memberof FlagDetailResponseData
1026
+ */
1027
+ id: string;
1028
+ /**
1029
+ *
1030
+ * @type {string}
1031
+ * @memberof FlagDetailResponseData
1032
+ */
1033
+ key: string;
1034
+ /**
1035
+ *
1036
+ * @type {Date}
1037
+ * @memberof FlagDetailResponseData
1038
+ */
1039
+ lastCheckedAt?: Date | null;
1040
+ /**
1041
+ *
1042
+ * @type {string}
1043
+ * @memberof FlagDetailResponseData
1044
+ */
1045
+ maintainerId?: string | null;
1046
+ /**
1047
+ *
1048
+ * @type {string}
1049
+ * @memberof FlagDetailResponseData
1050
+ */
1051
+ name: string;
1052
+ /**
1053
+ *
1054
+ * @type {Array<RuleDetailResponseData>}
1055
+ * @memberof FlagDetailResponseData
1056
+ */
1057
+ rules: Array<RuleDetailResponseData>;
1058
+ /**
1059
+ *
1060
+ * @type {Date}
1061
+ * @memberof FlagDetailResponseData
1062
+ */
1063
+ updatedAt: Date;
1064
+ }
1065
+
1066
+ export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
1067
+ ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
1068
+ }, never>> & string;
1069
+
1070
+ export declare const Icon: ({ name, className, ...props }: IconProps) => JSX_2.Element;
1071
+
1072
+ export declare type IconNameTypes = keyof typeof _default;
1073
+
1074
+ export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
1075
+ name: IconNameTypes;
1076
+ }
1077
+
1078
+ export declare const IconRound: ({ name, style, size, }: IconRoundProps) => JSX_2.Element;
1079
+
1080
+ export declare interface IconRoundProps {
1081
+ name: IconNameTypes;
1082
+ style?: "outline" | "filled";
1083
+ size?: "tn" | "sm" | "md" | "lg";
1084
+ }
1085
+
1086
+ export declare const IncludedFeatures: ({ className, ...props }: IncludedFeaturesProps) => JSX_2.Element;
1087
+
1088
+ export declare type IncludedFeaturesProps = ElementProps & RecursivePartial<DesignProps> & React.HTMLAttributes<HTMLDivElement>;
1089
+
1090
+ export declare const Invoices: () => JSX_2.Element;
1091
+
34
1092
  export { Keys }
35
1093
 
1094
+ export declare const NextBillDue: () => JSX_2.Element;
1095
+
1096
+ export declare const PaymentMethod: () => JSX_2.Element;
1097
+
1098
+ export declare const PlanManager: ({ className, ...props }: PlanManagerProps) => JSX_2.Element;
1099
+
1100
+ export declare type PlanManagerProps = ElementProps & RecursivePartial<DesignProps_2> & React.HTMLAttributes<HTMLDivElement>;
1101
+
1102
+ /**
1103
+ * Schematic API
1104
+ * Schematic API
1105
+ *
1106
+ * The version of the OpenAPI document: 0.1
1107
+ *
1108
+ *
1109
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1110
+ * https://openapi-generator.tech
1111
+ * Do not edit the class manually.
1112
+ */
1113
+ /**
1114
+ *
1115
+ * @export
1116
+ * @interface PlanResponseData
1117
+ */
1118
+ declare interface PlanResponseData {
1119
+ /**
1120
+ *
1121
+ * @type {string}
1122
+ * @memberof PlanResponseData
1123
+ */
1124
+ audienceType: string;
1125
+ /**
1126
+ *
1127
+ * @type {Date}
1128
+ * @memberof PlanResponseData
1129
+ */
1130
+ createdAt: Date;
1131
+ /**
1132
+ *
1133
+ * @type {string}
1134
+ * @memberof PlanResponseData
1135
+ */
1136
+ description: string;
1137
+ /**
1138
+ *
1139
+ * @type {string}
1140
+ * @memberof PlanResponseData
1141
+ */
1142
+ icon: string;
1143
+ /**
1144
+ *
1145
+ * @type {string}
1146
+ * @memberof PlanResponseData
1147
+ */
1148
+ id: string;
1149
+ /**
1150
+ *
1151
+ * @type {string}
1152
+ * @memberof PlanResponseData
1153
+ */
1154
+ name: string;
1155
+ /**
1156
+ *
1157
+ * @type {string}
1158
+ * @memberof PlanResponseData
1159
+ */
1160
+ planType: string;
1161
+ /**
1162
+ *
1163
+ * @type {Date}
1164
+ * @memberof PlanResponseData
1165
+ */
1166
+ updatedAt: Date;
1167
+ }
1168
+
1169
+ /**
1170
+ * Schematic API
1171
+ * Schematic API
1172
+ *
1173
+ * The version of the OpenAPI document: 0.1
1174
+ *
1175
+ *
1176
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1177
+ * https://openapi-generator.tech
1178
+ * Do not edit the class manually.
1179
+ */
1180
+ /**
1181
+ *
1182
+ * @export
1183
+ * @interface PreviewObject
1184
+ */
1185
+ declare interface PreviewObject {
1186
+ /**
1187
+ *
1188
+ * @type {string}
1189
+ * @memberof PreviewObject
1190
+ */
1191
+ description?: string | null;
1192
+ /**
1193
+ *
1194
+ * @type {string}
1195
+ * @memberof PreviewObject
1196
+ */
1197
+ id: string;
1198
+ /**
1199
+ *
1200
+ * @type {string}
1201
+ * @memberof PreviewObject
1202
+ */
1203
+ imageUrl?: string | null;
1204
+ /**
1205
+ *
1206
+ * @type {string}
1207
+ * @memberof PreviewObject
1208
+ */
1209
+ name: string;
1210
+ }
1211
+
1212
+ export declare const ProgressBar: ({ progress, value, total, color, barWidth, ...props }: ProgressBarProps) => JSX_2.Element;
1213
+
1214
+ export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
1215
+ progress: number;
1216
+ value: number;
1217
+ total?: number | string;
1218
+ color?: "gray" | "orange" | "blue" | "red";
1219
+ barWidth?: string | number;
1220
+ }
1221
+
1222
+ declare type RecursivePartial<T> = {
1223
+ [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
1224
+ };
1225
+
1226
+ /**
1227
+ *
1228
+ * @export
1229
+ * @interface RuleConditionDetailResponseData
1230
+ */
1231
+ declare interface RuleConditionDetailResponseData {
1232
+ /**
1233
+ *
1234
+ * @type {EntityTraitDefinitionResponseData}
1235
+ * @memberof RuleConditionDetailResponseData
1236
+ */
1237
+ comparisonTrait?: EntityTraitDefinitionResponseData;
1238
+ /**
1239
+ *
1240
+ * @type {string}
1241
+ * @memberof RuleConditionDetailResponseData
1242
+ */
1243
+ comparisonTraitId?: string | null;
1244
+ /**
1245
+ *
1246
+ * @type {string}
1247
+ * @memberof RuleConditionDetailResponseData
1248
+ */
1249
+ conditionGroupId?: string | null;
1250
+ /**
1251
+ *
1252
+ * @type {string}
1253
+ * @memberof RuleConditionDetailResponseData
1254
+ */
1255
+ conditionType: string;
1256
+ /**
1257
+ *
1258
+ * @type {Date}
1259
+ * @memberof RuleConditionDetailResponseData
1260
+ */
1261
+ createdAt: Date;
1262
+ /**
1263
+ *
1264
+ * @type {string}
1265
+ * @memberof RuleConditionDetailResponseData
1266
+ */
1267
+ environmentId: string;
1268
+ /**
1269
+ *
1270
+ * @type {string}
1271
+ * @memberof RuleConditionDetailResponseData
1272
+ */
1273
+ eventSubtype?: string | null;
1274
+ /**
1275
+ *
1276
+ * @type {string}
1277
+ * @memberof RuleConditionDetailResponseData
1278
+ */
1279
+ flagId?: string | null;
1280
+ /**
1281
+ *
1282
+ * @type {string}
1283
+ * @memberof RuleConditionDetailResponseData
1284
+ */
1285
+ id: string;
1286
+ /**
1287
+ *
1288
+ * @type {string}
1289
+ * @memberof RuleConditionDetailResponseData
1290
+ */
1291
+ metricPeriod?: string | null;
1292
+ /**
1293
+ *
1294
+ * @type {number}
1295
+ * @memberof RuleConditionDetailResponseData
1296
+ */
1297
+ metricValue?: number | null;
1298
+ /**
1299
+ *
1300
+ * @type {string}
1301
+ * @memberof RuleConditionDetailResponseData
1302
+ */
1303
+ operator: string;
1304
+ /**
1305
+ *
1306
+ * @type {string}
1307
+ * @memberof RuleConditionDetailResponseData
1308
+ */
1309
+ planId?: string | null;
1310
+ /**
1311
+ *
1312
+ * @type {Array<string>}
1313
+ * @memberof RuleConditionDetailResponseData
1314
+ */
1315
+ resourceIds: Array<string>;
1316
+ /**
1317
+ *
1318
+ * @type {Array<RuleConditionResourceResponseData>}
1319
+ * @memberof RuleConditionDetailResponseData
1320
+ */
1321
+ resources: Array<RuleConditionResourceResponseData>;
1322
+ /**
1323
+ *
1324
+ * @type {string}
1325
+ * @memberof RuleConditionDetailResponseData
1326
+ */
1327
+ ruleId: string;
1328
+ /**
1329
+ *
1330
+ * @type {EntityTraitDefinitionResponseData}
1331
+ * @memberof RuleConditionDetailResponseData
1332
+ */
1333
+ trait?: EntityTraitDefinitionResponseData;
1334
+ /**
1335
+ *
1336
+ * @type {string}
1337
+ * @memberof RuleConditionDetailResponseData
1338
+ */
1339
+ traitEntityType?: string | null;
1340
+ /**
1341
+ *
1342
+ * @type {string}
1343
+ * @memberof RuleConditionDetailResponseData
1344
+ */
1345
+ traitId?: string | null;
1346
+ /**
1347
+ *
1348
+ * @type {string}
1349
+ * @memberof RuleConditionDetailResponseData
1350
+ */
1351
+ traitValue: string;
1352
+ /**
1353
+ *
1354
+ * @type {Date}
1355
+ * @memberof RuleConditionDetailResponseData
1356
+ */
1357
+ updatedAt: Date;
1358
+ }
1359
+
1360
+ /**
1361
+ *
1362
+ * @export
1363
+ * @interface RuleConditionGroupDetailResponseData
1364
+ */
1365
+ declare interface RuleConditionGroupDetailResponseData {
1366
+ /**
1367
+ *
1368
+ * @type {Array<RuleConditionDetailResponseData>}
1369
+ * @memberof RuleConditionGroupDetailResponseData
1370
+ */
1371
+ conditions: Array<RuleConditionDetailResponseData>;
1372
+ /**
1373
+ *
1374
+ * @type {Date}
1375
+ * @memberof RuleConditionGroupDetailResponseData
1376
+ */
1377
+ createdAt: Date;
1378
+ /**
1379
+ *
1380
+ * @type {string}
1381
+ * @memberof RuleConditionGroupDetailResponseData
1382
+ */
1383
+ environmentId: string;
1384
+ /**
1385
+ *
1386
+ * @type {string}
1387
+ * @memberof RuleConditionGroupDetailResponseData
1388
+ */
1389
+ flagId?: string | null;
1390
+ /**
1391
+ *
1392
+ * @type {string}
1393
+ * @memberof RuleConditionGroupDetailResponseData
1394
+ */
1395
+ id: string;
1396
+ /**
1397
+ *
1398
+ * @type {string}
1399
+ * @memberof RuleConditionGroupDetailResponseData
1400
+ */
1401
+ planId?: string | null;
1402
+ /**
1403
+ *
1404
+ * @type {string}
1405
+ * @memberof RuleConditionGroupDetailResponseData
1406
+ */
1407
+ ruleId: string;
1408
+ /**
1409
+ *
1410
+ * @type {Date}
1411
+ * @memberof RuleConditionGroupDetailResponseData
1412
+ */
1413
+ updatedAt: Date;
1414
+ }
1415
+
1416
+ /**
1417
+ * Schematic API
1418
+ * Schematic API
1419
+ *
1420
+ * The version of the OpenAPI document: 0.1
1421
+ *
1422
+ *
1423
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1424
+ * https://openapi-generator.tech
1425
+ * Do not edit the class manually.
1426
+ */
1427
+ /**
1428
+ *
1429
+ * @export
1430
+ * @interface RuleConditionResourceResponseData
1431
+ */
1432
+ declare interface RuleConditionResourceResponseData {
1433
+ /**
1434
+ *
1435
+ * @type {string}
1436
+ * @memberof RuleConditionResourceResponseData
1437
+ */
1438
+ id: string;
1439
+ /**
1440
+ *
1441
+ * @type {string}
1442
+ * @memberof RuleConditionResourceResponseData
1443
+ */
1444
+ name: string;
1445
+ }
1446
+
1447
+ /**
1448
+ *
1449
+ * @export
1450
+ * @interface RuleDetailResponseData
1451
+ */
1452
+ declare interface RuleDetailResponseData {
1453
+ /**
1454
+ *
1455
+ * @type {Array<RuleConditionGroupDetailResponseData>}
1456
+ * @memberof RuleDetailResponseData
1457
+ */
1458
+ conditionGroups: Array<RuleConditionGroupDetailResponseData>;
1459
+ /**
1460
+ *
1461
+ * @type {Array<RuleConditionDetailResponseData>}
1462
+ * @memberof RuleDetailResponseData
1463
+ */
1464
+ conditions: Array<RuleConditionDetailResponseData>;
1465
+ /**
1466
+ *
1467
+ * @type {Date}
1468
+ * @memberof RuleDetailResponseData
1469
+ */
1470
+ createdAt: Date;
1471
+ /**
1472
+ *
1473
+ * @type {string}
1474
+ * @memberof RuleDetailResponseData
1475
+ */
1476
+ environmentId: string;
1477
+ /**
1478
+ *
1479
+ * @type {string}
1480
+ * @memberof RuleDetailResponseData
1481
+ */
1482
+ flagId?: string | null;
1483
+ /**
1484
+ *
1485
+ * @type {string}
1486
+ * @memberof RuleDetailResponseData
1487
+ */
1488
+ id: string;
1489
+ /**
1490
+ *
1491
+ * @type {string}
1492
+ * @memberof RuleDetailResponseData
1493
+ */
1494
+ name: string;
1495
+ /**
1496
+ *
1497
+ * @type {string}
1498
+ * @memberof RuleDetailResponseData
1499
+ */
1500
+ planId?: string | null;
1501
+ /**
1502
+ *
1503
+ * @type {number}
1504
+ * @memberof RuleDetailResponseData
1505
+ */
1506
+ priority: number;
1507
+ /**
1508
+ *
1509
+ * @type {string}
1510
+ * @memberof RuleDetailResponseData
1511
+ */
1512
+ ruleType: string;
1513
+ /**
1514
+ *
1515
+ * @type {Date}
1516
+ * @memberof RuleDetailResponseData
1517
+ */
1518
+ updatedAt: Date;
1519
+ /**
1520
+ *
1521
+ * @type {boolean}
1522
+ * @memberof RuleDetailResponseData
1523
+ */
1524
+ value: boolean;
1525
+ }
1526
+
36
1527
  export { Schematic }
37
1528
 
38
1529
  export { SchematicContext }
@@ -42,9 +1533,7 @@ declare interface SchematicContextProps {
42
1533
  flagValues: Record<string, boolean>;
43
1534
  }
44
1535
 
45
- export declare interface SchematicFlags {
46
- [key: string]: boolean;
47
- }
1536
+ export declare const SchematicEmbed: ({ id, accessToken }: EmbedProps) => JSX_2.Element;
48
1537
 
49
1538
  export declare interface SchematicHookOpts {
50
1539
  client?: SchematicJS.Schematic;
@@ -54,15 +1543,68 @@ export { SchematicOptions }
54
1543
 
55
1544
  export declare const SchematicProvider: React_2.FC<SchematicProviderProps>;
56
1545
 
57
- export declare interface SchematicProviderProps {
58
- children: ReactNode;
59
- client?: SchematicJS.Schematic;
60
- clientOpts?: SchematicJS.SchematicOptions;
61
- publishableKey?: string;
1546
+ export declare type SchematicProviderProps = SchematicProviderPropsWithClient | SchematicProviderPropsWithPublishableKey;
1547
+
1548
+ declare type SchematicProviderPropsWithClient = BaseSchematicProviderProps & {
1549
+ client: SchematicJS.Schematic;
1550
+ publishableKey?: never;
1551
+ };
1552
+
1553
+ declare type SchematicProviderPropsWithPublishableKey = BaseSchematicProviderProps & {
1554
+ client?: never;
1555
+ publishableKey: string;
1556
+ };
1557
+
1558
+ declare type SerializedNode = Omit<Craft.SerializedNode, "parent"> & {
1559
+ id: string;
1560
+ parent?: string | null;
1561
+ };
1562
+
1563
+ declare type SerializedNodeWithChildren = SerializedNode & {
1564
+ children: SerializedNodeWithChildren[];
1565
+ };
1566
+
1567
+ declare type SetData = (data: RecursivePartial<ComponentHydrateResponseData>) => void;
1568
+
1569
+ declare type SetSettings = (settings: RecursivePartial<Settings>) => void;
1570
+
1571
+ declare interface Settings {
1572
+ theme: "light" | "dark";
1573
+ sectionLayout: "merged" | "separate";
1574
+ borderWidth: number;
1575
+ borderColor: string;
1576
+ borderRadius: number;
1577
+ boxShadow: string;
1578
+ boxPadding: number;
1579
+ }
1580
+
1581
+ declare const Text_2: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;
1582
+ export { Text_2 as Text }
1583
+
1584
+ declare interface TextDesignProps {
1585
+ isVisible?: boolean;
1586
+ fontFamily?: string;
1587
+ fontSize?: number;
1588
+ fontWeight?: number;
1589
+ color?: string;
1590
+ }
1591
+
1592
+ export declare interface TextProps extends ComponentProps {
1593
+ $align?: ComponentProps["$textAlign"];
1594
+ $font?: ComponentProps["$fontFamily"];
1595
+ $size?: ComponentProps["$fontSize"];
1596
+ $weight?: ComponentProps["$fontWeight"];
1597
+ $color?: ComponentProps["$color"];
62
1598
  }
63
1599
 
64
1600
  export { Traits }
65
1601
 
1602
+ declare type TransientCSSProperties = {
1603
+ [Property in keyof React.CSSProperties as `$${string & Property}`]: React.CSSProperties[Property];
1604
+ };
1605
+
1606
+ export declare const useEmbed: () => EmbedContextProps;
1607
+
66
1608
  export declare const useSchematic: () => SchematicContextProps;
67
1609
 
68
1610
  export declare const useSchematicContext: (opts?: SchematicHookOpts) => {
@@ -70,8 +1612,8 @@ export declare const useSchematicContext: (opts?: SchematicHookOpts) => {
70
1612
  };
71
1613
 
72
1614
  export declare const useSchematicEvents: (opts?: SchematicHookOpts) => {
73
- track: ((body: SchematicJS.EventBodyTrack) => void) | undefined;
74
- identify: ((body: SchematicJS.EventBodyIdentify) => void) | undefined;
1615
+ track: ((body: SchematicJS.EventBodyTrack) => Promise<void>) | undefined;
1616
+ identify: ((body: SchematicJS.EventBodyIdentify) => Promise<void>) | undefined;
75
1617
  };
76
1618
 
77
1619
  export declare const useSchematicFlag: (key: string, opts?: UseSchematicFlagOpts) => boolean;