@contentstack/studio-message-types 2.0.0 → 2.1.0
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/base/client.d.ts +15 -1
- package/dist/base/index.d.ts +4 -2
- package/package.json +1 -1
package/dist/base/client.d.ts
CHANGED
|
@@ -166,6 +166,8 @@ export interface ChangeActiveStyleGroupPayload {
|
|
|
166
166
|
uid: string;
|
|
167
167
|
styleGroup: string;
|
|
168
168
|
}
|
|
169
|
+
/** Which side of its Repeater a permanent drop zone sits on. */
|
|
170
|
+
export type PermanentDropZoneDirection = "top" | "bottom";
|
|
169
171
|
export type BaseHitboxDetails = {
|
|
170
172
|
path: Path;
|
|
171
173
|
direction: "top" | "bottom" | "left" | "right";
|
|
@@ -173,12 +175,24 @@ export type BaseHitboxDetails = {
|
|
|
173
175
|
};
|
|
174
176
|
export type RegularNodeHitboxDetails = BaseHitboxDetails & {
|
|
175
177
|
shouldShowSlotDropzone: false;
|
|
178
|
+
isPermanentDropZone?: false;
|
|
176
179
|
};
|
|
177
180
|
export type SlotNodeHitboxDetails = BaseHitboxDetails & {
|
|
178
181
|
slotUid: string;
|
|
179
182
|
shouldShowSlotDropzone: true;
|
|
183
|
+
isPermanentDropZone?: false;
|
|
180
184
|
};
|
|
181
|
-
|
|
185
|
+
/**
|
|
186
|
+
* A drop on an editor-only permanent drop zone: a sibling drop beside `path`.
|
|
187
|
+
* The zone highlights itself, so Studio draws no drop line; `nodeBoundingBox`
|
|
188
|
+
* is the zone's own box.
|
|
189
|
+
*/
|
|
190
|
+
export type PermanentDropZoneHitboxDetails = Omit<BaseHitboxDetails, "direction"> & {
|
|
191
|
+
direction: PermanentDropZoneDirection;
|
|
192
|
+
shouldShowSlotDropzone: false;
|
|
193
|
+
isPermanentDropZone: true;
|
|
194
|
+
};
|
|
195
|
+
export type HitboxDetails = RegularNodeHitboxDetails | SlotNodeHitboxDetails | PermanentDropZoneHitboxDetails | null;
|
|
182
196
|
export interface SetCursorTypeEventPayload {
|
|
183
197
|
cursorType: string;
|
|
184
198
|
}
|
package/dist/base/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HitboxDetails, ValidatePropEventPayload, PreProcessedBreakpoint, SlotNodeHitboxDetails, HighlightNodeEventPayload, RequestHighlightNodeEventPayload, HighlightFocusedNodeEventPayload, HighlightSlotNodeEventPayload, RevealNodePayload, RevealResultPayload, HighlightStyleNodeEventPayload, HighlightActiveNodeEventPayload, BaseHighlightEventPayload, RegularNodeHitboxDetails, SerializedEvent, UrlChangeEventPayload, Breakpoint, HighlightAncestorsEventPayload, InitMessage, DefaultBreakpoint, ActiveBreakpointEventPayload, BreakpointInput, RegisterBreakpointsEventPayload, SetCursorTypeEventPayload, UpdateStyleEventPayload, ComputedStyleSection, ChangeActiveStyleGroupPayload, handleActiveNodePayload, handleFocusedNodePayload, handleActiveSlotNode, MouseMoveEventPayload, MouseUpEventPayload, DraggerPosition, UpdateBindingErrorsEventPayload, OpenComposableStudioFromVBEventData, OpenComposableStudioFromStudioEventData, CompositionSavedEventData, PrimaryCompositionDetectedEventData, CompositionResolutionDiagnosticEventData, HiddenElementNotificationEventData, GetNodeScreenshotEventData, GetNodeScreenshotResponseEventData, RefetchSpecEventData, TARGET_NODE } from "./client.js";
|
|
1
|
+
import { HitboxDetails, ValidatePropEventPayload, PreProcessedBreakpoint, SlotNodeHitboxDetails, HighlightNodeEventPayload, RequestHighlightNodeEventPayload, HighlightFocusedNodeEventPayload, HighlightSlotNodeEventPayload, RevealNodePayload, RevealResultPayload, HighlightStyleNodeEventPayload, HighlightActiveNodeEventPayload, BaseHighlightEventPayload, RegularNodeHitboxDetails, PermanentDropZoneDirection, PermanentDropZoneHitboxDetails, SerializedEvent, UrlChangeEventPayload, Breakpoint, HighlightAncestorsEventPayload, InitMessage, DefaultBreakpoint, ActiveBreakpointEventPayload, BreakpointInput, RegisterBreakpointsEventPayload, SetCursorTypeEventPayload, UpdateStyleEventPayload, ComputedStyleSection, ChangeActiveStyleGroupPayload, handleActiveNodePayload, handleFocusedNodePayload, handleActiveSlotNode, MouseMoveEventPayload, MouseUpEventPayload, DraggerPosition, UpdateBindingErrorsEventPayload, OpenComposableStudioFromVBEventData, OpenComposableStudioFromStudioEventData, CompositionSavedEventData, PrimaryCompositionDetectedEventData, CompositionResolutionDiagnosticEventData, HiddenElementNotificationEventData, GetNodeScreenshotEventData, GetNodeScreenshotResponseEventData, RefetchSpecEventData, TARGET_NODE } from "./client.js";
|
|
2
2
|
import type { CompositionQuery } from "./composition-query.js";
|
|
3
3
|
export type { CompositionQuery };
|
|
4
|
-
export type { InitMessage, HighlightActiveNodeEventPayload, HighlightAncestorsEventPayload, HighlightStyleNodeEventPayload, HighlightSlotNodeEventPayload, RevealMissKind, RevealNodePayload, RevealResultPayload, HighlightFocusedNodeEventPayload, HighlightNodeEventPayload, RequestHighlightNodeEventPayload, BaseHighlightEventPayload, HitboxDetails, RegularNodeHitboxDetails, SlotNodeHitboxDetails, SerializedEvent, UrlChangeEventPayload, ValidatePropEventPayload, Breakpoint, PreProcessedBreakpoint, DefaultBreakpoint, BreakpointInput, ActiveBreakpointEventPayload, RegisterBreakpointsEventPayload, SetCursorTypeEventPayload, UpdateStyleEventPayload, ComputedStyleSection, ChangeActiveStyleGroupPayload, handleActiveNodePayload, handleFocusedNodePayload, handleActiveSlotNode, MouseMoveEventPayload, MouseUpEventPayload, DraggerPosition, UpdateBindingErrorsEventPayload, OpenComposableStudioFromVBEventData, OpenComposableStudioFromStudioEventData, CompositionSavedEventData, PrimaryCompositionDetectedEventData, CompositionResolutionDiagnosticEventData, ShortlistedComposition, ResolvedComposition, HiddenElementNotificationEventData, GetNodeScreenshotEventData, GetNodeScreenshotResponseEventData, RefetchSpecEventData, } from "./client.js";
|
|
4
|
+
export type { InitMessage, HighlightActiveNodeEventPayload, HighlightAncestorsEventPayload, HighlightStyleNodeEventPayload, HighlightSlotNodeEventPayload, RevealMissKind, RevealNodePayload, RevealResultPayload, HighlightFocusedNodeEventPayload, HighlightNodeEventPayload, RequestHighlightNodeEventPayload, BaseHighlightEventPayload, HitboxDetails, RegularNodeHitboxDetails, SlotNodeHitboxDetails, PermanentDropZoneDirection, PermanentDropZoneHitboxDetails, SerializedEvent, UrlChangeEventPayload, ValidatePropEventPayload, Breakpoint, PreProcessedBreakpoint, DefaultBreakpoint, BreakpointInput, ActiveBreakpointEventPayload, RegisterBreakpointsEventPayload, SetCursorTypeEventPayload, UpdateStyleEventPayload, ComputedStyleSection, ChangeActiveStyleGroupPayload, handleActiveNodePayload, handleFocusedNodePayload, handleActiveSlotNode, MouseMoveEventPayload, MouseUpEventPayload, DraggerPosition, UpdateBindingErrorsEventPayload, OpenComposableStudioFromVBEventData, OpenComposableStudioFromStudioEventData, CompositionSavedEventData, PrimaryCompositionDetectedEventData, CompositionResolutionDiagnosticEventData, ShortlistedComposition, ResolvedComposition, HiddenElementNotificationEventData, GetNodeScreenshotEventData, GetNodeScreenshotResponseEventData, RefetchSpecEventData, } from "./client.js";
|
|
5
5
|
export { TARGET_NODE } from "./client.js";
|
|
6
6
|
export type BaseType = {
|
|
7
7
|
InitMessage: InitMessage;
|
|
@@ -18,6 +18,8 @@ export type BaseType = {
|
|
|
18
18
|
HitboxDetails: HitboxDetails;
|
|
19
19
|
RegularNodeHitboxDetails: RegularNodeHitboxDetails;
|
|
20
20
|
SlotNodeHitboxDetails: SlotNodeHitboxDetails;
|
|
21
|
+
PermanentDropZoneDirection: PermanentDropZoneDirection;
|
|
22
|
+
PermanentDropZoneHitboxDetails: PermanentDropZoneHitboxDetails;
|
|
21
23
|
SerializedEvent: SerializedEvent;
|
|
22
24
|
UrlChangeEventPayload: UrlChangeEventPayload;
|
|
23
25
|
ValidatePropEventPayload: ValidatePropEventPayload;
|
package/package.json
CHANGED