@schematichq/schematic-components 2.34.1 → 2.35.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-elements.cjs.js +8003 -4511
- package/dist/schematic-components-elements.d.ts +723 -0
- package/dist/schematic-components-elements.esm.js +8036 -4515
- package/dist/schematic-components.browser.cjs.js +106 -3
- package/dist/schematic-components.browser.esm.js +106 -3
- package/dist/schematic-components.cjs.js +106 -3
- package/dist/schematic-components.d.ts +141 -0
- package/dist/schematic-components.esm.js +106 -3
- package/package.json +6 -6
|
@@ -5525,6 +5525,14 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5525
5525
|
};
|
|
5526
5526
|
}
|
|
5527
5527
|
|
|
5528
|
+
// src/api/checkoutexternal/models/CheckoutChargeTiming.ts
|
|
5529
|
+
function CheckoutChargeTimingFromJSON(json) {
|
|
5530
|
+
return CheckoutChargeTimingFromJSONTyped(json, false);
|
|
5531
|
+
}
|
|
5532
|
+
function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5533
|
+
return json;
|
|
5534
|
+
}
|
|
5535
|
+
|
|
5528
5536
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
|
|
5529
5537
|
function CheckoutPriceSnapshotDiscountFromJSON(json) {
|
|
5530
5538
|
return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
|
|
@@ -5546,6 +5554,53 @@ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5546
5554
|
};
|
|
5547
5555
|
}
|
|
5548
5556
|
|
|
5557
|
+
// src/api/checkoutexternal/models/ProrationLineKind.ts
|
|
5558
|
+
function ProrationLineKindFromJSON(json) {
|
|
5559
|
+
return ProrationLineKindFromJSONTyped(json, false);
|
|
5560
|
+
}
|
|
5561
|
+
function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
5562
|
+
return json;
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5565
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
|
|
5566
|
+
function CheckoutPriceSnapshotProrationLineFromJSON(json) {
|
|
5567
|
+
return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
|
|
5568
|
+
}
|
|
5569
|
+
function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
5570
|
+
if (json == null) {
|
|
5571
|
+
return json;
|
|
5572
|
+
}
|
|
5573
|
+
return {
|
|
5574
|
+
amount: json["amount"],
|
|
5575
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
5576
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
5577
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
5578
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
5579
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
5580
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
5581
|
+
};
|
|
5582
|
+
}
|
|
5583
|
+
|
|
5584
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
|
|
5585
|
+
function CheckoutPriceSnapshotProrationFromJSON(json) {
|
|
5586
|
+
return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
|
|
5587
|
+
}
|
|
5588
|
+
function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
5589
|
+
if (json == null) {
|
|
5590
|
+
return json;
|
|
5591
|
+
}
|
|
5592
|
+
return {
|
|
5593
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
5594
|
+
charge: json["charge"],
|
|
5595
|
+
credit: json["credit"],
|
|
5596
|
+
lines: json["lines"].map(
|
|
5597
|
+
CheckoutPriceSnapshotProrationLineFromJSON
|
|
5598
|
+
),
|
|
5599
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
5600
|
+
total: json["total"]
|
|
5601
|
+
};
|
|
5602
|
+
}
|
|
5603
|
+
|
|
5549
5604
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5550
5605
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5551
5606
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5557,6 +5612,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5557
5612
|
return {
|
|
5558
5613
|
amountOff: json["amount_off"],
|
|
5559
5614
|
currency: CurrencyFromJSON(json["currency"]),
|
|
5615
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
5616
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
5560
5617
|
discountAmount: json["discount_amount"],
|
|
5561
5618
|
discounts: json["discounts"].map(
|
|
5562
5619
|
CheckoutPriceSnapshotDiscountFromJSON
|
|
@@ -5573,6 +5630,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5573
5630
|
pricedAt: new Date(json["priced_at"]),
|
|
5574
5631
|
promoCodeApplied: json["promo_code_applied"],
|
|
5575
5632
|
proration: json["proration"],
|
|
5633
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
|
|
5576
5634
|
scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
|
|
5577
5635
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
5578
5636
|
totalPerBillingPeriod: json["total_per_billing_period"],
|
|
@@ -8845,6 +8903,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
|
|
|
8845
8903
|
};
|
|
8846
8904
|
}
|
|
8847
8905
|
|
|
8906
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
|
|
8907
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
|
|
8908
|
+
return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
|
|
8909
|
+
}
|
|
8910
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8911
|
+
if (json == null) {
|
|
8912
|
+
return json;
|
|
8913
|
+
}
|
|
8914
|
+
return {
|
|
8915
|
+
amount: json["amount"],
|
|
8916
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
8917
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
8918
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
8919
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
8920
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
8921
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
8922
|
+
};
|
|
8923
|
+
}
|
|
8924
|
+
|
|
8925
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
|
|
8926
|
+
function PreviewSubscriptionProrationResponseDataFromJSON(json) {
|
|
8927
|
+
return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
|
|
8928
|
+
}
|
|
8929
|
+
function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8930
|
+
if (json == null) {
|
|
8931
|
+
return json;
|
|
8932
|
+
}
|
|
8933
|
+
return {
|
|
8934
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
8935
|
+
charge: json["charge"],
|
|
8936
|
+
credit: json["credit"],
|
|
8937
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
8938
|
+
lines: json["lines"].map(
|
|
8939
|
+
PreviewSubscriptionProrationLineResponseDataFromJSON
|
|
8940
|
+
),
|
|
8941
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
8942
|
+
total: json["total"]
|
|
8943
|
+
};
|
|
8944
|
+
}
|
|
8945
|
+
|
|
8848
8946
|
// src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
|
|
8849
8947
|
function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
|
|
8850
8948
|
return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
|
|
@@ -8856,6 +8954,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
8856
8954
|
return {
|
|
8857
8955
|
amountOff: json["amount_off"],
|
|
8858
8956
|
currency: CurrencyFromJSON(json["currency"]),
|
|
8957
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
8958
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
8859
8959
|
discountAmount: json["discount_amount"],
|
|
8860
8960
|
discounts: json["discounts"].map(
|
|
8861
8961
|
PreviewSubscriptionDiscountResponseDataFromJSON
|
|
@@ -8868,6 +8968,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
8868
8968
|
promoCodeApplied: json["promo_code_applied"],
|
|
8869
8969
|
proration: json["proration"],
|
|
8870
8970
|
prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
|
|
8971
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
|
|
8972
|
+
json["proration_detail"]
|
|
8973
|
+
),
|
|
8871
8974
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
8872
8975
|
taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
|
|
8873
8976
|
taxRequireBillingDetails: json["tax_require_billing_details"],
|
|
@@ -10756,9 +10859,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10756
10859
|
|
|
10757
10860
|
// src/api/componentspublic/models/Currency.ts
|
|
10758
10861
|
function CurrencyFromJSON2(json) {
|
|
10759
|
-
return
|
|
10862
|
+
return CurrencyFromJSONTyped41(json, false);
|
|
10760
10863
|
}
|
|
10761
|
-
function
|
|
10864
|
+
function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
|
|
10762
10865
|
return json;
|
|
10763
10866
|
}
|
|
10764
10867
|
|
|
@@ -17430,7 +17533,7 @@ var reducer = (state, action) => {
|
|
|
17430
17533
|
// src/context/EmbedProvider.tsx
|
|
17431
17534
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
17432
17535
|
var getCustomHeaders = (sessionId) => ({
|
|
17433
|
-
"X-Schematic-Components-Version": "2.
|
|
17536
|
+
"X-Schematic-Components-Version": "2.35.0",
|
|
17434
17537
|
"X-Schematic-Session-ID": sessionId
|
|
17435
17538
|
});
|
|
17436
17539
|
var normalizeCurrencyFilter = (filter2) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.35.0",
|
|
4
4
|
"main": "dist/schematic-components.cjs.js",
|
|
5
5
|
"module": "dist/schematic-components.esm.js",
|
|
6
6
|
"types": "dist/schematic-components.d.ts",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@eslint/markdown": "^8.0.3",
|
|
84
84
|
"@microsoft/api-extractor": "^7.59.4",
|
|
85
85
|
"@openapitools/openapi-generator-cli": "^2.41.0",
|
|
86
|
-
"@schematichq/schematic-js": "^1.
|
|
87
|
-
"@schematichq/schematic-react": "^1.
|
|
86
|
+
"@schematichq/schematic-js": "^1.15.0",
|
|
87
|
+
"@schematichq/schematic-react": "^1.15.0",
|
|
88
88
|
"@stripe/react-stripe-js": "^6.12.0",
|
|
89
89
|
"@swc/core": "^1.16.13",
|
|
90
90
|
"@testing-library/dom": "^10.4.2",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@types/lodash": "^4.17.26",
|
|
94
94
|
"@types/react": "^19.3.0",
|
|
95
95
|
"@types/react-dom": "^19.3.0",
|
|
96
|
-
"@vitest/browser": "^5.0.
|
|
96
|
+
"@vitest/browser": "^5.0.5",
|
|
97
97
|
"csstype": "^3.2.3",
|
|
98
98
|
"esbuild": "^0.28.2",
|
|
99
99
|
"eslint": "^10.12.0",
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
"react-dom": "^19.3.0",
|
|
111
111
|
"typescript": "^6.0.3",
|
|
112
112
|
"typescript-eslint": "^8.71.1",
|
|
113
|
-
"vitest": "^5.0.
|
|
113
|
+
"vitest": "^5.0.5"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
|
-
"@schematichq/schematic-react": "^1.
|
|
116
|
+
"@schematichq/schematic-react": "^1.15.0",
|
|
117
117
|
"@stripe/react-stripe-js": ">=3",
|
|
118
118
|
"@stripe/stripe-js": ">=4",
|
|
119
119
|
"react": ">=18",
|