@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/README.md +202 -122
- package/dist/bridge-entry.mjs +57 -57
- package/dist/cli.mjs +57 -57
- package/dist/index.d.mts +34 -0
- package/dist/index.mjs +52 -24
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/server-2X6UD5RQ.mjs +421 -0
- package/dist/server.mjs +56 -56
- package/package.json +3 -3
- package/dist/server-AGXQFGSU.mjs +0 -421
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
|
};
|