@proto-labs-inc/wire 0.2.0 → 0.2.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.
package/dist/index.d.ts CHANGED
@@ -48,6 +48,8 @@ export interface VariantDef {
48
48
  reference?: VariantLink;
49
49
  }
50
50
  export interface ReferenceDef {
51
+ /** Aggregator that supplied the reference, independent of its destination URL. */
52
+ source?: "mobbin" | "refero" | "nicelydone" | "landingfolio" | "recent";
51
53
  app: string;
52
54
  url: string;
53
55
  note?: string;
@@ -135,6 +137,7 @@ export type FrameToRig = {
135
137
  } | {
136
138
  type: "focus-target";
137
139
  selector: string | null;
140
+ visibility?: "always" | "if-outside-viewport";
138
141
  } | {
139
142
  type: "measure-target";
140
143
  selector: string;
package/dist/index.js CHANGED
@@ -67,7 +67,8 @@ export function isFrameToRig(d) {
67
67
  (t === "set-theme" &&
68
68
  (message.theme === "light" || message.theme === "dark")) ||
69
69
  t === "set-variant" ||
70
- (t === "focus-target" && (message.selector === null || typeof message.selector === "string")) ||
70
+ (t === "focus-target" && (message.selector === null || typeof message.selector === "string") &&
71
+ (message.visibility === undefined || message.visibility === "always" || message.visibility === "if-outside-viewport")) ||
71
72
  (t === "measure-target" && typeof message.selector === "string") ||
72
73
  t === "set-comment-mode" ||
73
74
  t === "capture-comment" ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proto-labs-inc/wire",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "The typed contract between Proto's Frame and the rig inside a prototype: bridge messages and the prototype.json schema.",
5
5
  "license": "MIT",
6
6
  "repository": {