@zengenti/contensis-react-base 3.0.0-beta.7 → 3.0.0-beta.72

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 (167) hide show
  1. package/README.md +1 -1
  2. package/cjs/{App-3324f784.js → App-80a696bc.js} +210 -179
  3. package/cjs/App-80a696bc.js.map +1 -0
  4. package/cjs/{RouteLoader-c7957b14.js → RouteLoader-2675e1c9.js} +31 -23
  5. package/cjs/RouteLoader-2675e1c9.js.map +1 -0
  6. package/cjs/ToJs-a9a8522b.js +129 -0
  7. package/cjs/ToJs-a9a8522b.js.map +1 -0
  8. package/cjs/VersionInfo-4c9dfa6a.js +181 -0
  9. package/cjs/VersionInfo-4c9dfa6a.js.map +1 -0
  10. package/cjs/{actions-a24bf46e.js → actions-8dc9e8de.js} +5 -4
  11. package/cjs/actions-8dc9e8de.js.map +1 -0
  12. package/cjs/client.js +17 -22
  13. package/cjs/client.js.map +1 -1
  14. package/cjs/contensis-react-base.js +3761 -156
  15. package/cjs/contensis-react-base.js.map +1 -1
  16. package/cjs/forms.js +181 -100
  17. package/cjs/forms.js.map +1 -1
  18. package/cjs/{fromJSLeaveImmer-c00d597f.js → fromJSLeaveImmer-e74c673c.js} +2 -16
  19. package/cjs/fromJSLeaveImmer-e74c673c.js.map +1 -0
  20. package/cjs/{login-c810cc4c.js → login-6b9de6a1.js} +92 -55
  21. package/cjs/login-6b9de6a1.js.map +1 -0
  22. package/cjs/{reducers-fde41d6b.js → reducers-3a4f8971.js} +26 -25
  23. package/cjs/reducers-3a4f8971.js.map +1 -0
  24. package/cjs/redux.js +6 -5
  25. package/cjs/redux.js.map +1 -1
  26. package/cjs/routing.js +5 -4
  27. package/cjs/routing.js.map +1 -1
  28. package/cjs/sagas-24f5607f.js +2052 -0
  29. package/cjs/sagas-24f5607f.js.map +1 -0
  30. package/cjs/search.js +283 -1909
  31. package/cjs/search.js.map +1 -1
  32. package/cjs/{selectors-0ec95076.js → selectors-656da4b7.js} +8 -3
  33. package/cjs/selectors-656da4b7.js.map +1 -0
  34. package/cjs/user.js +21 -12
  35. package/cjs/user.js.map +1 -1
  36. package/cjs/util.js +55 -212
  37. package/cjs/util.js.map +1 -1
  38. package/cjs/{version-4f0f5fa6.js → version-330551f5.js} +34 -22
  39. package/cjs/version-330551f5.js.map +1 -0
  40. package/cjs/{version-085d203d.js → version-eba6d09b.js} +5 -5
  41. package/cjs/version-eba6d09b.js.map +1 -0
  42. package/esm/{App-1b05ab11.js → App-af0670fa.js} +210 -180
  43. package/esm/App-af0670fa.js.map +1 -0
  44. package/esm/{RouteLoader-e5f0e8cb.js → RouteLoader-f96a61c1.js} +31 -23
  45. package/esm/RouteLoader-f96a61c1.js.map +1 -0
  46. package/esm/ToJs-affd73f1.js +99 -0
  47. package/esm/ToJs-affd73f1.js.map +1 -0
  48. package/esm/VersionInfo-f5403b09.js +172 -0
  49. package/esm/VersionInfo-f5403b09.js.map +1 -0
  50. package/esm/{actions-927d9698.js → actions-fcfc8704.js} +5 -4
  51. package/esm/actions-fcfc8704.js.map +1 -0
  52. package/esm/client.js +18 -23
  53. package/esm/client.js.map +1 -1
  54. package/esm/contensis-react-base.js +3759 -155
  55. package/esm/contensis-react-base.js.map +1 -1
  56. package/esm/forms.js +182 -102
  57. package/esm/forms.js.map +1 -1
  58. package/esm/{fromJSLeaveImmer-392af4e3.js → fromJSLeaveImmer-0114ffcf.js} +2 -16
  59. package/esm/fromJSLeaveImmer-0114ffcf.js.map +1 -0
  60. package/esm/{login-f8ba3aeb.js → login-ca2dc2f7.js} +92 -55
  61. package/esm/login-ca2dc2f7.js.map +1 -0
  62. package/esm/{reducers-d6c0edb1.js → reducers-8e5d6232.js} +26 -25
  63. package/esm/reducers-8e5d6232.js.map +1 -0
  64. package/esm/redux.js +8 -7
  65. package/esm/redux.js.map +1 -1
  66. package/esm/routing.js +5 -4
  67. package/esm/routing.js.map +1 -1
  68. package/esm/sagas-489c29ca.js +1966 -0
  69. package/esm/sagas-489c29ca.js.map +1 -0
  70. package/esm/search.js +243 -1850
  71. package/esm/search.js.map +1 -1
  72. package/esm/{selectors-b98d5c76.js → selectors-337be432.js} +7 -4
  73. package/esm/selectors-337be432.js.map +1 -0
  74. package/esm/user.js +23 -14
  75. package/esm/user.js.map +1 -1
  76. package/esm/util.js +54 -209
  77. package/esm/util.js.map +1 -1
  78. package/esm/version-6dd7b2cd.js +15 -0
  79. package/esm/version-6dd7b2cd.js.map +1 -0
  80. package/esm/{version-16aa83eb.js → version-c7268214.js} +33 -22
  81. package/esm/version-c7268214.js.map +1 -0
  82. package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +1 -1
  83. package/models/forms/index.d.ts +3 -1
  84. package/models/index.d.ts +1 -0
  85. package/models/redux/appstate.d.ts +5 -10
  86. package/models/redux/selectors/navigation.d.ts +2 -1
  87. package/models/routing/components/RouteLoader.d.ts +2 -19
  88. package/models/routing/redux/actions.d.ts +1 -1
  89. package/models/routing/redux/selectors.d.ts +1 -1
  90. package/models/routing/routes.d.ts +9 -3
  91. package/models/routing/util/expressions.d.ts +3 -2
  92. package/models/routing/util/queries.d.ts +1 -1
  93. package/models/search/containers/withListing.d.ts +1 -1
  94. package/models/search/containers/withSearch.d.ts +1 -1
  95. package/models/search/hooks/useFacets.hook.d.ts +3 -0
  96. package/models/search/hooks/useListing.hook.d.ts +3 -0
  97. package/models/search/hooks/useMinilist.hook.d.ts +2 -9
  98. package/models/search/index.d.ts +4 -1
  99. package/models/search/models/Queries.d.ts +8 -5
  100. package/models/search/models/Search.d.ts +60 -28
  101. package/models/search/models/SearchActions.d.ts +4 -3
  102. package/models/search/models/SearchProps.d.ts +52 -7
  103. package/models/search/models/SearchState.d.ts +5 -1
  104. package/models/search/models/index.d.ts +3 -1
  105. package/models/search/redux/actions.d.ts +2 -1
  106. package/models/search/redux/reducers.d.ts +230 -314
  107. package/models/search/redux/sagas.d.ts +5 -5
  108. package/models/search/redux/selectors.d.ts +19 -22
  109. package/models/search/search/ContensisDeliveryApi.d.ts +1 -0
  110. package/models/search/search/expressions.d.ts +3 -6
  111. package/models/search/{redux → search}/queries.d.ts +0 -0
  112. package/models/search/transformations/entry-to-filteritem.mapper.d.ts +2 -1
  113. package/models/search/transformations/filter-to-filterexpression.mapper.d.ts +6 -0
  114. package/models/search/transformations/filters-to-filterexpressions.mapper.d.ts +3 -0
  115. package/models/search/transformations/index.d.ts +3 -0
  116. package/models/search/transformations/queryParams-to-customapi.mapper.d.ts +3 -0
  117. package/models/search/transformations/state-to-searchuri.d.ts +2 -13
  118. package/models/server/features/linkdepth-api/api.d.ts +12 -0
  119. package/models/server/features/linkdepth-api/events-api.config.d.ts +37 -0
  120. package/models/server/middleware/bundleManipulation.d.ts +2 -1
  121. package/models/server/util/bundles.d.ts +17 -21
  122. package/models/server/util/getVersionInfo.d.ts +1 -0
  123. package/models/server/util/headers.d.ts +3 -2
  124. package/models/user/components/Login.d.ts +1 -2
  125. package/models/user/components/LoginForm.d.ts +1 -2
  126. package/models/user/hocs/withLogin.d.ts +4 -2
  127. package/models/user/hocs/withRegistration.d.ts +4 -2
  128. package/models/user/hooks/useChangePassword.d.ts +5 -5
  129. package/models/user/hooks/useForgotPassword.d.ts +6 -6
  130. package/models/user/hooks/useLogin.d.ts +9 -45
  131. package/models/user/hooks/useRegistration.d.ts +4 -4
  132. package/models/user/redux/reducers.d.ts +4 -5
  133. package/models/user/redux/sagas/login.d.ts +11 -8
  134. package/models/user/redux/selectors.d.ts +33 -71
  135. package/models/user/util/LoginHelper.class.d.ts +4 -3
  136. package/models/util/ContensisDeliveryApi.d.ts +1 -3
  137. package/models/util/json-mapper.d.ts +9 -3
  138. package/models/util/merge.d.ts +1 -0
  139. package/package.json +60 -55
  140. package/CHANGELOG.md +0 -293
  141. package/cjs/App-3324f784.js.map +0 -1
  142. package/cjs/RouteLoader-c7957b14.js.map +0 -1
  143. package/cjs/ToJs-a38fa20e.js +0 -230
  144. package/cjs/ToJs-a38fa20e.js.map +0 -1
  145. package/cjs/actions-a24bf46e.js.map +0 -1
  146. package/cjs/fromJSLeaveImmer-c00d597f.js.map +0 -1
  147. package/cjs/login-c810cc4c.js.map +0 -1
  148. package/cjs/reducers-fde41d6b.js.map +0 -1
  149. package/cjs/selectors-0ec95076.js.map +0 -1
  150. package/cjs/version-085d203d.js.map +0 -1
  151. package/cjs/version-4f0f5fa6.js.map +0 -1
  152. package/esm/App-1b05ab11.js.map +0 -1
  153. package/esm/RouteLoader-e5f0e8cb.js.map +0 -1
  154. package/esm/ToJs-879a5a85.js +0 -199
  155. package/esm/ToJs-879a5a85.js.map +0 -1
  156. package/esm/actions-927d9698.js.map +0 -1
  157. package/esm/fromJSLeaveImmer-392af4e3.js.map +0 -1
  158. package/esm/login-f8ba3aeb.js.map +0 -1
  159. package/esm/reducers-d6c0edb1.js.map +0 -1
  160. package/esm/selectors-b98d5c76.js.map +0 -1
  161. package/esm/version-16aa83eb.js.map +0 -1
  162. package/esm/version-3833e8b5.js +0 -15
  163. package/esm/version-3833e8b5.js.map +0 -1
  164. package/models/search/transformations/filters-to-filterexpression.d.ts +0 -1
  165. package/models/search/transformations/filters-to-filterexpression.mapper.d.ts +0 -2
  166. package/models/server/features/caching/cacheHashing.d.ts +0 -1
  167. package/package-lock.json +0 -14093
