@webiny/app 5.25.0-beta.0 → 5.25.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/package.json +9 -9
- package/types.d.ts +2 -1
- package/types.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app",
|
|
3
|
-
"version": "5.25.0-beta.
|
|
3
|
+
"version": "5.25.0-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"@babel/runtime": "7.17.2",
|
|
19
19
|
"@emotion/styled": "10.3.0",
|
|
20
20
|
"@types/react": "16.14.2",
|
|
21
|
-
"@webiny/i18n": "5.25.0-beta.
|
|
22
|
-
"@webiny/i18n-react": "5.25.0-beta.
|
|
23
|
-
"@webiny/plugins": "5.25.0-beta.
|
|
24
|
-
"@webiny/react-router": "5.25.0-beta.
|
|
25
|
-
"@webiny/ui": "5.25.0-beta.
|
|
21
|
+
"@webiny/i18n": "5.25.0-beta.1",
|
|
22
|
+
"@webiny/i18n-react": "5.25.0-beta.1",
|
|
23
|
+
"@webiny/plugins": "5.25.0-beta.1",
|
|
24
|
+
"@webiny/react-router": "5.25.0-beta.1",
|
|
25
|
+
"@webiny/ui": "5.25.0-beta.1",
|
|
26
26
|
"apollo-cache": "1.3.5",
|
|
27
27
|
"apollo-cache-inmemory": "1.6.6",
|
|
28
28
|
"apollo-client": "2.6.10",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@babel/preset-react": "^7.16.0",
|
|
48
48
|
"@babel/preset-typescript": "^7.16.0",
|
|
49
49
|
"@types/warning": "^3.0.0",
|
|
50
|
-
"@webiny/cli": "^5.25.0-beta.
|
|
51
|
-
"@webiny/project-utils": "^5.25.0-beta.
|
|
50
|
+
"@webiny/cli": "^5.25.0-beta.1",
|
|
51
|
+
"@webiny/project-utils": "^5.25.0-beta.1",
|
|
52
52
|
"babel-plugin-lodash": "^3.3.4",
|
|
53
53
|
"rimraf": "^3.0.2",
|
|
54
54
|
"typescript": "4.5.5"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "c5cbc36b39a28e3f1c58de7d768fdcd113ad8e15"
|
|
72
72
|
}
|
package/types.d.ts
CHANGED
|
@@ -49,7 +49,8 @@ export interface ImageProps {
|
|
|
49
49
|
title?: string;
|
|
50
50
|
alt?: string;
|
|
51
51
|
style?: CSSProperties;
|
|
52
|
-
width?: number;
|
|
52
|
+
width?: string | number;
|
|
53
|
+
height?: string | number;
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
55
56
|
* "getImageSrc" has to be defined as a separate property, so its functionality can be reused outside of
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["types.ts"],"names":["Plugin"],"mappings":"AACA,SAASA,MAAT,QAAuB,uBAAvB;AA6CA,SAASA,MAAT","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 createdOn: string;\n createdBy: {\n id: string;\n };\n [key: string]: any;\n}\n\nexport type WebinyInitPlugin = Plugin & {\n type: \"webiny-init\";\n init(): void;\n};\n\nexport type UploadOptions = {\n apolloClient: ApolloClient<object>;\n};\n\nexport type UiStatePlugin = Plugin & {\n type: \"ui-state\";\n render(): React.ReactElement;\n};\n\nexport type FileUploaderPlugin = Plugin & {\n type: \"file-uploader\";\n // TODO: @adrian define type for the returned object\n upload(file: FileItem, options: UploadOptions): Promise<any>;\n};\n\nexport type AppFileManagerStoragePlugin = Plugin & {\n type: \"app-file-manager-storage\";\n // TODO: @adrian define type for the returned object\n upload(file: FileItem, options: UploadOptions): Promise<any>;\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?: 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\ninterface CacheGetObjectIdPluginObj {\n __typename: string;\n modelId: string;\n [key: string]: any;\n}\nexport type CacheGetObjectIdPlugin = Plugin & {\n type: \"cache-get-object-id\";\n getObjectId(obj: CacheGetObjectIdPluginObj): string | undefined;\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["types.ts"],"names":["Plugin"],"mappings":"AACA,SAASA,MAAT,QAAuB,uBAAvB;AA6CA,SAASA,MAAT","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 createdOn: string;\n createdBy: {\n id: string;\n };\n [key: string]: any;\n}\n\nexport type WebinyInitPlugin = Plugin & {\n type: \"webiny-init\";\n init(): void;\n};\n\nexport type UploadOptions = {\n apolloClient: ApolloClient<object>;\n};\n\nexport type UiStatePlugin = Plugin & {\n type: \"ui-state\";\n render(): React.ReactElement;\n};\n\nexport type FileUploaderPlugin = Plugin & {\n type: \"file-uploader\";\n // TODO: @adrian define type for the returned object\n upload(file: FileItem, options: UploadOptions): Promise<any>;\n};\n\nexport type AppFileManagerStoragePlugin = Plugin & {\n type: \"app-file-manager-storage\";\n // TODO: @adrian define type for the returned object\n upload(file: FileItem, options: UploadOptions): Promise<any>;\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\ninterface CacheGetObjectIdPluginObj {\n __typename: string;\n modelId: string;\n [key: string]: any;\n}\nexport type CacheGetObjectIdPlugin = Plugin & {\n type: \"cache-get-object-id\";\n getObjectId(obj: CacheGetObjectIdPluginObj): string | undefined;\n};\n"]}
|