fontdue-js 3.7.0 → 3.8.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 (123) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +5 -4
  3. package/dist/__generated__/AddToCartBannerQuery.graphql.d.ts +1 -1
  4. package/dist/__generated__/AddToCartBannerQuery.graphql.js +16 -10
  5. package/dist/__generated__/AddToCartBanner_item.graphql.d.ts +4 -1
  6. package/dist/__generated__/AddToCartBanner_item.graphql.js +7 -2
  7. package/dist/__generated__/AddToCartBanner_order.graphql.d.ts +4 -1
  8. package/dist/__generated__/AddToCartBanner_order.graphql.js +6 -1
  9. package/dist/__generated__/BuyButtonIDQuery.graphql.d.ts +3 -3
  10. package/dist/__generated__/BuyButtonIDQuery.graphql.js +31 -16
  11. package/dist/__generated__/BuyButtonPackIDQuery.graphql.d.ts +21 -0
  12. package/dist/__generated__/BuyButtonPackIDQuery.graphql.js +129 -0
  13. package/dist/__generated__/BuyButtonPackSlugQuery.graphql.d.ts +25 -0
  14. package/dist/__generated__/BuyButtonPackSlugQuery.graphql.js +167 -0
  15. package/dist/__generated__/BuyButtonSlugQuery.graphql.d.ts +3 -3
  16. package/dist/__generated__/BuyButtonSlugQuery.graphql.js +45 -17
  17. package/dist/__generated__/BuyButton_product.graphql.d.ts +27 -0
  18. package/dist/__generated__/BuyButton_product.graphql.js +72 -0
  19. package/dist/__generated__/CartItemProduct_product.graphql.d.ts +1 -1
  20. package/dist/__generated__/CartItemProduct_product.graphql.js +7 -2
  21. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.d.ts +1 -1
  22. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +26 -20
  23. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.d.ts +1 -1
  24. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +26 -20
  25. package/dist/__generated__/CartOrderUpdateMutation.graphql.d.ts +1 -1
  26. package/dist/__generated__/CartOrderUpdateMutation.graphql.js +26 -20
  27. package/dist/__generated__/CartQuery.graphql.d.ts +1 -1
  28. package/dist/__generated__/CartQuery.graphql.js +26 -20
  29. package/dist/__generated__/CartStateUpdateMutation.graphql.d.ts +1 -1
  30. package/dist/__generated__/CartStateUpdateMutation.graphql.js +26 -20
  31. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.d.ts +1 -1
  32. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +26 -20
  33. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.d.ts +1 -1
  34. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.js +26 -20
  35. package/dist/__generated__/CollectionAa_Query.graphql.d.ts +1 -1
  36. package/dist/__generated__/CollectionAa_Query.graphql.js +20 -14
  37. package/dist/__generated__/CollectionAa_product.graphql.d.ts +7 -1
  38. package/dist/__generated__/CollectionAa_product.graphql.js +22 -16
  39. package/dist/__generated__/NodePasswordFormElementIDQuery.graphql.d.ts +3 -3
  40. package/dist/__generated__/NodePasswordFormElementIDQuery.graphql.js +9 -9
  41. package/dist/__generated__/NodePasswordFormElementPackSlugQuery.graphql.d.ts +25 -0
  42. package/dist/__generated__/NodePasswordFormElementPackSlugQuery.graphql.js +108 -0
  43. package/dist/__generated__/PrecartAddToCartMutation.graphql.d.ts +1 -1
  44. package/dist/__generated__/PrecartAddToCartMutation.graphql.js +32 -26
  45. package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +1 -1
  46. package/dist/__generated__/StoreModalCartQuery.graphql.js +37 -31
  47. package/dist/__generated__/StoreModalIndexPackItem_fontPack.graphql.d.ts +23 -0
  48. package/dist/__generated__/StoreModalIndexPackItem_fontPack.graphql.js +58 -0
  49. package/dist/__generated__/StoreModalIndexQuery.graphql.d.ts +9 -1
  50. package/dist/__generated__/StoreModalIndexQuery.graphql.js +174 -110
  51. package/dist/__generated__/StoreModalPackButton_fontPack.graphql.d.ts +33 -0
  52. package/dist/__generated__/StoreModalPackButton_fontPack.graphql.js +119 -0
  53. package/dist/__generated__/StoreModalPack_fontPack.graphql.d.ts +45 -0
  54. package/dist/__generated__/StoreModalPack_fontPack.graphql.js +150 -0
  55. package/dist/__generated__/StoreModalProductContent_collection.graphql.d.ts +3 -2
  56. package/dist/__generated__/StoreModalProductContent_collection.graphql.js +36 -19
  57. package/dist/__generated__/{StoreModalProductLicenseSelection_collection.graphql.d.ts → StoreModalProductLicenseSelection_licenseable.graphql.d.ts} +6 -6
  58. package/dist/__generated__/{StoreModalProductLicenseSelection_collection.graphql.js → StoreModalProductLicenseSelection_licenseable.graphql.js} +5 -5
  59. package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +1 -1
  60. package/dist/__generated__/StoreModalProductQuery.graphql.js +159 -103
  61. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.d.ts +1 -1
  62. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.js +184 -128
  63. package/dist/__generated__/StoreModalProductSlugQuery.graphql.d.ts +5 -1
  64. package/dist/__generated__/StoreModalProductSlugQuery.graphql.js +248 -171
  65. package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.d.ts +1 -1
  66. package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.js +9 -4
  67. package/dist/__generated__/StoreModalProductSummary_viewer.graphql.d.ts +7 -1
  68. package/dist/__generated__/StoreModalProductSummary_viewer.graphql.js +7 -2
  69. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.d.ts +1 -1
  70. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +26 -20
  71. package/dist/__generated__/productState_Query.graphql.d.ts +99 -1
  72. package/dist/__generated__/productState_Query.graphql.js +43 -4
  73. package/dist/__generated__/productState_fontPack.graphql.d.ts +111 -0
  74. package/dist/__generated__/productState_fontPack.graphql.js +117 -0
  75. package/dist/__tests__/bundleSelectionOrder.test.js +2 -0
  76. package/dist/__tests__/collectionBundleSelection.test.js +2 -0
  77. package/dist/__tests__/fontPackSelection.test.js +435 -0
  78. package/dist/__tests__/licenseExclusions.test.js +2 -0
  79. package/dist/__tests__/storeModalPackButton.test.js +102 -0
  80. package/dist/__tests__/storeModalPackUnlisted.test.js +112 -0
  81. package/dist/__tests__/storeModalRoutes.test.js +9 -0
  82. package/dist/components/AddToCartBanner/index.js +1 -1
  83. package/dist/components/BuyButton/index.d.ts +29 -9
  84. package/dist/components/BuyButton/index.js +123 -26
  85. package/dist/components/BuyButton/index.server.d.ts +4 -2
  86. package/dist/components/BuyButton/index.server.js +24 -3
  87. package/dist/components/Cart/CartItem/CartItemProduct.js +3 -3
  88. package/dist/components/CollectionAa/index.js +2 -2
  89. package/dist/components/NodePasswordForm/NodePasswordFormElement.d.ts +1 -1
  90. package/dist/components/NodePasswordForm/NodePasswordFormElement.js +45 -21
  91. package/dist/components/NodePasswordForm/index.d.ts +7 -4
  92. package/dist/components/NodePasswordForm/index.js +6 -6
  93. package/dist/components/Root/productState.js +57 -7
  94. package/dist/components/StoreModal/StoreModalFamily.d.ts +7 -0
  95. package/dist/components/StoreModal/StoreModalFamily.js +7 -5
  96. package/dist/components/StoreModal/StoreModalIndex.js +13 -3
  97. package/dist/components/StoreModal/StoreModalIndexEntry.d.ts +13 -0
  98. package/dist/components/StoreModal/StoreModalIndexEntry.js +43 -0
  99. package/dist/components/StoreModal/StoreModalIndexItem.js +7 -30
  100. package/dist/components/StoreModal/StoreModalIndexPackItem.d.ts +7 -0
  101. package/dist/components/StoreModal/StoreModalIndexPackItem.js +21 -0
  102. package/dist/components/StoreModal/StoreModalPack.d.ts +9 -0
  103. package/dist/components/StoreModal/StoreModalPack.js +79 -0
  104. package/dist/components/StoreModal/StoreModalPackButton.d.ts +8 -0
  105. package/dist/components/StoreModal/StoreModalPackButton.js +53 -0
  106. package/dist/components/StoreModal/StoreModalProduct.js +38 -15
  107. package/dist/components/StoreModalProductLicenseSelection/index.d.ts +3 -3
  108. package/dist/components/StoreModalProductLicenseSelection/index.js +6 -6
  109. package/dist/components/StoreModalProductSummary/index.js +1 -1
  110. package/dist/components/elements/StoreModalFamily/index.d.ts +1 -1
  111. package/dist/components/elements/StoreModalFamily/index.js +1 -1
  112. package/dist/fontdue.css +6 -0
  113. package/dist/reducer.d.ts +7 -0
  114. package/dist/reducer.js +9 -0
  115. package/dist/selection.d.ts +5 -1
  116. package/dist/selection.js +61 -16
  117. package/dist/storeModalRoutes.js +5 -4
  118. package/dist/version.js +1 -1
  119. package/package.json +1 -1
  120. package/dist/__generated__/BuyButton_collection.graphql.d.ts +0 -25
  121. package/dist/__generated__/BuyButton_collection.graphql.js +0 -49
  122. package/fontdue.css +0 -2733
  123. package/fontdue.css.map +0 -1
