fontdue-js 3.6.0 → 3.7.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/__generated__/FontFamiliesQuery.graphql.d.ts +4 -1
  3. package/dist/__generated__/FontFamiliesQuery.graphql.js +46 -39
  4. package/dist/__generated__/PriceBar_node.graphql.d.ts +4 -1
  5. package/dist/__generated__/PriceBar_node.graphql.js +23 -16
  6. package/dist/__generated__/StoreModalFamily_collection.graphql.d.ts +3 -2
  7. package/dist/__generated__/StoreModalFamily_collection.graphql.js +3 -3
  8. package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.d.ts +23 -0
  9. package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.js +303 -0
  10. package/dist/__generated__/StoreModalIndexQuery.graphql.d.ts +4 -9
  11. package/dist/__generated__/StoreModalIndexQuery.graphql.js +90 -53
  12. package/dist/__generated__/StoreModalIndex_viewer.graphql.d.ts +24 -0
  13. package/dist/__generated__/StoreModalIndex_viewer.graphql.js +134 -0
  14. package/dist/__generated__/StoreModalProductContent_collection.graphql.d.ts +4 -1
  15. package/dist/__generated__/StoreModalProductContent_collection.graphql.js +12 -5
  16. package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.d.ts +2 -1
  17. package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.js +27 -24
  18. package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +1 -1
  19. package/dist/__generated__/StoreModalProductQuery.graphql.js +78 -77
  20. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.d.ts +1 -1
  21. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.js +54 -53
  22. package/dist/__generated__/StoreModalProductSlugQuery.graphql.d.ts +1 -1
  23. package/dist/__generated__/StoreModalProductSlugQuery.graphql.js +78 -77
  24. package/dist/__generated__/TypeTestersIDQuery.graphql.d.ts +1 -1
  25. package/dist/__generated__/TypeTestersIDQuery.graphql.js +17 -10
  26. package/dist/__generated__/TypeTestersRefetchQuery.graphql.d.ts +1 -1
  27. package/dist/__generated__/TypeTestersRefetchQuery.graphql.js +17 -10
  28. package/dist/__generated__/TypeTestersSlugQuery.graphql.d.ts +1 -1
  29. package/dist/__generated__/TypeTestersSlugQuery.graphql.js +17 -10
  30. package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.d.ts +41 -0
  31. package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.js +65 -0
  32. package/dist/__tests__/bundleSelectionOrder.test.js +92 -0
  33. package/dist/__tests__/collectionBundleSelection.test.js +441 -1446
  34. package/dist/__tests__/infiniteScroll.test.js +180 -0
  35. package/dist/__tests__/licenseExclusions.test.js +2 -1
  36. package/dist/__tests__/storefrontEvents.test.js +167 -0
  37. package/dist/__tests__/typeTesterAutofitFeatures.test.js +138 -0
  38. package/dist/components/Cart/Checkout.js +11 -1
  39. package/dist/components/Cart/storefrontEvents.d.ts +34 -0
  40. package/dist/components/Cart/storefrontEvents.js +138 -0
  41. package/dist/components/FontFamilies/index.js +4 -3
  42. package/dist/components/Precart/index.js +6 -0
  43. package/dist/components/PriceBar/index.js +5 -3
  44. package/dist/components/Root/productState.d.ts +2 -8
  45. package/dist/components/Root/productState.js +46 -57
  46. package/dist/components/SKUPrice/index.js +7 -8
  47. package/dist/components/StoreModal/StoreModalFamily.js +4 -2
  48. package/dist/components/StoreModal/StoreModalIndex.js +48 -7
  49. package/dist/components/StoreModal/StoreModalProduct.js +16 -9
  50. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.d.ts +2 -1
  51. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +8 -3
  52. package/dist/components/StoreModalProductLicenseSelection/index.js +3 -2
  53. package/dist/components/TypeTester/useTypeTesterStyler.js +1 -0
  54. package/dist/components/elements/StoreModalContainer/StoreModalContainerContext.d.ts +1 -0
  55. package/dist/components/elements/StoreModalContainer/index.js +9 -4
  56. package/dist/components/elements/StoreModalIndexLoadMore/index.d.ts +8 -0
  57. package/dist/components/elements/StoreModalIndexLoadMore/index.js +21 -0
  58. package/dist/components/elements/StoreModalUnifiedCheckout.js +12 -0
  59. package/dist/components/useInfiniteScroll.d.ts +28 -0
  60. package/dist/components/useInfiniteScroll.js +50 -0
  61. package/dist/fontdue.css +33 -0
  62. package/dist/hooks/useAutofit.d.ts +2 -1
  63. package/dist/hooks/useAutofit.js +10 -4
  64. package/dist/reducer.d.ts +5 -5
  65. package/dist/reducer.js +9 -87
  66. package/dist/selection.d.ts +40 -0
  67. package/dist/selection.js +494 -0
  68. package/dist/utils.d.ts +1 -12
  69. package/dist/utils.js +1 -36
  70. package/dist/version.js +1 -1
  71. package/package.json +1 -1
