@commercetools-frontend/application-shell 25.0.0 → 25.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.
Files changed (70) hide show
  1. package/dist/{application-entry-point-1b23fb6b.esm.js → application-entry-point-10a5e1a5.esm.js} +4 -6
  2. package/dist/{application-entry-point-74a06151.cjs.prod.js → application-entry-point-8c4b8e53.cjs.prod.js} +3 -4
  3. package/dist/{application-entry-point-18d8fba0.cjs.dev.js → application-entry-point-c87294b0.cjs.dev.js} +4 -7
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +4 -5
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +4 -5
  6. package/dist/commercetools-frontend-application-shell.esm.js +4 -5
  7. package/dist/{custom-view-dev-host-dc7f2835.cjs.dev.js → custom-view-dev-host-5350eda4.cjs.dev.js} +10 -15
  8. package/dist/{custom-view-dev-host-d72f9ae0.cjs.prod.js → custom-view-dev-host-9d70ed5a.cjs.prod.js} +10 -15
  9. package/dist/{custom-view-dev-host-98432fc5.esm.js → custom-view-dev-host-d5c02c31.esm.js} +10 -14
  10. package/dist/{index-52c724ed.cjs.prod.js → index-245e2980.cjs.prod.js} +2 -2
  11. package/dist/{index-208c3cdd.cjs.dev.js → index-2b8a5370.cjs.dev.js} +108 -132
  12. package/dist/{index-af2cc053.cjs.prod.js → index-3ce8bcb0.cjs.prod.js} +108 -132
  13. package/dist/{index-25183095.cjs.dev.js → index-614accc4.cjs.dev.js} +2 -2
  14. package/dist/{index-5aaa33bb.esm.js → index-86039df7.esm.js} +2 -2
  15. package/dist/{index-75206fba.esm.js → index-c8c7dc44.esm.js} +108 -131
  16. package/dist/{navbar-0bad8bc8.esm.js → navbar-9a40ead9.esm.js} +89 -104
  17. package/dist/{navbar-d4189469.cjs.dev.js → navbar-c51e0607.cjs.dev.js} +89 -105
  18. package/dist/{navbar-7653417f.cjs.prod.js → navbar-e287ce25.cjs.prod.js} +89 -105
  19. package/dist/oidc-8827f9fe.cjs.dev.js +98 -0
  20. package/dist/oidc-b2520905.esm.js +84 -0
  21. package/dist/{oidc-callback-f2f37906.cjs.dev.js → oidc-callback-10369351.cjs.dev.js} +8 -10
  22. package/dist/{oidc-callback-b6584fe8.esm.js → oidc-callback-43725da4.esm.js} +8 -10
  23. package/dist/{oidc-callback-3f9e25bc.cjs.prod.js → oidc-callback-d0f0ab00.cjs.prod.js} +8 -10
  24. package/dist/oidc-d74e6aa2.cjs.prod.js +98 -0
  25. package/dist/{project-container-27db6a7e.cjs.dev.js → project-container-1ee088eb.cjs.dev.js} +11 -14
  26. package/dist/{project-container-0c9ee557.cjs.prod.js → project-container-64823e34.cjs.prod.js} +11 -14
  27. package/dist/{project-container-8f8e017f.esm.js → project-container-da53bf6d.esm.js} +11 -14
  28. package/dist/{project-expired-da5d431c.cjs.prod.js → project-expired-b3656692.cjs.prod.js} +5 -6
  29. package/dist/{project-expired-bfa29d75.esm.js → project-expired-c5239755.esm.js} +5 -6
  30. package/dist/{project-expired-b35819a4.cjs.dev.js → project-expired-cd366d1f.cjs.dev.js} +5 -6
  31. package/dist/{project-not-found-695fadf6.cjs.prod.js → project-not-found-278f33b4.cjs.prod.js} +4 -5
  32. package/dist/{project-not-found-5fc657c1.esm.js → project-not-found-329638a6.esm.js} +4 -5
  33. package/dist/{project-not-found-fdb50d15.cjs.dev.js → project-not-found-e7381918.cjs.dev.js} +4 -5
  34. package/dist/{project-not-initialized-a3b358cc.esm.js → project-not-initialized-80b21ac8.esm.js} +5 -6
  35. package/dist/{project-not-initialized-06d78b62.cjs.dev.js → project-not-initialized-9e5f45ed.cjs.dev.js} +5 -6
  36. package/dist/{project-not-initialized-1603b228.cjs.prod.js → project-not-initialized-df5f697e.cjs.prod.js} +5 -6
  37. package/dist/{project-suspended-d85025fe.esm.js → project-suspended-41550cb8.esm.js} +4 -5
  38. package/dist/{project-suspended-7e2257ac.cjs.dev.js → project-suspended-9eb2139a.cjs.dev.js} +4 -5
  39. package/dist/{project-suspended-324978bc.cjs.prod.js → project-suspended-defdb3bb.cjs.prod.js} +4 -5
  40. package/dist/{redirect-to-login-3e4a6434.cjs.prod.js → redirect-to-login-12f467b8.cjs.prod.js} +10 -13
  41. package/dist/{redirect-to-login-edbfacbc.esm.js → redirect-to-login-2944c890.esm.js} +10 -13
  42. package/dist/{redirect-to-login-66ea895a.cjs.dev.js → redirect-to-login-3bee13ba.cjs.dev.js} +10 -13
  43. package/dist/{redirect-to-logout-f96c0c4b.cjs.prod.js → redirect-to-logout-4c6e4cb5.cjs.prod.js} +6 -8
  44. package/dist/{redirect-to-logout-aea7e913.esm.js → redirect-to-logout-a6daf354.esm.js} +6 -8
  45. package/dist/{redirect-to-logout-ab5d2b07.cjs.dev.js → redirect-to-logout-bb92fd28.cjs.dev.js} +6 -8
  46. package/dist/{redirector-c858d578.cjs.prod.js → redirector-0c72d0a4.cjs.prod.js} +3 -4
  47. package/dist/{redirector-0efdd994.cjs.dev.js → redirector-72ccfbc2.cjs.dev.js} +3 -4
  48. package/dist/{redirector-656c6ee7.esm.js → redirector-d856975f.esm.js} +3 -4
  49. package/dist/{requests-in-flight-loader-5f216050.esm.js → requests-in-flight-loader-32ab77e4.esm.js} +4 -5
  50. package/dist/{requests-in-flight-loader-3ffee0c0.cjs.prod.js → requests-in-flight-loader-59388ad8.cjs.prod.js} +4 -5
  51. package/dist/{requests-in-flight-loader-08ef339c.cjs.dev.js → requests-in-flight-loader-98a1e540.cjs.dev.js} +4 -5
  52. package/dist/{service-page-project-switcher-b21619c0.cjs.prod.js → service-page-project-switcher-9405f62f.cjs.prod.js} +1 -1
  53. package/dist/{service-page-project-switcher-9c5c86df.cjs.dev.js → service-page-project-switcher-b9a7c9d6.cjs.dev.js} +1 -1
  54. package/dist/{service-page-project-switcher-99b35fc0.esm.js → service-page-project-switcher-bb959b99.esm.js} +1 -1
  55. package/dist/{use-applications-menu-21c7420b.cjs.prod.js → use-applications-menu-8984efa1.cjs.prod.js} +39 -47
  56. package/dist/{use-applications-menu-8ff2d130.esm.js → use-applications-menu-bc2b9a66.esm.js} +37 -44
  57. package/dist/{use-applications-menu-7a85c3ee.cjs.dev.js → use-applications-menu-bd718ac8.cjs.dev.js} +39 -47
  58. package/dist/{user-settings-menu-2d3bfa75.cjs.prod.js → user-settings-menu-013f0041.cjs.prod.js} +22 -29
  59. package/dist/{user-settings-menu-31e6bb38.esm.js → user-settings-menu-16e8d020.esm.js} +22 -29
  60. package/dist/{user-settings-menu-c37b343f.cjs.dev.js → user-settings-menu-dc598434.cjs.dev.js} +22 -29
  61. package/package.json +16 -16
  62. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +1 -2
  63. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +1 -2
  64. package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +1 -2
  65. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +22 -26
  66. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +22 -26
  67. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +17 -20
  68. package/dist/oidc-258fc018.cjs.prod.js +0 -115
  69. package/dist/oidc-35e8e62a.esm.js +0 -100
  70. package/dist/oidc-87d116c1.cjs.dev.js +0 -115
