@graphcommerce/ecommerce-ui 9.0.0-canary.81 → 9.0.0-canary.82

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @graphcommerce/ecommerce-ui
2
2
 
3
+ ## 9.0.0-canary.82
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2366](https://github.com/graphcommerce-org/graphcommerce/pull/2366) [`3612c99`](https://github.com/graphcommerce-org/graphcommerce/commit/3612c994b80bb3b1bc02de10668f69a332402dc4) - Add `permissions` config so the website or store can be configurated to run in different modes. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
8
+
3
9
  ## 9.0.0-canary.81
4
10
 
5
11
  ## 9.0.0-canary.80
@@ -0,0 +1,23 @@
1
+ enum WebsitePermissions {
2
+ ENABLED
3
+ # CUSTOMER_ONLY will be implemented later
4
+ # DISABLED will be implemented later
5
+ }
6
+
7
+ input GraphCommercePermissions {
8
+ website: WebsitePermissions
9
+ }
10
+
11
+ extend input GraphCommerceConfig {
12
+ """
13
+ Allows the option to require login or completely disable certain sections of the site, can be overriden per storeview with the storefrontConfig
14
+ """
15
+ permissions: GraphCommercePermissions
16
+ }
17
+
18
+ extend input GraphCommerceStorefrontConfig {
19
+ """
20
+ Allows the option to require login or completely disable certain sections of the site on a per store basis
21
+ """
22
+ permissions: GraphCommercePermissions
23
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/ecommerce-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.81",
5
+ "version": "9.0.0-canary.82",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,12 +12,12 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.81",
16
- "@graphcommerce/graphql": "^9.0.0-canary.81",
17
- "@graphcommerce/next-ui": "^9.0.0-canary.81",
18
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.81",
19
- "@graphcommerce/react-hook-form": "^9.0.0-canary.81",
20
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.81",
15
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.82",
16
+ "@graphcommerce/graphql": "^9.0.0-canary.82",
17
+ "@graphcommerce/next-ui": "^9.0.0-canary.82",
18
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.82",
19
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.82",
20
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.82",
21
21
  "@lingui/core": "^4.2.1",
22
22
  "@lingui/macro": "^4.2.1",
23
23
  "@lingui/react": "^4.2.1",