@makeswift/runtime 0.24.6 → 0.24.7-canary.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.
@@ -29,7 +29,7 @@ function isAPIResourceType(val) {
29
29
  }
30
30
  const parseResourceIdSchema = import_zod.z.string().transform((val, ctx) => {
31
31
  try {
32
- const match = import_js_base64.Base64.decode(val).match(/^([^:]+):([^:]+)$/);
32
+ const match = import_js_base64.Base64.decode(val).match(/^([^:]+):(.+)$/);
33
33
  if (!match)
34
34
  throw new TypeError(`NodeID cannot represent value: ${String(val)}`);
35
35
  const [, typeName, key] = match;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/builder/unstructured-introspection/unstructured-introspection.ts"],"sourcesContent":["import { Base64 } from 'js-base64'\nimport { Element } from '@makeswift/controls'\n\nimport { z } from 'zod'\nimport { APIResourceType } from '../../api'\n\nfunction isAPIResourceType(val: string): val is APIResourceType {\n return APIResourceType[val as keyof typeof APIResourceType] != null\n}\n\nconst parseResourceIdSchema = z.string().transform((val, ctx) => {\n try {\n const match = Base64.decode(val).match(/^([^:]+):([^:]+)$/)\n if (!match) throw new TypeError(`NodeID cannot represent value: ${String(val)}`)\n const [, typeName, key] = match\n if (isAPIResourceType(typeName)) {\n return { key, typeName }\n }\n throw new TypeError(`decoded type '${typeName}' is not a valid APIResourceType`)\n } catch (error) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: `${String(val)} is not a valid node resource ID`,\n })\n return z.NEVER\n }\n})\n\nexport function unstructuredIntrospection(element: Element): {\n swatchIds: Set<string>\n typographyIds: Set<string>\n fileIds: Set<string>\n tableIds: Set<string>\n pageIds: Set<string>\n globalElementIds: Set<string>\n} {\n const typeIdsToFound: Map<APIResourceType, Set<string>> = new Map()\n Object.values(APIResourceType).forEach(resourceType => {\n typeIdsToFound.set(resourceType, new Set())\n })\n function findResourceIds(curr: unknown): void {\n if (typeof curr === 'string') {\n const parseResourceResult = parseResourceIdSchema.safeParse(curr)\n if (parseResourceResult.success) {\n typeIdsToFound.get(parseResourceResult.data.typeName)?.add(curr)\n }\n } else if (Array.isArray(curr)) {\n for (const item of curr) {\n findResourceIds(item)\n }\n } else if (curr != null && typeof curr === 'object') {\n for (const key in curr) {\n if (Object.prototype.hasOwnProperty.call(curr, key)) {\n findResourceIds(curr[key as keyof typeof curr])\n }\n }\n }\n }\n\n findResourceIds(element)\n return {\n swatchIds: typeIdsToFound.get(APIResourceType.Swatch) ?? new Set(),\n typographyIds: typeIdsToFound.get(APIResourceType.Typography) ?? new Set(),\n fileIds: typeIdsToFound.get(APIResourceType.File) ?? new Set(),\n tableIds: typeIdsToFound.get(APIResourceType.Table) ?? new Set(),\n pageIds: typeIdsToFound.get(APIResourceType.Page) ?? new Set(),\n globalElementIds: typeIdsToFound.get(APIResourceType.GlobalElement) ?? new Set(),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAuB;AAGvB,iBAAkB;AAClB,iBAAgC;AAEhC,SAAS,kBAAkB,KAAqC;AAC9D,SAAO,2BAAgB,GAAmC,KAAK;AACjE;AAEA,MAAM,wBAAwB,aAAE,OAAO,EAAE,UAAU,CAAC,KAAK,QAAQ;AAC/D,MAAI;AACF,UAAM,QAAQ,wBAAO,OAAO,GAAG,EAAE,MAAM,mBAAmB;AAC1D,QAAI,CAAC;AAAO,YAAM,IAAI,UAAU,kCAAkC,OAAO,GAAG,CAAC,EAAE;AAC/E,UAAM,CAAC,EAAE,UAAU,GAAG,IAAI;AAC1B,QAAI,kBAAkB,QAAQ,GAAG;AAC/B,aAAO,EAAE,KAAK,SAAS;AAAA,IACzB;AACA,UAAM,IAAI,UAAU,iBAAiB,QAAQ,kCAAkC;AAAA,EACjF,SAAS,OAAO;AACd,QAAI,SAAS;AAAA,MACX,MAAM,aAAE,aAAa;AAAA,MACrB,SAAS,GAAG,OAAO,GAAG,CAAC;AAAA,IACzB,CAAC;AACD,WAAO,aAAE;AAAA,EACX;AACF,CAAC;AAEM,SAAS,0BAA0B,SAOxC;AACA,QAAM,iBAAoD,oBAAI,IAAI;AAClE,SAAO,OAAO,0BAAe,EAAE,QAAQ,kBAAgB;AACrD,mBAAe,IAAI,cAAc,oBAAI,IAAI,CAAC;AAAA,EAC5C,CAAC;AACD,WAAS,gBAAgB,MAAqB;AAC5C,QAAI,OAAO,SAAS,UAAU;AAC5B,YAAM,sBAAsB,sBAAsB,UAAU,IAAI;AAChE,UAAI,oBAAoB,SAAS;AAC/B,uBAAe,IAAI,oBAAoB,KAAK,QAAQ,GAAG,IAAI,IAAI;AAAA,MACjE;AAAA,IACF,WAAW,MAAM,QAAQ,IAAI,GAAG;AAC9B,iBAAW,QAAQ,MAAM;AACvB,wBAAgB,IAAI;AAAA,MACtB;AAAA,IACF,WAAW,QAAQ,QAAQ,OAAO,SAAS,UAAU;AACnD,iBAAW,OAAO,MAAM;AACtB,YAAI,OAAO,UAAU,eAAe,KAAK,MAAM,GAAG,GAAG;AACnD,0BAAgB,KAAK,GAAwB,CAAC;AAAA,QAChD;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,kBAAgB,OAAO;AACvB,SAAO;AAAA,IACL,WAAW,eAAe,IAAI,2BAAgB,MAAM,KAAK,oBAAI,IAAI;AAAA,IACjE,eAAe,eAAe,IAAI,2BAAgB,UAAU,KAAK,oBAAI,IAAI;AAAA,IACzE,SAAS,eAAe,IAAI,2BAAgB,IAAI,KAAK,oBAAI,IAAI;AAAA,IAC7D,UAAU,eAAe,IAAI,2BAAgB,KAAK,KAAK,oBAAI,IAAI;AAAA,IAC/D,SAAS,eAAe,IAAI,2BAAgB,IAAI,KAAK,oBAAI,IAAI;AAAA,IAC7D,kBAAkB,eAAe,IAAI,2BAAgB,aAAa,KAAK,oBAAI,IAAI;AAAA,EACjF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../../src/builder/unstructured-introspection/unstructured-introspection.ts"],"sourcesContent":["import { Base64 } from 'js-base64'\nimport { Element } from '@makeswift/controls'\n\nimport { z } from 'zod'\nimport { APIResourceType } from '../../api'\n\nfunction isAPIResourceType(val: string): val is APIResourceType {\n return APIResourceType[val as keyof typeof APIResourceType] != null\n}\n\nconst parseResourceIdSchema = z.string().transform((val, ctx) => {\n try {\n const match = Base64.decode(val).match(/^([^:]+):(.+)$/)\n if (!match) throw new TypeError(`NodeID cannot represent value: ${String(val)}`)\n const [, typeName, key] = match\n if (isAPIResourceType(typeName)) {\n return { key, typeName }\n }\n throw new TypeError(`decoded type '${typeName}' is not a valid APIResourceType`)\n } catch (error) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: `${String(val)} is not a valid node resource ID`,\n })\n return z.NEVER\n }\n})\n\nexport function unstructuredIntrospection(element: Element): {\n swatchIds: Set<string>\n typographyIds: Set<string>\n fileIds: Set<string>\n tableIds: Set<string>\n pageIds: Set<string>\n globalElementIds: Set<string>\n} {\n const typeIdsToFound: Map<APIResourceType, Set<string>> = new Map()\n Object.values(APIResourceType).forEach(resourceType => {\n typeIdsToFound.set(resourceType, new Set())\n })\n function findResourceIds(curr: unknown): void {\n if (typeof curr === 'string') {\n const parseResourceResult = parseResourceIdSchema.safeParse(curr)\n if (parseResourceResult.success) {\n typeIdsToFound.get(parseResourceResult.data.typeName)?.add(curr)\n }\n } else if (Array.isArray(curr)) {\n for (const item of curr) {\n findResourceIds(item)\n }\n } else if (curr != null && typeof curr === 'object') {\n for (const key in curr) {\n if (Object.prototype.hasOwnProperty.call(curr, key)) {\n findResourceIds(curr[key as keyof typeof curr])\n }\n }\n }\n }\n\n findResourceIds(element)\n return {\n swatchIds: typeIdsToFound.get(APIResourceType.Swatch) ?? new Set(),\n typographyIds: typeIdsToFound.get(APIResourceType.Typography) ?? new Set(),\n fileIds: typeIdsToFound.get(APIResourceType.File) ?? new Set(),\n tableIds: typeIdsToFound.get(APIResourceType.Table) ?? new Set(),\n pageIds: typeIdsToFound.get(APIResourceType.Page) ?? new Set(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gB,IAAI;AAAA,MACtB;AAAA,IACF,WAAW,QAAQ,QAAQ,OAAO,SAAS,UAAU;AACnD,iBAAW,OAAO,MAAM;AACtB,YAAI,OAAO,UAAU,eAAe,KAAK,MAAM,GAAG,GAAG;AACnD,0BAAgB,KAAK,GAAwB,CAAC;AAAA,QAChD;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,kBAAgB,OAAO;AACvB,SAAO;AAAA,IACL,WAAW,eAAe,IAAI,2BAAgB,MAAM,KAAK,oBAAI,IAAI;AAAA,IACjE,eAAe,eAAe,IAAI,2BAAgB,UAAU,KAAK,oBAAI,IAAI;AAAA,IACzE,SAAS,eAAe,IAAI,2BAAgB,IAAI,KAAK,oBAAI,IAAI;AAAA,IAC7D,UAAU,eAAe,IAAI,2BAAgB,KAAK,KAAK,oBAAI,IAAI;AAAA,IAC/D,SAAS,eAAe,IAAI,2BAAgB,IAAI,KAAK,oBAAI,IAAI;AAAA,IAC7D,kBAAkB,eAAe,IAAI,2BAAgB,aAAa,KAAK,oBAAI,IAAI;AAAA,EACjF;AACF;","names":[]}
@@ -37,7 +37,7 @@ async function handler(...args) {
37
37
  const supportsDraftMode = (0, import_ts_pattern.match)(args).with(routeHandlerPattern, () => true).with(apiRoutePattern, () => false).exhaustive();
38
38
  const supportsWebhook = (0, import_ts_pattern.match)(args).with(routeHandlerPattern, () => true).with(apiRoutePattern, () => false).exhaustive();
39
39
  const body = {
40
- version: "0.24.6",
40
+ version: "0.24.7-canary.1",
41
41
  previewMode: supportsPreviewMode,
42
42
  draftMode: supportsDraftMode,
43
43
  interactionMode: true,
@@ -6,7 +6,7 @@ function isAPIResourceType(val) {
6
6
  }
7
7
  const parseResourceIdSchema = z.string().transform((val, ctx) => {
8
8
  try {
9
- const match = Base64.decode(val).match(/^([^:]+):([^:]+)$/);
9
+ const match = Base64.decode(val).match(/^([^:]+):(.+)$/);
10
10
  if (!match)
11
11
  throw new TypeError(`NodeID cannot represent value: ${String(val)}`);
12
12
  const [, typeName, key] = match;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/builder/unstructured-introspection/unstructured-introspection.ts"],"sourcesContent":["import { Base64 } from 'js-base64'\nimport { Element } from '@makeswift/controls'\n\nimport { z } from 'zod'\nimport { APIResourceType } from '../../api'\n\nfunction isAPIResourceType(val: string): val is APIResourceType {\n return APIResourceType[val as keyof typeof APIResourceType] != null\n}\n\nconst parseResourceIdSchema = z.string().transform((val, ctx) => {\n try {\n const match = Base64.decode(val).match(/^([^:]+):([^:]+)$/)\n if (!match) throw new TypeError(`NodeID cannot represent value: ${String(val)}`)\n const [, typeName, key] = match\n if (isAPIResourceType(typeName)) {\n return { key, typeName }\n }\n throw new TypeError(`decoded type '${typeName}' is not a valid APIResourceType`)\n } catch (error) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: `${String(val)} is not a valid node resource ID`,\n })\n return z.NEVER\n }\n})\n\nexport function unstructuredIntrospection(element: Element): {\n swatchIds: Set<string>\n typographyIds: Set<string>\n fileIds: Set<string>\n tableIds: Set<string>\n pageIds: Set<string>\n globalElementIds: Set<string>\n} {\n const typeIdsToFound: Map<APIResourceType, Set<string>> = new Map()\n Object.values(APIResourceType).forEach(resourceType => {\n typeIdsToFound.set(resourceType, new Set())\n })\n function findResourceIds(curr: unknown): void {\n if (typeof curr === 'string') {\n const parseResourceResult = parseResourceIdSchema.safeParse(curr)\n if (parseResourceResult.success) {\n typeIdsToFound.get(parseResourceResult.data.typeName)?.add(curr)\n }\n } else if (Array.isArray(curr)) {\n for (const item of curr) {\n findResourceIds(item)\n }\n } else if (curr != null && typeof curr === 'object') {\n for (const key in curr) {\n if (Object.prototype.hasOwnProperty.call(curr, key)) {\n findResourceIds(curr[key as keyof typeof curr])\n }\n }\n }\n }\n\n findResourceIds(element)\n return {\n swatchIds: typeIdsToFound.get(APIResourceType.Swatch) ?? new Set(),\n typographyIds: typeIdsToFound.get(APIResourceType.Typography) ?? new Set(),\n fileIds: typeIdsToFound.get(APIResourceType.File) ?? new Set(),\n tableIds: typeIdsToFound.get(APIResourceType.Table) ?? new Set(),\n pageIds: typeIdsToFound.get(APIResourceType.Page) ?? new Set(),\n globalElementIds: typeIdsToFound.get(APIResourceType.GlobalElement) ?? new Set(),\n }\n}\n"],"mappings":"AAAA,SAAS,cAAc;AAGvB,SAAS,SAAS;AAClB,SAAS,uBAAuB;AAEhC,SAAS,kBAAkB,KAAqC;AAC9D,SAAO,gBAAgB,GAAmC,KAAK;AACjE;AAEA,MAAM,wBAAwB,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK,QAAQ;AAC/D,MAAI;AACF,UAAM,QAAQ,OAAO,OAAO,GAAG,EAAE,MAAM,mBAAmB;AAC1D,QAAI,CAAC;AAAO,YAAM,IAAI,UAAU,kCAAkC,OAAO,GAAG,CAAC,EAAE;AAC/E,UAAM,CAAC,EAAE,UAAU,GAAG,IAAI;AAC1B,QAAI,kBAAkB,QAAQ,GAAG;AAC/B,aAAO,EAAE,KAAK,SAAS;AAAA,IACzB;AACA,UAAM,IAAI,UAAU,iBAAiB,QAAQ,kCAAkC;AAAA,EACjF,SAAS,OAAO;AACd,QAAI,SAAS;AAAA,MACX,MAAM,EAAE,aAAa;AAAA,MACrB,SAAS,GAAG,OAAO,GAAG,CAAC;AAAA,IACzB,CAAC;AACD,WAAO,EAAE;AAAA,EACX;AACF,CAAC;AAEM,SAAS,0BAA0B,SAOxC;AACA,QAAM,iBAAoD,oBAAI,IAAI;AAClE,SAAO,OAAO,eAAe,EAAE,QAAQ,kBAAgB;AACrD,mBAAe,IAAI,cAAc,oBAAI,IAAI,CAAC;AAAA,EAC5C,CAAC;AACD,WAAS,gBAAgB,MAAqB;AAC5C,QAAI,OAAO,SAAS,UAAU;AAC5B,YAAM,sBAAsB,sBAAsB,UAAU,IAAI;AAChE,UAAI,oBAAoB,SAAS;AAC/B,uBAAe,IAAI,oBAAoB,KAAK,QAAQ,GAAG,IAAI,IAAI;AAAA,MACjE;AAAA,IACF,WAAW,MAAM,QAAQ,IAAI,GAAG;AAC9B,iBAAW,QAAQ,MAAM;AACvB,wBAAgB,IAAI;AAAA,MACtB;AAAA,IACF,WAAW,QAAQ,QAAQ,OAAO,SAAS,UAAU;AACnD,iBAAW,OAAO,MAAM;AACtB,YAAI,OAAO,UAAU,eAAe,KAAK,MAAM,GAAG,GAAG;AACnD,0BAAgB,KAAK,GAAwB,CAAC;AAAA,QAChD;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,kBAAgB,OAAO;AACvB,SAAO;AAAA,IACL,WAAW,eAAe,IAAI,gBAAgB,MAAM,KAAK,oBAAI,IAAI;AAAA,IACjE,eAAe,eAAe,IAAI,gBAAgB,UAAU,KAAK,oBAAI,IAAI;AAAA,IACzE,SAAS,eAAe,IAAI,gBAAgB,IAAI,KAAK,oBAAI,IAAI;AAAA,IAC7D,UAAU,eAAe,IAAI,gBAAgB,KAAK,KAAK,oBAAI,IAAI;AAAA,IAC/D,SAAS,eAAe,IAAI,gBAAgB,IAAI,KAAK,oBAAI,IAAI;AAAA,IAC7D,kBAAkB,eAAe,IAAI,gBAAgB,aAAa,KAAK,oBAAI,IAAI;AAAA,EACjF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../../src/builder/unstructured-introspection/unstructured-introspection.ts"],"sourcesContent":["import { Base64 } from 'js-base64'\nimport { Element } from '@makeswift/controls'\n\nimport { z } from 'zod'\nimport { APIResourceType } from '../../api'\n\nfunction isAPIResourceType(val: string): val is APIResourceType {\n return APIResourceType[val as keyof typeof APIResourceType] != null\n}\n\nconst parseResourceIdSchema = z.string().transform((val, ctx) => {\n try {\n const match = Base64.decode(val).match(/^([^:]+):(.+)$/)\n if (!match) throw new TypeError(`NodeID cannot represent value: ${String(val)}`)\n const [, typeName, key] = match\n if (isAPIResourceType(typeName)) {\n return { key, typeName }\n }\n throw new TypeError(`decoded type '${typeName}' is not a valid APIResourceType`)\n } catch (error) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: `${String(val)} is not a valid node resource ID`,\n })\n return z.NEVER\n }\n})\n\nexport function unstructuredIntrospection(element: Element): {\n swatchIds: Set<string>\n typographyIds: Set<string>\n fileIds: Set<string>\n tableIds: Set<string>\n pageIds: Set<string>\n globalElementIds: Set<string>\n} {\n const typeIdsToFound: Map<APIResourceType, Set<string>> = new Map()\n Object.values(APIResourceType).forEach(resourceType => {\n typeIdsToFound.set(resourceType, new Set())\n })\n function findResourceIds(curr: unknown): void {\n if (typeof curr === 'string') {\n const parseResourceResult = parseResourceIdSchema.safeParse(curr)\n if (parseResourceResult.success) {\n typeIdsToFound.get(parseResourceResult.data.typeName)?.add(curr)\n }\n } else if (Array.isArray(curr)) {\n for (const item of curr) {\n findResourceIds(item)\n }\n } else if (curr != null && typeof curr === 'object') {\n for (const key in curr) {\n if (Object.prototype.hasOwnProperty.call(curr, key)) {\n findResourceIds(curr[key as keyof typeof curr])\n }\n }\n }\n }\n\n findResourceIds(element)\n return {\n swatchIds: typeIdsToFound.get(APIResourceType.Swatch) ?? new Set(),\n typographyIds: typeIdsToFound.get(APIResourceType.Typography) ?? new Set(),\n fileIds: typeIdsToFound.get(APIResourceType.File) ?? new Set(),\n tableIds: typeIdsToFound.get(APIResourceType.Table) ?? new Set(),\n pageIds: typeIdsToFound.get(APIResourceType.Page) ?? new Set(),\n globalElementIds: typeIdsToFound.get(APIResourceType.GlobalElement) ?? new Set(),\n }\n}\n"],"mappings":"AAAA,SAAS,cAAc;AAGvB,SAAS,SAAS;AAClB,SAAS,uBAAuB;AAEhC,SAAS,kBAAkB,KAAqC;AAC9D,SAAO,gBAAgB,GAAmC,KAAK;AACjE;AAEA,MAAM,wBAAwB,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK,QAAQ;AAC/D,MAAI;AACF,UAAM,QAAQ,OAAO,OAAO,GAAG,EAAE,MAAM,gBAAgB;AACvD,QAAI,CAAC;AAAO,YAAM,IAAI,UAAU,kCAAkC,OAAO,GAAG,CAAC,EAAE;AAC/E,UAAM,CAA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,UAAU,eAAe,IAAI,gBAAgB,KAAK,KAAK,oBAAI,IAAI;AAAA,IAC/D,SAAS,eAAe,IAAI,gBAAgB,IAAI,KAAK,oBAAI,IAAI;AAAA,IAC7D,kBAAkB,eAAe,IAAI,gBAAgB,aAAa,KAAK,oBAAI,IAAI;AAAA,EACjF;AACF;","names":[]}
@@ -14,7 +14,7 @@ async function handler(...args) {
14
14
  const supportsDraftMode = match(args).with(routeHandlerPattern, () => true).with(apiRoutePattern, () => false).exhaustive();
15
15
  const supportsWebhook = match(args).with(routeHandlerPattern, () => true).with(apiRoutePattern, () => false).exhaustive();
16
16
  const body = {
17
- version: "0.24.6",
17
+ version: "0.24.7-canary.1",
18
18
  previewMode: supportsPreviewMode,
19
19
  draftMode: supportsDraftMode,
20
20
  interactionMode: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/runtime",
3
- "version": "0.24.6",
3
+ "version": "0.24.7-canary.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",
@@ -164,9 +164,9 @@
164
164
  "use-sync-external-store": "^1.0.0-rc.0",
165
165
  "uuid": "^9.0.0",
166
166
  "zod": "^3.21.4",
167
- "@makeswift/controls": "0.1.10",
168
167
  "@makeswift/next-plugin": "0.4.1",
169
- "@makeswift/prop-controllers": "0.4.3"
168
+ "@makeswift/controls": "0.1.11-canary.0",
169
+ "@makeswift/prop-controllers": "0.4.4-canary.0"
170
170
  },
171
171
  "devDependencies": {
172
172
  "@emotion/jest": "^11.11.0",