@schematichq/schematic-components 2.0.0 → 2.0.1

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.
@@ -7257,17 +7257,22 @@ var useTranslation = (ns, props = {}) => {
7257
7257
  return isString2(nsOrContext) ? [nsOrContext] : nsOrContext || ["translation"];
7258
7258
  }, [ns, defaultNSFromContext, i18n]);
7259
7259
  i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);
7260
+ const revisionRef = (0, import_react10.useRef)(0);
7260
7261
  const subscribe = (0, import_react10.useCallback)((callback) => {
7261
7262
  if (!i18n) return dummySubscribe;
7262
7263
  const {
7263
7264
  bindI18n,
7264
7265
  bindI18nStore
7265
7266
  } = i18nOptions;
7266
- if (bindI18n) i18n.on(bindI18n, callback);
7267
- if (bindI18nStore) i18n.store.on(bindI18nStore, callback);
7267
+ const wrappedCallback = () => {
7268
+ revisionRef.current += 1;
7269
+ callback();
7270
+ };
7271
+ if (bindI18n) i18n.on(bindI18n, wrappedCallback);
7272
+ if (bindI18nStore) i18n.store.on(bindI18nStore, wrappedCallback);
7268
7273
  return () => {
7269
- if (bindI18n) bindI18n.split(" ").forEach((e2) => i18n.off(e2, callback));
7270
- if (bindI18nStore) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, callback));
7274
+ if (bindI18n) bindI18n.split(" ").forEach((e2) => i18n.off(e2, wrappedCallback));
7275
+ if (bindI18nStore) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, wrappedCallback));
7271
7276
  };
7272
7277
  }, [i18n, i18nOptions]);
7273
7278
  const snapshotRef = (0, import_react10.useRef)();
@@ -7276,16 +7281,19 @@ var useTranslation = (ns, props = {}) => {
7276
7281
  return notReadySnapshot;
7277
7282
  }
7278
7283
  const calculatedReady = !!(i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n) => hasLoadedNamespace2(n, i18n, i18nOptions));
7279
- const calculatedT = i18n.getFixedT(props.lng || i18n.language, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
7284
+ const currentLng = props.lng || i18n.language;
7285
+ const currentRevision = revisionRef.current;
7280
7286
  const lastSnapshot = snapshotRef.current;
7281
- if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === (props.lng || i18n.language) && lastSnapshot.keyPrefix === keyPrefix) {
7287
+ if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === currentLng && lastSnapshot.keyPrefix === keyPrefix && lastSnapshot.revision === currentRevision) {
7282
7288
  return lastSnapshot;
7283
7289
  }
