@salesforce/ui-design-mode 10.18.3 → 10.19.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.
@@ -16,28 +16,31 @@ export interface ChangeSetCommand {
16
16
  }
17
17
  /** The net effective changes for one element, grouped + deduped. */
18
18
  export interface ChangeSetEntry {
19
- sourceFile: string;
20
19
  /**
21
- * The element's source position when fully known. All-or-nothing per the
22
- * protocol `SourceLocation` invariant — omitted when line/column are missing.
20
+ * The element's source position. Always present: `computeChangeSet` drops any
21
+ * entry whose recorded `data` lacks a full location. An element isn't
22
+ * selectable without one (protocol `SourceLocation` invariant), so this only
23
+ * guards a malformed stack. `sourceFile` lives inside it — no separate copy.
23
24
  */
24
- debugSource?: SourceLocation;
25
- componentName?: string;
25
+ debugSource: SourceLocation;
26
26
  commands: ChangeSetCommand[];
27
27
  }
28
28
  /** Property key used for inline text edits (text commands have no `data.property`). */
29
29
  export declare const TEXT_PROPERTY = "textContent";
30
30
  /**
31
31
  * Reduce a raw undo-stack snapshot to the effective change set:
32
- * - grouped per element (by source file + line:column, with componentName fallback),
32
+ * - grouped per element (by source file + line:column),
33
33
  * - deduped to the latest value per property (insertion order preserved),
34
34
  * - reverted-to-empty *style* edits dropped (an empty CSS value means the field
35
35
  * was cleared back to its placeholder — a no-op, not an intentional change),
36
36
  * - empty `textContent` kept (clearing an element's text is a real edit),
37
37
  * - groups left with no commands dropped entirely.
38
38
  *
39
- * Only `style` and `text` commands contribute; other command types (e.g. media)
40
- * are ignored here. Order is the order each element was first touched.
39
+ * Entries whose `data` lacks a full source location are dropped: an element
40
+ * isn't selectable without one (protocol invariant), so a missing location means
41
+ * a malformed stack, not a locatable change. Only `style` and `text` commands
42
+ * contribute; other command types (e.g. media) are ignored. Order is the order
43
+ * each element was first touched.
41
44
  */
42
45
  export declare function computeChangeSet(stack: HistoryStackEntry[]): ChangeSetEntry[];
43
46
  //# sourceMappingURL=changeSet.d.ts.map
@@ -16,28 +16,31 @@ export interface ChangeSetCommand {
16
16
  }
17
17
  /** The net effective changes for one element, grouped + deduped. */
18
18
  export interface ChangeSetEntry {
19
- sourceFile: string;
20
19
  /**
21
- * The element's source position when fully known. All-or-nothing per the
22
- * protocol `SourceLocation` invariant — omitted when line/column are missing.
20
+ * The element's source position. Always present: `computeChangeSet` drops any
21
+ * entry whose recorded `data` lacks a full location. An element isn't
22
+ * selectable without one (protocol `SourceLocation` invariant), so this only
23
+ * guards a malformed stack. `sourceFile` lives inside it — no separate copy.
23
24
  */
24
- debugSource?: SourceLocation;
25
- componentName?: string;
25
+ debugSource: SourceLocation;
26
26
  commands: ChangeSetCommand[];
27
27
  }
28
28
  /** Property key used for inline text edits (text commands have no `data.property`). */
29
29
  export declare const TEXT_PROPERTY = "textContent";
30
30
  /**
31
31
  * Reduce a raw undo-stack snapshot to the effective change set:
32
- * - grouped per element (by source file + line:column, with componentName fallback),
32
+ * - grouped per element (by source file + line:column),
33
33
  * - deduped to the latest value per property (insertion order preserved),
34
34
  * - reverted-to-empty *style* edits dropped (an empty CSS value means the field
35
35
  * was cleared back to its placeholder — a no-op, not an intentional change),
36
36
  * - empty `textContent` kept (clearing an element's text is a real edit),
37
37
  * - groups left with no commands dropped entirely.
38
38
  *
39
- * Only `style` and `text` commands contribute; other command types (e.g. media)
40
- * are ignored here. Order is the order each element was first touched.
39
+ * Entries whose `data` lacks a full source location are dropped: an element
40
+ * isn't selectable without one (protocol invariant), so a missing location means
41
+ * a malformed stack, not a locatable change. Only `style` and `text` commands
42
+ * contribute; other command types (e.g. media) are ignored. Order is the order
43
+ * each element was first touched.
41
44
  */
42
45
  export declare function computeChangeSet(stack: HistoryStackEntry[]): ChangeSetEntry[];
43
46
  //# sourceMappingURL=changeSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"changeSet.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/history/changeSet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;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