@@ -0,0 +1,150 @@
1
+ /**
2
+ * @generated SignedSource<<9167c1ca2e4139c000cef1fddb920801>>
3
+ * @lightSyntaxTransform
4
+ * @nogrep
5
+ */
6
+
7
+ /* tslint:disable */
8
+ /* eslint-disable */
9
+ // @ts-nocheck
10
+
11
+ const node = function () {
12
+ var v0 = [{
13
+ "kind": "Variable",
14
+ "name": "licenseOptions",
15
+ "variableName": "licenseOptions"
16
+ }, {
17
+ "kind": "Variable",
18
+ "name": "orderVariables",
19
+ "variableName": "orderVariables"
20
+ }],
21
+ v1 = {
22
+ "alias": null,
23
+ "args": null,
24
+ "kind": "ScalarField",
25
+ "name": "id",
26
+ "storageKey": null
27
+ },
28
+ v2 = {
29
+ "alias": null,
30
+ "args": null,
31
+ "kind": "ScalarField",
32
+ "name": "visibility",
33
+ "storageKey": null
34
+ },
35
+ v3 = {
36
+ "args": v0 /*: any*/,
37
+ "kind": "FragmentSpread",
38
+ "name": "StoreModalFamily_collection"
39
+ };
40
+ return {
41
+ "argumentDefinitions": [{
42
+ "defaultValue": [],
43
+ "kind": "LocalArgument",
44
+ "name": "licenseOptions"
45
+ }, {
46
+ "defaultValue": [],
47
+ "kind": "LocalArgument",
48
+ "name": "orderVariables"
49
+ }],
50
+ "kind": "Fragment",
51
+ "metadata": null,
52
+ "name": "StoreModalPack_fontPack",
53
+ "selections": [{
54
+ "args": v0 /*: any*/,
55
+ "kind": "FragmentSpread",
56
+ "name": "StoreModalPackButton_fontPack"
57
+ }, {
58
+ "alias": null,
59
+ "args": null,
60
+ "concreteType": null,
61
+ "kind": "LinkedField",
62
+ "name": "members",
63
+ "plural": true,
64
+ "selections": [{
65
+ "alias": null,
66
+ "args": null,
67
+ "kind": "ScalarField",
68
+ "name": "__typename",
69
+ "storageKey": null
70
+ }, {
71
+ "kind": "InlineFragment",
72
+ "selections": [v1 /*: any*/, {
73
+ "alias": null,
74
+ "args": null,
75
+ "kind": "ScalarField",
76
+ "name": "cssFamily",
77
+ "storageKey": null
78
+ }, {
79
+ "alias": null,
80
+ "args": null,
81
+ "kind": "ScalarField",
82
+ "name": "cssWeight",
83
+ "storageKey": null
84
+ }, {
85
+ "alias": null,
86
+ "args": null,
87
+ "kind": "ScalarField",
88
+ "name": "cssStretch",
89
+ "storageKey": null
90
+ }, {
91
+ "alias": null,
92
+ "args": null,
93
+ "kind": "ScalarField",
94
+ "name": "cssStyle",
95
+ "storageKey": null
96
+ }, {
97
+ "alias": null,
98
+ "args": null,
99
+ "concreteType": "FontCollection",
100
+ "kind": "LinkedField",
101
+ "name": "family",
102
+ "plural": false,
103
+ "selections": [v1 /*: any*/, {
104
+ "alias": null,
105
+ "args": null,
106
+ "kind": "ScalarField",
107
+ "name": "name",
108
+ "storageKey": null
109
+ }, {
110
+ "alias": null,
111
+ "args": null,
112
+ "kind": "ScalarField",
113
+ "name": "isVariableFont",
114
+ "storageKey": null
115
+ }, v2 /*: any*/],
116
+ "storageKey": null
117
+ }, {
118
+ "args": v0 /*: any*/,
119
+ "kind": "FragmentSpread",
120
+ "name": "StoreModalStyleButton_fontStyle"
121
+ }],
122
+ "type": "FontStyle",
123
+ "abstractKey": null
124
+ }, {
125
+ "kind": "InlineFragment",
126
+ "selections": [v1 /*: any*/, v2 /*: any*/, v3 /*: any*/, {
127
+ "alias": null,
128
+ "args": [{
129
+ "kind": "Literal",
130
+ "name": "collectionTypes",
131
+ "value": ["FAMILY"]
132
+ }],
133
+ "concreteType": "FontCollection",
134
+ "kind": "LinkedField",
135
+ "name": "children",
136
+ "plural": true,
137
+ "selections": [v1 /*: any*/, v2 /*: any*/, v3 /*: any*/],
138
+ "storageKey": "children(collectionTypes:[\"FAMILY\"])"
139
+ }],
140
+ "type": "FontCollection",
141
+ "abstractKey": null
142
+ }],
143
+ "storageKey": null
144
+ }],
145
+ "type": "FontPack",
146
+ "abstractKey": null
147
+ };
148
+ }();
149
+ node.hash = "5bbb13828a56279be2b22df22ad4aae0";
150
+ export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<282d694ace864c2941dc097bf86f015c>>
2
+ * @generated SignedSource<<11b46cbbda47732a3deba7ad659fde2f>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -7,6 +7,7 @@ import { ReaderFragment } from 'relay-runtime';
7
7
  export type Visibility = "HIDDEN" | "UNLISTED" | "VISIBLE" | "%future added value";