7290
+ const calculatedT = i18n.getFixedT(currentLng, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
7284
7291
  const newSnapshot = {
7285
7292
  t: calculatedT,
7286
7293
  ready: calculatedReady,
7287
- lng: props.lng || i18n.language,
7288
- keyPrefix
7294
+ lng: currentLng,
7295
+ keyPrefix,
7296
+ revision: currentRevision
7289
7297
  };
7290
7298
  snapshotRef.current = newSnapshot;
7291
7299
  return newSnapshot;
@@ -7682,8 +7690,8 @@ var Icon = ({ name, className = "", ...rest }) => {
7682
7690
  };
7683
7691
 
7684
7692
  // src/context/EmbedProvider.tsx
7685
- var import_debounce = __toESM(require_debounce(), 1);
7686
- var import_merge2 = __toESM(require_merge(), 1);
7693
+ var import_debounce = __toESM(require_debounce());
7694
+ var import_merge2 = __toESM(require_merge());
7687
7695
  var import_react15 = require("react");
7688
7696
 
7689
7697
  // node_modules/uuid/dist/stringify.js
@@ -8955,7 +8963,6 @@ function RuleConditionDetailResponseDataFromJSONTyped(json, ignoreDiscriminator)
8955
8963
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : json["metric_period_month_reset"],
8956
8964
  metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
8957
8965
  operator: json["operator"],
8958
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
8959
8966
  resourceIds: json["resource_ids"],
8960
8967
  resources: json["resources"].map(
8961
8968
  PreviewObjectResponseDataFromJSON
@@ -8985,7 +8992,6 @@ function RuleConditionGroupDetailResponseDataFromJSONTyped(json, ignoreDiscrimin
8985
8992
  environmentId: json["environment_id"],
8986
8993
  flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
8987
8994
  id: json["id"],
8988
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
8989
8995
  ruleId: json["rule_id"],
8990
8996
  updatedAt: new Date(json["updated_at"])
8991
8997
  };
@@ -9011,7 +9017,6 @@ function RuleDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9011
9017
  flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
9012
9018
  id: json["id"],
9013
9019
  name: json["name"],
9014
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
9015
9020
  priority: json["priority"],
9016
9021
  ruleType: json["rule_type"],
9017
9022
  updatedAt: new Date(json["updated_at"]),
@@ -10815,7 +10820,6 @@ function RuleConditionDetailResponseDataFromJSONTyped4(json, ignoreDiscriminator
10815
10820
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : json["metric_period_month_reset"],
10816
10821
  metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
10817
10822
  operator: json["operator"],
10818
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
10819
10823
  resourceIds: json["resource_ids"],
10820
10824
  resources: json["resources"].map(
10821
10825
  PreviewObjectResponseDataFromJSON2
@@ -10845,7 +10849,6 @@ function RuleConditionGroupDetailResponseDataFromJSONTyped3(json, ignoreDiscrimi
10845
10849
  environmentId: json["environment_id"],
10846
10850
  flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
10847
10851
  id: json["id"],
10848
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
10849
10852
  ruleId: json["rule_id"],
10850
10853
  updatedAt: new Date(json["updated_at"])
10851
10854
  };
@@ -10871,7 +10874,6 @@ function RuleDetailResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
10871
10874
  flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
10872
10875
  id: json["id"],
10873
10876
  name: json["name"],
10874
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
10875
10877
  priority: json["priority"],
10876
10878
  ruleType: json["rule_type"],
10877
10879
  updatedAt: new Date(json["updated_at"]),
@@ -11165,7 +11167,7 @@ var ComponentspublicApi = class extends BaseAPI2 {
11165
11167
  };
11166
11168
 
11167
11169
  // src/context/embedReducer.ts
11168
- var import_merge = __toESM(require_merge(), 1);
11170
+ var import_merge = __toESM(require_merge());
11169
11171
  var dispatchPlanChangedEvent = (detail) => {
11170
11172
  const event = new CustomEvent("plan-changed", {
11171
11173
  bubbles: true,
@@ -11323,7 +11325,7 @@ var reducer = (state, action) => {
11323
11325
  // src/context/EmbedProvider.tsx
11324
11326
  var import_jsx_runtime2 = require("react/jsx-runtime");
11325
11327
  var getCustomHeaders = (sessionId) => ({
11326
- "X-Schematic-Components-Version": "2.0.0",
11328
+ "X-Schematic-Components-Version": "2.0.1",
11327
11329
  "X-Schematic-Session-ID": sessionId
11328
11330
  });
11329
11331
  var EmbedProvider = ({
@@ -12757,7 +12759,7 @@ var Text = dt.span.withConfig({
12757
12759
  );
12758
12760
 
12759
12761
  // src/components/ui/tooltip/Tooltip.tsx
12760
- var import_debounce2 = __toESM(require_debounce(), 1);
12762
+ var import_debounce2 = __toESM(require_debounce());
12761
12763
  var import_react25 = require("react");
12762
12764
  var import_react_dom = require("react-dom");
12763
12765
 
@@ -13099,7 +13101,7 @@ var Root = (0, import_react28.forwardRef)(
13099
13101
  Root.displayName = "Root";
13100
13102
 
13101
13103
  // src/components/layout/viewport/Viewport.tsx
13102
- var import_debounce3 = __toESM(require_debounce(), 1);
13104
+ var import_debounce3 = __toESM(require_debounce());
13103
13105
  var import_react41 = require("react");
13104
13106
  var import_react_dom2 = require("react-dom");
13105
13107
 
@@ -18577,7 +18579,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
18577
18579
  }
18578
18580
  stripe._registerWrapper({
18579
18581
  name: "stripe-js",
18580
- version: "8.1.0",
18582
+ version: "8.2.0",
18581
18583
  startTime
18582
18584
  });
18583
18585
  };
@@ -18652,7 +18654,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
18652
18654
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
18653
18655
  var expectedVersion = RELEASE_TRAIN;
18654
18656
  if (isTestKey && version !== expectedVersion) {
18655
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.1.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
18657
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.2.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
18656
18658
  }
18657
18659
  var stripe = maybeStripe.apply(void 0, args);
18658
18660
  registerWrapper(stripe, startTime);
@@ -2527,6 +2527,7 @@ declare interface CompanyPlanDetailResponseData {
2527
2527
  *
2528
2528
  * @type {string}
2529
2529
  * @memberof CompanyPlanDetailResponseData
2530
+ * @deprecated
2530
2531
  */
2531
2532
  audienceType?: string | null;
2532
2533
  /**
@@ -6127,6 +6128,7 @@ declare interface PlanDetailResponseData {
6127
6128
  *
6128
6129
  * @type {string}
6129
6130
  * @memberof PlanDetailResponseData
6131
+ * @deprecated
6130
6132
  */
6131
6133
  audienceType?: string | null;
6132
6134
  /**
@@ -6595,6 +6597,7 @@ declare interface PlanResponseData {
6595
6597
  *
6596
6598
  * @type {string}
6597
6599
  * @memberof PlanResponseData
6600
+ * @deprecated
6598
6601
  */
6599
6602
  audienceType?: string | null;
6600
6603
  /**
@@ -6662,6 +6665,7 @@ declare interface PlanResponseData_2 {
6662
6665
  *
6663
6666
  * @type {string}
6664
6667
  * @memberof PlanResponseData
6668
+ * @deprecated
6665
6669
  */
6666
6670
  audienceType?: string | null;
6667
6671
  /**
@@ -6718,6 +6722,7 @@ declare interface PlanViewPublicResponseData {
6718
6722
  *
6719
6723
  * @type {string}
6720
6724
  * @memberof PlanViewPublicResponseData
6725
+ * @deprecated
6721
6726
  */
6722
6727
  audienceType?: string | null;
6723
6728
  /**
@@ -7528,12 +7533,6 @@ declare interface RuleConditionDetailResponseData {
7528
7533
  * @memberof RuleConditionDetailResponseData
7529
7534
  */
7530
7535
  operator: string;
7531
- /**
7532
- *
7533
- * @type {string}
7534
- * @memberof RuleConditionDetailResponseData
7535
- */
7536
- planId?: string | null;
7537
7536
  /**
7538
7537
  *
7539
7538
  * @type {Array<string>}
@@ -7668,12 +7667,6 @@ declare interface RuleConditionDetailResponseData_2 {
7668
7667
  * @memberof RuleConditionDetailResponseData
7669
7668
  */
7670
7669
  operator: string;
7671
- /**
7672
- *
7673
- * @type {string}
7674
- * @memberof RuleConditionDetailResponseData
7675
- */
7676
- planId?: string | null;
7677
7670
  /**
7678
7671
  *
7679
7672
  * @type {Array<string>}
@@ -7760,12 +7753,6 @@ declare interface RuleConditionGroupDetailResponseData {
7760
7753
  * @memberof RuleConditionGroupDetailResponseData
7761
7754
  */
7762
7755
  id: string;
7763
- /**
7764
- *
7765
- * @type {string}
7766
- * @memberof RuleConditionGroupDetailResponseData
7767
- */
7768
- planId?: string | null;
7769
7756
  /**
7770
7757
  *
7771
7758
  * @type {string}
@@ -7816,12 +7803,6 @@ declare interface RuleConditionGroupDetailResponseData_2 {
7816
7803
  * @memberof RuleConditionGroupDetailResponseData
7817
7804
  */
7818
7805
  id: string;
7819
- /**
7820
- *
7821
- * @type {string}
7822
- * @memberof RuleConditionGroupDetailResponseData
7823
- */
7824
- planId?: string | null;
7825
7806
  /**
7826
7807
  *
7827
7808
  * @type {string}
@@ -7884,12 +7865,6 @@ declare interface RuleDetailResponseData {
7884
7865
  * @memberof RuleDetailResponseData
7885
7866
  */
7886
7867
  name: string;
7887
- /**
7888
- *
7889
- * @type {string}
7890
- * @memberof RuleDetailResponseData
7891
- */
7892
- planId?: string | null;
7893
7868
  /**
7894
7869
  *
7895
7870
  * @type {number}
@@ -7964,12 +7939,6 @@ declare interface RuleDetailResponseData_2 {
7964
7939
  * @memberof RuleDetailResponseData
7965
7940
  */
7966
7941
  name: string;
7967
- /**
7968
- *
7969
- * @type {string}
7970
- * @memberof RuleDetailResponseData
7971
- */
7972
- planId?: string | null;
7973
7942
  /**
7974
7943
  *
7975
7944
  * @type {number}
@@ -7197,17 +7197,22 @@ var useTranslation = (ns, props = {}) => {
7197
7197
  return isString2(nsOrContext) ? [nsOrContext] : nsOrContext || ["translation"];
7198
7198
  }, [ns, defaultNSFromContext, i18n]);
7199
7199
  i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);
7200
+ const revisionRef = useRef(0);
7200
7201
  const subscribe = useCallback2((callback) => {
7201
7202
  if (!i18n) return dummySubscribe;
7202
7203
  const {
7203
7204
  bindI18n,
7204
7205
  bindI18nStore
7205
7206
  } = i18nOptions;
7206
- if (bindI18n) i18n.on(bindI18n, callback);
7207
- if (bindI18nStore) i18n.store.on(bindI18nStore, callback);
7207
+ const wrappedCallback = () => {
7208
+ revisionRef.current += 1;
7209
+ callback();
7210
+ };
7211
+ if (bindI18n) i18n.on(bindI18n, wrappedCallback);
7212
+ if (bindI18nStore) i18n.store.on(bindI18nStore, wrappedCallback);
7208
7213
  return () => {
7209
- if (bindI18n) bindI18n.split(" ").forEach((e2) => i18n.off(e2, callback));
7210
- if (bindI18nStore) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, callback));
7214
+ if (bindI18n) bindI18n.split(" ").forEach((e2) => i18n.off(e2, wrappedCallback));
7215
+ if (bindI18nStore) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, wrappedCallback));
7211
7216
  };
7212
7217
  }, [i18n, i18nOptions]);
7213
7218
  const snapshotRef = useRef();
@@ -7216,16 +7221,19 @@ var useTranslation = (ns, props = {}) => {
7216
7221
  return notReadySnapshot;
7217
7222
  }
7218
7223
  const calculatedReady = !!(i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n) => hasLoadedNamespace2(n, i18n, i18nOptions));
7219
- const calculatedT = i18n.getFixedT(props.lng || i18n.language, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
7224
+ const currentLng = props.lng || i18n.language;
7225
+ const currentRevision = revisionRef.current;
7220
7226
  const lastSnapshot = snapshotRef.current;
7221
- if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === (props.lng || i18n.language) && lastSnapshot.keyPrefix === keyPrefix) {
7227
+ if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === currentLng && lastSnapshot.keyPrefix === keyPrefix && lastSnapshot.revision === currentRevision) {
7222
7228
  return lastSnapshot;
7223
7229
  }
7230
+ const calculatedT = i18n.getFixedT(currentLng, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
7224
7231
  const newSnapshot = {
7225
7232
  t: calculatedT,
7226
7233
  ready: calculatedReady,
7227
- lng: props.lng || i18n.language,
7228
- keyPrefix
7234
+ lng: currentLng,
7235
+ keyPrefix,
7236
+ revision: currentRevision
7229
7237
  };
7230
7238
  snapshotRef.current = newSnapshot;
7231
7239
  return newSnapshot;
@@ -7622,8 +7630,8 @@ var Icon = ({ name, className = "", ...rest }) => {
7622
7630
  };
7623
7631
 
7624
7632
  // src/context/EmbedProvider.tsx
7625
- var import_debounce = __toESM(require_debounce(), 1);
7626
- var import_merge2 = __toESM(require_merge(), 1);
7633
+ var import_debounce = __toESM(require_debounce());
7634
+ var import_merge2 = __toESM(require_merge());
7627
7635
  import {
7628
7636
  useCallback as useCallback3,
7629
7637
  useEffect as useEffect2,
@@ -8902,7 +8910,6 @@ function RuleConditionDetailResponseDataFromJSONTyped(json, ignoreDiscriminator)
8902
8910
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : json["metric_period_month_reset"],
8903
8911
  metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
8904
8912
  operator: json["operator"],
8905
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
8906
8913
  resourceIds: json["resource_ids"],
8907
8914
  resources: json["resources"].map(
8908
8915
  PreviewObjectResponseDataFromJSON
@@ -8932,7 +8939,6 @@ function RuleConditionGroupDetailResponseDataFromJSONTyped(json, ignoreDiscrimin
8932
8939
  environmentId: json["environment_id"],
8933
8940
  flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
8934
8941
  id: json["id"],
8935
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
8936
8942
  ruleId: json["rule_id"],
8937
8943
  updatedAt: new Date(json["updated_at"])
8938
8944
  };
@@ -8958,7 +8964,6 @@ function RuleDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8958
8964
  flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
8959
8965
  id: json["id"],
8960
8966
  name: json["name"],
8961
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
8962
8967
  priority: json["priority"],
8963
8968
  ruleType: json["rule_type"],
8964
8969
  updatedAt: new Date(json["updated_at"]),
@@ -10762,7 +10767,6 @@ function RuleConditionDetailResponseDataFromJSONTyped4(json, ignoreDiscriminator
10762
10767
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : json["metric_period_month_reset"],
10763
10768
  metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
10764
10769
  operator: json["operator"],
10765
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
10766
10770
  resourceIds: json["resource_ids"],
10767
10771
  resources: json["resources"].map(
10768
10772
  PreviewObjectResponseDataFromJSON2
@@ -10792,7 +10796,6 @@ function RuleConditionGroupDetailResponseDataFromJSONTyped3(json, ignoreDiscrimi
10792
10796
  environmentId: json["environment_id"],
10793
10797
  flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
10794
10798
  id: json["id"],
10795
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
10796
10799
  ruleId: json["rule_id"],
10797
10800
  updatedAt: new Date(json["updated_at"])
10798
10801
  };
@@ -10818,7 +10821,6 @@ function RuleDetailResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
10818
10821
  flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
10819
10822
  id: json["id"],
10820
10823
  name: json["name"],
10821
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
10822
10824
  priority: json["priority"],
10823
10825
  ruleType: json["rule_type"],
10824
10826
  updatedAt: new Date(json["updated_at"]),
@@ -11112,7 +11114,7 @@ var ComponentspublicApi = class extends BaseAPI2 {
11112
11114
  };
11113
11115
 
11114
11116
  // src/context/embedReducer.ts
11115
- var import_merge = __toESM(require_merge(), 1);
11117
+ var import_merge = __toESM(require_merge());
11116
11118
  var dispatchPlanChangedEvent = (detail) => {
11117
11119
  const event = new CustomEvent("plan-changed", {
11118
11120
  bubbles: true,
@@ -11270,7 +11272,7 @@ var reducer = (state, action) => {
11270
11272
  // src/context/EmbedProvider.tsx
11271
11273
  import { jsx, jsxs } from "react/jsx-runtime";
11272
11274
  var getCustomHeaders = (sessionId) => ({
11273
- "X-Schematic-Components-Version": "2.0.0",
11275
+ "X-Schematic-Components-Version": "2.0.1",
11274
11276
  "X-Schematic-Session-ID": sessionId
11275
11277
  });
11276
11278
  var EmbedProvider = ({
@@ -12704,7 +12706,7 @@ var Text = dt.span.withConfig({
12704
12706
  );
12705
12707
 
12706
12708
  // src/components/ui/tooltip/Tooltip.tsx
12707
- var import_debounce2 = __toESM(require_debounce(), 1);
12709
+ var import_debounce2 = __toESM(require_debounce());
12708
12710
  import { useCallback as useCallback8, useLayoutEffect as useLayoutEffect3, useRef as useRef5, useState as useState6 } from "react";
12709
12711
  import { createPortal } from "react-dom";
12710
12712
 
@@ -13046,7 +13048,7 @@ var Root = forwardRef4(
13046
13048
  Root.displayName = "Root";
13047
13049
 
13048
13050
  // src/components/layout/viewport/Viewport.tsx
13049
- var import_debounce3 = __toESM(require_debounce(), 1);
13051
+ var import_debounce3 = __toESM(require_debounce());
13050
13052
  import { forwardRef as forwardRef5, useLayoutEffect as useLayoutEffect5, useMemo as useMemo16, useRef as useRef9, useState as useState13 } from "react";
13051
13053
  import { createPortal as createPortal2 } from "react-dom";
13052
13054
 
@@ -18539,7 +18541,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
18539
18541
  }
18540
18542
  stripe._registerWrapper({
18541
18543
  name: "stripe-js",
18542
- version: "8.1.0",
18544
+ version: "8.2.0",
18543
18545
  startTime
18544
18546
  });
18545
18547
  };
@@ -18614,7 +18616,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
18614
18616
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
18615
18617
  var expectedVersion = RELEASE_TRAIN;
18616
18618
  if (isTestKey && version !== expectedVersion) {
18617
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.1.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
18619
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.2.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
18618
18620
  }
18619
18621
  var stripe = maybeStripe.apply(void 0, args);
18620
18622
  registerWrapper(stripe, startTime);
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-components",
3
- "version": "2.0.0",
4
- "type": "module",
3
+ "version": "2.0.1",
5
4
  "main": "dist/schematic-components.cjs.js",
6
5
  "module": "dist/schematic-components.esm.js",
7
6
  "types": "dist/schematic-components.d.ts",