@popmelt.com/core 0.8.1 → 0.8.3

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/index.d.mts CHANGED
@@ -51,6 +51,38 @@ type StyleModification = {
51
51
  captured?: boolean;
52
52
  pathname?: string;
53
53
  };
54
+ type TextModification = {
55
+ selector: string;
56
+ durableSelector?: string;
57
+ element: ElementInfo;
58
+ textNodePath: number[];
59
+ original: string;
60
+ modified: string;
61
+ captured?: boolean;
62
+ pathname?: string;
63
+ };
64
+ type DomInsertionPlacement = 'before' | 'after';
65
+ type DomModification = {
66
+ id: string;
67
+ operation: 'move' | 'copy';
68
+ selector: string;
69
+ durableSelector?: string;
70
+ element: ElementInfo;
71
+ sourceSelector?: string;
72
+ sourceDurableSelector?: string;
73
+ sourceElement?: ElementInfo;
74
+ originalParentSelector?: string;
75
+ originalParentDurableSelector?: string;
76
+ originalIndex?: number;
77
+ targetParentSelector: string;
78
+ targetParentDurableSelector?: string;
79
+ targetIndex: number;
80
+ referenceSelector?: string;
81
+ referenceDurableSelector?: string;
82
+ placement: DomInsertionPlacement;
83
+ captured?: boolean;
84
+ pathname?: string;
85
+ };
54
86
  type SpacingElementEvidence = {
55
87
  selector: string;
56
88
  reactComponent?: string;
@@ -135,6 +167,8 @@ type FeedbackData = {
135
167
  };
136
168
  annotations: AnnotationData[];
137
169
  styleModifications: StyleModification[];
170
+ textModifications?: TextModification[];
171
+ domModifications?: DomModification[];
138
172
  inspectedElement?: ElementInfo;
139
173
  spacingTokenChanges?: SpacingTokenChange[];
140
174
  };