@webiny/app 5.40.6 → 5.41.0-beta.1

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/App.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { RouteProps } from "@webiny/react-router";
3
3
  import { GenericComponent, Decorator } from "@webiny/react-composition";
4
- declare type RoutesByPath = {
4
+ type RoutesByPath = {
5
5
  [key: string]: ReactElement<RouteProps>;
6
6
  };
7
7
  interface State {
package/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type Config = Record<string, any>;
1
+ export type Config = Record<string, any>;
2
2
  interface AppConfig {
3
3
  set(config: Config): void;
4
4
  get(): Config;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  export declare const UiContext: React.Context<Record<string, any>>;
3
- declare type Props = Record<string, any>;
4
- declare type State = {
3
+ type Props = Record<string, any>;
4
+ type State = {
5
5
  ui: {
6
6
  [key: string]: any;
7
7
  };
@@ -1,17 +1,21 @@
1
1
  import React from "react";
2
2
  import { RouteProps } from "@webiny/react-router";
3
- export declare const AddRoute: import("@webiny/react-composition").GenericComponent<import("react-router").RouteProps & {
4
- exact?: boolean | undefined;
5
- render?: ((params: import("@webiny/react-router/Route").RoutePropsRenderParams) => React.ReactNode) | undefined;
6
- component?: React.ComponentType<{}> | undefined;
7
- }> & {
8
- original: import("@webiny/react-composition").GenericComponent<import("react-router").RouteProps & {
9
- exact?: boolean | undefined;
10
- render?: ((params: import("@webiny/react-router/Route").RoutePropsRenderParams) => React.ReactNode) | undefined;
11
- component?: React.ComponentType<{}> | undefined;
12
- }>;
3
+ export declare const AddRoute: ((props: RouteProps) => null) & {
4
+ original: (props: RouteProps) => null;
13
5
  originalName: string;
14
6
  displayName: string;
15
7
  } & {
16
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: RouteProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
8
+ original: ((props: RouteProps) => null) & {
9
+ original: (props: RouteProps) => null;
10
+ originalName: string;
11
+ displayName: string;
12
+ };
13
+ originalName: string;
14
+ displayName: string;
15
+ } & {
16
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<((props: RouteProps) => null) & {
17
+ original: (props: RouteProps) => null;
18
+ originalName: string;
19
+ displayName: string;
20
+ }>) => (props: unknown) => React.JSX.Element;
17
21
  };
@@ -1,6 +1,10 @@
1
- import { HigherOrderComponent } from "@webiny/react-composition";
1
+ import React from "react";
2
+ import { Decorator, GenericComponent } from "@webiny/react-composition";
3
+ export interface ChildrenProps {
4
+ children: React.ReactNode;
5
+ }
2
6
  /**
3
- * Creates a Higher Order Component which is meant to wrap the entire app content.
7
+ * Creates a Higher Order Component which wraps the entire app content.
4
8
  * This is mostly useful for adding React Context providers.
5
9
  */
6
- export declare function createProvider(hoc: HigherOrderComponent): HigherOrderComponent;
10
+ export declare function createProvider(decorator: Decorator<GenericComponent<ChildrenProps>>): Decorator<GenericComponent<ChildrenProps>>;
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.createProvider = createProvider;
7
7
  /**
8
- * Creates a Higher Order Component which is meant to wrap the entire app content.
8
+ * Creates a Higher Order Component which wraps the entire app content.
9
9
  * This is mostly useful for adding React Context providers.
10
10
  */
11
- function createProvider(hoc) {
12
- return hoc;
11
+ function createProvider(decorator) {
12
+ return decorator;
13
13
  }
14
14
 
15
15
  //# sourceMappingURL=createProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createProvider","hoc"],"sources":["createProvider.tsx"],"sourcesContent":["import { HigherOrderComponent } from \"@webiny/react-composition\";\n\n/**\n * Creates a Higher Order Component which is meant to wrap the entire app content.\n * This is mostly useful for adding React Context providers.\n */\nexport function createProvider(hoc: HigherOrderComponent): HigherOrderComponent {\n return hoc;\n}\n"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACO,SAASA,cAAcA,CAACC,GAAyB,EAAwB;EAC5E,OAAOA,GAAG;AACd","ignoreList":[]}
1
+ {"version":3,"names":["createProvider","decorator"],"sources":["createProvider.tsx"],"sourcesContent":["import React from \"react\";\nimport { Decorator, GenericComponent } from \"@webiny/react-composition\";\n\nexport interface ChildrenProps {\n children: React.ReactNode;\n}\n\n/**\n * Creates a Higher Order Component which wraps the entire app content.\n * This is mostly useful for adding React Context providers.\n */\nexport function createProvider(\n decorator: Decorator<GenericComponent<ChildrenProps>>\n): Decorator<GenericComponent<ChildrenProps>> {\n return decorator;\n}\n"],"mappings":";;;;;;AAOA;AACA;AACA;AACA;AACO,SAASA,cAAcA,CAC1BC,SAAqD,EACX;EAC1C,OAAOA,SAAS;AACpB","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- export declare type UseDataListParams = {
1
+ export type UseDataListParams = {
2
2
  load?: boolean;
3
3
  name: string;
4
4
  type: string;
@@ -14,12 +14,12 @@ export declare type UseDataListParams = {
14
14
  [key: string]: any;
15
15
  };
16
16
  };
17
- export declare type SearchParams = {
17
+ export type SearchParams = {
18
18
  query: string;
19
19
  operator?: "and" | "or";
20
20
  fields?: Array<string>;
21
21
  };
22
- export declare type UseDataListProps = {
22
+ export type UseDataListProps = {
23
23
  data: Record<string, any>[];
24
24
  meta: Record<string, any>;
25
25
  init: () => void;
@@ -1,10 +1,10 @@
1
- declare type HandlerProps = {
1
+ type HandlerProps = {
2
2
  [key: string]: any;
3
3
  };
4
- declare type HandlerFactories = {
4
+ type HandlerFactories = {
5
5
  [key: string]: (props: HandlerProps) => (...params: any[]) => any;
6
6
  };
7
- declare type Handlers = {
7
+ type Handlers = {
8
8
  [K in keyof HandlerFactories]: (...params: any[]) => any;
9
9
  };
10
10
  export declare function useHandlers<H = Handlers>(props: HandlerProps, factories: HandlerFactories): H;
package/index.d.ts CHANGED
@@ -14,3 +14,4 @@ export * from "./core/DebounceRender";
14
14
  export * from "./core/createProvider";
15
15
  export * from "./core/createProviderPlugin";
16
16
  export * from "./renderApp";
17
+ export * from "./utils/createGenericContext";
package/index.js CHANGED
@@ -164,5 +164,17 @@ Object.keys(_renderApp).forEach(function (key) {
164
164
  }
165
165
  });
166
166
  });
167
+ var _createGenericContext = require("./utils/createGenericContext");
168
+ Object.keys(_createGenericContext).forEach(function (key) {
169
+ if (key === "default" || key === "__esModule") return;
170
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
171
+ if (key in exports && exports[key] === _createGenericContext[key]) return;
172
+ Object.defineProperty(exports, key, {
173
+ enumerable: true,
174
+ get: function get() {
175
+ return _createGenericContext[key];
176
+ }
177
+ });
178
+ });
167
179
 
168
180
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_AddQuerySelectionPlugin","require","_ApolloLinkPlugin","_RoutePlugin","_ApolloCacheObjectIdPlugin","_reactComposition","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_App","_Plugins","_Plugin","_Provider","_AddRoute","_DebounceRender","_createProvider","_createProviderPlugin","_renderApp"],"sources":["index.ts"],"sourcesContent":["export { AddQuerySelectionPlugin } from \"./plugins/AddQuerySelectionPlugin\";\nexport { ApolloLinkPlugin } from \"./plugins/ApolloLinkPlugin\";\nexport { RoutePlugin } from \"./plugins/RoutePlugin\";\nexport { ApolloCacheObjectIdPlugin, ApolloCacheObject } from \"./plugins/ApolloCacheObjectIdPlugin\";\n\n// Composition - we re-export this for ease of use\nexport * from \"@webiny/react-composition\";\nexport type { HigherOrderComponent, ComposeProps, ComposableFC } from \"@webiny/react-composition\";\n\n// App framework\nexport * from \"./App\";\nexport type { AppProps } from \"./App\";\nexport * from \"./core/Plugins\";\nexport * from \"./core/Plugin\";\nexport * from \"./core/Provider\";\nexport * from \"./core/AddRoute\";\nexport * from \"./core/DebounceRender\";\nexport * from \"./core/createProvider\";\nexport * from \"./core/createProviderPlugin\";\nexport * from \"./renderApp\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AO,eAAA,CAAAf,GAAA;IAAA;EAAA;AAAA;AACA,IAAAgB,qBAAA,GAAAxB,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAkB,qBAAA,EAAAjB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAgB,qBAAA,CAAAhB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAQ,qBAAA,CAAAhB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAiB,UAAA,GAAAzB,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAmB,UAAA,EAAAlB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAiB,UAAA,CAAAjB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAS,UAAA,CAAAjB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_AddQuerySelectionPlugin","require","_ApolloLinkPlugin","_RoutePlugin","_ApolloCacheObjectIdPlugin","_reactComposition","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_App","_Plugins","_Plugin","_Provider","_AddRoute","_DebounceRender","_createProvider","_createProviderPlugin","_renderApp","_createGenericContext"],"sources":["index.ts"],"sourcesContent":["export { AddQuerySelectionPlugin } from \"./plugins/AddQuerySelectionPlugin\";\nexport { ApolloLinkPlugin } from \"./plugins/ApolloLinkPlugin\";\nexport { RoutePlugin } from \"./plugins/RoutePlugin\";\nexport { ApolloCacheObjectIdPlugin, ApolloCacheObject } from \"./plugins/ApolloCacheObjectIdPlugin\";\n\n// Composition - we re-export this for ease of use\nexport * from \"@webiny/react-composition\";\nexport type { HigherOrderComponent, ComposeProps, ComposableFC } from \"@webiny/react-composition\";\n\n// App framework\nexport * from \"./App\";\nexport type { AppProps } from \"./App\";\nexport * from \"./core/Plugins\";\nexport * from \"./core/Plugin\";\nexport * from \"./core/Provider\";\nexport * from \"./core/AddRoute\";\nexport * from \"./core/DebounceRender\";\nexport * from \"./core/createProvider\";\nexport * from \"./core/createProviderPlugin\";\nexport * from \"./renderApp\";\nexport * from \"./utils/createGenericContext\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,wBAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AAGA,IAAAI,iBAAA,GAAAJ,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAF,iBAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,iBAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,iBAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAIA,IAAAS,IAAA,GAAAjB,OAAA;AAAAK,MAAA,CAAAC,IA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AA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAiB,UAAA,CAAAjB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAS,UAAA,CAAAjB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAkB,qBAAA,GAAA1B,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAoB,qBAAA,EAAAnB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAkB,qBAAA,CAAAlB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAU,qBAAA,CAAAlB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app",
3
- "version": "5.40.6",
3
+ "version": "5.41.0-beta.1",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,12 +18,12 @@
18
18
  "@babel/runtime": "7.24.1",
19
19
  "@emotion/styled": "11.10.6",
20
20
  "@types/react": "18.2.79",
21
- "@webiny/i18n": "5.40.6",
22
- "@webiny/i18n-react": "5.40.6",
23
- "@webiny/plugins": "5.40.6",
24
- "@webiny/react-composition": "5.40.6",
25
- "@webiny/react-router": "5.40.6",
26
- "@webiny/ui": "5.40.6",
21
+ "@webiny/i18n": "5.41.0-beta.1",
22
+ "@webiny/i18n-react": "5.41.0-beta.1",
23
+ "@webiny/plugins": "5.41.0-beta.1",
24
+ "@webiny/react-composition": "5.41.0-beta.1",
25
+ "@webiny/react-router": "5.41.0-beta.1",
26
+ "@webiny/ui": "5.41.0-beta.1",
27
27
  "apollo-cache": "1.3.5",
28
28
  "apollo-cache-inmemory": "1.6.6",
29
29
  "apollo-client": "2.6.10",
@@ -53,10 +53,10 @@
53
53
  "@babel/preset-typescript": "7.24.1",
54
54
  "@types/lodash": "4.14.195",
55
55
  "@types/warning": "3.0.0",
56
- "@webiny/cli": "5.40.6",
57
- "@webiny/project-utils": "5.40.6",
56
+ "@webiny/cli": "5.41.0-beta.1",
57
+ "@webiny/project-utils": "5.41.0-beta.1",
58
58
  "rimraf": "5.0.5",
59
- "typescript": "4.7.4"
59
+ "typescript": "4.9.5"
60
60
  },
61
61
  "publishConfig": {
62
62
  "access": "public",
@@ -73,5 +73,5 @@
73
73
  ]
74
74
  }
75
75
  },
76
- "gitHead": "f9da84b373e62f9f269599c4301e5e4418a98d51"
76
+ "gitHead": "2035c6fdbac9f52545b5024a381bc568c66ca899"
77
77
  }
@@ -2,7 +2,7 @@ import { ReactNode } from "react";
2
2
  import { Plugin } from "@webiny/plugins/types";
3
3
  import imagePlugin from "./image";
4
4
  export { imagePlugin };
5
- declare type RenderPluginOptions<T> = {
5
+ type RenderPluginOptions<T> = {
6
6
  wrapper?: boolean;
7
7
  fn?: string;
8
8
  filter?: (value: T, index: number, array: T[]) => boolean;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type SelectedFile = {
2
+ export type SelectedFile = {
3
3
  id: string;
4
4
  name: string;
5
5
  type: string;
@@ -9,7 +9,7 @@ export declare type SelectedFile = {
9
9
  base64: string | null;
10
10
  };
11
11
  };
12
- export declare type FileError = {
12
+ export type FileError = {
13
13
  id: string;
14
14
  type: "unsupportedFileType" | "maxSizeExceeded" | "multipleMaxSizeExceeded" | "multipleMaxCountExceeded" | "multipleNotAllowed";
15
15
  index?: number;
@@ -19,17 +19,17 @@ export declare type FileError = {
19
19
  multipleMaxCount?: number;
20
20
  multipleCount?: number;
21
21
  };
22
- export declare type BrowseFilesParams = {
22
+ export type BrowseFilesParams = {
23
23
  onSuccess?: (files: SelectedFile[]) => void;
24
24
  onError?: (errors: FileError[], files: SelectedFile[]) => void;
25
25
  };
26
- export declare type RenderPropParams = {
26
+ export type RenderPropParams = {
27
27
  browseFiles: (params: BrowseFilesParams) => void;
28
28
  getDropZoneProps: (additionalProps: any) => any;
29
29
  getLabelProps: (additionalProps: any) => any;
30
30
  validateFiles: (files: SelectedFile[] | File[]) => FileError[];
31
31
  };
32
- export declare type FilesRules = {
32
+ export type FilesRules = {
33
33
  accept: string[];
34
34
  multiple: boolean;
35
35
  maxSize: string;
@@ -39,7 +39,7 @@ export declare type FilesRules = {
39
39
  onSuccess?: (files: SelectedFile[]) => void;
40
40
  onError?: (errors: FileError[], files: SelectedFile[]) => void;
41
41
  };
42
- export declare type Props = FilesRules & {
42
+ export type Props = FilesRules & {
43
43
  children: (params: RenderPropParams) => React.ReactNode;
44
44
  id?: string;
45
45
  };
package/types.d.ts CHANGED
@@ -2,9 +2,9 @@ import * as React from "react";
2
2
  import { Plugin } from "@webiny/plugins/types";
3
3
  import { ApolloClient } from "apollo-client";
4
4
  import { CSSProperties } from "react";
5
- export declare type GenericRecordKey = string | number | symbol;
6
- export declare type GenericRecord<K extends GenericRecordKey = GenericRecordKey, V = any> = Record<K, V>;
7
- export declare type UploadOptions = {
5
+ export type GenericRecordKey = string | number | symbol;
6
+ export type GenericRecord<K extends GenericRecordKey = GenericRecordKey, V = any> = Record<K, V>;
7
+ export type UploadOptions = {
8
8
  apolloClient: ApolloClient<object>;
9
9
  onProgress?: (params: {
10
10
  sent: number;
@@ -12,7 +12,7 @@ export declare type UploadOptions = {
12
12
  percentage: number;
13
13
  }) => void;
14
14
  };
15
- export declare type UiStatePlugin = Plugin & {
15
+ export type UiStatePlugin = Plugin & {
16
16
  type: "ui-state";
17
17
  render(): React.ReactElement;
18
18
  };
@@ -23,7 +23,7 @@ export interface UploadedFile {
23
23
  size: number;
24
24
  key: string;
25
25
  }
26
- export declare type FileUploaderPlugin = Plugin & {
26
+ export type FileUploaderPlugin = Plugin & {
27
27
  type: "file-uploader";
28
28
  name: "file-uploader";
29
29
  upload(file: File, options: UploadOptions): Promise<UploadedFile>;
@@ -49,7 +49,7 @@ export interface ImageProps {
49
49
  * "getImageSrc" has to be defined as a separate property, so its functionality can be reused outside of
50
50
  * the Image component. This is ideal in cases where manual creation of image src is needed.
51
51
  */
52
- export declare type ImageComponentPlugin = Plugin & {
52
+ export type ImageComponentPlugin = Plugin & {
53
53
  type: "image-component";
54
54
  render: (props: ImageProps) => React.ReactElement;
55
55
  getImageSrc: (props?: Record<string, any>) => string;
@@ -61,7 +61,7 @@ export declare type ImageComponentPlugin = Plugin & {
61
61
  * Enables registering new routes.
62
62
  * @see https://docs.webiny.com/docs/webiny-apps/admin/development/plugins-reference/app#route
63
63
  */
64
- export declare type RoutePlugin = Plugin & {
64
+ export type RoutePlugin = Plugin & {
65
65
  type: "route";
66
66
  route: React.ReactElement;
67
67
  };
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ export type CreateGenericContext<T = any> = T;
3
+ type GenericContextProviderProps<T> = T & {
4
+ children: React.ReactNode;
5
+ };
6
+ export declare function createGenericContext<T>(name: string): {
7
+ Provider: {
8
+ ({ children, ...props }: GenericContextProviderProps<T>): React.JSX.Element;
9
+ displayName: string;
10
+ };
11
+ useHook: () => NonNullable<T>;
12
+ };
13
+ export {};
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.createGenericContext = createGenericContext;
9
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var _excluded = ["children"];
12
+ function createGenericContext(name) {
13
+ var GenericContext = /*#__PURE__*/(0, _react.createContext)(undefined);
14
+ function Provider(_ref) {
15
+ var children = _ref.children,
16
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
17
+ return /*#__PURE__*/_react.default.createElement(GenericContext.Provider, {
18
+ value: props
19
+ }, children);
20
+ }
21
+ Provider.displayName = "".concat(name, "Provider");
22
+ return {
23
+ Provider: Provider,
24
+ useHook: function useHook() {
25
+ var context = _react.default.useContext(GenericContext);
26
+ if (!context) {
27
+ throw Error("Context provider for \"".concat(name, "\" is missing in the component tree!"));
28
+ }
29
+ return context;
30
+ }
31
+ };
32
+ }
33
+
34
+ //# sourceMappingURL=createGenericContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_excluded","createGenericContext","name","GenericContext","createContext","undefined","Provider","_ref","children","props","_objectWithoutProperties2","default","createElement","value","displayName","concat","useHook","context","React","useContext","Error"],"sources":["createGenericContext.tsx"],"sourcesContent":["import React, { createContext } from \"react\";\n\nexport type CreateGenericContext<T = any> = T;\n\ntype GenericContextProviderProps<T> = T & {\n children: React.ReactNode;\n};\n\nexport function createGenericContext<T>(name: string) {\n const GenericContext = createContext<CreateGenericContext | undefined>(undefined);\n\n function Provider({ children, ...props }: GenericContextProviderProps<T>) {\n return <GenericContext.Provider value={props}>{children}</GenericContext.Provider>;\n }\n\n Provider.displayName = `${name}Provider`;\n\n return {\n Provider,\n useHook: () => {\n const context = React.useContext<CreateGenericContext<T>>(\n GenericContext as unknown as React.Context<CreateGenericContext<T>>\n );\n\n if (!context) {\n throw Error(`Context provider for \"${name}\" is missing in the component tree!`);\n }\n\n return context;\n }\n };\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA6C,IAAAC,SAAA;AAQtC,SAASC,oBAAoBA,CAAIC,IAAY,EAAE;EAClD,IAAMC,cAAc,gBAAG,IAAAC,oBAAa,EAAmCC,SAAS,CAAC;EAEjF,SAASC,QAAQA,CAAAC,IAAA,EAAyD;IAAA,IAAtDC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAAKC,KAAK,OAAAC,yBAAA,CAAAC,OAAA,EAAAJ,IAAA,EAAAP,SAAA;IAClC,oBAAOH,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACT,cAAc,CAACG,QAAQ;MAACO,KAAK,EAAEJ;IAAM,GAAED,QAAkC,CAAC;EACtF;EAEAF,QAAQ,CAACQ,WAAW,MAAAC,MAAA,CAAMb,IAAI,aAAU;EAExC,OAAO;IACHI,QAAQ,EAARA,QAAQ;IACRU,OAAO,EAAE,SAAAA,QAAA,EAAM;MACX,IAAMC,OAAO,GAAGC,cAAK,CAACC,UAAU,CAC5BhB,cACJ,CAAC;MAED,IAAI,CAACc,OAAO,EAAE;QACV,MAAMG,KAAK,2BAAAL,MAAA,CAA0Bb,IAAI,yCAAqC,CAAC;MACnF;MAEA,OAAOe,OAAO;IAClB;EACJ,CAAC;AACL","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export declare type IHashingAlgorithm = "SHA-1" | "SHA-256" | "SHA-512";
1
+ export type IHashingAlgorithm = "SHA-1" | "SHA-256" | "SHA-512";
2
2
  export declare const createHashing: (algorithm: IHashingAlgorithm) => (value: unknown) => Promise<string>;
@@ -21,6 +21,14 @@ var getTenantId = exports.getTenantId = function getTenantId() {
21
21
  // 3. Get tenant via `window.localStorage.webiny_tenant`. Used within the Admin app.
22
22
  tenant = window.localStorage.webiny_tenant;
23
23
  if (tenant) {
24
+ try {
25
+ var value = JSON.parse(tenant);
26
+ if (value) {
27
+ return value;
28
+ }
29
+ } catch (_unused) {
30
+ // do nothing
31
+ }
24
32
  return tenant;
25
33
  }
26
34
 
@@ -1 +1 @@
1
- {"version":3,"names":["_isLocalhost","require","getTenantId","exports","tenant","URLSearchParams","location","search","get","window","__PS_RENDER_TENANT__","localStorage","webiny_tenant","isLocalhost","process","env","WEBINY_WEBSITE_TENANT_ID","WEBINY_ADMIN_TENANT_ID"],"sources":["getTenantId.ts"],"sourcesContent":["import { isLocalhost } from \"~/utils/isLocalhost\";\n\ndeclare global {\n interface Window {\n __PS_RENDER_TENANT__: string;\n }\n}\n\nexport const getTenantId = (): string | null => {\n // 1. Get tenant via the `__tenant` query param. Useful when doing page previews.\n let tenant = new URLSearchParams(location.search).get(\"__tenant\");\n if (tenant) {\n return tenant;\n }\n\n // 2. Get tenant via `window.__PS_RENDER_TENANT__`. Used with prerendered pages.\n tenant = window.__PS_RENDER_TENANT__;\n if (tenant) {\n return tenant;\n }\n\n // 3. Get tenant via `window.localStorage.webiny_tenant`. Used within the Admin app.\n tenant = window.localStorage.webiny_tenant;\n if (tenant) {\n return tenant;\n }\n\n // 4. Finally, for development purposes, we take the `WEBINY_WEBSITE_TENANT_ID`\n // and `WEBINY_ADMIN_TENANT_ID` environment variables into consideration.\n if (isLocalhost()) {\n return process.env.WEBINY_WEBSITE_TENANT_ID || process.env.WEBINY_ADMIN_TENANT_ID || null;\n }\n\n return null;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAQO,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAA,EAAwB;EAC5C;EACA,IAAIE,MAAM,GAAG,IAAIC,eAAe,CAACC,QAAQ,CAACC,MAAM,CAAC,CAACC,GAAG,CAAC,UAAU,CAAC;EACjE,IAAIJ,MAAM,EAAE;IACR,OAAOA,MAAM;EACjB;;EAEA;EACAA,MAAM,GAAGK,MAAM,CAACC,oBAAoB;EACpC,IAAIN,MAAM,EAAE;IACR,OAAOA,MAAM;EACjB;;EAEA;EACAA,MAAM,GAAGK,MAAM,CAACE,YAAY,CAACC,aAAa;EAC1C,IAAIR,MAAM,EAAE;IACR,OAAOA,MAAM;EACjB;;EAEA;EACA;EACA,IAAI,IAAAS,wBAAW,EAAC,CAAC,EAAE;IACf,OAAOC,OAAO,CAACC,GAAG,CAACC,wBAAwB,IAAIF,OAAO,CAACC,GAAG,CAACE,sBAAsB,IAAI,IAAI;EAC7F;EAEA,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_isLocalhost","require","getTenantId","exports","tenant","URLSearchParams","location","search","get","window","__PS_RENDER_TENANT__","localStorage","webiny_tenant","value","JSON","parse","_unused","isLocalhost","process","env","WEBINY_WEBSITE_TENANT_ID","WEBINY_ADMIN_TENANT_ID"],"sources":["getTenantId.ts"],"sourcesContent":["import { isLocalhost } from \"~/utils/isLocalhost\";\n\ndeclare global {\n interface Window {\n __PS_RENDER_TENANT__: string;\n }\n}\n\nexport const getTenantId = (): string | null => {\n // 1. Get tenant via the `__tenant` query param. Useful when doing page previews.\n let tenant = new URLSearchParams(location.search).get(\"__tenant\");\n if (tenant) {\n return tenant;\n }\n\n // 2. Get tenant via `window.__PS_RENDER_TENANT__`. Used with prerendered pages.\n tenant = window.__PS_RENDER_TENANT__;\n if (tenant) {\n return tenant;\n }\n\n // 3. Get tenant via `window.localStorage.webiny_tenant`. Used within the Admin app.\n tenant = window.localStorage.webiny_tenant;\n if (tenant) {\n try {\n const value = JSON.parse(tenant);\n if (value) {\n return value;\n }\n } catch {\n // do nothing\n }\n return tenant;\n }\n\n // 4. Finally, for development purposes, we take the `WEBINY_WEBSITE_TENANT_ID`\n // and `WEBINY_ADMIN_TENANT_ID` environment variables into consideration.\n if (isLocalhost()) {\n return process.env.WEBINY_WEBSITE_TENANT_ID || process.env.WEBINY_ADMIN_TENANT_ID || null;\n }\n\n return null;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAQO,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAA,EAAwB;EAC5C;EACA,IAAIE,MAAM,GAAG,IAAIC,eAAe,CAACC,QAAQ,CAACC,MAAM,CAAC,CAACC,GAAG,CAAC,UAAU,CAAC;EACjE,IAAIJ,MAAM,EAAE;IACR,OAAOA,MAAM;EACjB;;EAEA;EACAA,MAAM,GAAGK,MAAM,CAACC,oBAAoB;EACpC,IAAIN,MAAM,EAAE;IACR,OAAOA,MAAM;EACjB;;EAEA;EACAA,MAAM,GAAGK,MAAM,CAACE,YAAY,CAACC,aAAa;EAC1C,IAAIR,MAAM,EAAE;IACR,IAAI;MACA,IAAMS,KAAK,GAAGC,IAAI,CAACC,KAAK,CAACX,MAAM,CAAC;MAChC,IAAIS,KAAK,EAAE;QACP,OAAOA,KAAK;MAChB;IACJ,CAAC,CAAC,OAAAG,OAAA,EAAM;MACJ;IAAA;IAEJ,OAAOZ,MAAM;EACjB;;EAEA;EACA;EACA,IAAI,IAAAa,wBAAW,EAAC,CAAC,EAAE;IACf,OAAOC,OAAO,CAACC,GAAG,CAACC,wBAAwB,IAAIF,OAAO,CAACC,GAAG,CAACE,sBAAsB,IAAI,IAAI;EAC7F;EAEA,OAAO,IAAI;AACf,CAAC","ignoreList":[]}