@schematichq/schematic-components 0.4.0-rc.4 → 0.4.0-rc.5
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.
|
@@ -8662,6 +8662,7 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8662
8662
|
return {
|
|
8663
8663
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
8664
8664
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
8665
|
+
companyCanTrial: json["company_can_trial"],
|
|
8665
8666
|
companyCount: json["company_count"],
|
|
8666
8667
|
createdAt: new Date(json["created_at"]),
|
|
8667
8668
|
current: json["current"],
|
|
@@ -8901,7 +8902,8 @@ function PreviewSubscriptionChangeResponseDataFromJSONTyped(json, ignoreDiscrimi
|
|
|
8901
8902
|
dueNow: json["due_now"],
|
|
8902
8903
|
newCharges: json["new_charges"],
|
|
8903
8904
|
periodStart: new Date(json["period_start"]),
|
|
8904
|
-
proration: json["proration"]
|
|
8905
|
+
proration: json["proration"],
|
|
8906
|
+
trialEnd: json["trial_end"] == null ? void 0 : new Date(json["trial_end"])
|
|
8905
8907
|
};
|
|
8906
8908
|
}
|
|
8907
8909
|
|
|
@@ -9748,7 +9750,7 @@ var EmbedProvider = ({
|
|
|
9748
9750
|
(0, import_react3.useEffect)(() => {
|
|
9749
9751
|
if (accessToken) {
|
|
9750
9752
|
const { headers = {} } = apiConfig ?? {};
|
|
9751
|
-
headers["X-Schematic-Components-Version"] = "0.4.0-rc.
|
|
9753
|
+
headers["X-Schematic-Components-Version"] = "0.4.0-rc.5";
|
|
9752
9754
|
headers["X-Schematic-Session-ID"] = sessionIdRef.current;
|
|
9753
9755
|
const config = new Configuration({
|
|
9754
9756
|
...apiConfig,
|
|
@@ -10898,7 +10900,7 @@ var Badge = () => {
|
|
|
10898
10900
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
10899
10901
|
Flex,
|
|
10900
10902
|
{
|
|
10901
|
-
$justifyContent: settings.badge
|
|
10903
|
+
$justifyContent: settings.badge?.alignment || "start",
|
|
10902
10904
|
$alignItems: "center",
|
|
10903
10905
|
$gridColumn: "1 / -1",
|
|
10904
10906
|
children: [
|
|
@@ -888,6 +888,12 @@ declare interface CompanyPlanDetailResponseData {
|
|
|
888
888
|
* @memberof CompanyPlanDetailResponseData
|
|
889
889
|
*/
|
|
890
890
|
billingProduct?: BillingProductDetailResponseData;
|
|
891
|
+
/**
|
|
892
|
+
*
|
|
893
|
+
* @type {boolean}
|
|
894
|
+
* @memberof CompanyPlanDetailResponseData
|
|
895
|
+
*/
|
|
896
|
+
companyCanTrial: boolean;
|
|
891
897
|
/**
|
|
892
898
|
*
|
|
893
899
|
* @type {number}
|
|
@@ -1648,7 +1654,7 @@ export declare interface EmbedProviderProps {
|
|
|
1648
1654
|
|
|
1649
1655
|
export declare type EmbedSettings = {
|
|
1650
1656
|
theme: EmbedThemeSettings;
|
|
1651
|
-
badge
|
|
1657
|
+
badge?: {
|
|
1652
1658
|
alignment: ComponentProps["$justifyContent"];
|
|
1653
1659
|
};
|
|
1654
1660
|
};
|
|
@@ -3217,6 +3223,12 @@ declare interface PreviewSubscriptionChangeResponseData {
|
|
|
3217
3223
|
* @memberof PreviewSubscriptionChangeResponseData
|
|
3218
3224
|
*/
|
|
3219
3225
|
proration: number;
|
|
3226
|
+
/**
|
|
3227
|
+
*
|
|
3228
|
+
* @type {Date}
|
|
3229
|
+
* @memberof PreviewSubscriptionChangeResponseData
|
|
3230
|
+
*/
|
|
3231
|
+
trialEnd?: Date | null;
|
|
3220
3232
|
}
|
|
3221
3233
|
|
|
3222
3234
|
export declare const PricingTable: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & {
|
|
@@ -3806,6 +3818,7 @@ export declare function useAvailablePlans(activePeriod: string): {
|
|
|
3806
3818
|
isSelected: boolean;
|
|
3807
3819
|
audienceType?: string | null;
|
|
3808
3820
|
billingProduct?: BillingProductDetailResponseData;
|
|
3821
|
+
companyCanTrial: boolean;
|
|
3809
3822
|
companyCount: number;
|
|
3810
3823
|
createdAt: Date;
|
|
3811
3824
|
current: boolean;
|
|
@@ -3829,6 +3842,7 @@ export declare function useAvailablePlans(activePeriod: string): {
|
|
|
3829
3842
|
isSelected: boolean;
|
|
3830
3843
|
audienceType?: string | null;
|
|
3831
3844
|
billingProduct?: BillingProductDetailResponseData;
|
|
3845
|
+
companyCanTrial: boolean;
|
|
3832
3846
|
companyCount: number;
|
|
3833
3847
|
createdAt: Date;
|
|
3834
3848
|
current: boolean;
|
|
@@ -8619,6 +8619,7 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8619
8619
|
return {
|
|
8620
8620
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
8621
8621
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
8622
|
+
companyCanTrial: json["company_can_trial"],
|
|
8622
8623
|
companyCount: json["company_count"],
|
|
8623
8624
|
createdAt: new Date(json["created_at"]),
|
|
8624
8625
|
current: json["current"],
|
|
@@ -8858,7 +8859,8 @@ function PreviewSubscriptionChangeResponseDataFromJSONTyped(json, ignoreDiscrimi
|
|
|
8858
8859
|
dueNow: json["due_now"],
|
|
8859
8860
|
newCharges: json["new_charges"],
|
|
8860
8861
|
periodStart: new Date(json["period_start"]),
|
|
8861
|
-
proration: json["proration"]
|
|
8862
|
+
proration: json["proration"],
|
|
8863
|
+
trialEnd: json["trial_end"] == null ? void 0 : new Date(json["trial_end"])
|
|
8862
8864
|
};
|
|
8863
8865
|
}
|
|
8864
8866
|
|
|
@@ -9705,7 +9707,7 @@ var EmbedProvider = ({
|
|
|
9705
9707
|
useEffect(() => {
|
|
9706
9708
|
if (accessToken) {
|
|
9707
9709
|
const { headers = {} } = apiConfig ?? {};
|
|
9708
|
-
headers["X-Schematic-Components-Version"] = "0.4.0-rc.
|
|
9710
|
+
headers["X-Schematic-Components-Version"] = "0.4.0-rc.5";
|
|
9709
9711
|
headers["X-Schematic-Session-ID"] = sessionIdRef.current;
|
|
9710
9712
|
const config = new Configuration({
|
|
9711
9713
|
...apiConfig,
|
|
@@ -10855,7 +10857,7 @@ var Badge = () => {
|
|
|
10855
10857
|
return /* @__PURE__ */ jsxs6(
|
|
10856
10858
|
Flex,
|
|
10857
10859
|
{
|
|
10858
|
-
$justifyContent: settings.badge
|
|
10860
|
+
$justifyContent: settings.badge?.alignment || "start",
|
|
10859
10861
|
$alignItems: "center",
|
|
10860
10862
|
$gridColumn: "1 / -1",
|
|
10861
10863
|
children: [
|
package/package.json
CHANGED