@webiny/app 0.0.0-unstable.c59b9cc5b9 → 0.0.0-unstable.c7dec08bb0

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 (3) hide show
  1. package/package.json +10 -10
  2. package/types.d.ts +0 -16
  3. package/types.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app",
3
- "version": "0.0.0-unstable.c59b9cc5b9",
3
+ "version": "0.0.0-unstable.c7dec08bb0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,12 +19,12 @@
19
19
  "@emotion/styled": "11.10.6",
20
20
  "@types/react": "17.0.39",
21
21
  "@types/web": "0.0.61",
22
- "@webiny/i18n": "0.0.0-unstable.c59b9cc5b9",
23
- "@webiny/i18n-react": "0.0.0-unstable.c59b9cc5b9",
24
- "@webiny/plugins": "0.0.0-unstable.c59b9cc5b9",
25
- "@webiny/react-composition": "0.0.0-unstable.c59b9cc5b9",
26
- "@webiny/react-router": "0.0.0-unstable.c59b9cc5b9",
27
- "@webiny/ui": "0.0.0-unstable.c59b9cc5b9",
22
+ "@webiny/i18n": "0.0.0-unstable.c7dec08bb0",
23
+ "@webiny/i18n-react": "0.0.0-unstable.c7dec08bb0",
24
+ "@webiny/plugins": "0.0.0-unstable.c7dec08bb0",
25
+ "@webiny/react-composition": "0.0.0-unstable.c7dec08bb0",
26
+ "@webiny/react-router": "0.0.0-unstable.c7dec08bb0",
27
+ "@webiny/ui": "0.0.0-unstable.c7dec08bb0",
28
28
  "apollo-cache": "1.3.5",
29
29
  "apollo-cache-inmemory": "1.6.6",
30
30
  "apollo-client": "2.6.10",
@@ -52,8 +52,8 @@
52
52
  "@babel/preset-typescript": "7.18.6",
53
53
  "@types/lodash.debounce": "4.0.7",
54
54
  "@types/warning": "3.0.0",
55
- "@webiny/cli": "0.0.0-unstable.c59b9cc5b9",
56
- "@webiny/project-utils": "0.0.0-unstable.c59b9cc5b9",
55
+ "@webiny/cli": "0.0.0-unstable.c7dec08bb0",
56
+ "@webiny/project-utils": "0.0.0-unstable.c7dec08bb0",
57
57
  "babel-plugin-lodash": "3.3.4",
58
58
  "rimraf": "3.0.2",
59
59
  "typescript": "4.7.4"
@@ -74,5 +74,5 @@
74
74
  ]
75
75
  }
76
76
  },
77
- "gitHead": "c59b9cc5b96b7fd91388de93c7fff2d977d25220"
77
+ "gitHead": "c7dec08bb095467cca6a61381bd399d66b7bb147"
78
78
  }
package/types.d.ts CHANGED
@@ -3,22 +3,6 @@ import * as React from "react";
3
3
  import { Plugin } from "@webiny/plugins/types";
4
4
  import { ApolloClient } from "apollo-client";
5
5
  import { CSSProperties } from "react";
