@schematichq/schematic-components 1.1.3 → 1.2.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/dist/schematic-components.cjs.js +1980 -1176
- package/dist/schematic-components.d.ts +189 -3
- package/dist/schematic-components.esm.js +2018 -1208
- package/package.json +17 -17
|
@@ -3,6 +3,7 @@ import { Context } from 'react';
|
|
|
3
3
|
import { DetailedHTMLProps } from 'react';
|
|
4
4
|
import { FastOmit } from 'styled-components';
|
|
5
5
|
import { ForwardRefExoticComponent } from 'react';
|
|
6
|
+
import { HTMLAttributeAnchorTarget } from 'react';
|
|
6
7
|
import { HTMLAttributes } from 'react';
|
|
7
8
|
import { IconNames } from '@schematichq/schematic-icons';
|
|
8
9
|
import { IconProps as IconProps_2 } from '@schematichq/schematic-icons';
|
|
@@ -20,6 +21,12 @@ import { Substitute } from 'styled-components/dist/types';
|
|
|
20
21
|
* @interface BillingCreditBundleView
|
|
21
22
|
*/
|
|
22
23
|
declare interface BillingCreditBundleView {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BillingCreditBundleView
|
|
28
|
+
*/
|
|
29
|
+
billingInvoiceId?: string | null;
|
|
23
30
|
/**
|
|
24
31
|
*
|
|
25
32
|
* @type {string}
|
|
@@ -32,12 +39,30 @@ declare interface BillingCreditBundleView {
|
|
|
32
39
|
* @memberof BillingCreditBundleView
|
|
33
40
|
*/
|
|
34
41
|
createdAt: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BillingCreditBundleView
|
|
46
|
+
*/
|
|
47
|
+
creditDescription?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BillingCreditBundleView
|
|
52
|
+
*/
|
|
53
|
+
creditIcon?: string | null;
|
|
35
54
|
/**
|
|
36
55
|
*
|
|
37
56
|
* @type {string}
|
|
38
57
|
* @memberof BillingCreditBundleView
|
|
39
58
|
*/
|
|
40
59
|
creditId: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof BillingCreditBundleView
|
|
64
|
+
*/
|
|
65
|
+
creditName: string;
|
|
41
66
|
/**
|
|
42
67
|
*
|
|
43
68
|
* @type {string}
|
|
@@ -68,6 +93,12 @@ declare interface BillingCreditBundleView {
|
|
|
68
93
|
* @memberof BillingCreditBundleView
|
|
69
94
|
*/
|
|
70
95
|
name: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof BillingCreditBundleView
|
|
100
|
+
*/
|
|
101
|
+
pluralName?: string | null;
|
|
71
102
|
/**
|
|
72
103
|
*
|
|
73
104
|
* @type {BillingProductPriceResponseData}
|
|
@@ -80,12 +111,24 @@ declare interface BillingCreditBundleView {
|
|
|
80
111
|
* @memberof BillingCreditBundleView
|
|
81
112
|
*/
|
|
82
113
|
quantity?: number | null;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof BillingCreditBundleView
|
|
118
|
+
*/
|
|
119
|
+
singularName?: string | null;
|
|
83
120
|
/**
|
|
84
121
|
*
|
|
85
122
|
* @type {string}
|
|
86
123
|
* @memberof BillingCreditBundleView
|
|
87
124
|
*/
|
|
88
125
|
status: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {BillingProductPriceResponseData}
|
|
129
|
+
* @memberof BillingCreditBundleView
|
|
130
|
+
*/
|
|
131
|
+
unitPrice?: BillingProductPriceResponseData;
|
|
89
132
|
/**
|
|
90
133
|
*
|
|
91
134
|
* @type {Date}
|
|
@@ -1858,6 +1901,7 @@ export declare type CheckoutState = {
|
|
|
1858
1901
|
planId?: string | null;
|
|
1859
1902
|
addOnId?: string | null;
|
|
1860
1903
|
usage?: boolean;
|
|
1904
|
+
credits?: boolean;
|
|
1861
1905
|
};
|
|
1862
1906
|
|
|
1863
1907
|
/**
|
|
@@ -2325,6 +2369,12 @@ declare interface CompanyPlanDetailResponseData {
|
|
|
2325
2369
|
* @memberof CompanyPlanDetailResponseData
|
|
2326
2370
|
*/
|
|
2327
2371
|
id: string;
|
|
2372
|
+
/**
|
|
2373
|
+
*
|
|
2374
|
+
* @type {Array<PlanCreditGrantView>}
|
|
2375
|
+
* @memberof CompanyPlanDetailResponseData
|
|
2376
|
+
*/
|
|
2377
|
+
includedCreditGrants: Array<PlanCreditGrantView>;
|
|
2328
2378
|
/**
|
|
2329
2379
|
*
|
|
2330
2380
|
* @type {boolean}
|
|
@@ -2906,6 +2956,18 @@ declare interface CreditCompanyGrantView {
|
|
|
2906
2956
|
* @memberof CreditCompanyGrantView
|
|
2907
2957
|
*/
|
|
2908
2958
|
createdAt: Date;
|
|
2959
|
+
/**
|
|
2960
|
+
*
|
|
2961
|
+
* @type {string}
|
|
2962
|
+
* @memberof CreditCompanyGrantView
|
|
2963
|
+
*/
|
|
2964
|
+
creditDescription: string;
|
|
2965
|
+
/**
|
|
2966
|
+
*
|
|
2967
|
+
* @type {string}
|
|
2968
|
+
* @memberof CreditCompanyGrantView
|
|
2969
|
+
*/
|
|
2970
|
+
creditIcon?: string | null;
|
|
2909
2971
|
/**
|
|
2910
2972
|
*
|
|
2911
2973
|
* @type {string}
|
|
@@ -2942,6 +3004,12 @@ declare interface CreditCompanyGrantView {
|
|
|
2942
3004
|
* @memberof CreditCompanyGrantView
|
|
2943
3005
|
*/
|
|
2944
3006
|
planName?: string | null;
|
|
3007
|
+
/**
|
|
3008
|
+
*
|
|
3009
|
+
* @type {string}
|
|
3010
|
+
* @memberof CreditCompanyGrantView
|
|
3011
|
+
*/
|
|
3012
|
+
pluralName?: string | null;
|
|
2945
3013
|
/**
|
|
2946
3014
|
*
|
|
2947
3015
|
* @type {BillingProductPriceResponseData}
|
|
@@ -2966,6 +3034,12 @@ declare interface CreditCompanyGrantView {
|
|
|
2966
3034
|
* @memberof CreditCompanyGrantView
|
|
2967
3035
|
*/
|
|
2968
3036
|
quantityUsed: number;
|
|
3037
|
+
/**
|
|
3038
|
+
*
|
|
3039
|
+
* @type {string}
|
|
3040
|
+
* @memberof CreditCompanyGrantView
|
|
3041
|
+
*/
|
|
3042
|
+
singularName?: string | null;
|
|
2969
3043
|
/**
|
|
2970
3044
|
*
|
|
2971
3045
|
* @type {string}
|
|
@@ -3285,12 +3359,14 @@ declare interface DesignProps_7 {
|
|
|
3285
3359
|
};
|
|
3286
3360
|
showInclusionText: boolean;
|
|
3287
3361
|
showFeatureIcons: boolean;
|
|
3362
|
+
showFeatureDescriptions: boolean;
|
|
3288
3363
|
showEntitlements: boolean;
|
|
3289
3364
|
};
|
|
3290
3365
|
addOns: {
|
|
3291
3366
|
isVisible: boolean;
|
|
3292
3367
|
showDescription: boolean;
|
|
3293
3368
|
showFeatureIcons: boolean;
|
|
3369
|
+
showFeatureDescriptions: boolean;
|
|
3294
3370
|
showEntitlements: boolean;
|
|
3295
3371
|
};
|
|
3296
3372
|
upgrade: {
|
|
@@ -5086,6 +5162,111 @@ declare interface PaymentMethodResponseData {
|
|
|
5086
5162
|
updatedAt: Date;
|
|
5087
5163
|
}
|
|
5088
5164
|
|
|
5165
|
+
declare type Plan = CompanyPlanDetailResponseData | PlanViewPublicResponseData;
|
|
5166
|
+
|
|
5167
|
+
/**
|
|
5168
|
+
* Schematic API
|
|
5169
|
+
* Schematic API
|
|
5170
|
+
*
|
|
5171
|
+
* The version of the OpenAPI document: 0.1
|
|
5172
|
+
*
|
|
5173
|
+
*
|
|
5174
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5175
|
+
* https://openapi-generator.tech
|
|
5176
|
+
* Do not edit the class manually.
|
|
5177
|
+
*/
|
|
5178
|
+
/**
|
|
5179
|
+
*
|
|
5180
|
+
* @export
|
|
5181
|
+
* @interface PlanCreditGrantView
|
|
5182
|
+
*/
|
|
5183
|
+
declare interface PlanCreditGrantView {
|
|
5184
|
+
/**
|
|
5185
|
+
*
|
|
5186
|
+
* @type {Date}
|
|
5187
|
+
* @memberof PlanCreditGrantView
|
|
5188
|
+
*/
|
|
5189
|
+
createdAt: Date;
|
|
5190
|
+
/**
|
|
5191
|
+
*
|
|
5192
|
+
* @type {number}
|
|
5193
|
+
* @memberof PlanCreditGrantView
|
|
5194
|
+
*/
|
|
5195
|
+
creditAmount: number;
|
|
5196
|
+
/**
|
|
5197
|
+
*
|
|
5198
|
+
* @type {string}
|
|
5199
|
+
* @memberof PlanCreditGrantView
|
|
5200
|
+
*/
|
|
5201
|
+
creditDescription: string;
|
|
5202
|
+
/**
|
|
5203
|
+
*
|
|
5204
|
+
* @type {string}
|
|
5205
|
+
* @memberof PlanCreditGrantView
|
|
5206
|
+
*/
|
|
5207
|
+
creditIcon?: string | null;
|
|
5208
|
+
/**
|
|
5209
|
+
*
|
|
5210
|
+
* @type {string}
|
|
5211
|
+
* @memberof PlanCreditGrantView
|
|
5212
|
+
*/
|
|
5213
|
+
creditId: string;
|
|
5214
|
+
/**
|
|
5215
|
+
*
|
|
5216
|
+
* @type {string}
|
|
5217
|
+
* @memberof PlanCreditGrantView
|
|
5218
|
+
*/
|
|
5219
|
+
creditName: string;
|
|
5220
|
+
/**
|
|
5221
|
+
*
|
|
5222
|
+
* @type {string}
|
|
5223
|
+
* @memberof PlanCreditGrantView
|
|
5224
|
+
*/
|
|
5225
|
+
id: string;
|
|
5226
|
+
/**
|
|
5227
|
+
*
|
|
5228
|
+
* @type {string}
|
|
5229
|
+
* @memberof PlanCreditGrantView
|
|
5230
|
+
*/
|
|
5231
|
+
planId: string;
|
|
5232
|
+
/**
|
|
5233
|
+
*
|
|
5234
|
+
* @type {string}
|
|
5235
|
+
* @memberof PlanCreditGrantView
|
|
5236
|
+
*/
|
|
5237
|
+
planName: string;
|
|
5238
|
+
/**
|
|
5239
|
+
*
|
|
5240
|
+
* @type {string}
|
|
5241
|
+
* @memberof PlanCreditGrantView
|
|
5242
|
+
*/
|
|
5243
|
+
pluralName?: string | null;
|
|
5244
|
+
/**
|
|
5245
|
+
*
|
|
5246
|
+
* @type {string}
|
|
5247
|
+
* @memberof PlanCreditGrantView
|
|
5248
|
+
*/
|
|
5249
|
+
resetCadence: string;
|
|
5250
|
+
/**
|
|
5251
|
+
*
|
|
5252
|
+
* @type {string}
|
|
5253
|
+
* @memberof PlanCreditGrantView
|
|
5254
|
+
*/
|
|
5255
|
+
resetStart: string;
|
|
5256
|
+
/**
|
|
5257
|
+
*
|
|
5258
|
+
* @type {string}
|
|
5259
|
+
* @memberof PlanCreditGrantView
|
|
5260
|
+
*/
|
|
5261
|
+
singularName?: string | null;
|
|
5262
|
+
/**
|
|
5263
|
+
*
|
|
5264
|
+
* @type {Date}
|
|
5265
|
+
* @memberof PlanCreditGrantView
|
|
5266
|
+
*/
|
|
5267
|
+
updatedAt: Date;
|
|
5268
|
+
}
|
|
5269
|
+
|
|
5089
5270
|
/**
|
|
5090
5271
|
*
|
|
5091
5272
|
* @export
|
|
@@ -6207,6 +6388,7 @@ export declare const PricingTable: ForwardRefExoticComponent<ElementProps & Deep
|
|
|
6207
6388
|
|
|
6208
6389
|
export declare type PricingTableOptions = {
|
|
6209
6390
|
callToActionUrl?: string;
|
|
6391
|
+
callToActionTarget?: HTMLAttributeAnchorTarget;
|
|
6210
6392
|
onCallToAction?: (plan: PlanViewPublicResponseData | CompanyPlanDetailResponseData) => unknown;
|
|
6211
6393
|
};
|
|
6212
6394
|
|
|
@@ -6836,7 +7018,7 @@ declare interface RuleDetailResponseData_2 {
|
|
|
6836
7018
|
|
|
6837
7019
|
export declare const SchematicEmbed: ({ id, accessToken }: EmbedProps) => JSX.Element;
|
|
6838
7020
|
|
|
6839
|
-
|
|
7021
|
+
declare type SelectedPlan = Plan & {
|
|
6840
7022
|
isSelected: boolean;
|
|
6841
7023
|
};
|
|
6842
7024
|
|
|
@@ -6998,7 +7180,7 @@ declare type TransientCSSProperties = {
|
|
|
6998
7180
|
[Property in keyof React.CSSProperties as `$${string & Property}`]: React.CSSProperties[Property];
|
|
6999
7181
|
};
|
|
7000
7182
|
|
|
7001
|
-
export declare const TransitionBox: IStyledComponentBase<"web",
|
|
7183
|
+
export declare const TransitionBox: IStyledComponentBase<"web", Substitute<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
7002
7184
|
$viewport?: {
|
|
7003
7185
|
sm?: TransientCSSProperties;
|
|
7004
7186
|
md?: TransientCSSProperties;
|
|
@@ -7007,7 +7189,11 @@ xl?: TransientCSSProperties;
|
|
|
7007
7189
|
"2xl"?: TransientCSSProperties;
|
|
7008
7190
|
[key: string]: TransientCSSProperties | undefined;
|
|
7009
7191
|
};
|
|
7010
|
-
},
|
|
7192
|
+
}, TransitionBoxProps>> & string;
|
|
7193
|
+
|
|
7194
|
+
declare interface TransitionBoxProps {
|
|
7195
|
+
$isExpanded?: boolean;
|
|
7196
|
+
}
|
|
7011
7197
|
|
|
7012
7198
|
export declare interface TypographySettings {
|
|
7013
7199
|
fontFamily: string;
|