@useinsider/guido 3.21.0-beta.9f9407d → 3.21.0-beta.a4cc621

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.
@@ -103,9 +103,6 @@ export declare class RecommendationBlockControl extends CommonControl {
103
103
  * the intervening re-render staled, and saveConfig swallows that failure.
104
104
  */
105
105
  private _flushPendingNodeConfig;
106
- private _cardsPredatePendingWrite;
107
- /** The Product Ids label when the pending write moves the node's ids; the caller's default otherwise. */
108
- private _pendingDescription;
109
106
  private _syncNodeConfigToStore;
110
107
  /**
111
108
  * Fetches initial data for a block in three phases:
@@ -88,8 +88,6 @@ export interface RegenerateWithStylesOptions extends Omit<RegenerateProductRowsO
88
88
  products?: RecommendationProduct[];
89
89
  /** Optional: pass layout directly to avoid stale DOM reads after setAttribute */
90
90
  layout?: Orientation;
91
- /** Undo label for the apply; the caller sets it when a config change rides in the same batch */
92
- description?: string;
93
91
  }
94
92
  /**
95
93
  * Regenerates product rows while preserving user-applied styles, in a SINGLE commit.
@@ -158,8 +156,6 @@ export interface UpdateProductContentInPlaceOptions {
158
156
  * leaves anything a caller staged into the same batch unwritten unless it applies itself.
159
157
  */
160
158
  onApplied?: () => void;
161
- /** Undo label for the apply; the caller sets it when a config change rides in the same batch */
162
- description?: string;
163
159
  }
164
160
  /**
165
161
  * Updates product content in-place without regenerating HTML structure.
@@ -14,9 +14,6 @@ interface ConfigWriterApi {
14
14
  */
15
15
  export declare function registerNodeConfigWriter(api: ConfigWriterApi): void;
16
16
  export declare function hasEditedConfigChange(node: ImmutableHtmlNode, updates: PartialNodeConfig): boolean;
17
- export declare const PRODUCT_IDS_DESCRIPTION = "Updated product IDs";
18
- /** A deferred Product Ids edit keeps its own undo label wherever the write finally lands. */
19
- export declare function isProductIdsChange(node: ImmutableHtmlNode, updates: PartialNodeConfig): boolean;
20
17
  /**
21
18
  * Writes a config change to the block's node on its own, found by id — never through a
22
19
  * panel-held node, which may already belong to the block the user switched to.
@@ -1,10 +1,21 @@
1
1
  import type { RecommendationNodeConfig } from '../types/nodeConfig';
2
+ /** A saved module keeps the id it was saved with, so it can arrive sharing the id of an unrelated block. */
3
+ export declare function resolveSourceConfig(sourceId: number, arrived: RecommendationNodeConfig): RecommendationNodeConfig;
2
4
  /**
3
5
  * Re-reads the strategy of a duplicated block and its source and redraws both: the clone copies the
4
6
  * cards the source last drew, so a strategy edited since then only reached a block once selected (SD-153266).
5
7
  * @param config - the arriving block's persisted config; seeds either block its store entry does not match
6
8
  */
7
9
  export declare function refreshDuplicatedStrategyBlocks(sourceId: number, duplicateId: number, config: RecommendationNodeConfig): Promise<void>;
10
+ /**
11
+ * Re-reads the strategy of blocks that arrived from a saved template or module, so the panel and
12
+ * preview show a strategy edited since the design was saved without selecting the block.
13
+ * @param blocks - each block's id with its persisted config, the truth its store entry is seeded from
14
+ */
15
+ export declare function refreshArrivedStrategyBlocks(blocks: {
16
+ id: number;
17
+ config: RecommendationNodeConfig;
18
+ }[]): Promise<void>;
8
19
  /**
9
20
  * Writes a strategy change and its products straight to the document, without the settings panel.
10
21
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.21.0-beta.9f9407d",
3
+ "version": "3.21.0-beta.a4cc621",
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",