@grapesjs/studio-sdk-plugins 1.0.23 → 1.0.24
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/dist/animationComponent/index.es.js +0 -4
- package/dist/canvasFullSize/index.cjs.js +9 -9
- package/dist/canvasFullSize/index.es.js +156 -136
- package/dist/canvasFullSize/index.umd.js +9 -9
- package/dist/canvasFullSize/utils.d.ts +8 -0
- package/dist/dataSourceEjs/EjsExporter.d.ts +11 -4
- package/dist/dataSourceEjs/index.cjs.js +10 -20
- package/dist/dataSourceEjs/index.es.js +179 -302
- package/dist/dataSourceEjs/index.umd.js +10 -20
- package/dist/dataSourceHandlebars/HandlebarsExporter.d.ts +11 -4
- package/dist/dataSourceHandlebars/index.cjs.js +6 -16
- package/dist/dataSourceHandlebars/index.es.js +141 -263
- package/dist/dataSourceHandlebars/index.umd.js +6 -16
- package/dist/googleFontsAssetProvider/index.cjs.js +1 -1
- package/dist/googleFontsAssetProvider/index.es.js +1 -1
- package/dist/googleFontsAssetProvider/index.umd.js +1 -1
- package/dist/index.cjs.js +50 -60
- package/dist/index.es.js +2263 -2370
- package/dist/index.umd.js +57 -67
- package/dist/rendererReact/types.d.ts +1 -2
- package/dist/utilsDataSources.d.ts +4 -24
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CanvasConfig
|
|
1
|
+
import { CanvasConfig } from 'grapesjs';
|
|
2
2
|
import { createRoot } from 'react-dom/client';
|
|
3
3
|
import { CustomRendererReactConfig } from './shared/types';
|
|
4
4
|
import { ReactRendererPluginOptionsSchema } from './typesSchema';
|
|
@@ -15,7 +15,6 @@ declare global {
|
|
|
15
15
|
type CustomRenderer = Parameters<Required<CanvasConfig>['customRenderer']>[0];
|
|
16
16
|
export interface CustomRendererProps extends CustomRenderer {
|
|
17
17
|
config: ReactRendererPluginOptions;
|
|
18
|
-
onMount?: (view: ComponentView) => void;
|
|
19
18
|
}
|
|
20
19
|
export interface ReactRendererPluginOptions extends Omit<ReactRendererPluginOptionsSchema, 'components' | 'errors' | 'wrapper'>, CustomRendererReactConfig {
|
|
21
20
|
}
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import { ConditionType,
|
|
2
|
-
import {
|
|
3
|
-
export declare class DataSourceExporter {
|
|
4
|
-
private strategy;
|
|
5
|
-
private requiredHelpers;
|
|
6
|
-
private helperLibrary;
|
|
7
|
-
constructor(strategy: IDataSourceExporter);
|
|
8
|
-
registerHelper(helperId: string): void;
|
|
9
|
-
generateVariable(options: DataVariableResolverProps): string;
|
|
10
|
-
generateCollectionStart(options: DataCollectionResolverProps): string;
|
|
11
|
-
generateCollectionEnd(): string;
|
|
12
|
-
generateConditionalStart(condition: any): string;
|
|
13
|
-
generateConditionElse(): string;
|
|
14
|
-
generateConditionalEnd(): string;
|
|
15
|
-
reset(): void;
|
|
16
|
-
}
|
|
17
|
-
export declare function resolveCustomDataPath({ component, value, getCustomPath }: {
|
|
18
|
-
component: Component;
|
|
19
|
-
value: any;
|
|
20
|
-
getCustomPath?: GetCustomPath;
|
|
21
|
-
}): any;
|
|
22
|
-
export declare const extendDataComponents: (editor: Editor) => void;
|
|
1
|
+
import { ConditionType, IDataSourceExporter, IDataSourceImporter } from '@studio/editor/src/typeConfigs/dataSources';
|
|
2
|
+
import { Editor, LogicGroupProps } from 'grapesjs';
|
|
23
3
|
export declare const isLogicCondition: (condition: ConditionType) => condition is LogicGroupProps;
|
|
24
|
-
export declare const setupExporter: (editor: Editor,
|
|
4
|
+
export declare const setupExporter: (editor: Editor, exporter: IDataSourceExporter) => () => void;
|
|
25
5
|
export declare const setupImporter: (editor: Editor, props: {
|
|
26
6
|
contains?: string;
|
|
27
|
-
importer:
|
|
7
|
+
importer: IDataSourceImporter;
|
|
28
8
|
}) => () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grapesjs/studio-sdk-plugins",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test": "jest"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"grapesjs": "^0.22.
|
|
23
|
+
"grapesjs": "^0.22.8",
|
|
24
24
|
"jest-environment-jsdom": "^30.0.0-beta.3",
|
|
25
25
|
"tinymce": "^6.8.5",
|
|
26
26
|
"tsx": "^4.19.1",
|