6
- export interface FileItem {
7
- id: string;
8
- name: string;
9
- key: string;
10
- src: string;
11
- size: number;
12
- type: string;
13
- tags: string[];
14
- aliases: string[];
15
- createdOn: string;
16
- createdBy: {
17
- id: string;
18
- displayName: string;
19
- };
20
- [key: string]: any;
21
- }
22
6
  export declare type UploadOptions = {
23
7
  apolloClient: ApolloClient<object>;
24
8
  onProgress?: (params: {
package/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import * as React from \"react\";\nimport { Plugin } from \"@webiny/plugins/types\";\nimport { ApolloClient } from \"apollo-client\";\nimport { CSSProperties } from \"react\";\n\nexport interface FileItem {\n id: string;\n name: string;\n key: string;\n src: string;\n size: number;\n type: string;\n tags: string[];\n aliases: string[];\n createdOn: string;\n createdBy: {\n id: string;\n displayName: string;\n };\n [key: string]: any;\n}\n\nexport type UploadOptions = {\n apolloClient: ApolloClient<object>;\n onProgress?: (params: { sent: number; total: number; percentage: number }) => void;\n};\n\nexport type UiStatePlugin = Plugin & {\n type: \"ui-state\";\n render(): React.ReactElement;\n};\n\nexport interface UploadedFile {\n id: string;\n name: string;\n type: string;\n size: number;\n key: string;\n}\n\nexport type FileUploaderPlugin = Plugin & {\n type: \"file-uploader\";\n name: \"file-uploader\";\n upload(file: File, options: UploadOptions): Promise<UploadedFile>;\n};\n\nexport { Plugin };\n\nexport interface ImageProps {\n src: string;\n preset?: string;\n transform?: {\n [key: string]: any;\n };\n // \"auto\" is a special keyword - if present, plugins insert their own srcSet.\n srcSet?: { [key: string]: any } | \"auto\";\n className?: string;\n title?: string;\n alt?: string;\n style?: CSSProperties;\n width?: string | number;\n height?: string | number;\n}\n\n/**\n * \"getImageSrc\" has to be defined as a separate property, so its functionality can be reused outside of\n * the Image component. This is ideal in cases where manual creation of image src is needed.\n */\nexport type ImageComponentPlugin = Plugin & {\n type: \"image-component\";\n render: (props: ImageProps) => React.ReactElement;\n getImageSrc: (props?: Record<string, any>) => string;\n presets: { [key: string]: any };\n};\n\n/**\n * Enables registering new routes.\n * @see https://docs.webiny.com/docs/webiny-apps/admin/development/plugins-reference/app#route\n */\nexport type RoutePlugin = Plugin & {\n type: \"route\";\n route: React.ReactElement;\n};\n"],"mappings":";;;;;;;;;;;AACA"}
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import * as React from \"react\";\nimport { Plugin } from \"@webiny/plugins/types\";\nimport { ApolloClient } from \"apollo-client\";\nimport { CSSProperties } from \"react\";\n\nexport type UploadOptions = {\n apolloClient: ApolloClient<object>;\n onProgress?: (params: { sent: number; total: number; percentage: number }) => void;\n};\n\nexport type UiStatePlugin = Plugin & {\n type: \"ui-state\";\n render(): React.ReactElement;\n};\n\nexport interface UploadedFile {\n id: string;\n name: string;\n type: string;\n size: number;\n key: string;\n}\n\nexport type FileUploaderPlugin = Plugin & {\n type: \"file-uploader\";\n name: \"file-uploader\";\n upload(file: File, options: UploadOptions): Promise<UploadedFile>;\n};\n\nexport { Plugin };\n\nexport interface ImageProps {\n src: string;\n preset?: string;\n transform?: {\n [key: string]: any;\n };\n // \"auto\" is a special keyword - if present, plugins insert their own srcSet.\n srcSet?: { [key: string]: any } | \"auto\";\n className?: string;\n title?: string;\n alt?: string;\n style?: CSSProperties;\n width?: string | number;\n height?: string | number;\n}\n\n/**\n * \"getImageSrc\" has to be defined as a separate property, so its functionality can be reused outside of\n * the Image component. This is ideal in cases where manual creation of image src is needed.\n */\nexport type ImageComponentPlugin = Plugin & {\n type: \"image-component\";\n render: (props: ImageProps) => React.ReactElement;\n getImageSrc: (props?: Record<string, any>) => string;\n presets: { [key: string]: any };\n};\n\n/**\n * Enables registering new routes.\n * @see https://docs.webiny.com/docs/webiny-apps/admin/development/plugins-reference/app#route\n */\nexport type RoutePlugin = Plugin & {\n type: \"route\";\n route: React.ReactElement;\n};\n"],"mappings":";;;;;;;;;;;AACA"}