@@ -0,0 +1,134 @@
1
+ /**
2
+ * @generated SignedSource<<3a7fa9769ddfb556a8d9877acbd1e47f>>
3
+ * @lightSyntaxTransform
4
+ * @nogrep
5
+ */
6
+
7
+ /* tslint:disable */
8
+ /* eslint-disable */
9
+ // @ts-nocheck
10
+
11
+ import StoreModalIndexPaginationQuery_graphql from "./StoreModalIndexPaginationQuery.graphql.js";
12
+ const node = function () {
13
+ var v0 = ["rootCollections"];
14
+ return {
15
+ "argumentDefinitions": [{
16
+ "defaultValue": 25,
17
+ "kind": "LocalArgument",
18
+ "name": "count"
19
+ }, {
20
+ "defaultValue": null,
21
+ "kind": "LocalArgument",
22
+ "name": "cursor"
23
+ }, {
24
+ "defaultValue": null,
25
+ "kind": "LocalArgument",
26
+ "name": "excludeTags"
27
+ }],
28
+ "kind": "Fragment",
29
+ "metadata": {
30
+ "connection": [{
31
+ "count": "count",
32
+ "cursor": "cursor",
33
+ "direction": "forward",
34
+ "path": v0 /*: any*/
35
+ }],
36
+ "refetch": {
37
+ "connection": {
38
+ "forward": {
39
+ "count": "count",
40
+ "cursor": "cursor"
41
+ },
42
+ "backward": null,
43
+ "path": v0 /*: any*/
44
+ },
45
+ "fragmentPathInResult": ["viewer"],
46
+ "operation": StoreModalIndexPaginationQuery_graphql
47
+ }
48
+ },
49
+ "name": "StoreModalIndex_viewer",
50
+ "selections": [{
51
+ "alias": "rootCollections",
52
+ "args": [{
53
+ "kind": "Variable",
54
+ "name": "excludeTags",
55
+ "variableName": "excludeTags"
56
+ }, {
57
+ "kind": "Literal",
58
+ "name": "onlyRoots",
59
+ "value": true
60
+ }],
61
+ "concreteType": "FontCollectionConnection",
62
+ "kind": "LinkedField",
63
+ "name": "__StoreModalIndex_rootCollections_connection",
64
+ "plural": false,
65
+ "selections": [{
66
+ "alias": null,
67
+ "args": null,
68
+ "concreteType": "FontCollectionEdge",
69
+ "kind": "LinkedField",
70
+ "name": "edges",
71
+ "plural": true,
72
+ "selections": [{
73
+ "alias": null,
74
+ "args": null,
75
+ "concreteType": "FontCollection",
76
+ "kind": "LinkedField",
77
+ "name": "node",
78
+ "plural": false,
79
+ "selections": [{
80
+ "alias": null,
81
+ "args": null,
82
+ "kind": "ScalarField",
83
+ "name": "id",
84
+ "storageKey": null
85
+ }, {
86
+ "args": null,
87
+ "kind": "FragmentSpread",
88
+ "name": "StoreModalIndexItem_fontCollection"
89
+ }, {
90
+ "alias": null,
91
+ "args": null,
92
+ "kind": "ScalarField",
93
+ "name": "__typename",
94
+ "storageKey": null
95
+ }],
96
+ "storageKey": null
97
+ }, {
98
+ "alias": null,
99
+ "args": null,
100
+ "kind": "ScalarField",
101
+ "name": "cursor",
102
+ "storageKey": null
103
+ }],
104
+ "storageKey": null
105
+ }, {
106
+ "alias": null,
107
+ "args": null,
108
+ "concreteType": "PageInfo",
109
+ "kind": "LinkedField",
110
+ "name": "pageInfo",
111
+ "plural": false,
112
+ "selections": [{
113
+ "alias": null,
114
+ "args": null,
115
+ "kind": "ScalarField",
116
+ "name": "endCursor",
117
+ "storageKey": null
118
+ }, {
119
+ "alias": null,
120
+ "args": null,
121
+ "kind": "ScalarField",
122
+ "name": "hasNextPage",
123
+ "storageKey": null
124
+ }],
125
+ "storageKey": null
126
+ }],
127
+ "storageKey": null
128
+ }],
129
+ "type": "Viewer",
130
+ "abstractKey": null
131
+ };
132
+ }();
133
+ node.hash = "f4bd120deb8eea66de4257529cbb022e";
134
+ export default node;
@@ -1,16 +1,19 @@
1
1
  /**
2
- * @generated SignedSource<<52604834b134f2a18a4c4a3ef9c8b79c>>
2
+ * @generated SignedSource<<282d694ace864c2941dc097bf86f015c>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
6
6
  import { ReaderFragment } from 'relay-runtime';
7
+ export type Visibility = "HIDDEN" | "UNLISTED" | "VISIBLE" | "%future added value";
7
8
  import { FragmentRefs } from "relay-runtime";
8
9
  export type StoreModalProductContent_collection$data = {
9
10
  readonly children?: ReadonlyArray<{
10
11
  readonly id: string;
12
+ readonly visibility: Visibility;
11
13
  readonly " $fragmentSpreads": FragmentRefs<"StoreModalFamily_collection">;
12
14
  }> | null;
13
15
  readonly id: string;
16
+ readonly visibility?: Visibility;
14
17
  readonly " $fragmentSpreads": FragmentRefs<"StoreModalFamily_collection" | "StoreModalProductLicenseSelection_collection">;
15
18
  readonly " $fragmentType": "StoreModalProductContent_collection";
16
19
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<52604834b134f2a18a4c4a3ef9c8b79c>>
2
+ * @generated SignedSource<<282d694ace864c2941dc097bf86f015c>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -18,6 +18,13 @@ const node = function () {
18
18
  "storageKey": null
19
19
  },
20
20
  v1 = {
21
+ "alias": null,
22
+ "args": null,
23
+ "kind": "ScalarField",
24
+ "name": "visibility",
25
+ "storageKey": null
26
+ },
27
+ v2 = {
21
28
  "args": [{
22
29
  "kind": "Variable",
23
30
  "name": "licenseOptions",
@@ -55,7 +62,7 @@ const node = function () {
55
62
  "name": "StoreModalProductContent_collection",
56
63
  "selections": [v0 /*: any*/, {
57
64
  "kind": "InlineFragment",
58
- "selections": [{
65
+ "selections": [v1 /*: any*/, {
59
66
  "alias": null,
60
67
  "args": [{
61
68
  "kind": "Literal",
@@ -66,9 +73,9 @@ const node = function () {
66
73
  "kind": "LinkedField",
67
74
  "name": "children",
68
75
  "plural": true,
69
- "selections": [v0 /*: any*/, v1 /*: any*/],
76
+ "selections": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/],
70
77
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
71
- }, v1 /*: any*/, {
78
+ }, v2 /*: any*/, {
72
79
  "args": null,
73
80
  "kind": "FragmentSpread",
74
81
  "name": "StoreModalProductLicenseSelection_collection"
@@ -80,5 +87,5 @@ const node = function () {
80
87
  "abstractKey": "__isNode"
81
88
  };
82
89
  }();
83
- node.hash = "0684ec2633ccc5d4d0866e7780df28cc";
90
+ node.hash = "f7a9e591b5e1596f4d518fc5d9d46e91";
84
91
  export default node;
@@ -1,11 +1,12 @@
1
1
  /**
2
- * @generated SignedSource<<1a7d2afa343cec1a24be53c9012e2050>>
2
+ * @generated SignedSource<<608d0d717bb05ab7f819f61827e75a17>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
6
6
  import { ReaderFragment } from 'relay-runtime';
7
7
  import { FragmentRefs } from "relay-runtime";
8
8
  export type StoreModalProductLicenseSelection_collection$data = {
9
+ readonly id: string;
9
10
  readonly licenses: ReadonlyArray<{
10
11
  readonly id: string;
11
12
  readonly " $fragmentSpreads": FragmentRefs<"StoreModalProductLicense_license">;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<1a7d2afa343cec1a24be53c9012e2050>>
2
+ * @generated SignedSource<<608d0d717bb05ab7f819f61827e75a17>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -8,33 +8,36 @@
8
8
  /* eslint-disable */
9
9
  // @ts-nocheck
10
10
 
11
- const node = {
12
- "argumentDefinitions": [],
13
- "kind": "Fragment",
14
- "metadata": null,
15
- "name": "StoreModalProductLicenseSelection_collection",
16
- "selections": [{
11
+ const node = function () {
12
+ var v0 = {
17
13
  "alias": null,
18
14
  "args": null,
19
- "concreteType": "License",
20
- "kind": "LinkedField",
21
- "name": "licenses",
22
- "plural": true,
23
- "selections": [{
15
+ "kind": "ScalarField",
16
+ "name": "id",
17
+ "storageKey": null
18
+ };
19
+ return {
20
+ "argumentDefinitions": [],
21
+ "kind": "Fragment",
22
+ "metadata": null,
23
+ "name": "StoreModalProductLicenseSelection_collection",
24
+ "selections": [v0 /*: any*/, {
24
25
  "alias": null,
25
26
  "args": null,
26
- "kind": "ScalarField",
27
- "name": "id",
27
+ "concreteType": "License",
28
+ "kind": "LinkedField",
29
+ "name": "licenses",
30
+ "plural": true,
31
+ "selections": [v0 /*: any*/, {
32
+ "args": null,
33
+ "kind": "FragmentSpread",
34
+ "name": "StoreModalProductLicense_license"
35
+ }],
28
36
  "storageKey": null
29
- }, {
30
- "args": null,
31
- "kind": "FragmentSpread",
32
- "name": "StoreModalProductLicense_license"
33
37
  }],
34
- "storageKey": null
35
- }],
36
- "type": "FontCollection",
37
- "abstractKey": null
38
- };
39
- node.hash = "2767ff3f8ddb4354051074bc3d0312e6";
38
+ "type": "FontCollection",
39
+ "abstractKey": null
40
+ };
41
+ }();
42
+ node.hash = "c3609e849ae8057e71542d32716f3ddc";
40
43
  export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<f304a20a3476b69390ef5a11da963de0>>
2
+ * @generated SignedSource<<8a2e025b087794002dfd85f1cf562386>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */