@schematichq/schematic-components 2.0.0 → 2.0.2
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 +85 -181
- package/dist/schematic-components.d.ts +5 -36
- package/dist/schematic-components.esm.js +176 -278
- package/package.json +2 -3
|
@@ -89,82 +89,6 @@ var require_void_elements = __commonJS({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
93
|
-
var require_use_sync_external_store_shim_development = __commonJS({
|
|
94
|
-
"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
|
|
95
|
-
"use strict";
|
|
96
|
-
(function() {
|
|
97
|
-
function is(x2, y2) {
|
|
98
|
-
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
|
|
99
|
-
}
|
|
100
|
-
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
101
|
-
didWarnOld18Alpha || void 0 === React3.startTransition || (didWarnOld18Alpha = true, console.error(
|
|
102
|
-
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
103
|
-
));
|
|
104
|
-
var value = getSnapshot();
|
|
105
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
106
|
-
var cachedValue = getSnapshot();
|
|
107
|
-
objectIs(value, cachedValue) || (console.error(
|
|
108
|
-
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
109
|
-
), didWarnUncachedGetSnapshot = true);
|
|
110
|
-
}
|
|
111
|
-
cachedValue = useState21({
|
|
112
|
-
inst: { value, getSnapshot }
|
|
113
|
-
});
|
|
114
|
-
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
|
|
115
|
-
useLayoutEffect6(
|
|
116
|
-
function() {
|
|
117
|
-
inst.value = value;
|
|
118
|
-
inst.getSnapshot = getSnapshot;
|
|
119
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
120
|
-
},
|
|
121
|
-
[subscribe, value, getSnapshot]
|
|
122
|
-
);
|
|
123
|
-
useEffect11(
|
|
124
|
-
function() {
|
|
125
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
126
|
-
return subscribe(function() {
|
|
127
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
128
|
-
});
|
|
129
|
-
},
|
|
130
|
-
[subscribe]
|
|
131
|
-
);
|
|
132
|
-
useDebugValue(value);
|
|
133
|
-
return value;
|
|
134
|
-
}
|
|
135
|
-
function checkIfSnapshotChanged(inst) {
|
|
136
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
137
|
-
inst = inst.value;
|
|
138
|
-
try {
|
|
139
|
-
var nextValue = latestGetSnapshot();
|
|
140
|
-
return !objectIs(inst, nextValue);
|
|
141
|
-
} catch (error) {
|
|
142
|
-
return true;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
146
|
-
return getSnapshot();
|
|
147
|
-
}
|
|
148
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
149
|
-
var React3 = require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState21 = React3.useState, useEffect11 = React3.useEffect, useLayoutEffect6 = React3.useLayoutEffect, useDebugValue = React3.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
150
|
-
exports.useSyncExternalStore = void 0 !== React3.useSyncExternalStore ? React3.useSyncExternalStore : shim;
|
|
151
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
152
|
-
})();
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
// node_modules/use-sync-external-store/shim/index.js
|
|
157
|
-
var require_shim = __commonJS({
|
|
158
|
-
"node_modules/use-sync-external-store/shim/index.js"(exports, module2) {
|
|
159
|
-
"use strict";
|
|
160
|
-
if (false) {
|
|
161
|
-
module2.exports = null;
|
|
162
|
-
} else {
|
|
163
|
-
module2.exports = require_use_sync_external_store_shim_development();
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
|
|
168
92
|
// node_modules/lodash/isObject.js
|
|
169
93
|
var require_isObject = __commonJS({
|
|
170
94
|
"node_modules/lodash/isObject.js"(exports, module2) {
|
|
@@ -7218,18 +7142,15 @@ IcuTrans.displayName = "IcuTrans";
|
|
|
7218
7142
|
|
|
7219
7143
|
// node_modules/react-i18next/dist/es/useTranslation.js
|
|
7220
7144
|
var import_react10 = require("react");
|
|
7221
|
-
var
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
var notReadySnapshot = {
|
|
7228
|
-
t: notReadyT,
|
|
7229
|
-
ready: false
|
|
7230
|
-
};
|
|
7231
|
-
var dummySubscribe = () => () => {
|
|
7145
|
+
var usePrevious = (value, ignore) => {
|
|
7146
|
+
const ref = (0, import_react10.useRef)();
|
|
7147
|
+
(0, import_react10.useEffect)(() => {
|
|
7148
|
+
ref.current = ignore ? ref.current : value;
|
|
7149
|
+
}, [value, ignore]);
|
|
7150
|
+
return ref.current;
|
|
7232
7151
|
};
|
|
7152
|
+
var alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
|
|
7153
|
+
var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0, import_react10.useCallback)(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
|
|
7233
7154
|
var useTranslation = (ns, props = {}) => {
|
|
7234
7155
|
const {
|
|
7235
7156
|
i18n: i18nFromProps
|
|
@@ -7242,88 +7163,88 @@ var useTranslation = (ns, props = {}) => {
|
|
|
7242
7163
|
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
7243
7164
|
if (!i18n) {
|
|
7244
7165
|
warnOnce(i18n, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
7245
|
-
|
|
7246
|
-
|
|
7166
|
+
const notReadyT = (k2, optsOrDefaultValue) => {
|
|
7167
|
+
if (isString2(optsOrDefaultValue)) return optsOrDefaultValue;
|
|
7168
|
+
if (isObject(optsOrDefaultValue) && isString2(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
|
|
7169
|
+
return Array.isArray(k2) ? k2[k2.length - 1] : k2;
|
|
7170
|
+
};
|
|
7171
|
+
const retNotReady = [notReadyT, {}, false];
|
|
7172
|
+
retNotReady.t = notReadyT;
|
|
7173
|
+
retNotReady.i18n = {};
|
|
7174
|
+
retNotReady.ready = false;
|
|
7175
|
+
return retNotReady;
|
|
7176
|
+
}
|
|
7177
|
+
if (i18n.options.react?.wait) warnOnce(i18n, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
7178
|
+
const i18nOptions = {
|
|
7247
7179
|
...getDefaults(),
|
|
7248
|
-
...i18n
|
|
7180
|
+
...i18n.options.react,
|
|
7249
7181
|
...props
|
|
7250
|
-
}
|
|
7182
|
+
};
|
|
7251
7183
|
const {
|
|
7252
7184
|
useSuspense,
|
|
7253
7185
|
keyPrefix
|
|
7254
7186
|
} = i18nOptions;
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
i18n
|
|
7260
|
-
const
|
|
7261
|
-
|
|
7187
|
+
let namespaces = ns || defaultNSFromContext || i18n.options?.defaultNS;
|
|
7188
|
+
namespaces = isString2(namespaces) ? [namespaces] : namespaces || ["translation"];
|
|
7189
|
+
i18n.reportNamespaces.addUsedNamespaces?.(namespaces);
|
|
7190
|
+
const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n) => hasLoadedNamespace2(n, i18n, i18nOptions));
|
|
7191
|
+
const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
7192
|
+
const getT = () => memoGetT;
|
|
7193
|
+
const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
7194
|
+
const [t2, setT] = (0, import_react10.useState)(getT);
|
|
7195
|
+
let joinedNS = namespaces.join();
|
|
7196
|
+
if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
|
|
7197
|
+
const previousJoinedNS = usePrevious(joinedNS);
|
|
7198
|
+
const isMounted = (0, import_react10.useRef)(true);
|
|
7199
|
+
(0, import_react10.useEffect)(() => {
|
|
7262
7200
|
const {
|
|
7263
7201
|
bindI18n,
|
|
7264
7202
|
bindI18nStore
|
|
7265
7203
|
} = i18nOptions;
|
|
7266
|
-
|
|
7267
|
-
if (
|
|
7268
|
-
return () => {
|
|
7269
|
-
if (bindI18n) bindI18n.split(" ").forEach((e2) => i18n.off(e2, callback));
|
|
7270
|
-
if (bindI18nStore) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, callback));
|
|
7271
|
-
};
|
|
7272
|
-
}, [i18n, i18nOptions]);
|
|
7273
|
-
const snapshotRef = (0, import_react10.useRef)();
|
|
7274
|
-
const getSnapshot = (0, import_react10.useCallback)(() => {
|
|
7275
|
-
if (!i18n) {
|
|
7276
|
-
return notReadySnapshot;
|
|
7277
|
-
}
|
|
7278
|
-
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);
|
|
7280
|
-
const lastSnapshot = snapshotRef.current;
|
|
7281
|
-
if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === (props.lng || i18n.language) && lastSnapshot.keyPrefix === keyPrefix) {
|
|
7282
|
-
return lastSnapshot;
|
|
7283
|
-
}
|
|
7284
|
-
const newSnapshot = {
|
|
7285
|
-
t: calculatedT,
|
|
7286
|
-
ready: calculatedReady,
|
|
7287
|
-
lng: props.lng || i18n.language,
|
|
7288
|
-
keyPrefix
|
|
7289
|
-
};
|
|
7290
|
-
snapshotRef.current = newSnapshot;
|
|
7291
|
-
return newSnapshot;
|
|
7292
|
-
}, [i18n, namespaces, keyPrefix, i18nOptions, props.lng]);
|
|
7293
|
-
const [loadCount, setLoadCount] = (0, import_react10.useState)(0);
|
|
7294
|
-
const {
|
|
7295
|
-
t: t2,
|
|
7296
|
-
ready
|
|
7297
|
-
} = (0, import_shim.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
7298
|
-
(0, import_react10.useEffect)(() => {
|
|
7299
|
-
if (i18n && !ready && !useSuspense) {
|
|
7300
|
-
const onLoaded = () => setLoadCount((c2) => c2 + 1);
|
|
7204
|
+
isMounted.current = true;
|
|
7205
|
+
if (!ready && !useSuspense) {
|
|
7301
7206
|
if (props.lng) {
|
|
7302
|
-
loadLanguages2(i18n, props.lng, namespaces,
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
}
|
|
7306
|
-
}
|
|
7307
|
-
}, [i18n, props.lng, namespaces, ready, useSuspense, loadCount]);
|
|
7308
|
-
const finalI18n = i18n || {};
|
|
7309
|
-
const ret = (0, import_react10.useMemo)(() => {
|
|
7310
|
-
const arr = [t2, finalI18n, ready];
|
|
7311
|
-
arr.t = t2;
|
|
7312
|
-
arr.i18n = finalI18n;
|
|
7313
|
-
arr.ready = ready;
|
|
7314
|
-
return arr;
|
|
7315
|
-
}, [t2, finalI18n, ready]);
|
|
7316
|
-
if (i18n && useSuspense && !ready) {
|
|
7317
|
-
throw new Promise((resolve) => {
|
|
7318
|
-
const onLoaded = () => resolve();
|
|
7319
|
-
if (props.lng) {
|
|
7320
|
-
loadLanguages2(i18n, props.lng, namespaces, onLoaded);
|
|
7207
|
+
loadLanguages2(i18n, props.lng, namespaces, () => {
|
|
7208
|
+
if (isMounted.current) setT(getNewT);
|
|
7209
|
+
});
|
|
7321
7210
|
} else {
|
|
7322
|
-
loadNamespaces2(i18n, namespaces,
|
|
7211
|
+
loadNamespaces2(i18n, namespaces, () => {
|
|
7212
|
+
if (isMounted.current) setT(getNewT);
|
|
7213
|
+
});
|
|
7323
7214
|
}
|
|
7324
|
-
}
|
|
7325
|
-
|
|
7326
|
-
|
|
7215
|
+
}
|
|
7216
|
+
if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
|
|
7217
|
+
setT(getNewT);
|
|
7218
|
+
}
|
|
7219
|
+
const boundReset = () => {
|
|
7220
|
+
if (isMounted.current) setT(getNewT);
|
|
7221
|
+
};
|
|
7222
|
+
if (bindI18n) i18n?.on(bindI18n, boundReset);
|
|
7223
|
+
if (bindI18nStore) i18n?.store.on(bindI18nStore, boundReset);
|
|
7224
|
+
return () => {
|
|
7225
|
+
isMounted.current = false;
|
|
7226
|
+
if (i18n && bindI18n) bindI18n?.split(" ").forEach((e2) => i18n.off(e2, boundReset));
|
|
7227
|
+
if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, boundReset));
|
|
7228
|
+
};
|
|
7229
|
+
}, [i18n, joinedNS]);
|
|
7230
|
+
(0, import_react10.useEffect)(() => {
|
|
7231
|
+
if (isMounted.current && ready) {
|
|
7232
|
+
setT(getT);
|
|
7233
|
+
}
|
|
7234
|
+
}, [i18n, keyPrefix, ready]);
|
|
7235
|
+
const ret = [t2, i18n, ready];
|
|
7236
|
+
ret.t = t2;
|
|
7237
|
+
ret.i18n = i18n;
|
|
7238
|
+
ret.ready = ready;
|
|
7239
|
+
if (ready) return ret;
|
|
7240
|
+
if (!ready && !useSuspense) return ret;
|
|
7241
|
+
throw new Promise((resolve) => {
|
|
7242
|
+
if (props.lng) {
|
|
7243
|
+
loadLanguages2(i18n, props.lng, namespaces, () => resolve());
|
|
7244
|
+
} else {
|
|
7245
|
+
loadNamespaces2(i18n, namespaces, () => resolve());
|
|
7246
|
+
}
|
|
7247
|
+
});
|
|
7327
7248
|
};
|
|
7328
7249
|
|
|
7329
7250
|
// node_modules/react-i18next/dist/es/withTranslation.js
|
|
@@ -7682,8 +7603,8 @@ var Icon = ({ name, className = "", ...rest }) => {
|
|
|
7682
7603
|
};
|
|
7683
7604
|
|
|
7684
7605
|
// src/context/EmbedProvider.tsx
|
|
7685
|
-
var import_debounce = __toESM(require_debounce()
|
|
7686
|
-
var import_merge2 = __toESM(require_merge()
|
|
7606
|
+
var import_debounce = __toESM(require_debounce());
|
|
7607
|
+
var import_merge2 = __toESM(require_merge());
|
|
7687
7608
|
var import_react15 = require("react");
|
|
7688
7609
|
|
|
7689
7610
|
// node_modules/uuid/dist/stringify.js
|
|
@@ -8955,7 +8876,6 @@ function RuleConditionDetailResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
8955
8876
|
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : json["metric_period_month_reset"],
|
|
8956
8877
|
metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
|
|
8957
8878
|
operator: json["operator"],
|
|
8958
|
-
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
8959
8879
|
resourceIds: json["resource_ids"],
|
|
8960
8880
|
resources: json["resources"].map(
|
|
8961
8881
|
PreviewObjectResponseDataFromJSON
|
|
@@ -8985,7 +8905,6 @@ function RuleConditionGroupDetailResponseDataFromJSONTyped(json, ignoreDiscrimin
|
|
|
8985
8905
|
environmentId: json["environment_id"],
|
|
8986
8906
|
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
8987
8907
|
id: json["id"],
|
|
8988
|
-
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
8989
8908
|
ruleId: json["rule_id"],
|
|
8990
8909
|
updatedAt: new Date(json["updated_at"])
|
|
8991
8910
|
};
|
|
@@ -9011,7 +8930,6 @@ function RuleDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9011
8930
|
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
9012
8931
|
id: json["id"],
|
|
9013
8932
|
name: json["name"],
|
|
9014
|
-
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
9015
8933
|
priority: json["priority"],
|
|
9016
8934
|
ruleType: json["rule_type"],
|
|
9017
8935
|
updatedAt: new Date(json["updated_at"]),
|
|
@@ -10815,7 +10733,6 @@ function RuleConditionDetailResponseDataFromJSONTyped4(json, ignoreDiscriminator
|
|
|
10815
10733
|
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : json["metric_period_month_reset"],
|
|
10816
10734
|
metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
|
|
10817
10735
|
operator: json["operator"],
|
|
10818
|
-
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
10819
10736
|
resourceIds: json["resource_ids"],
|
|
10820
10737
|
resources: json["resources"].map(
|
|
10821
10738
|
PreviewObjectResponseDataFromJSON2
|
|
@@ -10845,7 +10762,6 @@ function RuleConditionGroupDetailResponseDataFromJSONTyped3(json, ignoreDiscrimi
|
|
|
10845
10762
|
environmentId: json["environment_id"],
|
|
10846
10763
|
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
10847
10764
|
id: json["id"],
|
|
10848
|
-
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
10849
10765
|
ruleId: json["rule_id"],
|
|
10850
10766
|
updatedAt: new Date(json["updated_at"])
|
|
10851
10767
|
};
|
|
@@ -10871,7 +10787,6 @@ function RuleDetailResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
10871
10787
|
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
10872
10788
|
id: json["id"],
|
|
10873
10789
|
name: json["name"],
|
|
10874
|
-
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
10875
10790
|
priority: json["priority"],
|
|
10876
10791
|
ruleType: json["rule_type"],
|
|
10877
10792
|
updatedAt: new Date(json["updated_at"]),
|
|
@@ -11165,7 +11080,7 @@ var ComponentspublicApi = class extends BaseAPI2 {
|
|
|
11165
11080
|
};
|
|
11166
11081
|
|
|
11167
11082
|
// src/context/embedReducer.ts
|
|
11168
|
-
var import_merge = __toESM(require_merge()
|
|
11083
|
+
var import_merge = __toESM(require_merge());
|
|
11169
11084
|
var dispatchPlanChangedEvent = (detail) => {
|
|
11170
11085
|
const event = new CustomEvent("plan-changed", {
|
|
11171
11086
|
bubbles: true,
|
|
@@ -11323,7 +11238,7 @@ var reducer = (state, action) => {
|
|
|
11323
11238
|
// src/context/EmbedProvider.tsx
|
|
11324
11239
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
11325
11240
|
var getCustomHeaders = (sessionId) => ({
|
|
11326
|
-
"X-Schematic-Components-Version": "2.0.
|
|
11241
|
+
"X-Schematic-Components-Version": "2.0.2",
|
|
11327
11242
|
"X-Schematic-Session-ID": sessionId
|
|
11328
11243
|
});
|
|
11329
11244
|
var EmbedProvider = ({
|
|
@@ -12757,7 +12672,7 @@ var Text = dt.span.withConfig({
|
|
|
12757
12672
|
);
|
|
12758
12673
|
|
|
12759
12674
|
// src/components/ui/tooltip/Tooltip.tsx
|
|
12760
|
-
var import_debounce2 = __toESM(require_debounce()
|
|
12675
|
+
var import_debounce2 = __toESM(require_debounce());
|
|
12761
12676
|
var import_react25 = require("react");
|
|
12762
12677
|
var import_react_dom = require("react-dom");
|
|
12763
12678
|
|
|
@@ -13099,7 +13014,7 @@ var Root = (0, import_react28.forwardRef)(
|
|
|
13099
13014
|
Root.displayName = "Root";
|
|
13100
13015
|
|
|
13101
13016
|
// src/components/layout/viewport/Viewport.tsx
|
|
13102
|
-
var import_debounce3 = __toESM(require_debounce()
|
|
13017
|
+
var import_debounce3 = __toESM(require_debounce());
|
|
13103
13018
|
var import_react41 = require("react");
|
|
13104
13019
|
var import_react_dom2 = require("react-dom");
|
|
13105
13020
|
|
|
@@ -18577,7 +18492,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
|
|
|
18577
18492
|
}
|
|
18578
18493
|
stripe._registerWrapper({
|
|
18579
18494
|
name: "stripe-js",
|
|
18580
|
-
version: "8.
|
|
18495
|
+
version: "8.2.0",
|
|
18581
18496
|
startTime
|
|
18582
18497
|
});
|
|
18583
18498
|
};
|
|
@@ -18652,7 +18567,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
|
|
|
18652
18567
|
var version = runtimeVersionToUrlVersion(maybeStripe.version);
|
|
18653
18568
|
var expectedVersion = RELEASE_TRAIN;
|
|
18654
18569
|
if (isTestKey && version !== expectedVersion) {
|
|
18655
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.
|
|
18570
|
+
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
18571
|
}
|
|
18657
18572
|
var stripe = maybeStripe.apply(void 0, args);
|
|
18658
18573
|
registerWrapper(stripe, startTime);
|
|
@@ -25225,17 +25140,6 @@ var SchematicEmbed = ({ id, accessToken }) => {
|
|
|
25225
25140
|
};
|
|
25226
25141
|
/*! Bundled license information:
|
|
25227
25142
|
|
|
25228
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
25229
|
-
(**
|
|
25230
|
-
* @license React
|
|
25231
|
-
* use-sync-external-store-shim.development.js
|
|
25232
|
-
*
|
|
25233
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
25234
|
-
*
|
|
25235
|
-
* This source code is licensed under the MIT license found in the
|
|
25236
|
-
* LICENSE file in the root directory of this source tree.
|
|
25237
|
-
*)
|
|
25238
|
-
|
|
25239
25143
|
pako/dist/pako.esm.mjs:
|
|
25240
25144
|
(*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) *)
|
|
25241
25145
|
*/
|
|
@@ -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}
|