@useinsider/guido 3.3.0-beta.6d597b3 → 3.3.0-beta.86ea9cd
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/@types/config/schemas.js +1 -1
- package/dist/composables/useResponsivePreview.js +1 -1
- package/dist/extensions/Blocks/Recommendation/block.js +43 -36
- package/dist/extensions/Blocks/Recommendation/services/configService.js +33 -26
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +3 -3
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +3 -3
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +3 -3
- package/dist/node_modules/valibot/dist/index.js +329 -252
- package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +11 -3
- package/package.json +3 -30
|
@@ -95,15 +95,23 @@ export declare class RecommendationConfigService {
|
|
|
95
95
|
*
|
|
96
96
|
* Called when a block is first created (dropped into template).
|
|
97
97
|
* Can optionally merge in partial config from migration.
|
|
98
|
+
*
|
|
99
|
+
* The `wasFreshDrop` flag distinguishes a brand-new drop (no prior config)
|
|
100
|
+
* from a clone (Stripo replays the source's setNodeConfig payload before
|
|
101
|
+
* onCreated fires). Callers use this to skip side-effects already inherited
|
|
102
|
+
* from the source.
|
|
98
103
|
* @example
|
|
99
104
|
* // In Block.onCreated lifecycle
|
|
100
|
-
* RecommendationConfigService.initializeConfig(this.api, node);
|
|
105
|
+
* const { config, wasFreshDrop } = RecommendationConfigService.initializeConfig(this.api, node);
|
|
101
106
|
* @param api - Stripo extension API with document modifier
|
|
102
107
|
* @param node - The immutable HTML node to initialize
|
|
103
108
|
* @param partialConfig - Optional partial config to merge with defaults
|
|
104
|
-
* @returns The initialized configuration
|
|
109
|
+
* @returns The initialized configuration and whether the node was a fresh drop
|
|
105
110
|
*/
|
|
106
|
-
static initializeConfig(api: DocumentModifierApi, node: ImmutableHtmlNode, partialConfig?: PartialNodeConfig):
|
|
111
|
+
static initializeConfig(api: DocumentModifierApi, node: ImmutableHtmlNode, partialConfig?: PartialNodeConfig): {
|
|
112
|
+
config: RecommendationNodeConfig;
|
|
113
|
+
wasFreshDrop: boolean;
|
|
114
|
+
};
|
|
107
115
|
/**
|
|
108
116
|
* Save complete configuration to a node
|
|
109
117
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.3.0-beta.
|
|
3
|
+
"version": "3.3.0-beta.86ea9cd",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@vueuse/core": "11.3.0",
|
|
40
40
|
"lodash-es": "4.17.21",
|
|
41
41
|
"pinia": "2.3.1",
|
|
42
|
-
"valibot": "1.
|
|
42
|
+
"valibot": "1.1.0",
|
|
43
43
|
"vite": "6.3.5",
|
|
44
44
|
"vue": "2.7.14"
|
|
45
45
|
},
|
|
@@ -82,35 +82,8 @@
|
|
|
82
82
|
"vue-tsc": "2.2.10"
|
|
83
83
|
},
|
|
84
84
|
"overrides": {
|
|
85
|
-
"@isaacs/brace-expansion": "^5.0.1",
|
|
86
|
-
"axios": "^1.8.2",
|
|
87
|
-
"follow-redirects": "^1.14.7",
|
|
88
|
-
"flatted": "^3.4.0",
|
|
89
|
-
"immutable": "^4.3.8",
|
|
90
85
|
"micromatch": "4.0.8",
|
|
91
|
-
"
|
|
92
|
-
"@microsoft/api-extractor": {
|
|
93
|
-
"minimatch": "^10.2.1"
|
|
94
|
-
},
|
|
95
|
-
"@typescript-eslint/typescript-estree": {
|
|
96
|
-
"minimatch": "^9.0.6"
|
|
97
|
-
},
|
|
98
|
-
"@vue/language-core": {
|
|
99
|
-
"minimatch": "^9.0.6"
|
|
100
|
-
},
|
|
101
|
-
"path-to-regexp": "6.3.0",
|
|
102
|
-
"picomatch": "^2.3.2",
|
|
103
|
-
"@rollup/pluginutils": {
|
|
104
|
-
"picomatch": "^4.0.4"
|
|
105
|
-
},
|
|
106
|
-
"@stylistic/eslint-plugin": {
|
|
107
|
-
"picomatch": "^4.0.4"
|
|
108
|
-
},
|
|
109
|
-
"fdir": {
|
|
110
|
-
"picomatch": "^4.0.4"
|
|
111
|
-
},
|
|
112
|
-
"ag-grid-community": "^31.3.4",
|
|
113
|
-
"ag-grid-enterprise": "^31.3.4"
|
|
86
|
+
"path-to-regexp": "6.3.0"
|
|
114
87
|
},
|
|
115
88
|
"msw": {
|
|
116
89
|
"workerDirectory": "public"
|