@makeswift/runtime 0.28.5 → 0.28.6-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.
- package/dist/cjs/api-handler/handlers/manifest.js +1 -1
- package/dist/cjs/client/index.js +3 -3
- package/dist/cjs/prop-controllers/copy.js +1 -1
- package/dist/cjs/prop-controllers/copy.js.map +1 -1
- package/dist/esm/api-handler/handlers/manifest.js +1 -1
- package/dist/esm/client/index.js +3 -3
- package/dist/esm/prop-controllers/copy.js +2 -1
- package/dist/esm/prop-controllers/copy.js.map +1 -1
- package/dist/types/prop-controllers/copy.d.ts.map +1 -1
- package/dist/types/runtimes/react/__tests__/__fixtures__/element-tree.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -28,7 +28,7 @@ async function manifestHandler(req, { apiKey, manifest }) {
|
|
|
28
28
|
return import_request_response.ApiResponse.json({ message: "Unauthorized" }, { status: 401 });
|
|
29
29
|
}
|
|
30
30
|
return import_request_response.ApiResponse.json({
|
|
31
|
-
version: "0.28.
|
|
31
|
+
version: "0.28.6-canary.1",
|
|
32
32
|
interactionMode: true,
|
|
33
33
|
clientSideNavigation: false,
|
|
34
34
|
elementFromPoint: false,
|
package/dist/cjs/client/index.js
CHANGED
|
@@ -214,7 +214,7 @@ Received "${apiKey}" instead.`
|
|
|
214
214
|
}
|
|
215
215
|
this.apiKey = apiKey;
|
|
216
216
|
this.graphqlClient = new import_client.GraphQLClient(new URL("graphql", runtime.apiOrigin).href, {
|
|
217
|
-
"makeswift-runtime-version": "0.28.
|
|
217
|
+
"makeswift-runtime-version": "0.28.6-canary.1"
|
|
218
218
|
});
|
|
219
219
|
this.runtime = runtime;
|
|
220
220
|
}
|
|
@@ -226,7 +226,7 @@ Received "${apiKey}" instead.`
|
|
|
226
226
|
const requestHeaders = new Headers({
|
|
227
227
|
"x-api-key": this.apiKey,
|
|
228
228
|
"makeswift-site-api-key": this.apiKey,
|
|
229
|
-
"makeswift-runtime-version": "0.28.
|
|
229
|
+
"makeswift-runtime-version": "0.28.6-canary.1"
|
|
230
230
|
});
|
|
231
231
|
if (siteVersion?.token) {
|
|
232
232
|
requestUrl.searchParams.set("version", siteVersion.version);
|
|
@@ -953,7 +953,7 @@ Received "${apiKey}" instead.`
|
|
|
953
953
|
headers: {
|
|
954
954
|
"x-api-key": this.apiKey,
|
|
955
955
|
"makeswift-site-api-key": this.apiKey,
|
|
956
|
-
"makeswift-runtime-version": "0.28.
|
|
956
|
+
"makeswift-runtime-version": "0.28.6-canary.1",
|
|
957
957
|
"content-type": "application/json"
|
|
958
958
|
},
|
|
959
959
|
body: JSON.stringify({ token }),
|
|
@@ -45,7 +45,7 @@ function copy(descriptor, value, context) {
|
|
|
45
45
|
case import_prop_controllers.Types.ResponsiveColor:
|
|
46
46
|
return (0, import_prop_controllers.copyResponsiveColorPropControllerData)(value, context);
|
|
47
47
|
case import_prop_controllers.Types.TableFormFields:
|
|
48
|
-
return (0, import_prop_controllers.
|
|
48
|
+
return (0, import_prop_controllers.copyTableFormFieldsPropControllerData)(value, context);
|
|
49
49
|
case import_prop_controllers.Types.Table:
|
|
50
50
|
return (0, import_prop_controllers.copyTablePropControllerData)(value, context);
|
|
51
51
|
case import_prop_controllers.Types.Border:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/prop-controllers/copy.ts"],"sourcesContent":["import { type CopyContext } from '@makeswift/controls'\n\nimport {\n copyLinkPropControllerData,\n copyShadowsPropControllerData,\n copyBorderPropControllerData,\n copyElementIDPropControllerData,\n copyGridPropControllerData,\n copyImagePropControllerData,\n copyImagesPropControllerData,\n copyBackgroundsPropControllerData,\n copyResponsiveColorPropControllerData,\n copyTablePropControllerData,\n copyNavigationLinksPropControllerData,\n Types as PropControllerTypes,\n} from '@makeswift/prop-controllers'\n\nimport { isLegacyDescriptor, type Descriptor } from './descriptors'\n\n// @note: note typing value, because would then have to type narrow `Data` per case\nexport function copy(descriptor: Descriptor, value: any, context: CopyContext) {\n if (!isLegacyDescriptor(descriptor)) {\n return descriptor.copyData(value, context)\n }\n\n switch (descriptor.type) {\n case PropControllerTypes.Backgrounds:\n return copyBackgroundsPropControllerData(descriptor, value, context)\n\n case PropControllerTypes.Grid:\n return copyGridPropControllerData(value, context)\n\n case PropControllerTypes.NavigationLinks:\n return copyNavigationLinksPropControllerData(value, context)\n\n case PropControllerTypes.Link:\n return copyLinkPropControllerData(value, context)\n\n case PropControllerTypes.Shadows:\n return copyShadowsPropControllerData(value, context)\n\n case PropControllerTypes.Image:\n return copyImagePropControllerData(value, context)\n\n case PropControllerTypes.Images:\n return copyImagesPropControllerData(value, context)\n\n case PropControllerTypes.ResponsiveColor:\n return copyResponsiveColorPropControllerData(value, context)\n\n case PropControllerTypes.TableFormFields:\n return
|
|
1
|
+
{"version":3,"sources":["../../../src/prop-controllers/copy.ts"],"sourcesContent":["import { type CopyContext } from '@makeswift/controls'\n\nimport {\n copyLinkPropControllerData,\n copyShadowsPropControllerData,\n copyBorderPropControllerData,\n copyElementIDPropControllerData,\n copyGridPropControllerData,\n copyImagePropControllerData,\n copyImagesPropControllerData,\n copyBackgroundsPropControllerData,\n copyResponsiveColorPropControllerData,\n copyTablePropControllerData,\n copyTableFormFieldsPropControllerData,\n copyNavigationLinksPropControllerData,\n Types as PropControllerTypes,\n} from '@makeswift/prop-controllers'\n\nimport { isLegacyDescriptor, type Descriptor } from './descriptors'\n\n// @note: note typing value, because would then have to type narrow `Data` per case\nexport function copy(descriptor: Descriptor, value: any, context: CopyContext) {\n if (!isLegacyDescriptor(descriptor)) {\n return descriptor.copyData(value, context)\n }\n\n switch (descriptor.type) {\n case PropControllerTypes.Backgrounds:\n return copyBackgroundsPropControllerData(descriptor, value, context)\n\n case PropControllerTypes.Grid:\n return copyGridPropControllerData(value, context)\n\n case PropControllerTypes.NavigationLinks:\n return copyNavigationLinksPropControllerData(value, context)\n\n case PropControllerTypes.Link:\n return copyLinkPropControllerData(value, context)\n\n case PropControllerTypes.Shadows:\n return copyShadowsPropControllerData(value, context)\n\n case PropControllerTypes.Image:\n return copyImagePropControllerData(value, context)\n\n case PropControllerTypes.Images:\n return copyImagesPropControllerData(value, context)\n\n case PropControllerTypes.ResponsiveColor:\n return copyResponsiveColorPropControllerData(value, context)\n\n case PropControllerTypes.TableFormFields:\n return copyTableFormFieldsPropControllerData(value, context)\n\n case PropControllerTypes.Table:\n return copyTablePropControllerData(value, context)\n\n case PropControllerTypes.Border:\n return copyBorderPropControllerData(value, context)\n\n case PropControllerTypes.ElementID:\n return copyElementIDPropControllerData(value, context)\n\n // FIXME: DELETED_PROP_CONTROLLER_TYPES.RichText ??\n\n default:\n return value\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,8BAcO;AAEP,yBAAoD;AAG7C,SAAS,KAAK,YAAwB,OAAY,SAAsB;AAC7E,MAAI,KAAC,uCAAmB,UAAU,GAAG;AACnC,WAAO,WAAW,SAAS,OAAO,OAAO;AAAA,EAC3C;AAEA,UAAQ,WAAW,MAAM;AAAA,IACvB,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,2DAAkC,YAAY,OAAO,OAAO;AAAA,IAErE,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,oDAA2B,OAAO,OAAO;AAAA,IAElD,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,+DAAsC,OAAO,OAAO;AAAA,IAE7D,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,oDAA2B,OAAO,OAAO;AAAA,IAElD,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,uDAA8B,OAAO,OAAO;AAAA,IAErD,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,qDAA4B,OAAO,OAAO;AAAA,IAEnD,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,sDAA6B,OAAO,OAAO;AAAA,IAEpD,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,+DAAsC,OAAO,OAAO;AAAA,IAE7D,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,+DAAsC,OAAO,OAAO;AAAA,IAE7D,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,qDAA4B,OAAO,OAAO;AAAA,IAEnD,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,sDAA6B,OAAO,OAAO;AAAA,IAEpD,KAAK,wBAAAA,MAAoB;AACvB,iBAAO,yDAAgC,OAAO,OAAO;AAAA,IAIvD;AACE,aAAO;AAAA,EACX;AACF;","names":["PropControllerTypes"]}
|
|
@@ -8,7 +8,7 @@ async function manifestHandler(req, { apiKey, manifest }) {
|
|
|
8
8
|
return ApiResponse.json({ message: "Unauthorized" }, { status: 401 });
|
|
9
9
|
}
|
|
10
10
|
return ApiResponse.json({
|
|
11
|
-
version: "0.28.
|
|
11
|
+
version: "0.28.6-canary.1",
|
|
12
12
|
interactionMode: true,
|
|
13
13
|
clientSideNavigation: false,
|
|
14
14
|
elementFromPoint: false,
|
package/dist/esm/client/index.js
CHANGED
|
@@ -198,7 +198,7 @@ Received "${apiKey}" instead.`
|
|
|
198
198
|
}
|
|
199
199
|
this.apiKey = apiKey;
|
|
200
200
|
this.graphqlClient = new GraphQLClient(new URL("graphql", runtime.apiOrigin).href, {
|
|
201
|
-
"makeswift-runtime-version": "0.28.
|
|
201
|
+
"makeswift-runtime-version": "0.28.6-canary.1"
|
|
202
202
|
});
|
|
203
203
|
this.runtime = runtime;
|
|
204
204
|
}
|
|
@@ -210,7 +210,7 @@ Received "${apiKey}" instead.`
|
|
|
210
210
|
const requestHeaders = new Headers({
|
|
211
211
|
"x-api-key": this.apiKey,
|
|
212
212
|
"makeswift-site-api-key": this.apiKey,
|
|
213
|
-
"makeswift-runtime-version": "0.28.
|
|
213
|
+
"makeswift-runtime-version": "0.28.6-canary.1"
|
|
214
214
|
});
|
|
215
215
|
if (siteVersion?.token) {
|
|
216
216
|
requestUrl.searchParams.set("version", siteVersion.version);
|
|
@@ -937,7 +937,7 @@ Received "${apiKey}" instead.`
|
|
|
937
937
|
headers: {
|
|
938
938
|
"x-api-key": this.apiKey,
|
|
939
939
|
"makeswift-site-api-key": this.apiKey,
|
|
940
|
-
"makeswift-runtime-version": "0.28.
|
|
940
|
+
"makeswift-runtime-version": "0.28.6-canary.1",
|
|
941
941
|
"content-type": "application/json"
|
|
942
942
|
},
|
|
943
943
|
body: JSON.stringify({ token }),
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
copyBackgroundsPropControllerData,
|
|
10
10
|
copyResponsiveColorPropControllerData,
|
|
11
11
|
copyTablePropControllerData,
|
|
12
|
+
copyTableFormFieldsPropControllerData,
|
|
12
13
|
copyNavigationLinksPropControllerData,
|
|
13
14
|
Types as PropControllerTypes
|
|
14
15
|
} from "@makeswift/prop-controllers";
|
|
@@ -35,7 +36,7 @@ function copy(descriptor, value, context) {
|
|
|
35
36
|
case PropControllerTypes.ResponsiveColor:
|
|
36
37
|
return copyResponsiveColorPropControllerData(value, context);
|
|
37
38
|
case PropControllerTypes.TableFormFields:
|
|
38
|
-
return
|
|
39
|
+
return copyTableFormFieldsPropControllerData(value, context);
|
|
39
40
|
case PropControllerTypes.Table:
|
|
40
41
|
return copyTablePropControllerData(value, context);
|
|
41
42
|
case PropControllerTypes.Border:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/prop-controllers/copy.ts"],"sourcesContent":["import { type CopyContext } from '@makeswift/controls'\n\nimport {\n copyLinkPropControllerData,\n copyShadowsPropControllerData,\n copyBorderPropControllerData,\n copyElementIDPropControllerData,\n copyGridPropControllerData,\n copyImagePropControllerData,\n copyImagesPropControllerData,\n copyBackgroundsPropControllerData,\n copyResponsiveColorPropControllerData,\n copyTablePropControllerData,\n copyNavigationLinksPropControllerData,\n Types as PropControllerTypes,\n} from '@makeswift/prop-controllers'\n\nimport { isLegacyDescriptor, type Descriptor } from './descriptors'\n\n// @note: note typing value, because would then have to type narrow `Data` per case\nexport function copy(descriptor: Descriptor, value: any, context: CopyContext) {\n if (!isLegacyDescriptor(descriptor)) {\n return descriptor.copyData(value, context)\n }\n\n switch (descriptor.type) {\n case PropControllerTypes.Backgrounds:\n return copyBackgroundsPropControllerData(descriptor, value, context)\n\n case PropControllerTypes.Grid:\n return copyGridPropControllerData(value, context)\n\n case PropControllerTypes.NavigationLinks:\n return copyNavigationLinksPropControllerData(value, context)\n\n case PropControllerTypes.Link:\n return copyLinkPropControllerData(value, context)\n\n case PropControllerTypes.Shadows:\n return copyShadowsPropControllerData(value, context)\n\n case PropControllerTypes.Image:\n return copyImagePropControllerData(value, context)\n\n case PropControllerTypes.Images:\n return copyImagesPropControllerData(value, context)\n\n case PropControllerTypes.ResponsiveColor:\n return copyResponsiveColorPropControllerData(value, context)\n\n case PropControllerTypes.TableFormFields:\n return
|
|
1
|
+
{"version":3,"sources":["../../../src/prop-controllers/copy.ts"],"sourcesContent":["import { type CopyContext } from '@makeswift/controls'\n\nimport {\n copyLinkPropControllerData,\n copyShadowsPropControllerData,\n copyBorderPropControllerData,\n copyElementIDPropControllerData,\n copyGridPropControllerData,\n copyImagePropControllerData,\n copyImagesPropControllerData,\n copyBackgroundsPropControllerData,\n copyResponsiveColorPropControllerData,\n copyTablePropControllerData,\n copyTableFormFieldsPropControllerData,\n copyNavigationLinksPropControllerData,\n Types as PropControllerTypes,\n} from '@makeswift/prop-controllers'\n\nimport { isLegacyDescriptor, type Descriptor } from './descriptors'\n\n// @note: note typing value, because would then have to type narrow `Data` per case\nexport function copy(descriptor: Descriptor, value: any, context: CopyContext) {\n if (!isLegacyDescriptor(descriptor)) {\n return descriptor.copyData(value, context)\n }\n\n switch (descriptor.type) {\n case PropControllerTypes.Backgrounds:\n return copyBackgroundsPropControllerData(descriptor, value, context)\n\n case PropControllerTypes.Grid:\n return copyGridPropControllerData(value, context)\n\n case PropControllerTypes.NavigationLinks:\n return copyNavigationLinksPropControllerData(value, context)\n\n case PropControllerTypes.Link:\n return copyLinkPropControllerData(value, context)\n\n case PropControllerTypes.Shadows:\n return copyShadowsPropControllerData(value, context)\n\n case PropControllerTypes.Image:\n return copyImagePropControllerData(value, context)\n\n case PropControllerTypes.Images:\n return copyImagesPropControllerData(value, context)\n\n case PropControllerTypes.ResponsiveColor:\n return copyResponsiveColorPropControllerData(value, context)\n\n case PropControllerTypes.TableFormFields:\n return copyTableFormFieldsPropControllerData(value, context)\n\n case PropControllerTypes.Table:\n return copyTablePropControllerData(value, context)\n\n case PropControllerTypes.Border:\n return copyBorderPropControllerData(value, context)\n\n case PropControllerTypes.ElementID:\n return copyElementIDPropControllerData(value, context)\n\n // FIXME: DELETED_PROP_CONTROLLER_TYPES.RichText ??\n\n default:\n return value\n }\n}\n"],"mappings":"AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,OACJ;AAEP,SAAS,0BAA2C;AAG7C,SAAS,KAAK,YAAwB,OAAY,SAAsB;AAC7E,MAAI,CAAC,mBAAmB,UAAU,GAAG;AACnC,WAAO,WAAW,SAAS,OAAO,OAAO;AAAA,EAC3C;AAEA,UAAQ,WAAW,MAAM;AAAA,IACvB,KAAK,oBAAoB;AACvB,aAAO,kCAAkC,YAAY,OAAO,OAAO;AAAA,IAErE,KAAK,oBAAoB;AACvB,aAAO,2BAA2B,OAAO,OAAO;AAAA,IAElD,KAAK,oBAAoB;AACvB,aAAO,sCAAsC,OAAO,OAAO;AAAA,IAE7D,KAAK,oBAAoB;AACvB,aAAO,2BAA2B,OAAO,OAAO;AAAA,IAElD,KAAK,oBAAoB;AACvB,aAAO,8BAA8B,OAAO,OAAO;AAAA,IAErD,KAAK,oBAAoB;AACvB,aAAO,4BAA4B,OAAO,OAAO;AAAA,IAEnD,KAAK,oBAAoB;AACvB,aAAO,6BAA6B,OAAO,OAAO;AAAA,IAEpD,KAAK,oBAAoB;AACvB,aAAO,sCAAsC,OAAO,OAAO;AAAA,IAE7D,KAAK,oBAAoB;AACvB,aAAO,sCAAsC,OAAO,OAAO;AAAA,IAE7D,KAAK,oBAAoB;AACvB,aAAO,4BAA4B,OAAO,OAAO;AAAA,IAEnD,KAAK,oBAAoB;AACvB,aAAO,6BAA6B,OAAO,OAAO;AAAA,IAEpD,KAAK,oBAAoB;AACvB,aAAO,gCAAgC,OAAO,OAAO;AAAA,IAIvD;AACE,aAAO;AAAA,EACX;AACF;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../src/prop-controllers/copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../src/prop-controllers/copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAkBtD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAA;AAGnE,wBAAgB,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,OA+C5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-tree.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/__tests__/__fixtures__/element-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"element-tree.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/__tests__/__fixtures__/element-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD,eAAO,MAAM,WAAW,EAAE,WA6xDzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeswift/runtime",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.6-canary.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "makeswift/makeswift",
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
"@types/jest": "^29.5.12",
|
|
260
260
|
"@types/jsdom": "^21.1.7",
|
|
261
261
|
"@types/node": "^20.14.8",
|
|
262
|
-
"@types/react": "^19.2.
|
|
262
|
+
"@types/react": "^19.2.15",
|
|
263
263
|
"@types/react-dom": "^19.2.3",
|
|
264
264
|
"@types/set-cookie-parser": "^2.4.10",
|
|
265
265
|
"@types/use-sync-external-store": "^1.5.0",
|