@makeswift/runtime 0.24.1 → 0.24.2-canary.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/cjs/builder/index.js +3 -1
- package/dist/cjs/builder/index.js.map +1 -1
- package/dist/cjs/builder/unstructured-introspection/__fixtures__/element-containing-resources.js +899 -0
- package/dist/cjs/builder/unstructured-introspection/__fixtures__/element-containing-resources.js.map +1 -0
- package/dist/cjs/builder/unstructured-introspection/__fixtures__/index.js +23 -0
- package/dist/cjs/builder/unstructured-introspection/__fixtures__/index.js.map +1 -0
- package/dist/cjs/builder/unstructured-introspection/index.js +29 -0
- package/dist/cjs/builder/unstructured-introspection/index.js.map +1 -0
- package/dist/cjs/builder/unstructured-introspection/unstructured-introspection.js +85 -0
- package/dist/cjs/builder/unstructured-introspection/unstructured-introspection.js.map +1 -0
- package/dist/cjs/next/api-handler/handlers/manifest.js +1 -1
- package/dist/esm/builder/index.js +1 -0
- package/dist/esm/builder/index.js.map +1 -1
- package/dist/esm/builder/unstructured-introspection/__fixtures__/element-containing-resources.js +875 -0
- package/dist/esm/builder/unstructured-introspection/__fixtures__/element-containing-resources.js.map +1 -0
- package/dist/esm/builder/unstructured-introspection/__fixtures__/index.js +2 -0
- package/dist/esm/builder/unstructured-introspection/__fixtures__/index.js.map +1 -0
- package/dist/esm/builder/unstructured-introspection/index.js +5 -0
- package/dist/esm/builder/unstructured-introspection/index.js.map +1 -0
- package/dist/esm/builder/unstructured-introspection/unstructured-introspection.js +61 -0
- package/dist/esm/builder/unstructured-introspection/unstructured-introspection.js.map +1 -0
- package/dist/esm/next/api-handler/handlers/manifest.js +1 -1
- package/dist/types/builder/index.d.ts +1 -0
- package/dist/types/builder/index.d.ts.map +1 -1
- package/dist/types/builder/unstructured-introspection/__fixtures__/element-containing-resources.d.ts +3 -0
- package/dist/types/builder/unstructured-introspection/__fixtures__/element-containing-resources.d.ts.map +1 -0
- package/dist/types/builder/unstructured-introspection/__fixtures__/index.d.ts +2 -0
- package/dist/types/builder/unstructured-introspection/__fixtures__/index.d.ts.map +1 -0
- package/dist/types/builder/unstructured-introspection/index.d.ts +2 -0
- package/dist/types/builder/unstructured-introspection/index.d.ts.map +1 -0
- package/dist/types/builder/unstructured-introspection/unstructured-introspection.d.ts +10 -0
- package/dist/types/builder/unstructured-introspection/unstructured-introspection.d.ts.map +1 -0
- package/dist/types/builder/unstructured-introspection/unstructured-introspection.test.d.ts +2 -0
- package/dist/types/builder/unstructured-introspection/unstructured-introspection.test.d.ts.map +1 -0
- package/package.json +2 -1
package/dist/cjs/builder/unstructured-introspection/__fixtures__/element-containing-resources.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/builder/unstructured-introspection/__fixtures__/element-containing-resources.ts"],"sourcesContent":["import { Element } from '@makeswift/controls'\n\n/*\n Below is a fairly minimal example of an Element containing one of each:\n - Swatch\n - File\n - Typography\n - Global Element\n - Page Link (called 'Page' in APIResourceType)\n - Table\n*/\nexport const elementContainingResources: Element = {\n key: '2c5e9ffc-dbcf-486a-ac62-8ac9efa539f0',\n props: {\n children: {\n '@@makeswift/type': 'prop-controllers::grid::v1',\n value: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n spans: [[12], [12], [12], [12], [12], [12]],\n count: 12,\n },\n },\n ],\n elements: [\n {\n key: 'cb66f6cb-0656-4424-81d7-0d03b27c45de',\n props: {\n children: {\n '@@makeswift/type': 'prop-controllers::grid::v1',\n value: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n count: 12,\n spans: [[12]],\n },\n },\n ],\n elements: [\n {\n key: '0f56d678-341a-4b05-bc9c-3a9f5bd7251e',\n props: {\n margin: [\n {\n deviceId: 'desktop',\n value: {\n marginBottom: {\n unit: 'px',\n value: 20,\n },\n marginLeft: 'auto',\n marginRight: 'auto',\n marginTop: null,\n },\n },\n ],\n text: {\n descendants: [\n {\n children: [\n {\n text: 'Resource: swatch only',\n typography: {\n style: [\n {\n deviceId: 'mobile',\n value: {\n fontSize: {\n unit: 'px',\n value: 16,\n },\n },\n },\n {\n deviceId: 'desktop',\n value: {\n color: {\n alpha: 1,\n swatchId:\n 'U3dhdGNoOmQ1ZWU3MmY1LThmMTQtNDQzZC05YmQ1LTJiMDA1MTIyYTA5NQ==',\n },\n fontSize: {\n unit: 'px',\n value: 18,\n },\n fontWeight: 400,\n lineHeight: 1.5,\n },\n },\n ],\n },\n },\n ],\n type: 'default',\n },\n ],\n key: 'c632090b-2269-40c9-8924-0ecc5effa651',\n type: 'makeswift::controls::rich-text-v2',\n version: 2,\n },\n width: [\n {\n deviceId: 'desktop',\n value: {\n unit: 'px',\n value: 700,\n },\n },\n ],\n },\n type: './components/Text/index.js',\n },\n ],\n },\n },\n padding: [\n {\n deviceId: 'desktop',\n value: {\n paddingBottom: {\n unit: 'px',\n value: 10,\n },\n paddingLeft: {\n unit: 'px',\n value: 10,\n },\n paddingRight: {\n unit: 'px',\n value: 10,\n },\n paddingTop: {\n unit: 'px',\n value: 10,\n },\n },\n },\n ],\n },\n type: './components/Box/index.js',\n },\n {\n key: 'cf3e1cd1-e1bb-4420-8644-34d780b5465b',\n props: {\n children: {\n '@@makeswift/type': 'prop-controllers::grid::v1',\n value: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n count: 12,\n spans: [[6, 6]],\n },\n },\n ],\n elements: [\n {\n key: 'c42ddde2-b9ff-4787-909f-d23866ca9130',\n props: {\n file: {\n '@@makeswift/type': 'prop-controllers::image::v2',\n value: {\n id: 'RmlsZTpjNzc2MjI3ZC1iNmZjLTQ3MGYtYTY1OC00NWQ4NzA2NDVkMDM=',\n type: 'makeswift-file',\n version: 1,\n },\n },\n margin: {\n '@@makeswift/type': 'prop-controllers::margin::v1',\n value: [\n {\n deviceId: 'desktop',\n value: {\n marginLeft: {\n unit: 'px',\n value: 270,\n },\n marginRight: 'auto',\n },\n },\n ],\n },\n width: {\n '@@makeswift/type': 'prop-controllers::width::v1',\n value: [\n {\n deviceId: 'desktop',\n value: {\n unit: '%',\n value: 15,\n },\n },\n ],\n },\n },\n type: './components/Image/index.js',\n },\n {\n key: 'ce4edb81-8832-4266-a152-4e506e1e754d',\n props: {\n margin: {\n '@@makeswift/type': 'prop-controllers::margin::v1',\n value: [\n {\n deviceId: 'desktop',\n value: {\n marginBottom: {\n unit: 'px',\n value: 20,\n },\n marginLeft: 'auto',\n marginRight: 'auto',\n marginTop: null,\n },\n },\n ],\n },\n text: {\n descendants: [\n {\n children: [\n {\n text: 'Resource: File only',\n typography: {\n style: [\n {\n deviceId: 'desktop',\n value: {\n fontSize: {\n unit: 'px',\n value: 18,\n },\n fontWeight: 400,\n lineHeight: 1.5,\n },\n },\n {\n deviceId: 'mobile',\n value: {\n fontSize: {\n unit: 'px',\n value: 16,\n },\n },\n },\n ],\n },\n },\n ],\n type: 'default',\n },\n ],\n key: '061f43b1-72aa-46b6-b429-c4a55eac09c5',\n type: 'makeswift::controls::rich-text-v2',\n version: 2,\n },\n width: [\n {\n deviceId: 'desktop',\n value: {\n unit: 'px',\n value: 700,\n },\n },\n ],\n },\n type: './components/Text/index.js',\n },\n ],\n },\n },\n padding: [\n {\n deviceId: 'desktop',\n value: {\n paddingBottom: {\n unit: 'px',\n value: 10,\n },\n paddingLeft: {\n unit: 'px',\n value: 10,\n },\n paddingRight: {\n unit: 'px',\n value: 10,\n },\n paddingTop: {\n unit: 'px',\n value: 10,\n },\n },\n },\n ],\n },\n type: './components/Box/index.js',\n },\n {\n key: 'ceebe1f0-31c1-4314-b387-df463d076751',\n props: {\n children: {\n '@@makeswift/type': 'prop-controllers::grid::v1',\n value: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n count: 12,\n spans: [[12]],\n },\n },\n ],\n elements: [\n {\n key: '87ab03ef-3a10-49d9-b596-719834f894dd',\n props: {\n margin: {\n '@@makeswift/type': 'prop-controllers::margin::v1',\n value: [\n {\n deviceId: 'desktop',\n value: {\n marginBottom: {\n unit: 'px',\n value: 20,\n },\n marginLeft: 'auto',\n marginRight: 'auto',\n marginTop: null,\n },\n },\n ],\n },\n text: {\n descendants: [\n {\n children: [\n {\n text: 'Resource: typography only',\n typography: {\n id: 'VHlwb2dyYXBoeTo1ODVkMGE1ZS0zYmUyLTQyNzEtOTczYS1mNWNjN2UzMzk4ODg=',\n style: [],\n },\n },\n ],\n type: 'default',\n },\n ],\n key: '9c7f5fa6-7f15-4e60-91fd-778827ab3449',\n type: 'makeswift::controls::rich-text-v2',\n version: 2,\n },\n width: [\n {\n deviceId: 'desktop',\n value: {\n unit: 'px',\n value: 700,\n },\n },\n ],\n },\n type: './components/Text/index.js',\n },\n ],\n },\n },\n padding: [\n {\n deviceId: 'desktop',\n value: {\n paddingBottom: {\n unit: 'px',\n value: 10,\n },\n paddingLeft: {\n unit: 'px',\n value: 10,\n },\n paddingRight: {\n unit: 'px',\n value: 10,\n },\n paddingTop: {\n unit: 'px',\n value: 10,\n },\n },\n },\n ],\n },\n type: './components/Box/index.js',\n },\n {\n key: '6f2a2437-f690-4644-84d6-14073f1404d4',\n props: {\n children: {\n '@@makeswift/type': 'prop-controllers::grid::v1',\n value: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n count: 12,\n spans: [[6, 6]],\n },\n },\n ],\n elements: [\n {\n key: '42a6048c-ea36-41a4-9783-9c28f58fa3e6',\n props: {\n margin: [\n {\n deviceId: 'desktop',\n value: {\n marginBottom: {\n unit: 'px',\n value: 20,\n },\n marginLeft: 'auto',\n marginRight: 'auto',\n marginTop: null,\n },\n },\n ],\n text: {\n descendants: [\n {\n children: [\n {\n text: 'Resource: Global Element only',\n typography: {\n style: [\n {\n deviceId: 'desktop',\n value: {\n fontSize: {\n unit: 'px',\n value: 18,\n },\n fontWeight: 400,\n lineHeight: 1.5,\n },\n },\n {\n deviceId: 'mobile',\n value: {\n fontSize: {\n unit: 'px',\n value: 16,\n },\n },\n },\n ],\n },\n },\n ],\n type: 'default',\n },\n ],\n key: '09c570fa-7d82-4886-8c33-ad418202d562',\n type: 'makeswift::controls::rich-text-v2',\n version: 2,\n },\n width: [\n {\n deviceId: 'desktop',\n value: {\n unit: 'px',\n value: 700,\n },\n },\n ],\n },\n type: './components/Text/index.js',\n },\n {\n key: '229fc932-2fdf-46eb-8ff6-ad31d3660d0a',\n type: 'reference',\n value: 'R2xvYmFsRWxlbWVudDphOTRjYjM3ZS02OWM2LTQ1OGQtODIxNS1mZTA2NGQ3OWZmNjI=',\n },\n ],\n },\n },\n padding: [\n {\n deviceId: 'desktop',\n value: {\n paddingBottom: {\n unit: 'px',\n value: 10,\n },\n paddingLeft: {\n unit: 'px',\n value: 10,\n },\n paddingRight: {\n unit: 'px',\n value: 10,\n },\n paddingTop: {\n unit: 'px',\n value: 10,\n },\n },\n },\n ],\n },\n type: './components/Box/index.js',\n },\n {\n key: '3c83ae93-7cc9-47b1-8599-4efbd5bbd331',\n props: {\n children: {\n '@@makeswift/type': 'prop-controllers::grid::v1',\n value: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n count: 12,\n spans: [[6, 6]],\n },\n },\n ],\n elements: [\n {\n key: 'f1ee5bf3-ebec-4398-b4e1-73b13c8050dd',\n props: {\n margin: [\n {\n deviceId: 'desktop',\n value: {\n marginBottom: {\n unit: 'px',\n value: 20,\n },\n marginLeft: 'auto',\n marginRight: 'auto',\n marginTop: null,\n },\n },\n ],\n text: {\n descendants: [\n {\n children: [\n {\n text: 'Resource: Page Link only',\n typography: {\n style: [\n {\n deviceId: 'desktop',\n value: {\n fontSize: {\n unit: 'px',\n value: 18,\n },\n fontWeight: 400,\n lineHeight: 1.5,\n },\n },\n {\n deviceId: 'mobile',\n value: {\n fontSize: {\n unit: 'px',\n value: 16,\n },\n },\n },\n ],\n },\n },\n ],\n type: 'default',\n },\n ],\n key: 'f3b4e0db-8141-4500-8b0d-19978cfcd664',\n type: 'makeswift::controls::rich-text-v2',\n version: 2,\n },\n width: [\n {\n deviceId: 'desktop',\n value: {\n unit: 'px',\n value: 700,\n },\n },\n ],\n },\n type: './components/Text/index.js',\n },\n {\n key: '0ca675bf-a128-4a22-9cda-b4f07ad7b52e',\n props: {\n margin: [\n {\n deviceId: 'desktop',\n value: {\n marginBottom: {\n unit: 'px',\n value: 20,\n },\n marginLeft: 'auto',\n marginRight: 'auto',\n marginTop: null,\n },\n },\n ],\n text: {\n descendants: [\n {\n children: [\n {\n text: '',\n },\n {\n children: [\n {\n text: 'Sample Link to Page A',\n typography: {\n style: [\n {\n deviceId: 'desktop',\n value: {\n fontSize: {\n unit: 'px',\n value: 18,\n },\n fontWeight: 400,\n lineHeight: 1.5,\n },\n },\n {\n deviceId: 'mobile',\n value: {\n fontSize: {\n unit: 'px',\n value: 16,\n },\n },\n },\n ],\n },\n },\n ],\n link: {\n payload: {\n openInNewTab: false,\n pageId:\n 'UGFnZToxZWU1YmNjNi1mMGI1LTQxMGUtOWIzMy0wZTJjZTNkYTIwMzE=',\n },\n type: 'OPEN_PAGE',\n },\n type: 'link',\n },\n {\n text: '',\n },\n ],\n type: 'default',\n },\n ],\n key: '878ec264-dbb5-4b14-8dc3-651133ba9a8e',\n type: 'makeswift::controls::rich-text-v2',\n version: 2,\n },\n width: [\n {\n deviceId: 'desktop',\n value: {\n unit: 'px',\n value: 700,\n },\n },\n ],\n },\n type: './components/Text/index.js',\n },\n ],\n },\n },\n padding: [\n {\n deviceId: 'desktop',\n value: {\n paddingBottom: {\n unit: 'px',\n value: 10,\n },\n paddingLeft: {\n unit: 'px',\n value: 10,\n },\n paddingRight: {\n unit: 'px',\n value: 10,\n },\n paddingTop: {\n unit: 'px',\n value: 10,\n },\n },\n },\n ],\n },\n type: './components/Box/index.js',\n },\n {\n key: 'fac5fb69-c058-49a8-8b07-0917b2beddc8',\n props: {\n padding: [\n {\n deviceId: 'desktop',\n value: {\n paddingBottom: {\n unit: 'px',\n value: 10,\n },\n paddingLeft: {\n unit: 'px',\n value: 10,\n },\n paddingRight: {\n unit: 'px',\n value: 10,\n },\n paddingTop: {\n unit: 'px',\n value: 10,\n },\n },\n },\n ],\n children: {\n '@@makeswift/type': 'prop-controllers::grid::v1',\n value: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n spans: [[6, 6]],\n count: 12,\n },\n },\n ],\n elements: [\n {\n key: '9274acff-aa56-4f04-b4f2-04e8106dc3a0',\n props: {\n margin: {\n '@@makeswift/type': 'prop-controllers::margin::v1',\n value: [\n {\n deviceId: 'desktop',\n value: {\n marginBottom: {\n unit: 'px',\n value: 20,\n },\n marginLeft: {\n unit: 'px',\n value: 0,\n },\n marginRight: 'auto',\n marginTop: null,\n },\n },\n ],\n },\n width: [\n {\n deviceId: 'desktop',\n value: {\n unit: 'px',\n value: 700,\n },\n },\n ],\n text: {\n type: 'makeswift::controls::rich-text-v2',\n version: 2,\n descendants: [\n {\n children: [\n {\n text: 'Resource: table',\n typography: {\n style: [\n {\n deviceId: 'desktop',\n value: {\n fontSize: {\n unit: 'px',\n value: 18,\n },\n fontWeight: 400,\n lineHeight: 1.5,\n },\n },\n {\n deviceId: 'mobile',\n value: {\n fontSize: {\n unit: 'px',\n value: 16,\n },\n },\n },\n ],\n },\n },\n ],\n type: 'default',\n },\n ],\n key: '78307876-10bc-4240-a01d-071cd395a586',\n },\n },\n type: './components/Text/index.js',\n },\n {\n key: 'f5fbb12a-948b-414d-8267-b571713cbf60',\n type: './components/Form/index.js',\n props: {\n gap: [\n {\n deviceId: 'desktop',\n value: {\n value: 10,\n unit: 'px',\n },\n },\n ],\n width: [\n {\n deviceId: 'desktop',\n value: {\n value: 550,\n unit: 'px',\n },\n },\n ],\n tableId: {\n '@@makeswift/type': 'prop-controllers::table::v1',\n value: 'VGFibGU6MDI2OTUwMDQtOThkMi00NDU1LThjNDAtYmFiMDU5YTY3NDQy',\n },\n fields: {\n '@@makeswift/type': 'prop-controllers::table-form-fields::v1',\n value: {\n fields: [],\n grid: [\n {\n deviceId: 'desktop',\n value: {\n count: 12,\n spans: [[12]],\n },\n },\n ],\n },\n },\n },\n },\n ],\n },\n },\n },\n type: './components/Box/index.js',\n },\n ],\n },\n },\n },\n type: './components/Root/index.js',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,MAAM,6BAAsC;AAAA,EACjD,KAAK;AAAA,EACL,OAAO;AAAA,IACL,UAAU;AAAA,MACR,oBAAoB;AAAA,MACpB,OAAO;AAAA,QACL,SAAS;AAAA,UACP;AAAA,YACE,UAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AAAA,cAC1C,OAAO;AAAA,YACT;AAAA,UACF;AAAA,QACF;AAAA,QACA,UAAU;AAAA,UACR;AAAA,YACE,KAAK;AAAA,YACL,OAAO;AAAA,cACL,UAAU;AAAA,gBACR,oBAAoB;AAAA,gBACpB,OAAO;AAAA,kBACL,SAAS;AAAA,oBACP;AAAA,sBACE,UAAU;AAAA,sBACV,OAAO;AAAA,wBACL,OAAO;AAAA,wBACP,OAAO,CAAC,CAAC,EAAE,CAAC;AAAA,sBACd;AAAA,oBACF;AAAA,kBACF;AAAA,kBACA,UAAU;AAAA,oBACR;AAAA,sBACE,KAAK;AAAA,sBACL,OAAO;AAAA,wBACL,QAAQ;AAAA,0BACN;AAAA,4BACE,UAAU;AAAA,4BACV,OAAO;AAAA,8BACL,cAAc;AAAA,gCACZ,MAAM;AAAA,gCACN,OAAO;AAAA,8BACT;AAAA,8BACA,YAAY;AAAA,8BACZ,aAAa;AAAA,8BACb,WAAW;AAAA,4BACb;AAAA,0BACF;AAAA,wBACF;AAAA,wBACA,MAAM;AAAA,0BACJ,aAAa;AAAA,4BACX;AAAA,8BACE,UAAU;AAAA,gCACR;AAAA,kCACE,MAAM;AAAA,kCACN,YAAY;AAAA,oCACV,OAAO;AAAA,sCACL;AAAA,wCACE,UAAU;AAAA,wCACV,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,0BACpB,OAAO;AAAA,wBACT;AAAA,wBACA,QAAQ;AAAA,0BACN,oBAAoB;AAAA,0BACpB,OAAO;AAAA,4BACL,QAAQ,CAAC;AAAA,4BACT,MAAM;AAAA,8BACJ;AAAA,gCACE,UAAU;AAAA,gCACV,OAAO;AAAA,kCACL,OAAO;AAAA,kCACP,OAAO,CAAC,CAAC,EAAE,CAAC;AAAA,gCACd;AAAA,8BACF;AAAA,4BACF;AAAA,0BACF;AAAA,wBACF;AAAA,sBACF;AAAA,oBACF;AAAA,kBACF;AAAA,gBACF;AAAA,cACF;AAAA,YACF;AAAA,YACA,MAAM;AAAA,UACR;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,MAAM;AACR;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var fixtures_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(fixtures_exports);
|
|
18
|
+
__reExport(fixtures_exports, require("./element-containing-resources"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./element-containing-resources")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/builder/unstructured-introspection/__fixtures__/index.ts"],"sourcesContent":["export * from './element-containing-resources'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,2CAAd;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var unstructured_introspection_exports = {};
|
|
20
|
+
__export(unstructured_introspection_exports, {
|
|
21
|
+
unstructuredIntrospection: () => import_unstructured_introspection.unstructuredIntrospection
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(unstructured_introspection_exports);
|
|
24
|
+
var import_unstructured_introspection = require("./unstructured-introspection");
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
unstructuredIntrospection
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/builder/unstructured-introspection/index.ts"],"sourcesContent":["export { unstructuredIntrospection } from './unstructured-introspection'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wCAA0C;","names":[]}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var unstructured_introspection_exports = {};
|
|
20
|
+
__export(unstructured_introspection_exports, {
|
|
21
|
+
unstructuredIntrospection: () => unstructuredIntrospection
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(unstructured_introspection_exports);
|
|
24
|
+
var import_js_base64 = require("js-base64");
|
|
25
|
+
var import_zod = require("zod");
|
|
26
|
+
var import_api = require("../../api");
|
|
27
|
+
function isAPIResourceType(val) {
|
|
28
|
+
return import_api.APIResourceType[val] != null;
|
|
29
|
+
}
|
|
30
|
+
const parseResourceIdSchema = import_zod.z.string().transform((val, ctx) => {
|
|
31
|
+
try {
|
|
32
|
+
const match = import_js_base64.Base64.decode(val).match(/^([^:]+):([^:]+)$/);
|
|
33
|
+
if (!match)
|
|
34
|
+
throw new TypeError(`NodeID cannot represent value: ${String(val)}`);
|
|
35
|
+
const [, typeName, key] = match;
|
|
36
|
+
if (isAPIResourceType(typeName)) {
|
|
37
|
+
return { key, typeName };
|
|
38
|
+
}
|
|
39
|
+
throw new TypeError(`decoded type '${typeName}' is not a valid APIResourceType`);
|
|
40
|
+
} catch (error) {
|
|
41
|
+
ctx.addIssue({
|
|
42
|
+
code: import_zod.z.ZodIssueCode.custom,
|
|
43
|
+
message: `${String(val)} is not a valid node resource ID`
|
|
44
|
+
});
|
|
45
|
+
return import_zod.z.NEVER;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
function unstructuredIntrospection(element) {
|
|
49
|
+
const typeIdsToFound = /* @__PURE__ */ new Map();
|
|
50
|
+
Object.values(import_api.APIResourceType).forEach((resourceType) => {
|
|
51
|
+
typeIdsToFound.set(resourceType, /* @__PURE__ */ new Set());
|
|
52
|
+
});
|
|
53
|
+
function findResourceIds(curr) {
|
|
54
|
+
if (typeof curr === "string") {
|
|
55
|
+
const parseResourceResult = parseResourceIdSchema.safeParse(curr);
|
|
56
|
+
if (parseResourceResult.success) {
|
|
57
|
+
typeIdsToFound.get(parseResourceResult.data.typeName)?.add(curr);
|
|
58
|
+
}
|
|
59
|
+
} else if (Array.isArray(curr)) {
|
|
60
|
+
for (const item of curr) {
|
|
61
|
+
findResourceIds(item);
|
|
62
|
+
}
|
|
63
|
+
} else if (curr != null && typeof curr === "object") {
|
|
64
|
+
for (const key in curr) {
|
|
65
|
+
if (Object.prototype.hasOwnProperty.call(curr, key)) {
|
|
66
|
+
findResourceIds(curr[key]);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
findResourceIds(element);
|
|
72
|
+
return {
|
|
73
|
+
swatchIds: typeIdsToFound.get(import_api.APIResourceType.Swatch) ?? /* @__PURE__ */ new Set(),
|
|
74
|
+
typographyIds: typeIdsToFound.get(import_api.APIResourceType.Typography) ?? /* @__PURE__ */ new Set(),
|
|
75
|
+
fileIds: typeIdsToFound.get(import_api.APIResourceType.File) ?? /* @__PURE__ */ new Set(),
|
|
76
|
+
tableIds: typeIdsToFound.get(import_api.APIResourceType.Table) ?? /* @__PURE__ */ new Set(),
|
|
77
|
+
pageIds: typeIdsToFound.get(import_api.APIResourceType.Page) ?? /* @__PURE__ */ new Set(),
|
|
78
|
+
globalElementIds: typeIdsToFound.get(import_api.APIResourceType.GlobalElement) ?? /* @__PURE__ */ new Set()
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
82
|
+
0 && (module.exports = {
|
|
83
|
+
unstructuredIntrospection
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=unstructured-introspection.js.map
|
|
@@ -0,0 +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,U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AA,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.
|
|
40
|
+
version: "0.24.2-canary.0",
|
|
41
41
|
previewMode: supportsPreviewMode,
|
|
42
42
|
draftMode: supportsDraftMode,
|
|
43
43
|
interactionMode: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/builder/index.ts"],"sourcesContent":["export * from './serialization'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/builder/index.ts"],"sourcesContent":["export * from './serialization'\nexport * from './unstructured-introspection'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|