@proto-labs-inc/wire 0.2.2 → 0.2.4
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.ts +5 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -160,6 +160,9 @@ export type FrameToRig = {
|
|
|
160
160
|
} | {
|
|
161
161
|
type: "set-element-picker";
|
|
162
162
|
on: boolean;
|
|
163
|
+
} | {
|
|
164
|
+
type: "navigate-element";
|
|
165
|
+
direction: "parent" | "previous-child";
|
|
163
166
|
} | {
|
|
164
167
|
type: "preview-element-styles";
|
|
165
168
|
selectionId: string;
|
|
@@ -187,6 +190,8 @@ export interface CommentAnchor {
|
|
|
187
190
|
height: number;
|
|
188
191
|
}
|
|
189
192
|
export type RigToFrame = {
|
|
193
|
+
type: "request-frame-tools";
|
|
194
|
+
} | {
|
|
190
195
|
type: "frame-tools-status";
|
|
191
196
|
status: "loading" | "ready" | "unavailable";
|
|
192
197
|
} | {
|
package/dist/index.js
CHANGED
|
@@ -82,6 +82,8 @@ export function isFrameToRig(d) {
|
|
|
82
82
|
(t === "focus-target" && (message.selector === null || typeof message.selector === "string") &&
|
|
83
83
|
(message.visibility === undefined || message.visibility === "always" || message.visibility === "if-outside-viewport")) ||
|
|
84
84
|
(t === "measure-target" && typeof message.selector === "string") ||
|
|
85
|
+
(t === "navigate-element" &&
|
|
86
|
+
(message.direction === "parent" || message.direction === "previous-child")) ||
|
|
85
87
|
t === "set-comment-mode" ||
|
|
86
88
|
t === "set-variant-set-picker" ||
|
|
87
89
|
t === "set-element-picker");
|
|
@@ -94,7 +96,8 @@ export function isRigToFrame(d) {
|
|
|
94
96
|
if (["comment-target-picked", "variant-set-target-picked", "target-measured"].includes(t)) {
|
|
95
97
|
return typeof message.selector === "string";
|
|
96
98
|
}
|
|
97
|
-
return (
|
|
99
|
+
return (t === "request-frame-tools" ||
|
|
100
|
+
(t === "frame-tools-status" && ["loading", "ready", "unavailable"].includes(message.status)) ||
|
|
98
101
|
t === "hello" ||
|
|
99
102
|
t === "state-changed" ||
|
|
100
103
|
t === "thumbnail-capture" ||
|
package/package.json
CHANGED