fontdue-js 2.13.0 → 2.15.0-alpha1
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 +14 -0
- package/dist/__generated__/ShareCartCreateSnapshotMutation.graphql.d.ts +22 -0
- package/dist/__generated__/ShareCartCreateSnapshotMutation.graphql.js +84 -0
- package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +4 -1
- package/dist/__generated__/StoreModalCartQuery.graphql.js +62 -53
- package/dist/components/AddToCartBanner/index.js +1 -1
- package/dist/components/Cart/CartOrder.d.ts +2 -3
- package/dist/components/Cart/CartOrder.js +3 -4
- package/dist/components/Cart/CartTotals.js +1 -83
- package/dist/components/Cart/Download.js +6 -11
- package/dist/components/Cart/EmptyCart.d.ts +2 -3
- package/dist/components/Cart/EmptyCart.js +1 -2
- package/dist/components/Cart/ShareCart.d.ts +2 -0
- package/dist/components/Cart/ShareCart.js +89 -0
- package/dist/components/Cart/index.js +10 -16
- package/dist/components/CartButton/index.js +0 -14
- package/dist/components/ComponentsContext.d.ts +1 -1
- package/dist/components/ConfigContext.d.ts +11 -0
- package/dist/components/ConfigContext.js +4 -1
- package/dist/components/CookieNotification/index.js +10 -16
- package/dist/components/FontStyle/index.d.ts +1 -1
- package/dist/components/SKUPrice/index.js +1 -1
- package/dist/components/SelectField/index.js +2 -1
- package/dist/components/StoreModal/StoreModalCart.js +6 -2
- package/dist/components/StoreModal/index.js +18 -0
- package/dist/components/StripeProvider/index.d.ts +2 -2
- package/dist/components/StripeProvider/index.js +5 -1
- package/dist/components/TypeTester/useTypeTesterStyler.d.ts +1 -1
- package/dist/components/elements/StoreModalCartLayout/index.d.ts +1 -0
- package/dist/components/elements/StoreModalCartLayout/index.js +4 -1
- package/dist/components/elements/StoreModalFamily/index.d.ts +4 -4
- package/dist/components/useInterval.js +1 -1
- package/dist/fontdue.css +6 -6
- package/dist/hooks.d.ts +1 -1
- package/dist/reducer.d.ts +1 -1
- package/package.json +16 -19
- package/types/jsx-fix.d.ts +8 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface StoreModalFamilyProps {
|
|
3
3
|
children: {
|
|
4
|
-
stylesheet: React.ReactElement | null;
|
|
4
|
+
stylesheet: React.ReactElement<any> | null;
|
|
5
5
|
title: React.ReactNode;
|
|
6
|
-
familyButton: React.ReactElement
|
|
7
|
-
bundles?: React.ReactElement[] | null;
|
|
8
|
-
styleGroups?: React.ReactElement[][] | null;
|
|
6
|
+
familyButton: React.ReactElement<any>;
|
|
7
|
+
bundles?: React.ReactElement<any>[] | null;
|
|
8
|
+
styleGroups?: React.ReactElement<any>[][] | null;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
declare const StoreModalFamily: React.FunctionComponent<StoreModalFamilyProps>;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
const useInterval = (callback, delay) => {
|
|
9
|
-
const savedCallback = (0, _react.useRef)();
|
|
9
|
+
const savedCallback = (0, _react.useRef)(undefined);
|
|
10
10
|
|
|
11
11
|
// Remember the latest callback.
|
|
12
12
|
(0, _react.useEffect)(() => {
|
package/dist/fontdue.css
CHANGED
|
@@ -1289,6 +1289,10 @@ body[data-fontdue-store-modal=open] {
|
|
|
1289
1289
|
margin-bottom: 30px;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
|
+
.store-modal__cart__totals {
|
|
1293
|
+
grid-column: 2/span 1;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1292
1296
|
.store-modal__container__overlay {
|
|
1293
1297
|
position: fixed;
|
|
1294
1298
|
top: 0;
|
|
@@ -2156,6 +2160,8 @@ body[data-fontdue-store-modal=open] {
|
|
|
2156
2160
|
border: 1px solid var(--button_border_color);
|
|
2157
2161
|
color: var(--button_text_color);
|
|
2158
2162
|
padding: 10px 20px;
|
|
2163
|
+
width: 100%;
|
|
2164
|
+
text-align: center;
|
|
2159
2165
|
}
|
|
2160
2166
|
.cart-additions__expand-button:active, .cart-additions__expand-button:focus {
|
|
2161
2167
|
outline: none;
|
|
@@ -2552,13 +2558,8 @@ body[data-fontdue-store-modal=open] {
|
|
|
2552
2558
|
font-size: 22px;
|
|
2553
2559
|
}
|
|
2554
2560
|
|
|
2555
|
-
/* Share URL section */
|
|
2556
2561
|
.cart__share {
|
|
2557
|
-
margin-top: 20px;
|
|
2558
|
-
margin-bottom: 20px;
|
|
2559
|
-
padding-top: 20px;
|
|
2560
2562
|
width: 100%;
|
|
2561
|
-
border-top: 1px solid var(--horizontal_rule_color);
|
|
2562
2563
|
}
|
|
2563
2564
|
|
|
2564
2565
|
.cart__share-title {
|
|
@@ -2639,7 +2640,6 @@ body[data-fontdue-store-modal=open] {
|
|
|
2639
2640
|
.cart__share__share-button {
|
|
2640
2641
|
display: block;
|
|
2641
2642
|
width: 100%;
|
|
2642
|
-
margin-bottom: 60px;
|
|
2643
2643
|
}
|
|
2644
2644
|
|
|
2645
2645
|
.cart__share__copy-button {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const useNewPortalElement: () => import("react").
|
|
2
|
+
export declare const useNewPortalElement: () => import("react").RefObject<HTMLDivElement>;
|
package/dist/reducer.d.ts
CHANGED
|
@@ -97,5 +97,5 @@ export type FontdueAction = {
|
|
|
97
97
|
};
|
|
98
98
|
export declare const collectionSkuIdWithDiscount: (state: FontdueState, skuId: string) => [string, number] | [null, null];
|
|
99
99
|
declare const reducer: Reducer<FontdueState, FontdueAction>;
|
|
100
|
-
export declare function createDefaultStore(config: Config | undefined): import("redux").Store<FontdueState, FontdueAction>;
|
|
100
|
+
export declare function createDefaultStore(config: Config | undefined): import("redux").Store<FontdueState, FontdueAction, unknown>;
|
|
101
101
|
export default reducer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fontdue-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0-alpha1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npm run relay && run-p build-js build-css build-ts",
|
|
6
6
|
"build-js": "babel src --out-dir dist --extensions .ts,.tsx,.js,.jsx",
|
|
@@ -14,26 +14,25 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"browserslist": "last 5 versions or last 3 years and >0.1%, not ie <= 11, not ie_mob <= 11, not dead, unreleased versions",
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"react": "
|
|
18
|
-
"react-dom": "
|
|
17
|
+
"react": "18 || 19",
|
|
18
|
+
"react-dom": "18 || 19"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@react
|
|
21
|
+
"@emotion/react": "^11.14.0",
|
|
22
|
+
"@react-hook/resize-observer": "^2",
|
|
22
23
|
"@react-hook/window-size": "^3.0.7",
|
|
23
|
-
"@stripe/react-stripe-js": "^3.
|
|
24
|
-
"@stripe/stripe-js": "^7.
|
|
24
|
+
"@stripe/react-stripe-js": "^3.8.1",
|
|
25
|
+
"@stripe/stripe-js": "^7.7.0",
|
|
25
26
|
"classnames": "^2.2.5",
|
|
26
27
|
"draft-js": "^0.11.7",
|
|
27
28
|
"fast-deep-equal": "^2.0.1",
|
|
28
29
|
"fontfaceobserver": "^2.0.13",
|
|
29
30
|
"react-device-detect": "^2.2.3",
|
|
30
31
|
"react-error-boundary": "^4.1.2",
|
|
31
|
-
"react-redux": "^
|
|
32
|
-
"react-relay": "^
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"redux": "^4.0.0",
|
|
36
|
-
"relay-runtime": "^18.0.0",
|
|
32
|
+
"react-redux": "^9",
|
|
33
|
+
"react-relay": "^19.0.0",
|
|
34
|
+
"redux": "^5.0.0",
|
|
35
|
+
"relay-runtime": "^19.0.0",
|
|
37
36
|
"store": "^2.0.12",
|
|
38
37
|
"uuid": "^8.3.2"
|
|
39
38
|
},
|
|
@@ -45,18 +44,16 @@
|
|
|
45
44
|
"@babel/preset-typescript": "^7.18.0",
|
|
46
45
|
"@types/draft-js": "^0.10.44",
|
|
47
46
|
"@types/fontfaceobserver": "^2.1.0",
|
|
48
|
-
"@types/react": "
|
|
49
|
-
"@types/react-dom": "
|
|
47
|
+
"@types/react": "19.0.0",
|
|
48
|
+
"@types/react-dom": "19.0.0",
|
|
50
49
|
"@types/react-relay": "^16.0.0",
|
|
51
|
-
"@types/react-transition-group": "^4.4.4",
|
|
52
50
|
"@types/relay-runtime": "^17.0.0",
|
|
53
51
|
"@types/uuid": "^8.3.3",
|
|
54
|
-
"autoprefixer": "^9.6.0",
|
|
55
52
|
"babel-plugin-relay": "^18.0.0",
|
|
56
53
|
"npm-run-all": "^4.1.5",
|
|
57
54
|
"prettier": "2.0.5",
|
|
58
|
-
"react": "^
|
|
59
|
-
"react-dom": "^
|
|
55
|
+
"react": "^19.0.0",
|
|
56
|
+
"react-dom": "^19.0.0",
|
|
60
57
|
"relay-compiler": "^18.0.0",
|
|
61
58
|
"sass": "^1.62",
|
|
62
59
|
"typescript": "5.1.3"
|
|
@@ -73,7 +70,7 @@
|
|
|
73
70
|
"eagerEsModules": true
|
|
74
71
|
},
|
|
75
72
|
"resolutions": {
|
|
76
|
-
"@types/react": "
|
|
73
|
+
"@types/react": "19.0.0"
|
|
77
74
|
},
|
|
78
75
|
"exports": {
|
|
79
76
|
"./fontdue.css": "./dist/fontdue.css",
|