|
1 | 1 | { |
2 | | - "name": "@salesforce/commerce-sdk-react", |
3 | | - "version": "5.1.0-dev", |
4 | | - "description": "A library that provides react hooks for fetching data from Commerce Cloud", |
5 | | - "homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/ecom-react-hooks#readme", |
6 | | - "bugs": { |
7 | | - "url": "https://github.com/SalesforceCommerceCloud/pwa-kit/issues" |
8 | | - }, |
9 | | - "repository": { |
10 | | - "type": "git", |
11 | | - "url": "git+https://github.com/SalesforceCommerceCloud/pwa-kit.git" |
12 | | - }, |
13 | | - "license": "See license in LICENSE", |
14 | | - "author": "cc-pwa-kit@salesforce.com", |
15 | | - "main": "dist/index.js", |
16 | | - "types": "dist/index.d.ts", |
17 | | - "sideEffects": false, |
18 | | - "exports": { |
19 | | - ".": { |
20 | | - "types": "./dist/index.d.ts", |
21 | | - "import": "./dist/index.js", |
22 | | - "require": "./dist/index.js", |
23 | | - "default": "./dist/index.js" |
| 2 | + "name": "@salesforce/commerce-sdk-react", |
| 3 | + "version": "5.1.0-dev", |
| 4 | + "description": "A library that provides react hooks for fetching data from Commerce Cloud", |
| 5 | + "homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/ecom-react-hooks#readme", |
| 6 | + "bugs": { |
| 7 | + "url": "https://github.com/SalesforceCommerceCloud/pwa-kit/issues" |
24 | 8 | }, |
25 | | - "./page-designer": { |
26 | | - "types": "./dist/page-designer/index.d.ts", |
27 | | - "import": "./dist/page-designer/index.js", |
28 | | - "require": "./dist/page-designer/index.js", |
29 | | - "default": "./dist/page-designer/index.js" |
| 9 | + "repository": { |
| 10 | + "type": "git", |
| 11 | + "url": "git+https://github.com/SalesforceCommerceCloud/pwa-kit.git" |
30 | 12 | }, |
31 | | - "./hooks/*": "./dist/hooks/*", |
32 | | - "./components": "./dist/components/index.js", |
33 | | - "./package.json": "./package.json" |
34 | | - }, |
35 | | - "files": [ |
36 | | - "CHANGELOG.md", |
37 | | - "LICENSE", |
38 | | - "+(auth|components|hooks|scripts|page-designer)/**/!(*.test*).{ts,js}", |
39 | | - "*.{js,d.ts}", |
40 | | - "!*.test*.{js,d.ts}", |
41 | | - "!test*.*", |
42 | | - "!+(jest|babel).config.js", |
43 | | - "!setup-jest.js" |
44 | | - ], |
45 | | - "scripts": { |
46 | | - "build": "cross-env NODE_ENV=production internal-lib-build build && tsc --emitDeclarationOnly", |
47 | | - "build:docs": "typedoc --plugin typedoc-plugin-missing-exports --hideGenerator", |
48 | | - "build:watch": "nodemon --watch 'src/**' --ext 'tsx,ts' --exec 'npm run build'", |
49 | | - "format": "internal-lib-build format \"**/*.{js,jsx,ts,tsx}\"", |
50 | | - "lint": "npm run lint:js && npm run typecheck", |
51 | | - "lint:fix": "npm run lint:js -- --fix && npm run typecheck", |
52 | | - "lint:js": "pwa-kit-dev lint \"**/*.{js,jsx,ts,tsx}\"", |
53 | | - "prepare": "npm run build", |
54 | | - "test": "internal-lib-build test", |
55 | | - "test:inspect": "node --inspect-brk jest --runInBand", |
56 | | - "test:watch": "npm test -- --watch", |
57 | | - "typecheck": "tsc --noEmit", |
58 | | - "version": "node ./scripts/version.js" |
59 | | - }, |
60 | | - "dependencies": { |
61 | | - "commerce-sdk-isomorphic": "5.0.0", |
62 | | - "@salesforce/storefront-next-runtime": "0.1.1", |
63 | | - "js-cookie": "^3.0.1", |
64 | | - "jwt-decode": "^4.0.0" |
65 | | - }, |
66 | | - "devDependencies": { |
67 | | - "@salesforce/pwa-kit-dev": "3.17.0-dev", |
68 | | - "@tanstack/react-query": "^4.28.0", |
69 | | - "@testing-library/jest-dom": "^5.16.5", |
70 | | - "@testing-library/react": "^14.0.0", |
71 | | - "@testing-library/user-event": "14.4.3", |
72 | | - "@types/js-cookie": "~3.0.3", |
73 | | - "@types/jsdom": "^16.2.15", |
74 | | - "@types/jsonwebtoken": "~9.0.0", |
75 | | - "@types/node": "~16.0.3", |
76 | | - "@types/prop-types": "~15.7.9", |
77 | | - "@types/react": "~18.2.0", |
78 | | - "@types/react-dom": "~18.2.1", |
79 | | - "@types/react-helmet": "~6.1.6", |
80 | | - "@types/react-router-dom": "~5.3.3", |
81 | | - "cross-env": "^5.2.1", |
82 | | - "internal-lib-build": "3.17.0-dev", |
83 | | - "jsonwebtoken": "^9.0.0", |
84 | | - "nock": "^13.3.0", |
85 | | - "nodemon": "^2.0.22", |
86 | | - "react": "^18.2.0", |
87 | | - "react-dom": "^18.2.0", |
88 | | - "react-helmet": "^6.1.0", |
89 | | - "react-router-dom": "^5.3.4", |
90 | | - "semver": "^7.5.2", |
91 | | - "shelljs": "^0.9.2", |
92 | | - "typedoc": "^0.24.7", |
93 | | - "typedoc-plugin-missing-exports": "^2.0.0", |
94 | | - "typescript": "4.9.5" |
95 | | - }, |
96 | | - "peerDependencies": { |
97 | | - "@tanstack/react-query": "^4.28.0", |
98 | | - "react": "^17.0.0 || ^18.0.0", |
99 | | - "react-helmet": "^6.1.0" |
100 | | - }, |
101 | | - "optionalDependencies": { |
102 | | - "prop-types": "^15.8.1", |
103 | | - "react-router-dom": "^5.3.4" |
104 | | - }, |
105 | | - "engines": { |
106 | | - "node": "^18.0.0 || ^20.0.0 || ^22.0.0 || ^24.0.0", |
107 | | - "npm": "^9.0.0 || ^10.0.0 || ^11.0.0" |
108 | | - }, |
109 | | - "overrides": { |
110 | | - "@salesforce/storefront-next-runtime": { |
111 | | - "react": "^18.2.0", |
112 | | - "react-dom": "^18.2.0" |
| 13 | + "license": "See license in LICENSE", |
| 14 | + "author": "cc-pwa-kit@salesforce.com", |
| 15 | + "main": "dist/index.js", |
| 16 | + "types": "dist/index.d.ts", |
| 17 | + "exports": { |
| 18 | + ".": { |
| 19 | + "types": "./dist/index.d.ts", |
| 20 | + "import": "./dist/index.js", |
| 21 | + "require": "./dist/index.js", |
| 22 | + "default": "./dist/index.js" |
| 23 | + }, |
| 24 | + "./auth": { |
| 25 | + "types": "./dist/auth/index.d.ts", |
| 26 | + "import": "./dist/auth/index.js", |
| 27 | + "require": "./dist/auth/index.js", |
| 28 | + "default": "./dist/auth/index.js" |
| 29 | + }, |
| 30 | + "./hooks": { |
| 31 | + "types": "./dist/hooks/index.d.ts", |
| 32 | + "import": "./dist/hooks/index.js", |
| 33 | + "require": "./dist/hooks/index.js", |
| 34 | + "default": "./dist/hooks/index.js" |
| 35 | + }, |
| 36 | + "./hooks/*": "./dist/hooks/*", |
| 37 | + "./components": { |
| 38 | + "types": "./dist/components/index.d.ts", |
| 39 | + "import": "./dist/components/index.js", |
| 40 | + "require": "./dist/components/index.js", |
| 41 | + "default": "./dist/components/index.js" |
| 42 | + }, |
| 43 | + "./types": { |
| 44 | + "types": "./dist/types/index.d.ts", |
| 45 | + "import": "./dist/types/index.js", |
| 46 | + "require": "./dist/types/index.js", |
| 47 | + "default": "./dist/types/index.js" |
| 48 | + }, |
| 49 | + "./page-designer": { |
| 50 | + "types": "./dist/page-designer/index.d.ts", |
| 51 | + "import": "./dist/page-designer/index.js", |
| 52 | + "require": "./dist/page-designer/index.js", |
| 53 | + "default": "./dist/page-designer/index.js" |
| 54 | + } |
| 55 | + }, |
| 56 | + "files": [ |
| 57 | + "CHANGELOG.md", |
| 58 | + "LICENSE", |
| 59 | + "+(auth|components|hooks|scripts|page-designer)/**/!(*.test*).{ts,js}", |
| 60 | + "*.{js,d.ts}", |
| 61 | + "!*.test*.{js,d.ts}", |
| 62 | + "!test*.*", |
| 63 | + "!+(jest|babel).config.js", |
| 64 | + "!setup-jest.js" |
| 65 | + ], |
| 66 | + "scripts": { |
| 67 | + "build": "cross-env NODE_ENV=production internal-lib-build build && tsc --emitDeclarationOnly", |
| 68 | + "build:docs": "typedoc --plugin typedoc-plugin-missing-exports --hideGenerator", |
| 69 | + "build:watch": "nodemon --watch 'src/**' --ext 'tsx,ts' --exec 'npm run build'", |
| 70 | + "format": "internal-lib-build format \"**/*.{js,jsx,ts,tsx}\"", |
| 71 | + "lint": "npm run lint:js && npm run typecheck", |
| 72 | + "lint:fix": "npm run lint:js -- --fix && npm run typecheck", |
| 73 | + "lint:js": "pwa-kit-dev lint \"**/*.{js,jsx,ts,tsx}\"", |
| 74 | + "prepare": "npm run build", |
| 75 | + "test": "internal-lib-build test", |
| 76 | + "test:inspect": "node --inspect-brk jest --runInBand", |
| 77 | + "test:watch": "npm test -- --watch", |
| 78 | + "typecheck": "tsc --noEmit", |
| 79 | + "version": "node ./scripts/version.js" |
| 80 | + }, |
| 81 | + "dependencies": { |
| 82 | + "commerce-sdk-isomorphic": "5.0.0", |
| 83 | + "@salesforce/storefront-next-runtime": "0.1.1", |
| 84 | + "js-cookie": "^3.0.1", |
| 85 | + "jwt-decode": "^4.0.0" |
| 86 | + }, |
| 87 | + "devDependencies": { |
| 88 | + "@salesforce/pwa-kit-dev": "3.17.0-dev", |
| 89 | + "@tanstack/react-query": "^4.28.0", |
| 90 | + "@testing-library/jest-dom": "^5.16.5", |
| 91 | + "@testing-library/react": "^14.0.0", |
| 92 | + "@testing-library/user-event": "14.4.3", |
| 93 | + "@types/js-cookie": "~3.0.3", |
| 94 | + "@types/jsdom": "^16.2.15", |
| 95 | + "@types/jsonwebtoken": "~9.0.0", |
| 96 | + "@types/node": "~16.0.3", |
| 97 | + "@types/prop-types": "~15.7.9", |
| 98 | + "@types/react": "~18.2.0", |
| 99 | + "@types/react-dom": "~18.2.1", |
| 100 | + "@types/react-helmet": "~6.1.6", |
| 101 | + "@types/react-router-dom": "~5.3.3", |
| 102 | + "cross-env": "^5.2.1", |
| 103 | + "internal-lib-build": "3.17.0-dev", |
| 104 | + "jsonwebtoken": "^9.0.0", |
| 105 | + "nock": "^13.3.0", |
| 106 | + "nodemon": "^2.0.22", |
| 107 | + "react": "^18.2.0", |
| 108 | + "react-dom": "^18.2.0", |
| 109 | + "react-helmet": "^6.1.0", |
| 110 | + "react-router-dom": "^5.3.4", |
| 111 | + "semver": "^7.5.2", |
| 112 | + "shelljs": "^0.9.2", |
| 113 | + "typedoc": "^0.24.7", |
| 114 | + "typedoc-plugin-missing-exports": "^2.0.0", |
| 115 | + "typescript": "4.9.5" |
| 116 | + }, |
| 117 | + "peerDependencies": { |
| 118 | + "@tanstack/react-query": "^4.28.0", |
| 119 | + "react": "^17.0.0 || ^18.0.0", |
| 120 | + "react-helmet": "^6.1.0" |
| 121 | + }, |
| 122 | + "optionalDependencies": { |
| 123 | + "prop-types": "^15.8.1", |
| 124 | + "react-router-dom": "^5.3.4" |
| 125 | + }, |
| 126 | + "engines": { |
| 127 | + "node": "^18.0.0 || ^20.0.0 || ^22.0.0 || ^24.0.0", |
| 128 | + "npm": "^9.0.0 || ^10.0.0 || ^11.0.0" |
| 129 | + }, |
| 130 | + "overrides": { |
| 131 | + "@salesforce/storefront-next-runtime": { |
| 132 | + "react": "^18.2.0", |
| 133 | + "react-dom": "^18.2.0" |
| 134 | + } |
113 | 135 | } |
114 | | - } |
115 | 136 | } |
0 commit comments