8
8
  import { FragmentRefs } from "relay-runtime";
9
9
  export type StoreModalProductContent_collection$data = {
10
+ readonly __typename: string;
10
11
  readonly children?: ReadonlyArray<{
11
12
  readonly id: string;
12
13
  readonly visibility: Visibility;
@@ -14,7 +15,7 @@ export type StoreModalProductContent_collection$data = {
14
15
  }> | null;
15
16
  readonly id: string;
16
17
  readonly visibility?: Visibility;
17
- readonly " $fragmentSpreads": FragmentRefs<"StoreModalFamily_collection" | "StoreModalProductLicenseSelection_collection">;
18
+ readonly " $fragmentSpreads": FragmentRefs<"StoreModalFamily_collection" | "StoreModalPack_fontPack" | "StoreModalProductLicenseSelection_licenseable">;
18
19
  readonly " $fragmentType": "StoreModalProductContent_collection";
19
20
  };
20
21
  export type StoreModalProductContent_collection$key = {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<282d694ace864c2941dc097bf86f015c>>
2
+ * @generated SignedSource<<11b46cbbda47732a3deba7ad659fde2f>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -24,18 +24,24 @@ const node = function () {
24
24
  "name": "visibility",
25
25
  "storageKey": null
26
26
  },
27
- v2 = {
28
- "args": [{
29
- "kind": "Variable",
30
- "name": "licenseOptions",
31
- "variableName": "licenseOptions"
32
- }, {
33
- "kind": "Variable",
34
- "name": "orderVariables",
35
- "variableName": "orderVariables"
36
- }],
27
+ v2 = [{
28
+ "kind": "Variable",
29
+ "name": "licenseOptions",
30
+ "variableName": "licenseOptions"
31
+ }, {
32
+ "kind": "Variable",
33
+ "name": "orderVariables",
34
+ "variableName": "orderVariables"
35
+ }],
36
+ v3 = {
37
+ "args": v2 /*: any*/,
37
38
  "kind": "FragmentSpread",
38
39
  "name": "StoreModalFamily_collection"
40
+ },
41
+ v4 = {
42
+ "args": null,
43
+ "kind": "FragmentSpread",
44
+ "name": "StoreModalProductLicenseSelection_licenseable"
39
45
  };
40
46
  return {
41
47
  "argumentDefinitions": [{
@@ -60,7 +66,13 @@ const node = function () {
60
66
  }
61
67
  },
62
68
  "name": "StoreModalProductContent_collection",
63
- "selections": [v0 /*: any*/, {
69
+ "selections": [{
70
+ "alias": null,
71
+ "args": null,
72
+ "kind": "ScalarField",
73
+ "name": "__typename",
74
+ "storageKey": null
75
+ }, v0 /*: any*/, {
64
76
  "kind": "InlineFragment",
65
77
  "selections": [v1 /*: any*/, {
66
78
  "alias": null,
@@ -73,19 +85,24 @@ const node = function () {
73
85
  "kind": "LinkedField",
74
86
  "name": "children",
75
87
  "plural": true,
76
- "selections": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/],
88
+ "selections": [v0 /*: any*/, v1 /*: any*/, v3 /*: any*/],
77
89
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
78
- }, v2 /*: any*/, {
79
- "args": null,
80
- "kind": "FragmentSpread",
81
- "name": "StoreModalProductLicenseSelection_collection"
82
- }],
90
+ }, v3 /*: any*/, v4 /*: any*/],
83
91
  "type": "FontCollection",
84
92
  "abstractKey": null
93
+ }, {
94
+ "kind": "InlineFragment",
95
+ "selections": [{
96
+ "args": v2 /*: any*/,
97
+ "kind": "FragmentSpread",
98
+ "name": "StoreModalPack_fontPack"
99
+ }, v4 /*: any*/],
100
+ "type": "FontPack",
101
+ "abstractKey": null
85
102
  }],
86
103
  "type": "Node",
87
104
  "abstractKey": "__isNode"
88
105
  };
89
106
  }();
90
- node.hash = "f7a9e591b5e1596f4d518fc5d9d46e91";
107
+ node.hash = "c8ce87bca2032637d922f535fc168f56";
91
108
  export default node;
@@ -1,21 +1,21 @@
1
1
  /**
2
- * @generated SignedSource<<608d0d717bb05ab7f819f61827e75a17>>
2
+ * @generated SignedSource<<38b46a5f53cd9dd5285d663772577989>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
6
6
  import { ReaderFragment } from 'relay-runtime';
7
7
  import { FragmentRefs } from "relay-runtime";
8
- export type StoreModalProductLicenseSelection_collection$data = {
8
+ export type StoreModalProductLicenseSelection_licenseable$data = {
9
9
  readonly id: string;
10
10
  readonly licenses: ReadonlyArray<{
11
11
  readonly id: string;
12
12
  readonly " $fragmentSpreads": FragmentRefs<"StoreModalProductLicense_license">;
13
13
  }> | null;
14
- readonly " $fragmentType": "StoreModalProductLicenseSelection_collection";
14
+ readonly " $fragmentType": "StoreModalProductLicenseSelection_licenseable";
15
15
  };
16
- export type StoreModalProductLicenseSelection_collection$key = {
17
- readonly " $data"?: StoreModalProductLicenseSelection_collection$data;
18
- readonly " $fragmentSpreads": FragmentRefs<"StoreModalProductLicenseSelection_collection">;
16
+ export type StoreModalProductLicenseSelection_licenseable$key = {
17
+ readonly " $data"?: StoreModalProductLicenseSelection_licenseable$data;
18
+ readonly " $fragmentSpreads": FragmentRefs<"StoreModalProductLicenseSelection_licenseable">;
19
19
  };
20
20
  declare const node: ReaderFragment;
21
21
  export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<608d0d717bb05ab7f819f61827e75a17>>
2
+ * @generated SignedSource<<38b46a5f53cd9dd5285d663772577989>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -20,7 +20,7 @@ const node = function () {
20
20
  "argumentDefinitions": [],
21
21
  "kind": "Fragment",
22
22
  "metadata": null,
23
- "name": "StoreModalProductLicenseSelection_collection",
23
+ "name": "StoreModalProductLicenseSelection_licenseable",
24
24
  "selections": [v0 /*: any*/, {
25
25
  "alias": null,
26
26
  "args": null,
@@ -35,9 +35,9 @@ const node = function () {
35
35
  }],
36
36
  "storageKey": null
37
37
  }],
38
- "type": "FontCollection",
39
- "abstractKey": null
38
+ "type": "Licenseable",
39
+ "abstractKey": "__isLicenseable"
40
40
  };
41
41
  }();
42
- node.hash = "c3609e849ae8057e71542d32716f3ddc";
42
+ node.hash = "4016af73fd5c8c03fa7bcdfba6ce0b9b";
43
43
  export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<8a2e025b087794002dfd85f1cf562386>>
2
+ * @generated SignedSource<<707ad44162117449e3674411f5f6f383>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */