@makeswift/runtime 0.28.0 → 0.28.1-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.
@@ -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.0",
31
+ version: "0.28.1-canary.0",
32
32
  interactionMode: true,
33
33
  clientSideNavigation: false,
34
34
  elementFromPoint: false,
@@ -33,7 +33,9 @@ __export(builder_exports, {
33
33
  Introspection: () => Introspection,
34
34
  Props: () => Props,
35
35
  TableFormFieldsMessageType: () => import_instances.TableFormFieldsMessageType,
36
- createBaseDocument: () => import_read_only_state.createBaseDocument
36
+ createBaseDocument: () => import_read_only_state.createBaseDocument,
37
+ deserializeObject: () => import_controls.deserializeObject,
38
+ serializeObject: () => import_controls.serializeObject
37
39
  });
38
40
  module.exports = __toCommonJS(builder_exports);
39
41
  __reExport(builder_exports, require("./serialization"), module.exports);
@@ -45,6 +47,7 @@ var Props = __toESM(require("../prop-controllers/descriptors"));
45
47
  var import_instances = require("../prop-controllers/instances");
46
48
  var Introspection = __toESM(require("../prop-controllers/introspection"));
47
49
  var import_deleted = require("../prop-controllers/deleted");
50
+ var import_controls = require("@makeswift/controls");
48
51
  // Annotate the CommonJS export names for ESM import in node:
49
52
  0 && (module.exports = {
50
53
  DELETED_PROP_CONTROLLER_TYPES,
@@ -52,6 +55,8 @@ var import_deleted = require("../prop-controllers/deleted");
52
55
  Props,
53
56
  TableFormFieldsMessageType,
54
57
  createBaseDocument,
58
+ deserializeObject,
59
+ serializeObject,
55
60
  ...require("./serialization"),
56
61
  ...require("./unstructured-introspection"),
57
62
  ...require("./host-to-builder-actions"),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/builder/index.ts"],"sourcesContent":["export * from './serialization'\nexport * from './unstructured-introspection'\nexport * from './host-to-builder-actions'\nexport * from './host-api'\n\nexport { type Operation } from '../state/modules/read-write/read-write-documents'\n\nexport { createBaseDocument } from '../state/read-only-state'\n\nexport type {\n Descriptor as PropControllerDescriptor,\n DescriptorValueType as PropControllerDescriptorValueType,\n PanelDescriptor,\n PanelDescriptorType,\n PanelDescriptorValueType,\n} from '../prop-controllers/descriptors'\n\nexport * as Props from '../prop-controllers/descriptors'\nexport type { PropControllerMessage, TableFormFieldsMessage } from '../prop-controllers/instances'\nexport { TableFormFieldsMessageType } from '../prop-controllers/instances'\nexport * as Introspection from '../prop-controllers/introspection'\nexport { DELETED_PROP_CONTROLLER_TYPES } from '../prop-controllers/deleted'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAc,4BAAd;AACA,4BAAc,yCADd;AAEA,4BAAc,sCAFd;AAGA,4BAAc,uBAHd;AAOA,6BAAmC;AAUnC,YAAuB;AAEvB,uBAA2C;AAC3C,oBAA+B;AAC/B,qBAA8C;","names":[]}
1
+ {"version":3,"sources":["../../../src/builder/index.ts"],"sourcesContent":["export * from './serialization'\nexport * from './unstructured-introspection'\nexport * from './host-to-builder-actions'\nexport * from './host-api'\n\nexport { type Operation } from '../state/modules/read-write/read-write-documents'\n\nexport { createBaseDocument } from '../state/read-only-state'\n\nexport type {\n Descriptor as PropControllerDescriptor,\n DescriptorValueType as PropControllerDescriptorValueType,\n PanelDescriptor,\n PanelDescriptorType,\n PanelDescriptorValueType,\n} from '../prop-controllers/descriptors'\n\nexport * as Props from '../prop-controllers/descriptors'\nexport type { PropControllerMessage, TableFormFieldsMessage } from '../prop-controllers/instances'\nexport { TableFormFieldsMessageType } from '../prop-controllers/instances'\nexport * as Introspection from '../prop-controllers/introspection'\nexport { DELETED_PROP_CONTROLLER_TYPES } from '../prop-controllers/deleted'\n\nexport type {\n SerializationPlugin,\n DeserializationPlugin,\n AnyFunction,\n Deserialized,\n} from '@makeswift/controls'\n\nexport { serializeObject, deserializeObject } from '@makeswift/controls'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAc,4BAAd;AACA,4BAAc,yCADd;AAEA,4BAAc,sCAFd;AAGA,4BAAc,uBAHd;AAOA,6BAAmC;AAUnC,YAAuB;AAEvB,uBAA2C;AAC3C,oBAA+B;AAC/B,qBAA8C;AAS9C,sBAAmD;","names":[]}
@@ -211,7 +211,7 @@ Received "${apiKey}" instead.`
211
211
  }
212
212
  this.apiKey = apiKey;
213
213
  this.graphqlClient = new import_client.GraphQLClient(new URL("graphql", runtime.apiOrigin).href, {
214
- "makeswift-runtime-version": "0.28.0"
214
+ "makeswift-runtime-version": "0.28.1-canary.0"
215
215
  });
216
216
  this.runtime = runtime;
217
217
  }
@@ -223,7 +223,7 @@ Received "${apiKey}" instead.`
223
223
  const requestHeaders = new Headers({
224
224
  "x-api-key": this.apiKey,
225
225
  "makeswift-site-api-key": this.apiKey,
226
- "makeswift-runtime-version": "0.28.0"
226
+ "makeswift-runtime-version": "0.28.1-canary.0"
227
227
  });
228
228
  if (siteVersion?.token) {
229
229
  requestUrl.searchParams.set("version", siteVersion.version);
@@ -681,7 +681,7 @@ Received "${apiKey}" instead.`
681
681
  headers: {
682
682
  "x-api-key": this.apiKey,
683
683
  "makeswift-site-api-key": this.apiKey,
684
- "makeswift-runtime-version": "0.28.0",
684
+ "makeswift-runtime-version": "0.28.1-canary.0",
685
685
  "content-type": "application/json"
686
686
  },
687
687
  body: JSON.stringify({ token }),
@@ -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.0",
11
+ version: "0.28.1-canary.0",
12
12
  interactionMode: true,
13
13
  clientSideNavigation: false,
14
14
  elementFromPoint: false,
@@ -7,11 +7,14 @@ import * as Props from "../prop-controllers/descriptors";
7
7
  import { TableFormFieldsMessageType } from "../prop-controllers/instances";
8
8
  import * as Introspection from "../prop-controllers/introspection";
9
9
  import { DELETED_PROP_CONTROLLER_TYPES } from "../prop-controllers/deleted";
10
+ import { serializeObject, deserializeObject } from "@makeswift/controls";
10
11
  export {
11
12
  DELETED_PROP_CONTROLLER_TYPES,
12
13
  Introspection,
13
14
  Props,
14
15
  TableFormFieldsMessageType,
15
- createBaseDocument
16
+ createBaseDocument,
17
+ deserializeObject,
18
+ serializeObject
16
19
  };
17
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/builder/index.ts"],"sourcesContent":["export * from './serialization'\nexport * from './unstructured-introspection'\nexport * from './host-to-builder-actions'\nexport * from './host-api'\n\nexport { type Operation } from '../state/modules/read-write/read-write-documents'\n\nexport { createBaseDocument } from '../state/read-only-state'\n\nexport type {\n Descriptor as PropControllerDescriptor,\n DescriptorValueType as PropControllerDescriptorValueType,\n PanelDescriptor,\n PanelDescriptorType,\n PanelDescriptorValueType,\n} from '../prop-controllers/descriptors'\n\nexport * as Props from '../prop-controllers/descriptors'\nexport type { PropControllerMessage, TableFormFieldsMessage } from '../prop-controllers/instances'\nexport { TableFormFieldsMessageType } from '../prop-controllers/instances'\nexport * as Introspection from '../prop-controllers/introspection'\nexport { DELETED_PROP_CONTROLLER_TYPES } from '../prop-controllers/deleted'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAId,SAAS,0BAA0B;AAUnC,YAAY,WAAW;AAEvB,SAAS,kCAAkC;AAC3C,YAAY,mBAAmB;AAC/B,SAAS,qCAAqC;","names":[]}
1
+ {"version":3,"sources":["../../../src/builder/index.ts"],"sourcesContent":["export * from './serialization'\nexport * from './unstructured-introspection'\nexport * from './host-to-builder-actions'\nexport * from './host-api'\n\nexport { type Operation } from '../state/modules/read-write/read-write-documents'\n\nexport { createBaseDocument } from '../state/read-only-state'\n\nexport type {\n Descriptor as PropControllerDescriptor,\n DescriptorValueType as PropControllerDescriptorValueType,\n PanelDescriptor,\n PanelDescriptorType,\n PanelDescriptorValueType,\n} from '../prop-controllers/descriptors'\n\nexport * as Props from '../prop-controllers/descriptors'\nexport type { PropControllerMessage, TableFormFieldsMessage } from '../prop-controllers/instances'\nexport { TableFormFieldsMessageType } from '../prop-controllers/instances'\nexport * as Introspection from '../prop-controllers/introspection'\nexport { DELETED_PROP_CONTROLLER_TYPES } from '../prop-controllers/deleted'\n\nexport type {\n SerializationPlugin,\n DeserializationPlugin,\n AnyFunction,\n Deserialized,\n} from '@makeswift/controls'\n\nexport { serializeObject, deserializeObject } from '@makeswift/controls'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAId,SAAS,0BAA0B;AAUnC,YAAY,WAAW;AAEvB,SAAS,kCAAkC;AAC3C,YAAY,mBAAmB;AAC/B,SAAS,qCAAqC;AAS9C,SAAS,iBAAiB,yBAAyB;","names":[]}
@@ -195,7 +195,7 @@ Received "${apiKey}" instead.`
195
195
  }
196
196
  this.apiKey = apiKey;
197
197
  this.graphqlClient = new GraphQLClient(new URL("graphql", runtime.apiOrigin).href, {
198
- "makeswift-runtime-version": "0.28.0"
198
+ "makeswift-runtime-version": "0.28.1-canary.0"
199
199
  });
200
200
  this.runtime = runtime;
201
201
  }
@@ -207,7 +207,7 @@ Received "${apiKey}" instead.`
207
207
  const requestHeaders = new Headers({
208
208
  "x-api-key": this.apiKey,
209
209
  "makeswift-site-api-key": this.apiKey,
210
- "makeswift-runtime-version": "0.28.0"
210
+ "makeswift-runtime-version": "0.28.1-canary.0"
211
211
  });
212
212
  if (siteVersion?.token) {
213
213
  requestUrl.searchParams.set("version", siteVersion.version);
@@ -665,7 +665,7 @@ Received "${apiKey}" instead.`
665
665
  headers: {
666
666
  "x-api-key": this.apiKey,
667
667
  "makeswift-site-api-key": this.apiKey,
668
- "makeswift-runtime-version": "0.28.0",
668
+ "makeswift-runtime-version": "0.28.1-canary.0",
669
669
  "content-type": "application/json"
670
670
  },
671
671
  body: JSON.stringify({ token }),
@@ -10,4 +10,6 @@ export type { PropControllerMessage, TableFormFieldsMessage } from '../prop-cont
10
10
  export { TableFormFieldsMessageType } from '../prop-controllers/instances';
11
11
  export * as Introspection from '../prop-controllers/introspection';
12
12
  export { DELETED_PROP_CONTROLLER_TYPES } from '../prop-controllers/deleted';
13
+ export type { SerializationPlugin, DeserializationPlugin, AnyFunction, Deserialized, } from '@makeswift/controls';
14
+ export { serializeObject, deserializeObject } from '@makeswift/controls';
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/builder/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kDAAkD,CAAA;AAEjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,YAAY,EACV,UAAU,IAAI,wBAAwB,EACtC,mBAAmB,IAAI,iCAAiC,EACxD,eAAe,EACf,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,KAAK,MAAM,iCAAiC,CAAA;AACxD,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAClG,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/builder/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kDAAkD,CAAA;AAEjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,YAAY,EACV,UAAU,IAAI,wBAAwB,EACtC,mBAAmB,IAAI,iCAAiC,EACxD,eAAe,EACf,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,KAAK,MAAM,iCAAiC,CAAA;AACxD,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAClG,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAA;AAE3E,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,WAAW,EACX,YAAY,GACb,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/runtime",
3
- "version": "0.28.0",
3
+ "version": "0.28.1-canary.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "url": "makeswift/makeswift",