@@ -1,72 +1,34 @@
1
+ import { StateType } from "../../config";
1
2
  import { AppState } from "../../redux/appstate";
2
- export declare const selectUserIsLoading: (state: AppState) => boolean;
3
- export declare const selectUserIsAuthenticated: (state: AppState) => boolean;
4
- export declare const selectUserAuthenticationError: (state: AppState) => boolean;
5
- export declare const selectUserAuthenticationErrorMessage: (state: AppState) => string | null;
6
- export declare const selectUserError: (state: AppState) => boolean;
7
- export declare const selectUserErrorMessage: (state: AppState) => string | null;
8
- export declare const selectClientCredentials: (state: AppState) => {
9
- bearerToken: string;
10
- bearerTokenExpiryDate: Date;
11
- refreshToken: string;
12
- refreshTokenExpiryDate: Date;
13
- contensisClassicToken: string;
14
- } | null;
15
- export declare const selectUser: (state: AppState) => {
16
- authenticationState: {
17
- authenticated: boolean;
18
- authenticationError: boolean;
19
- authenticationErrorMessage: string | null;
20
- clientCredentials: {
21
- bearerToken: string;
22
- bearerTokenExpiryDate: Date;
23
- refreshToken: string;
24
- refreshTokenExpiryDate: Date;
25
- contensisClassicToken: string;
26
- } | null;
27
- error: boolean;
28
- errorMessage: string | null;
29
- loading: boolean;
30
- };
31
- groups: import("contensis-management-api/lib/models").Group[];
32
- isZengentiStaff?: boolean | undefined;
33
- registration?: {
34
- error: Error | null;
35
- loading: boolean;
36
- success: boolean;
37
- } | undefined;
38
- passwordResetRequest?: {
39
- isSending: boolean;
40
- sent: boolean;
41
- error: Error | null;
42
- } | undefined;
43
- resetPassword?: {
44
- isSending: boolean;
45
- sent: boolean;
46
- error: Error | null;
47
- } | undefined;
48
- changePassword?: {
49
- isSending: boolean;
50
- sent: boolean;
51
- error: Error | null;
52
- } | undefined;
53
- } & import("contensis-management-api/lib/models").User;
54
- export declare const selectUserIsZengentiStaff: (state: AppState) => boolean | undefined;
55
- export declare const selectUserGuid: (state: AppState) => string;
56
- export declare const selectUsername: (state: AppState) => string;
57
- export declare const selectUserEmail: (state: AppState) => string;
58
- export declare const selectUserGroups: (state: AppState) => import("contensis-management-api/lib/models").Group[];
59
- export declare const selectUserSecurityToken: (state: AppState) => string | undefined;
60
- export declare const selectUserRegistration: (state: AppState) => {};
61
- export declare const selectUserRegistrationError: (state: AppState) => false | Error;
62
- export declare const selectUserRegistrationIsLoading: (state: AppState) => boolean;
63
- export declare const selectUserRegistrationIsSuccess: (state: AppState) => boolean;
64
- export declare const selectPasswordResetRequestSending: (state: AppState) => boolean | undefined;
65
- export declare const selectPasswordResetRequestSent: (state: AppState) => boolean | undefined;
66
- export declare const selectPasswordResetRequestError: (state: AppState) => Error | null | undefined;
67
- export declare const selectResetPasswordSending: (state: AppState) => boolean | undefined;
68
- export declare const selectResetPasswordSent: (state: AppState) => boolean | undefined;
69
- export declare const selectResetPasswordError: (state: AppState) => Error | null | undefined;
70
- export declare const selectChangePasswordSending: (state: AppState) => boolean | undefined;
71
- export declare const selectChangePasswordSent: (state: AppState) => boolean | undefined;
72
- export declare const selectChangePasswordError: (state: AppState) => Error | null | undefined;
3
+ export declare const selectUserIsLoading: (state: AppState) => any;
4
+ export declare const selectUserIsAuthenticated: (state: AppState) => any;
5
+ export declare const selectUserIsAuthenticationError: (state: AppState) => any;
6
+ export declare const selectUserIsError: (state: AppState) => any;
7
+ /**
8
+ * DEPRECATED 12/2021 - use selectUserErrorMessage instead
9
+ * @param state AppState
10
+ * @returns string
11
+ */
12
+ export declare const selectUserAuthenticationErrorMessage: (state: AppState) => any;
13
+ export declare const selectUserErrorMessage: (state: AppState) => any;
14
+ export declare const selectClientCredentials: (state: AppState, returnType?: StateType | undefined) => any;
15
+ export declare const selectUser: (state: AppState, returnType?: StateType | undefined) => any;
16
+ export declare const selectUserIsZengentiStaff: (state: AppState) => any;
17
+ export declare const selectUserGuid: (state: AppState) => any;
18
+ export declare const selectUsername: (state: AppState) => any;
19
+ export declare const selectUserEmail: (state: AppState) => any;
20
+ export declare const selectUserGroups: (state: AppState, returnType?: StateType | undefined) => any;
21
+ export declare const selectUserSecurityToken: (state: AppState) => any;
22
+ export declare const selectUserRegistration: (state: AppState, returnType?: StateType | undefined) => any;
23
+ export declare const selectUserRegistrationError: (state: AppState) => any;
24
+ export declare const selectUserRegistrationIsLoading: (state: AppState) => any;
25
+ export declare const selectUserRegistrationIsSuccess: (state: AppState) => any;
26
+ export declare const selectPasswordResetRequestSending: (state: AppState) => any;
27
+ export declare const selectPasswordResetRequestSent: (state: AppState) => any;
28
+ export declare const selectPasswordResetRequestError: (state: AppState) => any;
29
+ export declare const selectResetPasswordSending: (state: AppState) => any;
30
+ export declare const selectResetPasswordSent: (state: AppState) => any;
31
+ export declare const selectResetPasswordError: (state: AppState) => any;
32
+ export declare const selectChangePasswordSending: (state: AppState) => any;
33
+ export declare const selectChangePasswordSent: (state: AppState) => any;
34
+ export declare const selectChangePasswordError: (state: AppState) => any;
@@ -23,10 +23,10 @@ export class LoginHelper {
23
23
  clientCredentials: any;
24
24
  }): Promise<{
25
25
  authenticationState: {
26
- authenticated: boolean;
27
- authenticationError: boolean;
28
- error: boolean;
29
26
  clientCredentials: null;
27
+ isAuthenticated: boolean;
28
+ isAuthenticationError: boolean;
29
+ isError: boolean;
30
30
  };
31
31
  user: Error | {
32
32
  groups: any;
@@ -41,6 +41,7 @@ export class LoginHelper {
41
41
  static ClientRedirectToAccessDeniedPage(originalPath: any): void;
42
42
  static ClientRedirectToPath(redirectPath: any): void;
43
43
  static WsFedLogin(redirectUri: any): Promise<void>;
44
+ static RemoveSecurityTokenQuery(): void;
44
45
  static WsFedLogout(redirectPath: any): Promise<void>;
45
46
  static GetCredentialsForSecurityToken(securityToken: any): Promise<undefined[] | Error[] | {
46
47
  message: string;
@@ -12,6 +12,7 @@ declare class CachedSearch {
12
12
  cache: LruCache;
13
13
  taxonomyLookup: {};
14
14
  search(query: any, linkDepth: any, project: any, env: any): any;
15
+ searchUsingPost(query: any, linkDepth: number | undefined, project: string | undefined, env: any): any;
15
16
  get(id: any, linkDepth: any, versionStatus: any, project: any, env: any): any;
16
17
  getContentType(id: any, project: any, env: any): any;
17
18
  getTaxonomyNode(key: any, project: any, env: any): any;
@@ -21,9 +22,6 @@ declare class CachedSearch {
21
22
  getChildren(options: any, project: any, env: any): any;
22
23
  getSiblings(options: any, project: any, env: any): any;
23
24
  request(key: any, execute: any): any;
24
- extendTaxonomyNode(node: any): any;
25
- getTaxonomyId(node: any): any;
26
- getTaxonomyKey(id: any): any;
27
25
  }
28
26
  import { Client } from "contensis-delivery-api";
29
27
  declare class LruCache {
@@ -1,6 +1,8 @@
1
+ import { Entry } from 'contensis-delivery-api/lib/models';
1
2
  import mapJson from 'jsonpath-mapper';
2
- import MappingTemplate from 'jsonpath-mapper/dist/models/Template';
3
- import { EntryMapper } from "../routing/routes";
3
+ import MappingTemplate, { PureJsFunction } from 'jsonpath-mapper/dist/models/Template';
4
+ import { AppState } from "../redux/appstate";
5
+ import { EntryMapper, RouteNode } from "../routing/routes";
4
6
  export { default as mapJson, jpath } from 'jsonpath-mapper';
5
7
  declare type Mappers<S> = {
6
8
  [contentTypeId: string]: MappingTemplate<S>;
@@ -77,5 +79,9 @@ export declare const useComposerMapper: <S extends {
77
79
  * @param mapping the jsonpath-mapper mapping template to apply when the route is resolved
78
80
  * @returns {mappedEntry}
79
81
  */
80
- export declare const entryMapper: (mapping: any) => EntryMapper;
82
+ export declare const entryMapper: (mapping: MappingTemplate<RouteNode & Entry & {
83
+ state?: AppState;
84
+ }> | PureJsFunction<RouteNode & Entry & {
85
+ state?: AppState;
86
+ }>) => EntryMapper;
81
87
  export default mapJson;
@@ -0,0 +1 @@
1
+ export declare const combineMerge: (target: any, source: any, options: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zengenti/contensis-react-base",
3
- "version": "3.0.0-beta.7",
3
+ "version": "3.0.0-beta.72",
4
4
  "repository": "https://github.com/zengenti/contensis-react-base",
5
5
  "license": "None",
6
6
  "description": "Turbocharge your React web apps with Contensis. This package handles all dependencies for creating full featured web apps in React with Contensis and Site View. Routing is driven by Site View, Redux is used for global state management and server-side rendering (SSR) is handled for you. Also taking care of intricate hosting issues such as cache invalidation and supporting authenticated content where required.",
@@ -26,109 +26,114 @@
26
26
  "keywords": [],
27
27
  "author": "http://Zengenti.com",
28
28
  "devDependencies": {
29
- "@babel/cli": "^7.15.7",
30
- "@babel/core": "^7.15.5",
31
- "@babel/eslint-parser": "^7.15.7",
32
- "@babel/node": "^7.15.4",
33
- "@babel/plugin-proposal-class-properties": "^7.14.5",
34
- "@babel/plugin-proposal-export-default-from": "^7.14.5",
35
- "@babel/plugin-proposal-export-namespace-from": "^7.14.5",
36
- "@babel/plugin-proposal-optional-chaining": "^7.14.5",
29
+ "@babel/cli": "^7.17.6",
30
+ "@babel/core": "^7.17.9",
31
+ "@babel/eslint-parser": "^7.17.0",
32
+ "@babel/node": "^7.16.8",
33
+ "@babel/plugin-proposal-class-properties": "^7.16.7",
34
+ "@babel/plugin-proposal-export-default-from": "^7.16.7",
35
+ "@babel/plugin-proposal-export-namespace-from": "^7.16.7",
36
+ "@babel/plugin-proposal-optional-chaining": "^7.16.7",
37
37
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
38
- "@babel/plugin-transform-classes": "^7.15.4",
39
- "@babel/plugin-transform-regenerator": "^7.14.5",
40
- "@babel/plugin-transform-runtime": "^7.15.0",
41
- "@babel/preset-env": "^7.15.6",
42
- "@babel/preset-react": "^7.14.5",
43
- "@babel/preset-typescript": "^7.15.0",
44
- "@babel/runtime": "^7.15.4",
38
+ "@babel/plugin-transform-classes": "^7.16.7",
39
+ "@babel/plugin-transform-regenerator": "^7.17.9",
40
+ "@babel/plugin-transform-runtime": "^7.17.0",
41
+ "@babel/preset-env": "^7.16.11",
42
+ "@babel/preset-react": "^7.16.7",
43
+ "@babel/preset-typescript": "^7.16.7",
44
+ "@babel/runtime": "^7.17.9",
45
45
  "@loadable/babel-plugin": "^5.13.2",
46
- "@rollup/plugin-alias": "^3.1.5",
47
- "@rollup/plugin-babel": "^5.3.0",
46
+ "@rollup/plugin-alias": "^3.1.9",
47
+ "@rollup/plugin-babel": "^5.3.1",
48
48
  "@rollup/plugin-commonjs": "^20.0.0",
49
- "@rollup/plugin-node-resolve": "^13.0.5",
50
- "@types/babel__core": "^7.1.16",
49
+ "@rollup/plugin-node-resolve": "^13.2.1",
50
+ "@types/babel__core": "^7.1.19",
51
51
  "@types/babel__template": "^7.4.1",
52
52
  "@types/events": "^3.0.0",
53
53
  "@types/express": "^4.17.13",
54
54
  "@types/loadable__component": "^5.13.4",
55
- "@types/node": "^16.9.6",
55
+ "@types/loadable__server": "^5.12.6",
56
+ "@types/node": "^16.11.27",
56
57
  "@types/query-string": "^5.1.0",
57
- "@types/react": "^17.0.24",
58
- "@types/react-redux": "^7.1.18",
59
- "@types/react-router-config": "^5.0.3",
60
- "@types/react-router-dom": "^5.3.0",
58
+ "@types/react": "^17.0.44",
59
+ "@types/react-redux": "^7.1.24",
60
+ "@types/react-router-config": "^5.0.6",
61
+ "@types/react-router-dom": "^5.3.3",
61
62
  "@types/testing-library__dom": "^7.5.0",
62
- "@typescript-eslint/eslint-plugin": "^4.31.2",
63
- "@typescript-eslint/parser": "^4.31.2",
63
+ "@types/webpack-env": "^1.17.0",
64
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
65
+ "@typescript-eslint/parser": "^4.33.0",
64
66
  "babel-plugin-dynamic-import-node": "^2.3.3",
65
67
  "babel-plugin-module-resolver": "^4.1.0",
66
- "babel-plugin-styled-components": "^1.13.2",
68
+ "babel-plugin-styled-components": "^1.13.3",
67
69
  "babel-plugin-transform-define": "1.0.1",
68
70
  "copyfiles": "^2.4.1",
69
71
  "cross-env": "^7.0.3",
70
72
  "eslint": "^7.32.0",
71
- "eslint-config-prettier": "^8.3.0",
73
+ "eslint-config-prettier": "^8.5.0",
72
74
  "eslint-import-resolver-alias": "^1.1.2",
73
- "eslint-import-resolver-typescript": "^2.5.0",
74
- "eslint-plugin-import": "^2.24.2",
75
- "eslint-plugin-jsx-a11y": "^6.4.1",
75
+ "eslint-import-resolver-typescript": "^2.7.1",
76
+ "eslint-plugin-import": "^2.26.0",
77
+ "eslint-plugin-jsx-a11y": "^6.5.1",
76
78
  "eslint-plugin-prettier": "^4.0.0",
77
- "eslint-plugin-react": "^7.26.0",
78
- "eslint-plugin-react-hooks": "^4.2.0",
79
- "fs-extra": "^10.0.0",
79
+ "eslint-plugin-react": "^7.29.4",
80
+ "eslint-plugin-react-hooks": "^4.4.0",
81
+ "fs-extra": "^10.1.0",
80
82
  "generate-changelog": "^1.8.0",
81
- "nodemon": "^2.0.12",
82
- "prettier": "^2.4.1",
83
+ "nodemon": "^2.0.15",
84
+ "prettier": "^2.6.2",
83
85
  "rimraf": "^3.0.2",
84
- "rollup": "^2.57.0",
86
+ "rollup": "^2.70.2",
85
87
  "rollup-plugin-peer-deps-external": "^2.2.4",
86
- "ts-patch": "^1.4.4",
87
- "typescript": "^4.4.3",
88
+ "ts-patch": "^1.4.5",
89
+ "typescript": "^4.6.3",
88
90
  "typescript-transform-paths": "^3.3.1",
89
91
  "zengenti-forms-package": "git+https://gitlab+deploy-token-11:DRbTWzdaRzkjDWc_VixQ@gitlab.zengenti.com/zengenti-packages/forms.git#next",
90
92
  "zengenti-search-package": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#immer"
91
93
  },
92
94
  "dependencies": {
93
- "@hot-loader/react-dom": "^17.0.1",
94
- "@loadable/component": "^5.15.0",
95
- "@loadable/server": "^5.15.1",
95
+ "@hot-loader/react-dom": "^17.0.2",
96
+ "@loadable/component": "^5.15.2",
97
+ "@loadable/server": "^5.15.2",
96
98
  "app-root-path": "^3.0.0",
97
99
  "await-to-js": "^3.0.0",
98
- "contensis-delivery-api": "^1.1.7",
99
- "contensis-management-api": "^2.0.2",
100
+ "contensis-delivery-api": "^1.1.9",
101
+ "contensis-management-api": "^2.0.5",
100
102
  "custom-env": "^2.0.1",
101
103
  "deep-equal": "^2.0.5",
102
104
  "deepmerge": "^4.2.2",
103
- "express": "^4.17.1",
105
+ "express": "^4.17.3",
104
106
  "http-proxy": "^1.18.1",
105
- "immer": "^9.0.6",
107
+ "immer": "^9.0.12",
106
108
  "immutable": "4.0.0-rc.12",
107
109
  "isomorphic-fetch": "^3.0.0",
108
110
  "js-cookie": "^3.0.1",
109
111
  "jsonpath-mapper": "^1.1.0",
110
- "loglevel": "^1.7.1",
112
+ "lodash": "^4.17.21",
113
+ "lodash-clean": "^2.2.3",
114
+ "loglevel": "^1.8.0",
111
115
  "minify-css-string": "^1.0.0",
112
116
  "oidc-client": "^1.11.5",
113
117
  "patch-package": "^6.4.7",
114
118
  "query-string": "^5.1.1",
115
119
  "react": "^17.0.2",
120
+ "react-cookie": "^4.1.1",
116
121
  "react-dom": "^17.0.2",
117
122
  "react-helmet": "^6.1.0",
118
123
  "react-hot-loader": "^4.13.0",
119
124
  "react-loadable": "^5.5.0",
120
- "react-redux": "^7.2.5",
125
+ "react-redux": "^7.2.8",
121
126
  "react-router-config": "^5.1.1",
122
- "react-router-dom": "^5.3.0",
127
+ "react-router-dom": "^5.3.1",
123
128
  "react-router-hash-link": "^2.4.3",
124
- "redux": "^4.1.1",
129
+ "redux": "^4.2.0",
125
130
  "redux-immutable": "^4.0.0",
126
- "redux-injectors": "^1.3.0",
131
+ "redux-injectors": "^2.0.0-rc",
127
132
  "redux-saga": "^1.1.3",
128
- "redux-thunk": "^2.3.0",
129
- "reselect": "^4.0.0",
133
+ "redux-thunk": "^2.4.1",
134
+ "reselect": "^4.1.5",
130
135
  "serialize-javascript": "^6.0.0",
131
- "styled-components": "^5.3.1",
136
+ "styled-components": "^5.3.5",
132
137
  "xxhashjs": "^0.2.2"
133
138
  }
134
139
  }
package/CHANGELOG.md DELETED
@@ -1,293 +0,0 @@
1
- #### 2.5.0 (2021-09-20)
2
-
3
- ##### New Features
4
-
5
- - Removed useUser hook and created hooks for change password, forgot password (c65d6dd7)
6
- - add entryMapper to /util utility function to clean up code when mapping route entries with jsonpath-mapper style templates and default arguments (3b6132d9)
7
-
8
- ##### Bug Fixes
9
-
10
- - Error messages not displaying on the various password forms when operations fail (341bc827)
11
- - issue with a default value set in typescript refactor (822da5c9)
12
- - added two missing routing selectors (2ddc26e6)
13
- - server side debugging requires an old version of babel-plugin to define the set globals in the app (09566a99)
14
- - changes in latest immutable js typings break existing selectors by changing their return value from any to unknown, update search package to fix bug with ToJS component. Use typescript eslint import resolver (9da62533)
15
- - update search package to set projectId in listings (098ea40f)
16
- - small issue with SSR and dynamic bundles need to filter out some undefined array items from the loadable modules (c9fa233f)
17
-
18
- ##### Build System / Dependencies
19
-
20
- - install latest search package and uninstall unused packages (81f1c1eb)
21
- - update search package to add missing types, add rules-of-hooks back to eslintrc, correct staticRoute type in OnRouteLoadArgs (c7d1a9ce)
22
- - add follow-tags to git push in release script so we caputure the tag created by npm version command (7030a4fd)
23
- - adding further types to app config (d5da430c)
24
- - add types to AppConfig keys (2c0d3447)
25
- - search index.d.ts is not being copied in CI (0f6b7137)
26
- - copy typescript models for search package as existing d.ts files are ignored by tsc (5f1ce21f)
27
- - add missing @types packages (0f54a201)
28
- - update search package to fix build (5223e118)
29
- - update package-lock to fix build (a2f40c58)
30
- - fix no default export in /client (9e10dc24)
31
- - most models not published to npm (1b2eea17)
32
- - try remove now redundant build stage (87d68755)
33
- - handle all exports via index file, use ts-patch to be able to use tsconfig plugins to transform alias paths in d.ts files to usable paths for consumers (7fd52af6)
34
- - update packages (dcc3cbd4)
35
- - change npm script in CI to clean assets and build models with tsc (32c61de8)
36
- - further TypeScript work (e91452d8)
37
- - TypeScript with rollup and babel initial commit (2c737ed9)##### Other Changes
38
-
39
- ##### Performance Improvements
40
-
41
- - remove excess code from bundles (03773ece)
42
- - update zengenti packages (f654d22a)
43
-
44
- ##### Refactors
45
-
46
- - further typescript conversions (9c88cd52)
47
- - further typescript conversions (d7010813)
48
- - typescript conversion progress, all models exported through default package, convert client entrypoint and types for routes and routing events (2a15b4c6)
49
- - typescript conversion progress, types added for globals and server start config (12e17c53)
50
-
51
- ##### Documentation Changes
52
-
53
- - add TypeScript notes to README (0a8bcabd)
54
- - tweak package description text (4f713d5a)
55
- - update CHANGELOG (b8b1b488)
56
-
57
- #### Other changes
58
-
59
- - zengenti/contensis-react-base into dom-auth-changes-merge (7d6e7ed9)
60
- - //github.com/zengenti/contensis-react-base into contensis-14-forgot-change-password (c6775cf1)
61
-
62
- #### 2.4.0 (2021-08-19)
63
-
64
- ##### Build System / Dependencies
65
-
66
- - search package had gone back to old non TS version, now merged into master and back on correct version (5de95dfc)
67
-
68
- ##### Documentation Changes
69
-
70
- - update README with some clarity on the available subpackages and their purpose also key scripts reduced to remove references to an included web app (29f284af)
71
-
72
- ##### New Features
73
-
74
- - support saga and reducer injection, new key in ContentTypeMappings and StaticRoutes injectRedux async function when provided expects a returned object containing { key, reducer, saga } allowing adding dynamic imports into the redux store (d9786fda)
75
-
76
- ##### Bug Fixes
77
-
78
- - global not defined error in dev mode (c650266c)
79
- - update versionInfo page props to support github repositories (325992a4)
80
- - entryMapper does not fire if the route path hasn't changed, we sometimes need the route entry remapped based on query params change for example, add return key to "onRouteLoad" event to ask the routing saga to not reuse the entry/mappedEntry from routing state and instead refetch and remap the route node if refetchNode is returned from the calling app as true (90f1fc7e)
81
-
82
- ##### Performance Improvements
83
-
84
- - oidc-client appearing in consumer bundles despite the package being externalized in webpack. change to dynamic import and allow webpack splitChunksPlugin to handle the separation of this element and lazy loading (if it's ever called upon). webpackChunkName does not work at this time although the webpack hint comment has been left in should this work in future (13e3cb94)
85
-
86
- ##### Refactors
87
-
88
- - call reduxInjector for static route separately (b4941837)
89
- - implement new ./src/{lib} folder structure and remove inappropriate leftover folders (797c8bd1)
90
- - delete webapp source and dependencies, update babel and eslint dependencies (40c320fb)
91
-
92
- #### 2.3.0 (2021-08-06)
93
-
94
- ##### New Features
95
-
96
- - add StaticRoute option "fetchNodeLevel" to be used with "fetchNode" to control how many url parts are sent to the siteview node api to resolve a route entry (f9e90ce0)
97
- - new search package queryParams options "assetTypes" and "includeInSearch" (7cd86adb)
98
- - scripts server start option. attributes option to add custom attributes to all rendered script tags. startup is now specified under new 'scripts' option (912625a9)
99
- - add VersionInfo page as a named export of /util sub package, add globals from server startup options, keep this all server-side (9290561c)
100
- - add new server start option "appRootPath", add support for any "startupScriptFilename" to be provided, added "resolveStartupMiddleware" to resolve requests for this static file to be served up from /dist/static/startup.js [skip ci](12d7f298)
101
- - hostname in routing redux (17ed17f7)
102
-
103
- ##### Bug Fixes
104
-
105
- - support new scripts.startup server config option (c53b96af)
106
- - oidc-client import returning "UserMAnager is not a constructor" error when not importing the library version (b18b331f)
107
- - build error around undefined global var (bdb0fc91)
108
- - ensure in-app 404s hit the load balancer to allow load balancer take over and do any required rerouting (56dc8f12)
109
- - add defaultLang to all api calls in routing saga (1fc57ba3)
110
-
111
- ##### Code Style Changes
112
-
113
- - a new lick of paint for vscode (27c9a40d)
114
-
115
- ##### Tests
116
-
117
- - add console.info when writing login cookies (de51a605)
118
-
119
- ##### Build System / Dependencies
120
-
121
- - update search package to typescript branch (249ea515)
122
- - remove /forms dir from global .npmignore (7bbb85e4)
123
- - fix ci error due to out of date package-lock.json [skip ci](942b50a2)
124
- - change release action to use github hosted runner (5a5d95c1)
125
- - change local dev watch folders [skip ci](11d57430)
126
- - change local dev watch folders [skip ci](2855d023)
127
- - start script rollup watch [skip ci](615b4284)
128
- - changes to scripts to work in monorepo scripts [skip ci](c294c27f)
129
- - update package.json details (d287b258)
130
- - remove pr from build ci [skip ci](2c8644d3)
131
- - fix release script inputs [skip ci](b98804cf)
132
- - fix syntax in release script [skip ci](42595aee)
133
- - fix workflow syntax error, add master branch to build (c56c3d41)
134
- - add new release action to be manually triggered, limit build and publish to branches (5c17ced5)
135
- - fix issue with npm config (4112915c)
136
- - fix problem with git actions (1031accd)
137
- - move git interaction away from npm version scripts and into the action yml (c22665a1)
138
- - don't tag ci prereleases (a5c55cb0)
139
- - add git config to ci (871ed3c0)
140
- - further testing ways of incrementing version and publishing prerelease package with actions (7c7b9f86)
141
- - remove faulty test stage from preversion (91f3e248)
142
- - add npm version to ci to increment a prerelease version and publish on each build (182a1a74)
143
- - try fix cwebp compile from source in build (bfc61f6f)
144
- - fix broken build with sudo (301f21fb)
145
- - remove compiling from source error in npm ci (4d0196e1)
146
- - suppress logging on npm ci build step (bde3cda0)
147
- - update package name (4c1a43d6)
148
- - update workflow action to use self-hosted runner (846b65bf)
149
- - update search package to fix patch error in ci (caebac49)
150
- - update package to remove missing patch error causing build to fail (0ffec891)
151
- - add build github workflow action (a36f36a5)
152
- - fix pull rate limit error (8efdf084)
153
- - update search package to latest (a6447008)
154
-
155
- ##### Documentation Changes
156
-
157
- - README update (#1) (8db8e8a1)
158
- - tiny README update (54db40c5)
159
- - update changelog (129081ca)
160
-
161
- #### 2.2.3 (2021-05-10)
162
-
163
- ##### Bug Fixes
164
-
165
- - entry object in routing saga not being passed to onRouteLoaded when doing field-limited entry search for a found siteview node (ce5d5df9)
166
- - Empty currentNode value in routing when doing SSR (3a6cecd2)
167
- - remove hostname from the ReturnURL querystring provided in the login redirect from classic web servers (e124ef11)
168
- - issue around expired contensisClassicToken sending app on a redirect loop due to app reading refreshToken as valid but IIS requiring the contensisClassicToken / ContensisCMSUserName cookie which is not valid/not present, always write the latest client credentials to cookie when validating stored credentials (64cb6194)
169
-
170
- ##### Tests
171
-
172
- - add new forms sub package (1393b479)
173
-
174
- #### 2.2.2 (2021-04-08)
175
-
176
- ##### Documentation Changes
177
-
178
- - update changelog (724f1727)
179
-
180
- ##### Bug Fixes
181
-
182
- - change user props firstName, lastName to match new Management API format of camelcase (8433553b)
183
- - Add contensis "ReturnURL" support to login redirects (b5c39814)
184
-
185
- #### 2.2.1 (2021-04-06)
186
-
187
- ##### Documentation Changes
188
-
189
- - update changelog (27eb6c35)
190
-
191
- ##### Bug Fixes
192
-
193
- - issue in search package when using a customApi to retrieve search results (bf1cb0b7)
194
- - issue with reading mappedEntry from the state not short circuiting to the fallback Immutable.Map() before calling .toJS() on a null value (36b62e55)
195
-
196
- #### 2.2.0 (2021-04-01)
197
-
198
- ##### Build System / Dependencies
199
-
200
- - disable warning (158a635d)
201
- - add zenhub-dev as default .env (0308f34f)
202
- - set zengenti-search-package to install from master branch (a90778fd)
203
- - update contensis dependency packages (8a7e49f0)
204
- - lib to ensure latest search package is installed (fec721ef)
205
-
206
- ##### Documentation Changes
207
-
208
- - create changelog.md (859c4ae1)
209
-
210
- ##### New Features
211
-
212
- - record and bubble up errors from the routing saga into the redux state, webApp middleware respects the context.status returned from the React StaticRouter and will render all status codes > 400 with the same rules as a plain 404 (b9f1dcc1)
213
-
214
- ##### Bug Fixes
215
-
216
- - change user props userName, firstName, lastName to match new Management API format of all lowercase (8dbe7c3d)
217
- - alter cache duration for 404 response to 5s down from 500s (f14a60a8)
218
- - bug introduced with last fix causing dynamic=true to throw a server side error and return an error page (e81470df)
219
- - Commit updated search bundles (cfa6b0ac)
220
- - LoginHelper class - Loop through ApplicationData to find refresh token rather than assuming it's always at the same index (ade9ac53)
221
-
222
- ##### Other Changes
223
-
224
- - track the current statusCode by setting it in the response object when it changes instead of primitive var (42dfd243)
225
-
226
- #### 2.1.1
227
-
228
- ##### Bug Fixes
229
-
230
- - issue with manipulated bundles from static not having cache headers on their response (9e59ca8d)
231
- - prevent using relative paths to locate assets in a consumer project (d8cbe564)
232
-
233
- ##### Performance Improvements
234
-
235
- - smaller bundles for release (db0a917f)
236
-
237
- #### 2.1.0
238
-
239
- ##### Chores
240
-
241
- ##### New Features
242
-
243
- - export redux store object in /redux subpackage (82db686e)
244
- - new server startup options staticRoutePath and staticRoutePaths[] so an array of static route paths can be defined to serve up static assets from staticFolderPath. STATIC_PATH and STATIC_ROUTE_PATH are recommended in .env file can be used exclusively or together (df990169)
245
- - adds new server start option to allow custom folder path and filename for static/startup.js (2c9ad565)
246
- - support for a new server startup option of "staticFolderPath" this is not required initially as everything should default to 'static' path (b4356e17)
247
- - use react-helmet to generate the html tag server side if htmlAttributes are specified in the consuming app (ad466706)
248
- - introduced html attributes - If the app uses react-helmet html attributes they will now work server side. (ef7b89a3)
249
- - add UPDATE_LOADING_STATE action to reset isLoading state when app has entry (79377ab0)
250
- - add language control to routing preview and add defaultLang var (b7dbac18)
251
-
252
- ##### Bug Fixes
253
-
254
- - add node.entry.language to the routing query (5247fb75)
255
- - linkDepth in ContentTypeMappings not taking effect (f78c8507)
256
- - issue with SSR not hydrating properly/flash alternative way of handling immer features (3b193fb2)
257
- - set default folder path when serving static assets (cb9b2aef)
258
- - variable access issue (a61bd07e)
259
- - update search package to latest containing fixes and other tweaks (e8703763)
260
- - removed unused comment (1401dbdd)
261
- - multilingual entries not getting mapped when visiting the same entry but after switching language (ebcea379)
262
- - removed some non-illegal characters from fixFreeTextForElastic func in search package (eeb2fe94)
263
- - issue with mappedEntry not being written to the redux state in v2 only due to iffy Object.keys check (24fd300c)
264
- - remove uneeded toJs (975a17b5)
265
- - remove module-alias package reference causing server start to fail in release package (7261b155)
266
-
267
- ##### Other Changes
268
-
269
- - add support for a nodeOptions object supplied with a ContentTypeMapping to specify details for fetching children for a route entry's contentTypeId (87a1302d)
270
- - You have reached your pull rate limit. (4a2e76b7)
271
- - attempt to nest immer reducers under one key (809e49be)
272
- - testImmer bit more of an example (c4cab4d5)
273
- - emulated sometimes using fromJS sometimes fromJSOrdered in the fromJSLeaveImmer (d54530bb)
274
- - examples/doc to show how to use immer reducers and selectors (92712b0b)
275
- - immer functionality/testing (8ce191d7)
276
- - immer redux features (e16dfa3f)
277
- - opportunity to reduce some of the excess code and add additional comments to webApp.js, remove redundant patch (0b7e0269)
278
- - remove feature to automatically exclude the current route entry id in any minilist search, instead expect the consumer to provide the current route entry id in the options if they require the current page to be excluded from minilist results (98282648)
279
-
280
- ##### Performance Improvements
281
-
282
- - changing the way we import login code and contensis-management-api package, to give consumer projects the potential to externalise this library from their vendor.js bundle if the login features are not required (055e4d43)
283
- - remove unused packages, remove old webpack build script, update jsonpath-mapper to latest version (22323612)
284
-
285
- ##### Refactors
286
-
287
- - remve superfluos header with Neil’s guidance (918d2e22)
288
-
289
- #### 2.0.1
290
-
291
- ##### Bug Fixes
292
-
293
- - issue in release package casuing prod server to fail to start, remove previous fix for @lse/component-library package (cbf61d96)