fontdue-js 2.21.0 → 2.22.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/CHANGELOG.md +6 -0
- package/dist/components/FontdueProvider/useAuxUIOwner.d.ts +1 -0
- package/dist/components/FontdueProvider/useAuxUIOwner.js +28 -0
- package/dist/components/TypeTester/TypeTesterFeatures.js +2 -1
- package/dist/components/TypeTester/TypeTesterFeaturesButton.js +5 -3
- package/dist/components/TypeTester/TypeTesterStandalone.d.ts +2 -2
- package/dist/components/TypeTester/TypeTesterStandalone.js +2 -1
- package/dist/components/TypeTester/TypeTesterStandalone.preload.d.ts +14 -0
- package/dist/components/TypeTester/TypeTesterStandalone.preload.js +19 -0
- package/dist/components/TypeTester/types.d.ts +2 -0
- package/dist/components/TypeTester/types.js +10 -1
- package/dist/components/TypeTesters/TypeTestersElement.d.ts +2 -1
- package/dist/components/TypeTesters/TypeTestersElement.js +3 -1
- package/dist/components/TypeTesters/index.d.ts +2 -0
- package/dist/components/TypeTesters/index.js +5 -2
- package/dist/config.d.ts +6 -0
- package/dist/config.js +20 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist-bundle/FontdueProvider.js +6 -0
- package/dist-bundle/FontdueProvider.js.map +1 -0
- package/dist-bundle/TypeTester.js +7 -0
- package/dist-bundle/TypeTester.js.map +1 -0
- package/dist-bundle/TypeTester.preload.js +75 -0
- package/dist-bundle/TypeTester.preload.js.map +1 -0
- package/dist-bundle/chunks/ComponentsContext-CmkN9J4X.js +20843 -0
- package/dist-bundle/chunks/ComponentsContext-CmkN9J4X.js.map +1 -0
- package/dist-bundle/chunks/CorsErrorModal-C1g_-3Re.js +95 -0
- package/dist-bundle/chunks/CorsErrorModal-C1g_-3Re.js.map +1 -0
- package/dist-bundle/chunks/TypeTesterStandalone-BMWuv8Ca.js +27486 -0
- package/dist-bundle/chunks/TypeTesterStandalone-BMWuv8Ca.js.map +1 -0
- package/dist-bundle/chunks/consent-DMvR5rEh.js +84 -0
- package/dist-bundle/chunks/consent-DMvR5rEh.js.map +1 -0
- package/dist-bundle/chunks/index-BNSbxp7B.js +78 -0
- package/dist-bundle/chunks/index-BNSbxp7B.js.map +1 -0
- package/dist-bundle/chunks/index-C4ak9qTL.js +423 -0
- package/dist-bundle/chunks/index-C4ak9qTL.js.map +1 -0
- package/dist-bundle/chunks/index-DsvF5W13.js +159 -0
- package/dist-bundle/chunks/index-DsvF5W13.js.map +1 -0
- package/dist-bundle/chunks/index-o29NNufd.js +131 -0
- package/dist-bundle/chunks/index-o29NNufd.js.map +1 -0
- package/dist-bundle/index.js +23 -0
- package/dist-bundle/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/__generated__/CartItem_license.graphql.d.ts +0 -27
- package/dist/__generated__/CartItem_license.graphql.js +0 -76
- package/dist/__generated__/CartItem_licenseSelection.graphql.d.ts +0 -34
- package/dist/__generated__/CartItem_licenseSelection.graphql.js +0 -106
- package/dist/__generated__/CartItem_product.graphql.d.ts +0 -32
- package/dist/__generated__/CartItem_product.graphql.js +0 -124
- package/dist/__generated__/CartItem_variable.graphql.d.ts +0 -23
- package/dist/__generated__/CartItem_variable.graphql.js +0 -67
- package/dist/__generated__/CartItem_viewer.graphql.d.ts +0 -30
- package/dist/__generated__/CartItem_viewer.graphql.js +0 -87
- package/dist/__generated__/CartOrderApplyCouponMutation.graphql.d.ts +0 -21
- package/dist/__generated__/CartOrderApplyCouponMutation.graphql.js +0 -919
- package/dist/__generated__/CartStateApplyCouponMutation.graphql.d.ts +0 -21
- package/dist/__generated__/CartStateApplyCouponMutation.graphql.js +0 -274
- package/dist/__generated__/CartTotalsCreateSnapshotMutation.graphql.d.ts +0 -22
- package/dist/__generated__/CartTotalsCreateSnapshotMutation.graphql.js +0 -84
- package/dist/__generated__/Cart_viewer.graphql.d.ts +0 -20
- package/dist/__generated__/Cart_viewer.graphql.js +0 -49
- package/dist/__generated__/CharacterViewer_Query.graphql.d.ts +0 -21
- package/dist/__generated__/CharacterViewer_Query.graphql.js +0 -230
- package/dist/__generated__/CharacterViewer_SlugQuery.graphql.d.ts +0 -25
- package/dist/__generated__/CharacterViewer_SlugQuery.graphql.js +0 -257
- package/dist/__generated__/CouponCodeInput_Refetch_Query.graphql.d.ts +0 -17
- package/dist/__generated__/CouponCodeInput_Refetch_Query.graphql.js +0 -201
- package/dist/__generated__/CouponCodeInput_order.graphql.d.ts +0 -13
- package/dist/__generated__/CouponCodeInput_order.graphql.js +0 -28
- package/dist/__generated__/CouponCodeInput_viewer.graphql.d.ts +0 -25
- package/dist/__generated__/CouponCodeInput_viewer.graphql.js +0 -88
- package/dist/__generated__/CouponCodeRefetchQuery.graphql.d.ts +0 -22
- package/dist/__generated__/CouponCodeRefetchQuery.graphql.js +0 -178
- package/dist/__generated__/Family_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/FontFamilies_node.graphql.d.ts +0 -20
- package/dist/__generated__/FontFamilies_node.graphql.js +0 -49
- package/dist/__generated__/NewsletterSignup_Query.graphql.d.ts +0 -21
- package/dist/__generated__/NewsletterSignup_Query.graphql.js +0 -99
- package/dist/__generated__/NewsletterSignup_viewer.graphql.d.ts +0 -20
- package/dist/__generated__/NewsletterSignup_viewer.graphql.js +0 -56
- package/dist/__generated__/OrderVariableSelectionMutation.graphql.d.ts +0 -69
- package/dist/__generated__/OrderVariableSelectionMutation_viewer.graphql.d.ts +0 -30
- package/dist/__generated__/PriceBarSection_RefetchQuery.graphql.d.ts +0 -26
- package/dist/__generated__/PriceBarSection_RefetchQuery.graphql.js +0 -168
- package/dist/__generated__/PriceBarSection_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/PriceBar_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/SKUPriceRefetchQuery.graphql.d.ts +0 -31
- package/dist/__generated__/SKUPriceRefetchQuery.graphql.js +0 -130
- package/dist/__generated__/SKUPriceUpdateQuery.graphql.d.ts +0 -29
- package/dist/__generated__/SKUPrice_RefetchQuery.graphql.d.ts +0 -26
- package/dist/__generated__/SKUPrice_RefetchQuery.graphql.js +0 -129
- package/dist/__generated__/SKUPrice_viewer.graphql.d.ts +0 -19
- package/dist/__generated__/SelectButton_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/SpecimenLink_node.graphql.d.ts +0 -21
- package/dist/__generated__/SpecimenLink_node.graphql.js +0 -55
- package/dist/__generated__/StoreModalBundleButton_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/StoreModalFamilyButton_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/StoreModalFamily_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/StoreModalOrderVariableSelectionHookQuery.graphql.d.ts +0 -26
- package/dist/__generated__/StoreModalOrderVariableSelectionOrderUpdateMutation.graphql.d.ts +0 -60
- package/dist/__generated__/StoreModalOrderVariableSelectionRefetchQuery.graphql.d.ts +0 -26
- package/dist/__generated__/StoreModalOrderVariableSelectionVariable_order.graphql.d.ts +0 -27
- package/dist/__generated__/StoreModalOrderVariableSelectionVariable_variable.graphql.d.ts +0 -24
- package/dist/__generated__/StoreModalProductContent_viewer.graphql.d.ts +0 -30
- package/dist/__generated__/StoreModalProductLicenseSelection_viewer.graphql.d.ts +0 -20
- package/dist/__generated__/StoreModalProductLicenseSelection_viewer.graphql.js +0 -51
- package/dist/__generated__/StoreModalProductViewerRefetchQuery.graphql.d.ts +0 -31
- package/dist/__generated__/StoreModalReviewCompleteOrderMutation.graphql.d.ts +0 -25
- package/dist/__generated__/StoreModalReviewCompleteOrderMutation.graphql.js +0 -442
- package/dist/__generated__/StoreModalReviewQuery.graphql.d.ts +0 -22
- package/dist/__generated__/StoreModalReviewQuery.graphql.js +0 -491
- package/dist/__generated__/StoreModalReviewUpdateOrderMutation.graphql.d.ts +0 -63
- package/dist/__generated__/StoreModalReviewUpdateOrderMutation.graphql.js +0 -445
- package/dist/__generated__/StoreModalReview_order.graphql.d.ts +0 -59
- package/dist/__generated__/StoreModalReview_order.graphql.js +0 -244
- package/dist/__generated__/StoreModalReview_viewer.graphql.d.ts +0 -19
- package/dist/__generated__/StoreModalReview_viewer.graphql.js +0 -47
- package/dist/__generated__/StoreModalStyleButton_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/TestFontsForm_viewer.graphql.d.ts +0 -29
- package/dist/__generated__/TestFontsForm_viewer.graphql.js +0 -101
- package/dist/__generated__/TestModeBanner_viewer.graphql.d.ts +0 -23
- package/dist/__generated__/TestModeBanner_viewer.graphql.js +0 -64
- package/dist/__generated__/ThemeConfig_viewer.graphql.d.ts +0 -19
- package/dist/__generated__/ThemeConfig_viewer.graphql.js +0 -43
- package/dist/__generated__/TypeTesterStandalone_StyleQuery.graphql.d.ts +0 -32
- package/dist/__generated__/TypeTesterStandalone_StyleQuery.graphql.js +0 -385
- package/dist/__generated__/TypeTesterStyleSelect_family.graphql.d.ts +0 -33
- package/dist/__generated__/TypeTesterStyleSelect_fontStyle.graphql.d.ts +0 -27
- package/dist/__generated__/TypeTester_NewStyleQuery.graphql.d.ts +0 -41
- package/dist/__generated__/TypeTester_NewStyleQuery.graphql.js +0 -344
- package/dist/__generated__/TypeTester_sku.graphql.d.ts +0 -21
- package/dist/__generated__/TypeTester_sku.graphql.js +0 -57
- package/dist/__generated__/useOrderVariables_order.graphql.d.ts +0 -24
- package/dist/__tests__/collectionBundleSelection.test.d.ts +0 -1
- package/dist/components/BuyButton/BuyButton.server.d.ts +0 -3
- package/dist/components/BuyButton/BuyButton.server.js +0 -39
- package/dist/components/CartButton/index-server.d.ts +0 -3
- package/dist/components/CartButton/index-server.js +0 -18
- package/dist/components/OrderVariableSelection/OrderVariableSelectionMutation.d.ts +0 -7
- package/dist/components/SelectField/index.d.ts +0 -13
- package/dist/components/SelectField/index.js +0 -49
- package/dist/components/StoreModal/StoreModalReview.d.ts +0 -6
- package/dist/components/StoreModal/StoreModalReview.js +0 -221
- package/dist/components/StoreModal/StoreModalRouterContext.d.ts +0 -7
- package/dist/components/StoreModal/StoreModalRouterContext.js +0 -11
- package/dist/components/StoreModal/createRouter.d.ts +0 -41
- package/dist/components/StoreModal/createRouter.js +0 -48
- package/dist/components/StoreModalProductLicenseSelection/ContainerElement.d.ts +0 -9
- package/dist/components/StoreModalProductLicenseSelection/ContainerElement.js +0 -25
- package/dist/components/Stylesheet/index.d.ts +0 -7
- package/dist/components/Stylesheet/index.js +0 -43
- package/dist/components/TestModeBanner/index.server.d.ts +0 -2
- package/dist/components/TestModeBanner/index.server.js +0 -17
- package/dist/components/elements/StoreModalReviewConfirm/index.d.ts +0 -12
- package/dist/components/elements/StoreModalReviewConfirm/index.js +0 -50
- package/dist/components/elements/StoreModalReviewItem/index.d.ts +0 -9
- package/dist/components/elements/StoreModalReviewItem/index.js +0 -21
- package/dist/components/elements/StoreModalReviewLayout/index.d.ts +0 -17
- package/dist/components/elements/StoreModalReviewLayout/index.js +0 -59
- package/dist/components/useFontLoaded.d.ts +0 -24
- package/dist/components/useFontLoaded.js +0 -60
- package/dist/deepMerge.d.ts +0 -4
- package/dist/deepMerge.js +0 -24
- package/dist/hooks/useOrderVariables.d.ts +0 -5
- package/dist/relay-environment.d.ts +0 -7
- package/dist/relay-environment.js +0 -34
- package/dist/utils/interpolateOrderVariableDescription.d.ts +0 -36
- package/dist/utils/interpolateOrderVariableDescription.test.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 2.22.0
|
|
2
|
+
|
|
3
|
+
- **`features="*"` wildcard on `<TypeTester>` and `<TypeTesters>`** to expose every OpenType feature each font supports without curating a list. Custom *stylistic set* names defined by the foundry are picked up automatically. Works on both the standalone `<fontdue-type-tester>` HTML element and the React `<TypeTester>` / `<TypeTesters>` components.
|
|
4
|
+
- **`features` prop on `<TypeTesters>`** — the plural now accepts a `features` prop (or `features` HTML attribute on `<fontdue-type-testers>`) that overrides `collection.typeTesterFeatures`, matching the singular API. Useful for setting `features="*"` per-embed without changing the collection's saved settings.
|
|
5
|
+
- The `features` prop on both singular and plural now accepts the literal string `"*"` as a scalar in addition to `["*"]`, so React consumers can write `features="*"` instead of `features={['*']}`.
|
|
6
|
+
|
|
1
7
|
## 2.21.0
|
|
2
8
|
|
|
3
9
|
- Fixed `CharacterViewer` silently dropping characters from supplementary-plane Unicode blocks (e.g. Latin Extended-F, Enclosed Alphanumeric Supplement). Range expansion now uses `codePointAt` / `String.fromCodePoint` so characters above U+FFFF render correctly instead of getting filtered out as unpaired surrogates
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useAuxUIOwner(): boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
// Module-level claim: only one FontdueProvider on a page renders
|
|
6
|
+
// auxiliary UI (TestModeBanner, ThemeConfig, Tracking, ConsentBanner,
|
|
7
|
+
// ServerConfigProvider). Starts false on both server and client to avoid
|
|
8
|
+
// hydration mismatch; the first provider to run `useEffect` wins and flips
|
|
9
|
+
// its own state to true. Relinquishes the claim on unmount so HMR and
|
|
10
|
+
// route changes don't leak.
|
|
11
|
+
|
|
12
|
+
let ownerId = null;
|
|
13
|
+
export default function useAuxUIOwner() {
|
|
14
|
+
const [isOwner, setIsOwner] = useState(false);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
const myId = {};
|
|
17
|
+
if (ownerId == null) {
|
|
18
|
+
ownerId = myId;
|
|
19
|
+
setIsOwner(true);
|
|
20
|
+
}
|
|
21
|
+
return () => {
|
|
22
|
+
if (ownerId === myId) {
|
|
23
|
+
ownerId = null;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}, []);
|
|
27
|
+
return isOwner;
|
|
28
|
+
}
|
|
@@ -108,7 +108,8 @@ function TypeTesterFeatures(_ref) {
|
|
|
108
108
|
}
|
|
109
109
|
}, columnConfig.features.filter(feature => shouldIncludeFeature(fontFeatures === null || fontFeatures === void 0 ? void 0 : fontFeatures.supportedFeatures, typeof feature === 'string' ? feature : feature.code)).map(renderFeature))));
|
|
110
110
|
} else {
|
|
111
|
-
|
|
111
|
+
const expanded = showFeatures !== null && showFeatures !== void 0 && showFeatures.includes('*') ? (fontFeatures === null || fontFeatures === void 0 ? void 0 : fontFeatures.supportedFeatures) ?? [] : (showFeatures ?? []).filter(feature => shouldIncludeFeature(fontFeatures === null || fontFeatures === void 0 ? void 0 : fontFeatures.supportedFeatures, feature));
|
|
112
|
+
featuresColumns = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, expanded.map(renderFeature));
|
|
112
113
|
}
|
|
113
114
|
const {
|
|
114
115
|
height: featuresHeight,
|
|
@@ -37,10 +37,12 @@ const TypeTesterFeaturesButton = _ref => {
|
|
|
37
37
|
const selectedFeature = features[0];
|
|
38
38
|
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterFeaturesButton_fontStyle2.default.hash && _TypeTesterFeaturesButton_fontStyle2.default.hash !== "bfda99c867db0b614314fc774911c4b0" && console.error("The definition of 'TypeTesterFeaturesButton_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterFeaturesButton_fontStyle2.default), fontStyleKey);
|
|
39
39
|
const {
|
|
40
|
-
featureNames
|
|
40
|
+
featureNames,
|
|
41
|
+
fontFeatures
|
|
41
42
|
} = (0, _useFeaturesData.default)({
|
|
42
43
|
fontStyle
|
|
43
44
|
});
|
|
45
|
+
const effectiveFeatures = showFeatures !== null && showFeatures !== void 0 && showFeatures.includes('*') ? (fontFeatures === null || fontFeatures === void 0 ? void 0 : fontFeatures.supportedFeatures) ?? [] : showFeatures;
|
|
44
46
|
if (config.openTypeFeatures.interactionStyle === 'panel') {
|
|
45
47
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
46
48
|
className: "type-tester__features-button",
|
|
@@ -55,7 +57,7 @@ const TypeTesterFeaturesButton = _ref => {
|
|
|
55
57
|
}, config.openTypeFeatures.buttonLabel), ' ', featuresOpen ? /*#__PURE__*/_react.default.createElement(_CarrotUp.default, null) : /*#__PURE__*/_react.default.createElement(_CarrotDown.default, null)));
|
|
56
58
|
}
|
|
57
59
|
if (config.openTypeFeatures.interactionStyle === 'select') {
|
|
58
|
-
if (!
|
|
60
|
+
if (!effectiveFeatures || effectiveFeatures.length === 0) return null;
|
|
59
61
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
60
62
|
className: "type-tester__features-select"
|
|
61
63
|
}, /*#__PURE__*/_react.default.createElement(_Select.default, {
|
|
@@ -63,7 +65,7 @@ const TypeTesterFeaturesButton = _ref => {
|
|
|
63
65
|
options: [{
|
|
64
66
|
value: '',
|
|
65
67
|
text: 'OT Features'
|
|
66
|
-
}].concat(
|
|
68
|
+
}].concat(effectiveFeatures.map(feature => ({
|
|
67
69
|
value: feature,
|
|
68
70
|
text: featureNames[feature]
|
|
69
71
|
}))),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Alignment, Direction } from './types';
|
|
2
|
+
import { Alignment, Direction, FeaturesProp } from './types';
|
|
3
3
|
import { SerializablePreloadedQuery } from '../../relay/loadSerializableQuery';
|
|
4
4
|
import { TypeTesterStandaloneQuery } from '__generated__/TypeTesterStandaloneQuery.graphql';
|
|
5
5
|
interface TypeTesterStandaloneComponent_props {
|
|
@@ -7,7 +7,7 @@ interface TypeTesterStandaloneComponent_props {
|
|
|
7
7
|
letterSpacing?: number | null;
|
|
8
8
|
fontSize?: number | null;
|
|
9
9
|
axes?: string[] | null;
|
|
10
|
-
features?:
|
|
10
|
+
features?: FeaturesProp;
|
|
11
11
|
featuresSelected?: string[] | null;
|
|
12
12
|
featureSettings?: {
|
|
13
13
|
feature: string;
|
|
@@ -12,6 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _reactRelay = require("react-relay");
|
|
13
13
|
var _index = _interopRequireDefault(require("./index"));
|
|
14
14
|
var _TypeTesterContext = _interopRequireDefault(require("./TypeTesterContext"));
|
|
15
|
+
var _types = require("./types");
|
|
15
16
|
var _useSerializablePreloadedQuery = _interopRequireDefault(require("../../relay/useSerializablePreloadedQuery"));
|
|
16
17
|
var _ConfigContext = _interopRequireDefault(require("../ConfigContext"));
|
|
17
18
|
var _useLicenseAndOrderVariables = require("../../hooks/useLicenseAndOrderVariables");
|
|
@@ -98,7 +99,7 @@ function TypeTesterStandaloneComponent(_ref) {
|
|
|
98
99
|
fontStyle: changedStyle ? changedStylesData.node : (_data$viewer = data.viewer) === null || _data$viewer === void 0 ? void 0 : _data$viewer.fontStyle,
|
|
99
100
|
onStyleSelect: handleStyleSelect,
|
|
100
101
|
axes: axes,
|
|
101
|
-
features: features,
|
|
102
|
+
features: (0, _types.normalizeFeaturesProp)(features),
|
|
102
103
|
productId: ((_data$viewer2 = data.viewer) === null || _data$viewer2 === void 0 ? void 0 : (_data$viewer2$fontSty = _data$viewer2.fontStyle) === null || _data$viewer2$fontSty === void 0 ? void 0 : (_data$viewer2$fontSty2 = _data$viewer2$fontSty.family) === null || _data$viewer2$fontSty2 === void 0 ? void 0 : (_data$viewer2$fontSty3 = _data$viewer2$fontSty2.parent) === null || _data$viewer2$fontSty3 === void 0 ? void 0 : _data$viewer2$fontSty3.id) ?? ((_data$viewer3 = data.viewer) === null || _data$viewer3 === void 0 ? void 0 : (_data$viewer3$fontSty = _data$viewer3.fontStyle) === null || _data$viewer3$fontSty === void 0 ? void 0 : (_data$viewer3$fontSty2 = _data$viewer3$fontSty.family) === null || _data$viewer3$fontSty2 === void 0 ? void 0 : _data$viewer3$fontSty2.id),
|
|
103
104
|
groupEdit: false,
|
|
104
105
|
onFocus: onFocus,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LoadSerializableQueryOptions, SerializablePreloadedQuery } from '../../relay/loadSerializableQuery';
|
|
3
|
+
import { TypeTesterStandaloneQuery } from '../../__generated__/TypeTesterStandaloneQuery.graphql';
|
|
4
|
+
import { TypeTesterStandalonePreloadedQueryRenderer } from './TypeTesterStandalone';
|
|
5
|
+
export type TypeTesterPreloadedQuery = SerializablePreloadedQuery<TypeTesterStandaloneQuery>;
|
|
6
|
+
export interface LoadTypeTesterQueryVariables {
|
|
7
|
+
familyName: string;
|
|
8
|
+
styleName: string;
|
|
9
|
+
selectable?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function loadTypeTesterQuery(variables: LoadTypeTesterQueryVariables, options?: LoadSerializableQueryOptions): Promise<TypeTesterPreloadedQuery>;
|
|
12
|
+
type RendererProps = React.ComponentProps<typeof TypeTesterStandalonePreloadedQueryRenderer>;
|
|
13
|
+
export declare function TypeTesterPreloaded(props: RendererProps): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import loadSerializableQuery from '../../relay/loadSerializableQuery';
|
|
3
|
+
import TypeTesterStandaloneQueryNode from '../../__generated__/TypeTesterStandaloneQuery.graphql';
|
|
4
|
+
import FontdueProvider from '../FontdueProvider';
|
|
5
|
+
import { TypeTesterStandalonePreloadedQueryRenderer } from './TypeTesterStandalone';
|
|
6
|
+
export async function loadTypeTesterQuery(variables, options) {
|
|
7
|
+
return loadSerializableQuery(TypeTesterStandaloneQueryNode, {
|
|
8
|
+
familyName: variables.familyName,
|
|
9
|
+
styleName: variables.styleName,
|
|
10
|
+
selectable: variables.selectable ?? true
|
|
11
|
+
}, options);
|
|
12
|
+
}
|
|
13
|
+
// Self-wraps with FontdueProvider so consumers don't need to. The provider
|
|
14
|
+
// state is a module-level singleton under the hood, so multiple
|
|
15
|
+
// TypeTesterPreloaded (or other *Preloaded) components on a page all share
|
|
16
|
+
// one Relay env + Redux store + auxiliary UI.
|
|
17
|
+
export function TypeTesterPreloaded(props) {
|
|
18
|
+
return /*#__PURE__*/React.createElement(FontdueProvider, null, /*#__PURE__*/React.createElement(TypeTesterStandalonePreloadedQueryRenderer, props));
|
|
19
|
+
}
|
|
@@ -3,6 +3,8 @@ export type Content = EditorState;
|
|
|
3
3
|
export type Size = number;
|
|
4
4
|
export type LineHeight = number;
|
|
5
5
|
export type Features = string[];
|
|
6
|
+
export type FeaturesProp = ReadonlyArray<string> | '*' | null | undefined;
|
|
7
|
+
export declare const normalizeFeaturesProp: (features: FeaturesProp) => ReadonlyArray<string> | null;
|
|
6
8
|
export type Alignment = 'left' | 'center' | 'right';
|
|
7
9
|
export type Direction = 'ltr' | 'rtl';
|
|
8
10
|
export type TypeTesterAxesPosition = 'auto' | 'features-panel' | 'inline' | 'above';
|
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
5
|
+
});
|
|
6
|
+
exports.normalizeFeaturesProp = void 0;
|
|
7
|
+
// Public-API feature prop. Accepts an array of feature codes, or the literal
|
|
8
|
+
// string '*' to expose every feature the font supports.
|
|
9
|
+
|
|
10
|
+
const normalizeFeaturesProp = features => features === '*' ? ['*'] : features ?? null;
|
|
11
|
+
|
|
12
|
+
// controls whether the type tester editing should apply to all of the
|
|
13
|
+
// testers within a group
|
|
14
|
+
exports.normalizeFeaturesProp = normalizeFeaturesProp;
|
|
@@ -4,8 +4,9 @@ interface TypeTestersElementProps {
|
|
|
4
4
|
collectionSlug?: string;
|
|
5
5
|
defaultMode?: string;
|
|
6
6
|
autofit?: string;
|
|
7
|
+
features?: string;
|
|
7
8
|
tags?: string;
|
|
8
9
|
excludeTags?: string;
|
|
9
10
|
}
|
|
10
|
-
declare function TypeTestersElement({ autofit, tags, excludeTags, defaultMode, ...rest }: TypeTestersElementProps): React.JSX.Element;
|
|
11
|
+
declare function TypeTestersElement({ autofit, tags, excludeTags, defaultMode, features, ...rest }: TypeTestersElementProps): React.JSX.Element;
|
|
11
12
|
export default TypeTestersElement;
|
|
@@ -19,13 +19,15 @@ function TypeTestersElement(_ref) {
|
|
|
19
19
|
tags,
|
|
20
20
|
excludeTags,
|
|
21
21
|
defaultMode,
|
|
22
|
+
features,
|
|
22
23
|
...rest
|
|
23
24
|
} = _ref;
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement(_index.default, _extends({
|
|
25
26
|
tags: tags === null || tags === void 0 ? void 0 : tags.split(','),
|
|
26
27
|
excludeTags: excludeTags === null || excludeTags === void 0 ? void 0 : excludeTags.split(','),
|
|
27
28
|
autofit: autofit ? autofit === 'true' : undefined,
|
|
28
|
-
defaultMode: getDefaultMode(defaultMode, autofit === 'true')
|
|
29
|
+
defaultMode: getDefaultMode(defaultMode, autofit === 'true'),
|
|
30
|
+
features: features === null || features === void 0 ? void 0 : features.split(',')
|
|
29
31
|
}, rest));
|
|
30
32
|
}
|
|
31
33
|
var _default = TypeTestersElement;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TypeTestersIDQuery } from '../../__generated__/TypeTestersIDQuery.graphql';
|
|
3
3
|
import { TypeTestersSlugQuery } from '../../__generated__/TypeTestersSlugQuery.graphql';
|
|
4
|
+
import { FeaturesProp } from '../TypeTester/types';
|
|
4
5
|
import { SerializablePreloadedQuery } from '../../relay/loadSerializableQuery';
|
|
5
6
|
export interface TypeTesters_props {
|
|
6
7
|
collectionId?: string;
|
|
7
8
|
collectionSlug?: string;
|
|
8
9
|
defaultMode?: 'group' | 'local';
|
|
9
10
|
autofit?: boolean;
|
|
11
|
+
features?: FeaturesProp;
|
|
10
12
|
tags?: string[] | null;
|
|
11
13
|
excludeTags?: string[] | null;
|
|
12
14
|
onFocus?: () => void;
|
|
@@ -23,6 +23,7 @@ var _useRefetchOnLicenseChanges = require("../../hooks/useRefetchOnLicenseChange
|
|
|
23
23
|
var _TypeTestersRefetchQuery = _interopRequireDefault(require("../../__generated__/TypeTestersRefetchQuery.graphql"));
|
|
24
24
|
var _TypeTester = _interopRequireDefault(require("../TypeTester"));
|
|
25
25
|
var _TypeTesterFloatingToolbar = _interopRequireDefault(require("../TypeTester/TypeTesterFloatingToolbar"));
|
|
26
|
+
var _types = require("../TypeTester/types");
|
|
26
27
|
var _useSerializablePreloadedQuery = _interopRequireDefault(require("../../relay/useSerializablePreloadedQuery"));
|
|
27
28
|
var _useLicenseAndOrderVariables = require("../../hooks/useLicenseAndOrderVariables");
|
|
28
29
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
@@ -63,6 +64,7 @@ function TypeTestersComponent(_ref) {
|
|
|
63
64
|
viewer: viewerKey,
|
|
64
65
|
defaultMode,
|
|
65
66
|
autofit,
|
|
67
|
+
features: featuresOverride,
|
|
66
68
|
onFocus,
|
|
67
69
|
onBlur,
|
|
68
70
|
onToolbarOpenClose,
|
|
@@ -146,13 +148,14 @@ function TypeTestersComponent(_ref) {
|
|
|
146
148
|
return acc;
|
|
147
149
|
}, {});
|
|
148
150
|
if (!testers) return null;
|
|
151
|
+
const features = (0, _types.normalizeFeaturesProp)(featuresOverride) ?? collection.typeTesterFeatures;
|
|
149
152
|
return /*#__PURE__*/_react.default.createElement(_TypeTesterContext.default, {
|
|
150
153
|
key: collection.id,
|
|
151
154
|
defaultMode: defaultMode ?? (autofit ? 'local' : 'group'),
|
|
152
155
|
testers: testers
|
|
153
156
|
}, config.toolsPosition === 'floating' && /*#__PURE__*/_react.default.createElement(_TypeTesterFloatingToolbar.default, {
|
|
154
157
|
testers: ((_collection$typeTeste4 = collection.typeTesters) === null || _collection$typeTeste4 === void 0 ? void 0 : (_collection$typeTeste5 = _collection$typeTeste4.edges) === null || _collection$typeTeste5 === void 0 ? void 0 : _collection$typeTeste5.map(edge => edge.node)) ?? [],
|
|
155
|
-
features:
|
|
158
|
+
features: features,
|
|
156
159
|
axes: collection.typeTesterAxes,
|
|
157
160
|
onToolbarOpenClose: onToolbarOpenClose
|
|
158
161
|
}), getTypeTesterGroups(collection).map((typeTesterGroup, i) => {
|
|
@@ -179,7 +182,7 @@ function TypeTestersComponent(_ref) {
|
|
|
179
182
|
onStyleSelect: fontStyleId => handleStyleSelect(node.id, fontStyleId),
|
|
180
183
|
key: j,
|
|
181
184
|
productId: productId,
|
|
182
|
-
features:
|
|
185
|
+
features: features,
|
|
183
186
|
axes: collection.typeTesterAxes,
|
|
184
187
|
viewer: viewer,
|
|
185
188
|
tags: node.tags
|
package/dist/config.d.ts
ADDED
package/dist/config.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Module-level global configuration. Consumers call `configure()` once at
|
|
2
|
+
// app startup (e.g. Astro middleware, Next layout, Vite entry) and every
|
|
3
|
+
// fontdue-js entry point reads defaults from here. Explicit options passed
|
|
4
|
+
// to loadSerializableQuery / FontdueProvider still override.
|
|
5
|
+
//
|
|
6
|
+
// Per-request isolation note: `configure` sets module-level state. That's
|
|
7
|
+
// fine for single-tenant apps (one URL for the whole site). Multi-tenant
|
|
8
|
+
// servers that switch URL per request should pass `url` explicitly to
|
|
9
|
+
// loadSerializableQuery rather than rely on configure().
|
|
10
|
+
|
|
11
|
+
let current = {};
|
|
12
|
+
export function configure(opts) {
|
|
13
|
+
current = {
|
|
14
|
+
...current,
|
|
15
|
+
...opts
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export function getConfig() {
|
|
19
|
+
return current;
|
|
20
|
+
}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { configure, getConfig } from './config';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontdueProvider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import './chunks/ComponentsContext-CmkN9J4X.js';
|
|
3
|
+
export { T as TypeTesterStandalonePreloadedQueryRenderer, a as default } from './chunks/TypeTesterStandalone-BMWuv8Ca.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './index.js';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
//# sourceMappingURL=TypeTester.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeTester.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { c as createNetworkFetch } from './chunks/ComponentsContext-CmkN9J4X.js';
|
|
3
|
+
import { T as TypeTesterStandalonePreloadedQueryRenderer, n as node } from './chunks/TypeTesterStandalone-BMWuv8Ca.js';
|
|
4
|
+
import { F as FontdueProvider } from './chunks/index-C4ak9qTL.js';
|
|
5
|
+
import './index.js';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* RELAY CACHE KEY NORMALIZATION
|
|
10
|
+
*
|
|
11
|
+
* This type transformation is required to fix a cache key inconsistency issue in Relay.
|
|
12
|
+
*
|
|
13
|
+
* THE PROBLEM:
|
|
14
|
+
* Relay's `getOperationVariables()` function always includes ALL argumentDefinitions
|
|
15
|
+
* from the GraphQL operation, even optional ones, setting them to their defaultValue
|
|
16
|
+
* (typically null). This means when Relay generates cache keys, it creates entries like:
|
|
17
|
+
*
|
|
18
|
+
* Cache Key A: { collectionId: "123", tags: null, excludeTags: null, selectable: true }
|
|
19
|
+
* Cache Key B: { collectionId: "123", selectable: true } // when optional vars omitted
|
|
20
|
+
*
|
|
21
|
+
* Even though these represent the same logical query, they produce different cache keys
|
|
22
|
+
* because `JSON.stringify(stableCopy(variables))` serializes them differently.
|
|
23
|
+
*
|
|
24
|
+
* (This is possibly caused by NextJS RSC data serialization and hydration)
|
|
25
|
+
*
|
|
26
|
+
* THE ROOT CAUSE:
|
|
27
|
+
* - GraphQL schema defines: `$tags: [String!], $excludeTags: [String!]` (optional)
|
|
28
|
+
* - TypeScript generates: `tags?: ReadonlyArray<string> | null`
|
|
29
|
+
* - Relay's argumentDefinitions include: `{ name: "tags", defaultValue: null }`
|
|
30
|
+
* - getOperationVariables() always sets: `operationVariables[def.name] = def.defaultValue`
|
|
31
|
+
*
|
|
32
|
+
* THE SOLUTION:
|
|
33
|
+
* RequireAllWithNull<T> transforms optional properties to required properties with
|
|
34
|
+
* explicit null values, forcing callers to be consistent. This ensures server-side
|
|
35
|
+
* preloaded queries and client-side cache lookups use identical variable structures.
|
|
36
|
+
*
|
|
37
|
+
* USAGE:
|
|
38
|
+
* Instead of: { tags, excludeTags } // undefined values
|
|
39
|
+
* Use: { tags: tags ?? null, excludeTags: excludeTags ?? null } // explicit nulls
|
|
40
|
+
*
|
|
41
|
+
* This eliminates cache misses caused by variable structure inconsistencies between
|
|
42
|
+
* server-side rendering and client-side Relay operations.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
// Call into raw network fetch to get serializable GraphQL query response
|
|
46
|
+
// This response will be sent to the client to "warm" the QueryResponseCache
|
|
47
|
+
// to avoid the client fetches.
|
|
48
|
+
async function loadSerializableQuery(query, variables, options) {
|
|
49
|
+
if (!('params' in query)) throw new Error('Params not found in query, is it a fragment instead of a query?');
|
|
50
|
+
const fetcher = createNetworkFetch(options);
|
|
51
|
+
const response = await fetcher(query.params, variables);
|
|
52
|
+
return {
|
|
53
|
+
params: query.params,
|
|
54
|
+
variables,
|
|
55
|
+
response
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function loadTypeTesterQuery(variables, options) {
|
|
60
|
+
return loadSerializableQuery(node, {
|
|
61
|
+
familyName: variables.familyName,
|
|
62
|
+
styleName: variables.styleName,
|
|
63
|
+
selectable: variables.selectable ?? true
|
|
64
|
+
}, options);
|
|
65
|
+
}
|
|
66
|
+
// Self-wraps with FontdueProvider so consumers don't need to. The provider
|
|
67
|
+
// state is a module-level singleton under the hood, so multiple
|
|
68
|
+
// TypeTesterPreloaded (or other *Preloaded) components on a page all share
|
|
69
|
+
// one Relay env + Redux store + auxiliary UI.
|
|
70
|
+
function TypeTesterPreloaded(props) {
|
|
71
|
+
return /*#__PURE__*/React__default.createElement(FontdueProvider, null, /*#__PURE__*/React__default.createElement(TypeTesterStandalonePreloadedQueryRenderer, props));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { TypeTesterPreloaded, loadTypeTesterQuery };
|
|
75
|
+
//# sourceMappingURL=TypeTester.preload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeTester.preload.js","sources":["../src/relay/loadSerializableQuery.ts","../src/components/TypeTester/TypeTesterStandalone.preload.tsx"],"sourcesContent":["import {\n GraphQLResponse,\n GraphQLTaggedNode,\n OperationType,\n RequestParameters,\n VariablesOf,\n} from 'relay-runtime';\nimport { createNetworkFetch } from './environment';\n\nexport interface SerializablePreloadedQuery<TQuery extends OperationType> {\n params: RequestParameters;\n variables: VariablesOf<TQuery>;\n response: GraphQLResponse;\n}\n\n/**\n * RELAY CACHE KEY NORMALIZATION\n *\n * This type transformation is required to fix a cache key inconsistency issue in Relay.\n *\n * THE PROBLEM:\n * Relay's `getOperationVariables()` function always includes ALL argumentDefinitions\n * from the GraphQL operation, even optional ones, setting them to their defaultValue\n * (typically null). This means when Relay generates cache keys, it creates entries like:\n *\n * Cache Key A: { collectionId: \"123\", tags: null, excludeTags: null, selectable: true }\n * Cache Key B: { collectionId: \"123\", selectable: true } // when optional vars omitted\n *\n * Even though these represent the same logical query, they produce different cache keys\n * because `JSON.stringify(stableCopy(variables))` serializes them differently.\n *\n * (This is possibly caused by NextJS RSC data serialization and hydration)\n *\n * THE ROOT CAUSE:\n * - GraphQL schema defines: `$tags: [String!], $excludeTags: [String!]` (optional)\n * - TypeScript generates: `tags?: ReadonlyArray<string> | null`\n * - Relay's argumentDefinitions include: `{ name: \"tags\", defaultValue: null }`\n * - getOperationVariables() always sets: `operationVariables[def.name] = def.defaultValue`\n *\n * THE SOLUTION:\n * RequireAllWithNull<T> transforms optional properties to required properties with\n * explicit null values, forcing callers to be consistent. This ensures server-side\n * preloaded queries and client-side cache lookups use identical variable structures.\n *\n * USAGE:\n * Instead of: { tags, excludeTags } // undefined values\n * Use: { tags: tags ?? null, excludeTags: excludeTags ?? null } // explicit nulls\n *\n * This eliminates cache misses caused by variable structure inconsistencies between\n * server-side rendering and client-side Relay operations.\n */\ntype RequireAllWithNull<T> = {\n [K in keyof T]-?: T[K] | null;\n};\n\nexport interface LoadSerializableQueryOptions {\n url?: string;\n stripeIntegration?: 'card-element' | 'dynamic';\n}\n\n// Call into raw network fetch to get serializable GraphQL query response\n// This response will be sent to the client to \"warm\" the QueryResponseCache\n// to avoid the client fetches.\nexport default async function loadSerializableQuery<TQuery extends OperationType>(\n query: GraphQLTaggedNode,\n variables: RequireAllWithNull<VariablesOf<TQuery>>,\n options?: LoadSerializableQueryOptions,\n): Promise<SerializablePreloadedQuery<TQuery>> {\n if (!('params' in query))\n throw new Error('Params not found in query, is it a fragment instead of a query?');\n const fetcher = createNetworkFetch(options);\n const response = await fetcher(query.params, variables);\n\n return {\n params: query.params,\n variables,\n response,\n };\n}\n","import React from 'react';\nimport loadSerializableQuery, {\n LoadSerializableQueryOptions,\n SerializablePreloadedQuery,\n} from '../../relay/loadSerializableQuery';\nimport TypeTesterStandaloneQueryNode, {\n TypeTesterStandaloneQuery,\n} from '../../__generated__/TypeTesterStandaloneQuery.graphql';\nimport FontdueProvider from '../FontdueProvider';\nimport { TypeTesterStandalonePreloadedQueryRenderer } from './TypeTesterStandalone';\n\nexport type TypeTesterPreloadedQuery =\n SerializablePreloadedQuery<TypeTesterStandaloneQuery>;\n\nexport interface LoadTypeTesterQueryVariables {\n familyName: string;\n styleName: string;\n selectable?: boolean;\n}\n\nexport async function loadTypeTesterQuery(\n variables: LoadTypeTesterQueryVariables,\n options?: LoadSerializableQueryOptions,\n): Promise<TypeTesterPreloadedQuery> {\n return loadSerializableQuery<TypeTesterStandaloneQuery>(\n TypeTesterStandaloneQueryNode,\n {\n familyName: variables.familyName,\n styleName: variables.styleName,\n selectable: variables.selectable ?? true,\n },\n options,\n );\n}\n\ntype RendererProps = React.ComponentProps<typeof TypeTesterStandalonePreloadedQueryRenderer>;\n\n// Self-wraps with FontdueProvider so consumers don't need to. The provider\n// state is a module-level singleton under the hood, so multiple\n// TypeTesterPreloaded (or other *Preloaded) components on a page all share\n// one Relay env + Redux store + auxiliary UI.\nexport function TypeTesterPreloaded(props: RendererProps) {\n return (\n <FontdueProvider>\n <TypeTesterStandalonePreloadedQueryRenderer {...props} />\n </FontdueProvider>\n );\n}\n"],"names":["loadSerializableQuery","query","variables","options","Error","fetcher","createNetworkFetch","response","params","loadTypeTesterQuery","TypeTesterStandaloneQueryNode","familyName","styleName","selectable","TypeTesterPreloaded","props","React","createElement","FontdueProvider","TypeTesterStandalonePreloadedQueryRenderer"],"mappings":";;;;;;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACe,eAAeA,qBAAqBA,CACjDC,KAAwB,EACxBC,SAAkD,EAClDC,OAAsC,EACO;EAC7C,IAAI,EAAE,QAAQ,IAAIF,KAAK,CAAC,EACtB,MAAM,IAAIG,KAAK,CAAC,iEAAiE,CAAC;AACpF,EAAA,MAAMC,OAAO,GAAGC,kBAAkB,CAACH,OAAO,CAAC;EAC3C,MAAMI,QAAQ,GAAG,MAAMF,OAAO,CAACJ,KAAK,CAACO,MAAM,EAAEN,SAAS,CAAC;EAEvD,OAAO;IACLM,MAAM,EAAEP,KAAK,CAACO,MAAM;IACpBN,SAAS;AACTK,IAAAA;GACD;AACH;;AC1DO,eAAeE,mBAAmBA,CACvCP,SAAuC,EACvCC,OAAsC,EACH;EACnC,OAAOH,qBAAqB,CAC1BU,IAA6B,EAC7B;IACEC,UAAU,EAAET,SAAS,CAACS,UAAU;IAChCC,SAAS,EAAEV,SAAS,CAACU,SAAS;AAC9BC,IAAAA,UAAU,EAAEX,SAAS,CAACW,UAAU,IAAI;GACrC,EACDV,OACF,CAAC;AACH;AAIA;AACA;AACA;AACA;AACO,SAASW,mBAAmBA,CAACC,KAAoB,EAAE;AACxD,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAACC,eAAe,EAAA,IAAA,eACdF,cAAA,CAAAC,aAAA,CAACE,0CAA0C,EAAKJ,KAAQ,CACzC,CAAC;AAEtB;;;;"}
|