@schematichq/schematic-components 0.7.7 → 0.7.8

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.
@@ -13195,7 +13195,7 @@ var EmbedProvider = ({
13195
13195
  (0, import_react11.useEffect)(() => {
13196
13196
  if (accessToken) {
13197
13197
  const { headers = {} } = apiConfig ?? {};
13198
- headers["X-Schematic-Components-Version"] = "0.7.7";
13198
+ headers["X-Schematic-Components-Version"] = "0.7.8";
13199
13199
  headers["X-Schematic-Session-ID"] = sessionIdRef.current;
13200
13200
  const config = new Configuration({
13201
13201
  ...apiConfig,
@@ -20508,7 +20508,7 @@ var PricingTable = (0, import_react40.forwardRef)(({ children, className, ...res
20508
20508
  if (entitlementPriceObject && entitlement.priceBehavior === "overage") {
20509
20509
  if (entitlementPriceObject.priceTier?.length > 1) {
20510
20510
  const overagePrice = entitlementPriceObject.priceTier[entitlementPriceObject.priceTier.length - 1];
20511
- entitlementPrice = overagePrice.perUnitPrice ?? Number(overagePrice.perUnitPriceDecimal);
20511
+ entitlementPrice = overagePrice.perUnitPriceDecimal ? Number(overagePrice.perUnitPriceDecimal) : overagePrice.perUnitPrice ?? 0;
20512
20512
  entitlementCurrency = entitlementPriceObject.currency;
20513
20513
  }
20514
20514
  }
@@ -4278,6 +4278,8 @@ declare interface PreviewSubscriptionFinanceResponseData {
4278
4278
 
4279
4279
  export declare const PricingTable: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_7> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4280
4280
 
4281
+ export declare type PricingTableProps = DesignProps_7;
4282
+
4281
4283
  export declare const ProgressBar: ({ progress, value, total, color, bgColor, ...props }: ProgressBarProps) => JSX.Element;
4282
4284
 
4283
4285
  export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
@@ -13142,7 +13142,7 @@ var EmbedProvider = ({
13142
13142
  useEffect2(() => {
13143
13143
  if (accessToken) {
13144
13144
  const { headers = {} } = apiConfig ?? {};
13145
- headers["X-Schematic-Components-Version"] = "0.7.7";
13145
+ headers["X-Schematic-Components-Version"] = "0.7.8";
13146
13146
  headers["X-Schematic-Session-ID"] = sessionIdRef.current;
13147
13147
  const config = new Configuration({
13148
13148
  ...apiConfig,
@@ -20469,7 +20469,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
20469
20469
  if (entitlementPriceObject && entitlement.priceBehavior === "overage") {
20470
20470
  if (entitlementPriceObject.priceTier?.length > 1) {
20471
20471
  const overagePrice = entitlementPriceObject.priceTier[entitlementPriceObject.priceTier.length - 1];
20472
- entitlementPrice = overagePrice.perUnitPrice ?? Number(overagePrice.perUnitPriceDecimal);
20472
+ entitlementPrice = overagePrice.perUnitPriceDecimal ? Number(overagePrice.perUnitPriceDecimal) : overagePrice.perUnitPrice ?? 0;
20473
20473
  entitlementCurrency = entitlementPriceObject.currency;
20474
20474
  }
20475
20475
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-components",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "main": "dist/schematic-components.cjs.js",
5
5
  "module": "dist/schematic-components.esm.js",
6
6
  "types": "dist/schematic-components.d.ts",