@@ -1,100 +0,0 @@
1
- import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
2
- import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
3
- import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
4
-
5
- const DIMENSIONS = {
6
- header: '56px'
7
- };
8
- const NAVBAR = {
9
- expanderHeight: '50px',
10
- expanderSize: '40px',
11
- iconSize: '24px',
12
- iconSizeHover: '28px',
13
- itemSize: '48px',
14
- itemHeight: '56px',
15
- sublistIndentationWhenCollapsed: '72px',
16
- sublistIndentationWhenExpanded: '248px',
17
- sublistItemMinHeight: '50px',
18
- sublistWidth: '272px',
19
- leftNavigationTransition: 'all 150ms cubic-bezier(1, 0, 0.58, 1)',
20
- widthLeftNavigation: '80px',
21
- widthLeftNavigationWhenExpanded: '256px'
22
- };
23
- const WINDOW_SIZES = {
24
- STANDARD: 1024,
25
- WIDE: 1200
26
- };
27
- const CONTAINERS = {
28
- LOCALE_SWITCHER: 'locale-switcher-container',
29
- LEFT_OF_PROFILE: 'left-of-profile'
30
- };
31
- const SUSPENSION_REASONS = {
32
- TEMPORARY_MAINTENANCE: 'TemporaryMaintenance',
33
- PAYMENT: 'Payment',
34
- OTHER: 'Other'
35
- };
36
-
37
- // OIDC params
38
- const OIDC_RESPONSE_TYPES = {
39
- ID_TOKEN: 'id_token'
40
- };
41
- const OIDC_CLAIMS = {
42
- OPEN_ID: 'openid',
43
- PROJECT_KEY: 'project_key',
44
- TEAM_ID: 'team_id',
45
- APPLICATION_ID: 'application_id',
46
- VIEW: 'view',
47
- MANAGE: 'manage'
48
- };
49
-
50
- const buildOidcScope = options => {
51
- var _context2, _options$oAuthScopes$, _options$oAuthScopes, _context4, _options$oAuthScopes$2, _options$oAuthScopes2;
52
- const claims = [];
53
-
54
- // Set the projectKey
55
- if (options.projectKey) {
56
- var _context;
57
- claims.push(_concatInstanceProperty(_context = "".concat(OIDC_CLAIMS.PROJECT_KEY, ":")).call(_context, options.projectKey));
58
- }
59
-
60
- // Set the OAuth Scopes
61
- claims.push(..._mapInstanceProperty(_context2 = (_options$oAuthScopes$ = (_options$oAuthScopes = options.oAuthScopes) === null || _options$oAuthScopes === void 0 ? void 0 : _options$oAuthScopes.view) !== null && _options$oAuthScopes$ !== void 0 ? _options$oAuthScopes$ : []).call(_context2, scope => {
62
- var _context3;
63
- return _concatInstanceProperty(_context3 = "".concat(OIDC_CLAIMS.VIEW, ":")).call(_context3, scope);
64
- }));
65
- claims.push(..._mapInstanceProperty(_context4 = (_options$oAuthScopes$2 = (_options$oAuthScopes2 = options.oAuthScopes) === null || _options$oAuthScopes2 === void 0 ? void 0 : _options$oAuthScopes2.manage) !== null && _options$oAuthScopes$2 !== void 0 ? _options$oAuthScopes$2 : []).call(_context4, scope => {
66
- var _context5;
67
- return _concatInstanceProperty(_context5 = "".concat(OIDC_CLAIMS.MANAGE, ":")).call(_context5, scope);
68
- }));
69
- // Set additional OAuth scopes
70
- if (options !== null && options !== void 0 && options.additionalOAuthScopes) {
71
- var _context6;
72
- _forEachInstanceProperty(_context6 = options.additionalOAuthScopes).call(_context6, additionalOAuthScope => {
73
- var _context7, _additionalOAuthScope, _context9, _additionalOAuthScope2;
74
- claims.push(..._mapInstanceProperty(_context7 = (_additionalOAuthScope = additionalOAuthScope.view) !== null && _additionalOAuthScope !== void 0 ? _additionalOAuthScope : []).call(_context7, viewOAuthScope => {
75
- var _context8;
76
- return _concatInstanceProperty(_context8 = "view/".concat(additionalOAuthScope.name, ":")).call(_context8, viewOAuthScope);
77
- }), ..._mapInstanceProperty(_context9 = (_additionalOAuthScope2 = additionalOAuthScope.manage) !== null && _additionalOAuthScope2 !== void 0 ? _additionalOAuthScope2 : []).call(_context9, manageOAuthScope => {
78
- var _context0;
79
- return _concatInstanceProperty(_context0 = "manage/".concat(additionalOAuthScope.name, ":")).call(_context0, manageOAuthScope);
80
- }));
81
- });
82
- }
83
-
84
- // Set the teamId and applicationId
85
- if (options.teamId) {
86
- var _context1;
87
- claims.push(_concatInstanceProperty(_context1 = "".concat(OIDC_CLAIMS.TEAM_ID, ":")).call(_context1, options.teamId));
88
- if (options.applicationId) {
89
- var _context10;
90
- claims.push(_concatInstanceProperty(_context10 = "".concat(OIDC_CLAIMS.APPLICATION_ID, ":")).call(_context10, options.applicationId));
91
- }
92
- }
93
- return [
94
- // This is required as per OIDC spec.
95
- OIDC_CLAIMS.OPEN_ID,
96
- // Custom claims
97
- ...claims].join(' ');
98
- };
99
-
100
- export { CONTAINERS as C, DIMENSIONS as D, NAVBAR as N, OIDC_CLAIMS as O, SUSPENSION_REASONS as S, WINDOW_SIZES as W, OIDC_RESPONSE_TYPES as a, buildOidcScope as b };
@@ -1,115 +0,0 @@
1
- 'use strict';
2
-
3
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
4
- var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
5
- var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
6
-
7
- function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
8
-
9
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
10
- var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
11
- var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
12
-
13
- const DIMENSIONS = {
14
- header: '56px'
15
- };
16
- const NAVBAR = {
17
- expanderHeight: '50px',
18
- expanderSize: '40px',
19
- iconSize: '24px',
20
- iconSizeHover: '28px',
21
- itemSize: '48px',
22
- itemHeight: '56px',
23
- sublistIndentationWhenCollapsed: '72px',
24
- sublistIndentationWhenExpanded: '248px',
25
- sublistItemMinHeight: '50px',
26
- sublistWidth: '272px',
27
- leftNavigationTransition: 'all 150ms cubic-bezier(1, 0, 0.58, 1)',
28
- widthLeftNavigation: '80px',
29
- widthLeftNavigationWhenExpanded: '256px'
30
- };
31
- const WINDOW_SIZES = {
32
- STANDARD: 1024,
33
- WIDE: 1200
34
- };
35
- const CONTAINERS = {
36
- LOCALE_SWITCHER: 'locale-switcher-container',
37
- LEFT_OF_PROFILE: 'left-of-profile'
38
- };
39
- const SUSPENSION_REASONS = {
40
- TEMPORARY_MAINTENANCE: 'TemporaryMaintenance',
41
- PAYMENT: 'Payment',
42
- OTHER: 'Other'
43
- };
44
-
45
- // OIDC params
46
- const OIDC_RESPONSE_TYPES = {
47
- ID_TOKEN: 'id_token'
48
- };
49
- const OIDC_CLAIMS = {
50
- OPEN_ID: 'openid',
51
- PROJECT_KEY: 'project_key',
52
- TEAM_ID: 'team_id',
53
- APPLICATION_ID: 'application_id',
54
- VIEW: 'view',
55
- MANAGE: 'manage'
56
- };
57
-
58
- const buildOidcScope = options => {
59
- var _context2, _options$oAuthScopes$, _options$oAuthScopes, _context4, _options$oAuthScopes$2, _options$oAuthScopes2;
60
- const claims = [];
61
-
62
- // Set the projectKey
63
- if (options.projectKey) {
64
- var _context;
65
- claims.push(_concatInstanceProperty__default["default"](_context = "".concat(OIDC_CLAIMS.PROJECT_KEY, ":")).call(_context, options.projectKey));
66
- }
67
-
68
- // Set the OAuth Scopes
69
- claims.push(..._mapInstanceProperty__default["default"](_context2 = (_options$oAuthScopes$ = (_options$oAuthScopes = options.oAuthScopes) === null || _options$oAuthScopes === void 0 ? void 0 : _options$oAuthScopes.view) !== null && _options$oAuthScopes$ !== void 0 ? _options$oAuthScopes$ : []).call(_context2, scope => {
70
- var _context3;
71
- return _concatInstanceProperty__default["default"](_context3 = "".concat(OIDC_CLAIMS.VIEW, ":")).call(_context3, scope);
72
- }));
73
- claims.push(..._mapInstanceProperty__default["default"](_context4 = (_options$oAuthScopes$2 = (_options$oAuthScopes2 = options.oAuthScopes) === null || _options$oAuthScopes2 === void 0 ? void 0 : _options$oAuthScopes2.manage) !== null && _options$oAuthScopes$2 !== void 0 ? _options$oAuthScopes$2 : []).call(_context4, scope => {
74
- var _context5;
75
- return _concatInstanceProperty__default["default"](_context5 = "".concat(OIDC_CLAIMS.MANAGE, ":")).call(_context5, scope);
76
- }));
77
- // Set additional OAuth scopes
78
- if (options !== null && options !== void 0 && options.additionalOAuthScopes) {
79
- var _context6;
80
- _forEachInstanceProperty__default["default"](_context6 = options.additionalOAuthScopes).call(_context6, additionalOAuthScope => {
81
- var _context7, _additionalOAuthScope, _context9, _additionalOAuthScope2;
82
- claims.push(..._mapInstanceProperty__default["default"](_context7 = (_additionalOAuthScope = additionalOAuthScope.view) !== null && _additionalOAuthScope !== void 0 ? _additionalOAuthScope : []).call(_context7, viewOAuthScope => {
83
- var _context8;
84
- return _concatInstanceProperty__default["default"](_context8 = "view/".concat(additionalOAuthScope.name, ":")).call(_context8, viewOAuthScope);
85
- }), ..._mapInstanceProperty__default["default"](_context9 = (_additionalOAuthScope2 = additionalOAuthScope.manage) !== null && _additionalOAuthScope2 !== void 0 ? _additionalOAuthScope2 : []).call(_context9, manageOAuthScope => {
86
- var _context0;
87
- return _concatInstanceProperty__default["default"](_context0 = "manage/".concat(additionalOAuthScope.name, ":")).call(_context0, manageOAuthScope);
88
- }));
89
- });
90
- }
91
-
92
- // Set the teamId and applicationId
93
- if (options.teamId) {
94
- var _context1;
95
- claims.push(_concatInstanceProperty__default["default"](_context1 = "".concat(OIDC_CLAIMS.TEAM_ID, ":")).call(_context1, options.teamId));
96
- if (options.applicationId) {
97
- var _context10;
98
- claims.push(_concatInstanceProperty__default["default"](_context10 = "".concat(OIDC_CLAIMS.APPLICATION_ID, ":")).call(_context10, options.applicationId));
99
- }
100
- }
101
- return [
102
- // This is required as per OIDC spec.
103
- OIDC_CLAIMS.OPEN_ID,
104
- // Custom claims
105
- ...claims].join(' ');
106
- };
107
-
108
- exports.CONTAINERS = CONTAINERS;
109
- exports.DIMENSIONS = DIMENSIONS;
110
- exports.NAVBAR = NAVBAR;
111
- exports.OIDC_CLAIMS = OIDC_CLAIMS;
112
- exports.OIDC_RESPONSE_TYPES = OIDC_RESPONSE_TYPES;
113
- exports.SUSPENSION_REASONS = SUSPENSION_REASONS;
114
- exports.WINDOW_SIZES = WINDOW_SIZES;
115
- exports.buildOidcScope = buildOidcScope;