fontdue-js 0.1.0-alpha7 → 0.1.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/.nvmrc +1 -0
- package/BuyButton.d.ts +3 -0
- package/BuyButton.js +1 -0
- package/CartButton.d.ts +3 -0
- package/CartButton.js +1 -0
- package/FontdueProvider.d.ts +3 -0
- package/FontdueProvider.js +1 -0
- package/NewsletterSignup.d.ts +3 -0
- package/NewsletterSignup.js +1 -0
- package/README.md +170 -2
- package/StoreModal.d.ts +3 -0
- package/StoreModal.js +1 -0
- package/TestFontsForm.d.ts +3 -0
- package/TestFontsForm.js +1 -0
- package/TypeTester.d.ts +3 -0
- package/TypeTester.js +1 -0
- package/TypeTesters.d.ts +3 -0
- package/TypeTesters.js +1 -0
- package/dist/__generated__/CartOrderApplyCouponMutation.graphql.js +11 -4
- package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +11 -4
- package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +11 -4
- package/dist/__generated__/CartOrderUpdateMutation.graphql.js +11 -4
- package/dist/__generated__/CartOrder_viewer.graphql.js +7 -3
- package/dist/__generated__/CartQuery.graphql.js +18 -7
- package/dist/__generated__/CartStateApplyCouponMutation.graphql.js +11 -4
- package/dist/__generated__/CartStateRemoveDiscountMutation.graphql.js +11 -4
- package/dist/__generated__/CartStateUpdateMutation.graphql.js +11 -4
- package/dist/__generated__/CartTotals_order.graphql.d.ts +2 -1
- package/dist/__generated__/CartTotals_order.graphql.js +8 -2
- package/dist/__generated__/CharacterViewer_Query.graphql.d.ts +16 -0
- package/dist/__generated__/CharacterViewer_Query.graphql.js +255 -0
- package/dist/__generated__/CharacterViewer_collection.graphql.d.ts +49 -0
- package/dist/__generated__/CharacterViewer_collection.graphql.js +135 -0
- package/dist/__generated__/CharacterViewer_family.graphql.d.ts +28 -0
- package/dist/__generated__/CharacterViewer_family.graphql.js +102 -0
- package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +11 -4
- package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.js +11 -4
- package/dist/__generated__/PrecartAddToCartMutation.graphql.js +11 -4
- package/dist/__generated__/StoreModalCartQuery.graphql.js +11 -4
- package/dist/__generated__/StoreModalReviewCompleteOrderMutation.graphql.js +11 -4
- package/dist/__generated__/StoreModalReviewQuery.graphql.js +11 -4
- package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +11 -4
- package/dist/__generated__/TestFontsForm_Query.graphql.js +18 -9
- package/dist/__generated__/TestFontsForm_viewer.graphql.js +69 -57
- package/dist/__generated__/TypeTesterData_typeTester.graphql.d.ts +1 -0
- package/dist/__generated__/TypeTesterData_typeTester.graphql.js +48 -40
- package/dist/__generated__/TypeTesterFloatingToolbar_testers.graphql.d.ts +16 -0
- package/dist/__generated__/TypeTesterFloatingToolbar_testers.graphql.js +44 -0
- package/dist/__generated__/TypeTestersIDQuery.graphql.js +62 -14
- package/dist/__generated__/TypeTestersSlugQuery.graphql.js +62 -14
- package/dist/__generated__/TypeTesters_collection.graphql.d.ts +7 -1
- package/dist/__generated__/TypeTesters_collection.graphql.js +32 -4
- package/dist/components/AddToCartBanner/index.js +2 -2
- package/dist/components/BuyButton/index.js +0 -18
- package/dist/components/Cart/AddressFields.js +2 -2
- package/dist/components/Cart/CartItem/VariableTextInput.js +1 -1
- package/dist/components/Cart/CartItem/index.js +5 -5
- package/dist/components/Cart/CartOrder.js +1 -1
- package/dist/components/Cart/CartTotals.js +4 -4
- package/dist/components/Cart/Checkout.js +4 -3
- package/dist/components/Cart/CustomerFields.js +55 -45
- package/dist/components/CharacterViewer/index.d.ts +6 -0
- package/dist/components/CharacterViewer/index.js +245 -0
- package/dist/components/Checkbox/index.d.ts +4 -0
- package/dist/components/{FontLoader → Checkbox}/index.js +17 -47
- package/dist/components/ConfigContext.d.ts +6 -0
- package/dist/components/CouponText/index.js +1 -1
- package/dist/components/Family/index.js +1 -1
- package/dist/components/FontStyle/index.js +1 -1
- package/dist/components/FontdueProvider/index.d.ts +2 -2
- package/dist/components/Icons/Align.d.ts +4 -0
- package/dist/components/Icons/Align.js +63 -0
- package/dist/components/Icons/CheckboxCrossed.d.ts +3 -0
- package/dist/components/Icons/CheckboxCrossed.js +30 -0
- package/dist/components/Icons/index.d.ts +1 -0
- package/dist/components/Icons/index.js +8 -0
- package/dist/components/NewsletterSignup/index.d.ts +2 -0
- package/dist/components/NewsletterSignup/index.js +4 -2
- package/dist/components/Price/index.js +1 -1
- package/dist/components/PriceBar/PriceBarSection.js +2 -2
- package/dist/components/Root/index.d.ts +4 -0
- package/dist/components/Root/index.js +94 -50
- package/dist/components/Root/productState.js +1 -1
- package/dist/components/Select/index.d.ts +11 -0
- package/dist/components/Select/index.js +44 -0
- package/dist/components/StoreModal/StoreModalCart.js +8 -3
- package/dist/components/StoreModal/StoreModalCheckout.js +6 -2
- package/dist/components/StoreModal/StoreModalFamilyButton.js +4 -4
- package/dist/components/StoreModal/StoreModalIndex.js +28 -16
- package/dist/components/StoreModal/StoreModalProduct.js +9 -3
- package/dist/components/StoreModal/createRouter.js +0 -1
- package/dist/components/StoreModal/types.d.ts +4 -0
- package/dist/components/StoreModal/types.js +5 -0
- package/dist/components/StoreModalProductLicenseSelection/LicenseElement.js +24 -12
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +1 -1
- package/dist/components/StoreModalProductLicenseSelection/index.js +1 -1
- package/dist/components/StoreModalProductSummary/index.js +3 -1
- package/dist/components/TestFontsForm/index.d.ts +2 -0
- package/dist/components/TestFontsForm/index.js +22 -24
- package/dist/components/ThemeConfig/index.js +1 -1
- package/dist/components/TypeTester/TypeTesterAlignButtons.d.ts +8 -0
- package/dist/components/TypeTester/TypeTesterAlignButtons.js +39 -0
- package/dist/components/TypeTester/TypeTesterContent.d.ts +6 -2
- package/dist/components/TypeTester/TypeTesterContent.js +22 -6
- package/dist/components/TypeTester/TypeTesterContext.d.ts +51 -7
- package/dist/components/TypeTester/TypeTesterContext.js +119 -9
- package/dist/components/TypeTester/TypeTesterFeatures.d.ts +1 -2
- package/dist/components/TypeTester/TypeTesterFeatures.js +113 -15
- package/dist/components/TypeTester/TypeTesterFeaturesButton.js +2 -1
- package/dist/components/TypeTester/TypeTesterFloatingToolbar.d.ts +8 -0
- package/dist/components/TypeTester/TypeTesterFloatingToolbar.js +93 -0
- package/dist/components/TypeTester/TypeTesterInput.js +1 -1
- package/dist/components/TypeTester/TypeTesterStandalone.d.ts +4 -0
- package/dist/components/TypeTester/TypeTesterStandalone.js +19 -7
- package/dist/components/TypeTester/TypeTesterState.d.ts +23 -25
- package/dist/components/TypeTester/TypeTesterState.js +69 -71
- package/dist/components/TypeTester/TypeTesterStyleSelect.js +20 -26
- package/dist/components/TypeTester/TypeTesterStyleSelectData.d.ts +1 -1
- package/dist/components/TypeTester/TypeTesterStyleSelectData.js +3 -1
- package/dist/components/TypeTester/TypeTesterToolbar.d.ts +9 -0
- package/dist/components/TypeTester/TypeTesterToolbar.js +57 -0
- package/dist/components/TypeTester/index.d.ts +19 -6
- package/dist/components/TypeTester/index.js +121 -113
- package/dist/components/TypeTester/types.d.ts +1 -0
- package/dist/components/TypeTester/useTypeTesterStyler.d.ts +3 -1
- package/dist/components/TypeTester/useTypeTesterStyler.js +13 -11
- package/dist/components/TypeTesterData/index.js +2 -1
- package/dist/components/TypeTesters/index.d.ts +3 -0
- package/dist/components/TypeTesters/index.js +73 -23
- package/dist/components/elements/EmptyCart/index.js +1 -3
- package/dist/components/elements/StoreModalIndexItem/index.js +18 -16
- package/dist/components/elements/StoreModalReviewConfirm/index.js +7 -1
- package/dist/components/elements/StoreModalReviewLayout/index.js +1 -1
- package/dist/components/useFontStyle.js +1 -1
- package/dist/relay-environment.js +1 -1
- package/dist/utils.js +3 -3
- package/dist/vanilla/FontStyle.js +1 -1
- package/fontdue.css +1650 -1052
- package/fontdue.css.map +1 -0
- package/package.json +12 -11
- package/useFontStyle.d.ts +3 -0
- package/useFontStyle.js +1 -0
- package/dist/index.js +0 -63
- package/dist/type-tester.js +0 -23
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v14.13.1
|
package/BuyButton.d.ts
ADDED
package/BuyButton.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/components/BuyButton');
|
package/CartButton.d.ts
ADDED
package/CartButton.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/components/CartButton');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/components/FontdueProvider');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/components/NewsletterSignup');
|
package/README.md
CHANGED
|
@@ -1,5 +1,173 @@
|
|
|
1
1
|
# fontdue-js
|
|
2
2
|
|
|
3
|
-
[Fontdue.js](https://docs.fontdue.com) components for
|
|
3
|
+
This package exports [Fontdue.js](https://docs.fontdue.com/fontduejs) components for React projects.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
1. Wrap the root of your project with the [`FontdueProvider`](#fontdueprovider) component. For example in a Next.js app, add it to your `_app.tsx`.
|
|
8
|
+
2. Replace the `url` property with your Fontdue store URL.
|
|
9
|
+
3. Render the [`StoreModal`](#storemodal) component so that is it available on every page.
|
|
10
|
+
4. Import the `fontdue-js/fontdue.css` CSS file. (This example uses Next.js)
|
|
11
|
+
|
|
12
|
+
### Example
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import type { AppProps } from 'next/app';
|
|
16
|
+
import Head from 'next/head';
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import FontdueProvider from 'fontdue-js/FontdueProvider';
|
|
19
|
+
import StoreModal from 'fontdue-js/StoreModal';
|
|
20
|
+
import 'fontdue-js/fontdue.css';
|
|
21
|
+
|
|
22
|
+
function MyApp({ Component, pageProps }: AppProps) {
|
|
23
|
+
return (
|
|
24
|
+
<React.Fragment>
|
|
25
|
+
<FontdueProvider url="https://example.fontdue.com" config={{}}>
|
|
26
|
+
<Component {...pageProps} />
|
|
27
|
+
|
|
28
|
+
<StoreModal />
|
|
29
|
+
</FontdueProvider>
|
|
30
|
+
</React.Fragment>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default MyApp;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## IDs
|
|
38
|
+
|
|
39
|
+
⚠️ Some components accept a `collectionId` prop. Note this is the `id` returned from the [GraphQL API](https://docs.fontdue.com/graphql-api).
|
|
40
|
+
|
|
41
|
+
You may alternatively specify a `collectionSlug` for these components, which can be useful if you are not consuming the GraphQL API. However, we recommend using `collectionId` when possible.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
# Components
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## `FontdueProvider`
|
|
49
|
+
|
|
50
|
+
The FontdueProvider provides necessary context for all the other Fontdue.js components, so it must be an ancestor of all other components. See example above for usage.
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
import FontdueProvider from 'fontdue-js/FontdueProvider';
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
| Prop | Description |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| `url` | `string` Your Fontdue store URL, in the form `https://your-site.fontdue.com`. |
|
|
59
|
+
| `config` | `object` Config object. Refer to the [Fontdue.js docs site](https://docs.fontdue.com/fontduejs#b3dec49aa08240bba2b4c71a67c08333) for available config options. |
|
|
60
|
+
| `components` | `object` Component view overrides. This API will likely change. |
|
|
61
|
+
|
|
62
|
+
## `StoreModal`
|
|
63
|
+
|
|
64
|
+
Renders the Fontdue cart + checkout experience as a modal. This appears when a user clicks on a [`BuyButton`](#buybutton) or the buy button within [`TypeTesters`](#typetesters)
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
import StoreModal from 'fontdue-js/StoreModal';
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## `BuyButton`
|
|
71
|
+
|
|
72
|
+
Show a **Buy** button for a particular collection. When clicked, opens the StoreModal showing that collection.
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
import BuyButton from 'fontdue-js/BuyButton';
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
| Prop | Description |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| `collectionId` or `collectionSlug` | (Required) `string` Collection identifier |
|
|
81
|
+
| `collectionName` | (Optional) `string` Name to display as a suffix in the button: `Buy {collectionName}` |
|
|
82
|
+
|
|
83
|
+
## `CartButton`
|
|
84
|
+
|
|
85
|
+
A cart button. When clicked, it opens the StoreModal. If a user has items in their cart, it will show the current cart. Otherwise, it shows the index "Browse" page of the StoreModal.
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
import CartButton from 'fontdue-js/CartButton';
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
| Prop | Description |
|
|
92
|
+
| --- | --- |
|
|
93
|
+
| `buttonStyle` | (Optional) `'icon' \| 'inline'` Style of the button. Defaults to an unstyled button. |
|
|
94
|
+
| `label` | (Optional) `string` Text label instead of "Cart" when `buttonStyle` is not `icon`. |
|
|
95
|
+
|
|
96
|
+
## `TypeTesters`
|
|
97
|
+
|
|
98
|
+
Displays a list of type testers for a collection, by pulling data from the Fontdue CMS for that collection.
|
|
99
|
+
|
|
100
|
+
```tsx
|
|
101
|
+
import TypeTesters from 'fontdue-js/TypeTesters';
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
| Prop | Description |
|
|
105
|
+
| --- | --- |
|
|
106
|
+
| `collectionId` or `collectionSlug` | (Required) `string` Identifier for collection |
|
|
107
|
+
| `defaultMode` | (Optional) `'local' \| 'global'` The mode refers to the toggle in the UI: Affect all styles. `local` mode has this toggle turned off by default, `global` turns it on |
|
|
108
|
+
| `autofit` | (Optional) `boolean` Set to `true` to make the sentences fit on one line. It will adjust to the width of the tester as the user changes their browser window. If the user changes the font size or edits content, autofitting is turned off for that tester |
|
|
109
|
+
| `tags` | (Optional) `string[]` Will render only type testers that include one of the tags |
|
|
110
|
+
| `excludeTags` | (Optional) `string[]` Will exclude type testers that include one of the tags |
|
|
111
|
+
| `onFocus` | (Optional) `() => void` when any type tester is focused |
|
|
112
|
+
| `onBlur` | (Optional) `() => void` when any type tester is blurred |
|
|
113
|
+
| `onToolbarOpenClose` | (Optional) `(open: boolean) => void` Callback when toolbar is opened/closed |
|
|
114
|
+
|
|
115
|
+
## `TypeTester`
|
|
116
|
+
|
|
117
|
+
Standalone version of the type tester, which does not query the Fontdue CMS for content. You supply the content instead. Does not support the "Affect all styles" feature of the TypeTesters component.
|
|
118
|
+
|
|
119
|
+
The props accepted for this compnenent will change and be documented thereafter.
|
|
120
|
+
|
|
121
|
+
```tsx
|
|
122
|
+
import TypeTester from 'fontdue-js/TypeTester';
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## `NewsletterSignup`
|
|
126
|
+
|
|
127
|
+
A newsletter signup form. Customers entering their information here simply adds them as a Customer in the Fontdue CMS.
|
|
128
|
+
|
|
129
|
+
```tsx
|
|
130
|
+
import NewsletterSignup from 'fontdue-js/NewsletterSignup';
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
| Prop | Description |
|
|
134
|
+
| --- | --- |
|
|
135
|
+
| `optInLabel` | (Required) `string` Label that appears with the checkbox required to be checked. |
|
|
136
|
+
| `buttonLabel` | (Optional) `string` Label for the button. Defaults to "Subscribe" |
|
|
137
|
+
| `optInCheckboxChecked` | (Optional) `boolean` Set the checkbox checked by default. |
|
|
138
|
+
|
|
139
|
+
## `TestFontsForm`
|
|
140
|
+
|
|
141
|
+
Displays a form for users to enter their information in order to download test fonts. Make sure you have configured [Test Fonts](https://docs.fontdue.com/test-fonts) for this to work.
|
|
142
|
+
|
|
143
|
+
```tsx
|
|
144
|
+
import TestFontsForm from 'fontdue-js/TestFontsForm';
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
| Prop | Description |
|
|
148
|
+
| --- | --- |
|
|
149
|
+
| `agreementLabel` | (Optional) `string` Label for required checkbox. Defaults to the field "EULA agreement text" in your Fontdue Labels settings |
|
|
150
|
+
| `downloadLabel` | (Optional) `string` Download button label. Defaults to "Download test fonts" |
|
|
151
|
+
| `newsletterCheckboxChecked` | (Optional) `boolean` Set the newsletter opt-in checkbox checked by default |
|
|
152
|
+
|
|
153
|
+
## `useFontStyle`
|
|
154
|
+
|
|
155
|
+
A hook to load and render a particular font style. The fallback/loading style is a series of dots rather than any fallback system font.
|
|
156
|
+
|
|
157
|
+
Note that you must first load the relevant CSS for the font family (ideally in the `<head>` of your page). You can find the CSS URL by querying the `FontCollection.cssUrl` field in the Graphql API for the relevant family, or find the HTML code in the Fontdue CMS, under the Webfonts tab of the family. (For superfamilies, you must get load the CSS for each subfamily).
|
|
158
|
+
|
|
159
|
+
```tsx
|
|
160
|
+
import useFontStyle from 'fontdue-js/useFontStyle';
|
|
161
|
+
|
|
162
|
+
const FontStyle = ({ familyName, styleName }) => {
|
|
163
|
+
const { style } = useFontStyle({
|
|
164
|
+
fontFamily: `${familyName} ${styleName}`,
|
|
165
|
+
fontWeight: '400',
|
|
166
|
+
fontStyle: 'normal',
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
return <span style={style}>The quick brown box</span>;
|
|
170
|
+
};
|
|
171
|
+
```
|
|
172
|
+
|
|
4
173
|
|
|
5
|
-
This is currently alpha software.
|
package/StoreModal.d.ts
ADDED
package/StoreModal.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/components/StoreModal');
|
package/TestFontsForm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/components/TestFontsForm');
|
package/TypeTester.d.ts
ADDED
package/TypeTester.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/components/TypeTester/TypeTesterStandalone');
|
package/TypeTesters.d.ts
ADDED
package/TypeTesters.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/components/TypeTesters');
|
|
@@ -166,7 +166,8 @@ fragment CartTotals_order on Order {
|
|
|
166
166
|
taxes {
|
|
167
167
|
...Price_price
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
taxName
|
|
170
|
+
gstIncluded
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
fragment Checkout_order on Order {
|
|
@@ -694,7 +695,13 @@ const node = function () {
|
|
|
694
695
|
"alias": null,
|
|
695
696
|
"args": null,
|
|
696
697
|
"kind": "ScalarField",
|
|
697
|
-
"name": "
|
|
698
|
+
"name": "taxName",
|
|
699
|
+
"storageKey": null
|
|
700
|
+
}, {
|
|
701
|
+
"alias": null,
|
|
702
|
+
"args": null,
|
|
703
|
+
"kind": "ScalarField",
|
|
704
|
+
"name": "gstIncluded",
|
|
698
705
|
"storageKey": null
|
|
699
706
|
}, {
|
|
700
707
|
"alias": null,
|
|
@@ -994,12 +1001,12 @@ const node = function () {
|
|
|
994
1001
|
}]
|
|
995
1002
|
},
|
|
996
1003
|
"params": {
|
|
997
|
-
"cacheID": "
|
|
1004
|
+
"cacheID": "f264d5ef0dbf07ecf3756eb5621099a6",
|
|
998
1005
|
"id": null,
|
|
999
1006
|
"metadata": {},
|
|
1000
1007
|
"name": "CartOrderApplyCouponMutation",
|
|
1001
1008
|
"operationKind": "mutation",
|
|
1002
|
-
"text": "mutation CartOrderApplyCouponMutation(\n $input: ApplyCouponInput!\n) {\n applyCoupon(input: $input) {\n order {\n ...CartOrder_order\n id\n }\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n
|
|
1009
|
+
"text": "mutation CartOrderApplyCouponMutation(\n $input: ApplyCouponInput!\n) {\n applyCoupon(input: $input) {\n order {\n ...CartOrder_order\n id\n }\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n taxName\n gstIncluded\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n families: children(collectionTypes: [FAMILY]) {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponCodeInput_order on Order {\n id\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n"
|
|
1003
1010
|
}
|
|
1004
1011
|
};
|
|
1005
1012
|
}();
|
|
@@ -165,7 +165,8 @@ fragment CartTotals_order on Order {
|
|
|
165
165
|
taxes {
|
|
166
166
|
...Price_price
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
taxName
|
|
169
|
+
gstIncluded
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
fragment Checkout_order on Order {
|
|
@@ -684,7 +685,13 @@ const node = function () {
|
|
|
684
685
|
"alias": null,
|
|
685
686
|
"args": null,
|
|
686
687
|
"kind": "ScalarField",
|
|
687
|
-
"name": "
|
|
688
|
+
"name": "taxName",
|
|
689
|
+
"storageKey": null
|
|
690
|
+
}, {
|
|
691
|
+
"alias": null,
|
|
692
|
+
"args": null,
|
|
693
|
+
"kind": "ScalarField",
|
|
694
|
+
"name": "gstIncluded",
|
|
688
695
|
"storageKey": null
|
|
689
696
|
}, {
|
|
690
697
|
"alias": null,
|
|
@@ -986,12 +993,12 @@ const node = function () {
|
|
|
986
993
|
}]
|
|
987
994
|
},
|
|
988
995
|
"params": {
|
|
989
|
-
"cacheID": "
|
|
996
|
+
"cacheID": "fd10a0bd175b56a35283c36859f9b83e",
|
|
990
997
|
"id": null,
|
|
991
998
|
"metadata": {},
|
|
992
999
|
"name": "CartOrderCompleteOrderMutation",
|
|
993
1000
|
"operationKind": "mutation",
|
|
994
|
-
"text": "mutation CartOrderCompleteOrderMutation {\n completeOrder {\n order {\n ...CartOrder_order\n id\n }\n requiresAction\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n
|
|
1001
|
+
"text": "mutation CartOrderCompleteOrderMutation {\n completeOrder {\n order {\n ...CartOrder_order\n id\n }\n requiresAction\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n taxName\n gstIncluded\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n families: children(collectionTypes: [FAMILY]) {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponCodeInput_order on Order {\n id\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n"
|
|
995
1002
|
}
|
|
996
1003
|
};
|
|
997
1004
|
}();
|
|
@@ -164,7 +164,8 @@ fragment CartTotals_order on Order {
|
|
|
164
164
|
taxes {
|
|
165
165
|
...Price_price
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
taxName
|
|
168
|
+
gstIncluded
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
fragment Checkout_order on Order {
|
|
@@ -674,7 +675,13 @@ const node = function () {
|
|
|
674
675
|
"alias": null,
|
|
675
676
|
"args": null,
|
|
676
677
|
"kind": "ScalarField",
|
|
677
|
-
"name": "
|
|
678
|
+
"name": "taxName",
|
|
679
|
+
"storageKey": null
|
|
680
|
+
}, {
|
|
681
|
+
"alias": null,
|
|
682
|
+
"args": null,
|
|
683
|
+
"kind": "ScalarField",
|
|
684
|
+
"name": "gstIncluded",
|
|
678
685
|
"storageKey": null
|
|
679
686
|
}, {
|
|
680
687
|
"alias": null,
|
|
@@ -974,12 +981,12 @@ const node = function () {
|
|
|
974
981
|
}]
|
|
975
982
|
},
|
|
976
983
|
"params": {
|
|
977
|
-
"cacheID": "
|
|
984
|
+
"cacheID": "2f52ce7a75cf90824097f5131937cfd0",
|
|
978
985
|
"id": null,
|
|
979
986
|
"metadata": {},
|
|
980
987
|
"name": "CartOrderRemoveDiscountMutation",
|
|
981
988
|
"operationKind": "mutation",
|
|
982
|
-
"text": "mutation CartOrderRemoveDiscountMutation {\n removeDiscount {\n order {\n ...CartOrder_order\n id\n }\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n
|
|
989
|
+
"text": "mutation CartOrderRemoveDiscountMutation {\n removeDiscount {\n order {\n ...CartOrder_order\n id\n }\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n taxName\n gstIncluded\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n families: children(collectionTypes: [FAMILY]) {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponCodeInput_order on Order {\n id\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n"
|
|
983
990
|
}
|
|
984
991
|
};
|
|
985
992
|
}();
|
|
@@ -171,7 +171,8 @@ fragment CartTotals_order on Order {
|
|
|
171
171
|
taxes {
|
|
172
172
|
...Price_price
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
taxName
|
|
175
|
+
gstIncluded
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
fragment Checkout_order on Order {
|
|
@@ -726,7 +727,13 @@ const node = function () {
|
|
|
726
727
|
"alias": null,
|
|
727
728
|
"args": null,
|
|
728
729
|
"kind": "ScalarField",
|
|
729
|
-
"name": "
|
|
730
|
+
"name": "taxName",
|
|
731
|
+
"storageKey": null
|
|
732
|
+
}, {
|
|
733
|
+
"alias": null,
|
|
734
|
+
"args": null,
|
|
735
|
+
"kind": "ScalarField",
|
|
736
|
+
"name": "gstIncluded",
|
|
730
737
|
"storageKey": null
|
|
731
738
|
}, {
|
|
732
739
|
"alias": null,
|
|
@@ -1028,12 +1035,12 @@ const node = function () {
|
|
|
1028
1035
|
}]
|
|
1029
1036
|
},
|
|
1030
1037
|
"params": {
|
|
1031
|
-
"cacheID": "
|
|
1038
|
+
"cacheID": "236dfad074db7ddfd846dacc808bcfeb",
|
|
1032
1039
|
"id": null,
|
|
1033
1040
|
"metadata": {},
|
|
1034
1041
|
"name": "CartOrderUpdateMutation",
|
|
1035
1042
|
"operationKind": "mutation",
|
|
1036
|
-
"text": "mutation CartOrderUpdateMutation(\n $input: UpdateOrderInput!\n) {\n updateOrder(input: $input) {\n order {\n ...CartOrder_order\n id\n }\n errors {\n orderItems {\n licenseSelections\n }\n }\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n
|
|
1043
|
+
"text": "mutation CartOrderUpdateMutation(\n $input: UpdateOrderInput!\n) {\n updateOrder(input: $input) {\n order {\n ...CartOrder_order\n id\n }\n errors {\n orderItems {\n licenseSelections\n }\n }\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n taxName\n gstIncluded\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n families: children(collectionTypes: [FAMILY]) {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponCodeInput_order on Order {\n id\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n"
|
|
1037
1044
|
}
|
|
1038
1045
|
};
|
|
1039
1046
|
}();
|
|
@@ -23,10 +23,14 @@ const node = {
|
|
|
23
23
|
"plural": false,
|
|
24
24
|
"selections": [{
|
|
25
25
|
"alias": null,
|
|
26
|
-
"args":
|
|
26
|
+
"args": [{
|
|
27
|
+
"kind": "Literal",
|
|
28
|
+
"name": "format",
|
|
29
|
+
"value": "HTML"
|
|
30
|
+
}],
|
|
27
31
|
"kind": "ScalarField",
|
|
28
32
|
"name": "eulaAgreementLabel",
|
|
29
|
-
"storageKey":
|
|
33
|
+
"storageKey": "eulaAgreementLabel(format:\"HTML\")"
|
|
30
34
|
}],
|
|
31
35
|
"storageKey": null
|
|
32
36
|
}, {
|
|
@@ -45,6 +49,6 @@ const node = {
|
|
|
45
49
|
"type": "Viewer",
|
|
46
50
|
"abstractKey": null
|
|
47
51
|
};
|
|
48
|
-
node.hash = '
|
|
52
|
+
node.hash = '43e3f6416c11542af964035f3c40bade';
|
|
49
53
|
var _default = node;
|
|
50
54
|
exports.default = _default;
|
|
@@ -165,7 +165,7 @@ fragment CartOrder_viewer on Viewer {
|
|
|
165
165
|
...CartItem_viewer
|
|
166
166
|
...Checkout_viewer
|
|
167
167
|
settings {
|
|
168
|
-
eulaAgreementLabel
|
|
168
|
+
eulaAgreementLabel(format: HTML)
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -194,7 +194,8 @@ fragment CartTotals_order on Order {
|
|
|
194
194
|
taxes {
|
|
195
195
|
...Price_price
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
taxName
|
|
198
|
+
gstIncluded
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
fragment Cart_viewer on Viewer {
|
|
@@ -565,10 +566,14 @@ const node = function () {
|
|
|
565
566
|
"storageKey": null
|
|
566
567
|
}, {
|
|
567
568
|
"alias": null,
|
|
568
|
-
"args":
|
|
569
|
+
"args": [{
|
|
570
|
+
"kind": "Literal",
|
|
571
|
+
"name": "format",
|
|
572
|
+
"value": "HTML"
|
|
573
|
+
}],
|
|
569
574
|
"kind": "ScalarField",
|
|
570
575
|
"name": "eulaAgreementLabel",
|
|
571
|
-
"storageKey":
|
|
576
|
+
"storageKey": "eulaAgreementLabel(format:\"HTML\")"
|
|
572
577
|
}],
|
|
573
578
|
"storageKey": null
|
|
574
579
|
}, {
|
|
@@ -851,7 +856,13 @@ const node = function () {
|
|
|
851
856
|
"alias": null,
|
|
852
857
|
"args": null,
|
|
853
858
|
"kind": "ScalarField",
|
|
854
|
-
"name": "
|
|
859
|
+
"name": "taxName",
|
|
860
|
+
"storageKey": null
|
|
861
|
+
}, {
|
|
862
|
+
"alias": null,
|
|
863
|
+
"args": null,
|
|
864
|
+
"kind": "ScalarField",
|
|
865
|
+
"name": "gstIncluded",
|
|
855
866
|
"storageKey": null
|
|
856
867
|
}, {
|
|
857
868
|
"alias": null,
|
|
@@ -1153,12 +1164,12 @@ const node = function () {
|
|
|
1153
1164
|
}]
|
|
1154
1165
|
},
|
|
1155
1166
|
"params": {
|
|
1156
|
-
"cacheID": "
|
|
1167
|
+
"cacheID": "9f918e79bfe86a0e3bb1589f40e85ae7",
|
|
1157
1168
|
"id": null,
|
|
1158
1169
|
"metadata": {},
|
|
1159
1170
|
"name": "CartQuery",
|
|
1160
1171
|
"operationKind": "query",
|
|
1161
|
-
"text": "query CartQuery {\n viewer {\n ...Cart_viewer\n id\n }\n}\n\nfragment AddressFields_viewer on Viewer {\n countries {\n code\n name\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartItem_viewer on Viewer {\n licenses(licenseTypes: [RETAIL]) {\n id\n name\n variables: licenseVariables {\n id\n name\n variableType\n options: licenseOptions {\n id\n amount\n name\n }\n }\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartOrder_viewer on Viewer {\n ...CartItem_viewer\n ...Checkout_viewer\n settings {\n eulaAgreementLabel\n }\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n
|
|
1172
|
+
"text": "query CartQuery {\n viewer {\n ...Cart_viewer\n id\n }\n}\n\nfragment AddressFields_viewer on Viewer {\n countries {\n code\n name\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartItem_viewer on Viewer {\n licenses(licenseTypes: [RETAIL]) {\n id\n name\n variables: licenseVariables {\n id\n name\n variableType\n options: licenseOptions {\n id\n amount\n name\n }\n }\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CouponCodeInput_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n clientSecret\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartOrder_viewer on Viewer {\n ...CartItem_viewer\n ...Checkout_viewer\n settings {\n eulaAgreementLabel(format: HTML)\n }\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n taxName\n gstIncluded\n}\n\nfragment Cart_viewer on Viewer {\n ...StripeProvider_viewer\n ...CartOrder_viewer\n currentOrder {\n ...CartOrder_order\n id\n }\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment Checkout_viewer on Viewer {\n ...AddressFields_viewer\n settings {\n uiFontName\n newsletterOptInLabel\n }\n themeConfig {\n customProperties\n }\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n families: children(collectionTypes: [FAMILY]) {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponCodeInput_order on Order {\n id\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StripeProvider_viewer on Viewer {\n settings {\n uiFontUrl\n }\n stripeCredentials {\n stripePublishableKey\n }\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n"
|
|
1162
1173
|
}
|
|
1163
1174
|
};
|
|
1164
1175
|
}();
|
|
@@ -48,7 +48,8 @@ fragment CartTotals_order on Order {
|
|
|
48
48
|
taxes {
|
|
49
49
|
...Price_price
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
taxName
|
|
52
|
+
gstIncluded
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
fragment CouponCodeInput_order on Order {
|
|
@@ -269,7 +270,13 @@ const node = function () {
|
|
|
269
270
|
"alias": null,
|
|
270
271
|
"args": null,
|
|
271
272
|
"kind": "ScalarField",
|
|
272
|
-
"name": "
|
|
273
|
+
"name": "taxName",
|
|
274
|
+
"storageKey": null
|
|
275
|
+
}, {
|
|
276
|
+
"alias": null,
|
|
277
|
+
"args": null,
|
|
278
|
+
"kind": "ScalarField",
|
|
279
|
+
"name": "gstIncluded",
|
|
273
280
|
"storageKey": null
|
|
274
281
|
}],
|
|
275
282
|
"storageKey": null
|
|
@@ -278,12 +285,12 @@ const node = function () {
|
|
|
278
285
|
}]
|
|
279
286
|
},
|
|
280
287
|
"params": {
|
|
281
|
-
"cacheID": "
|
|
288
|
+
"cacheID": "33e81e5f8180a4ce10e13e278d06465f",
|
|
282
289
|
"id": null,
|
|
283
290
|
"metadata": {},
|
|
284
291
|
"name": "CartStateApplyCouponMutation",
|
|
285
292
|
"operationKind": "mutation",
|
|
286
|
-
"text": "mutation CartStateApplyCouponMutation(\n $input: ApplyCouponInput!\n) {\n applyCoupon(input: $input) {\n order {\n ...CouponCodeInput_order\n ...CartTotals_order\n id\n }\n }\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n
|
|
293
|
+
"text": "mutation CartStateApplyCouponMutation(\n $input: ApplyCouponInput!\n) {\n applyCoupon(input: $input) {\n order {\n ...CouponCodeInput_order\n ...CartTotals_order\n id\n }\n }\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxes {\n ...Price_price\n }\n taxName\n gstIncluded\n}\n\nfragment CouponCodeInput_order on Order {\n id\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n"
|
|
287
294
|
}
|
|
288
295
|
};
|
|
289
296
|
}();
|