@makeswift/runtime 0.25.1-canary.1 → 0.25.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.
@@ -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.25.1-canary.1",
31
+ version: "0.25.1",
32
32
  interactionMode: true,
33
33
  clientSideNavigation: false,
34
34
  elementFromPoint: false,
@@ -0,0 +1,94 @@
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 unstable_framework_support_exports = {};
20
+ __export(unstable_framework_support_exports, {
21
+ DefaultHead: () => import_framework_context.DefaultHead,
22
+ DefaultHeadSnippet: () => import_framework_context.DefaultHeadSnippet,
23
+ DefaultImage: () => import_framework_context.DefaultImage,
24
+ FrameworkContext: () => import_framework_context.FrameworkContext,
25
+ MAKESWIFT_SITE_VERSION_COOKIE: () => import_preview.MAKESWIFT_SITE_VERSION_COOKIE,
26
+ MakeswiftClient: () => import_client.MakeswiftClient,
27
+ MakeswiftComponent: () => import_MakeswiftComponent.MakeswiftComponent,
28
+ Page: () => import_page.Page,
29
+ REDIRECT_SEARCH_PARAM: () => import_redirect_live.REDIRECT_SEARCH_PARAM,
30
+ ReactRuntime: () => import_react_runtime.ReactRuntime,
31
+ RootStyleRegistry: () => import_root_style_registry.RootStyleRegistry,
32
+ RuntimeProvider: () => import_RuntimeProvider.RuntimeProvider,
33
+ SET_COOKIE_HEADER: () => import_cookies.SET_COOKIE_HEADER,
34
+ SearchParams: () => import_preview.SearchParams,
35
+ Slot: () => import_Slot.Slot,
36
+ StyleTagSSR: () => import_root_style_registry.StyleTagSSR,
37
+ cookieSettingOptions: () => import_cookies.cookieSettingOptions,
38
+ createApiHandler: () => import_api_handler.createApiHandler,
39
+ createRootStyleCache: () => import_root_style_registry.createRootStyleCache,
40
+ deserializeSiteVersion: () => import_site_version.deserializeSiteVersion,
41
+ pipeResponseTo: () => import_node_request_response.pipeResponseTo,
42
+ redirectLiveHandler: () => import_redirect_live.redirectLiveHandler,
43
+ secondsUntilSiteVersionExpiration: () => import_site_version.secondsUntilSiteVersionExpiration,
44
+ serializeSiteVersion: () => import_site_version.serializeSiteVersion,
45
+ styleTagHtml: () => import_root_style_registry.styleTagHtml,
46
+ toApiRequest: () => import_node_request_response.toApiRequest,
47
+ versionedFetch: () => import_framework_context.versionedFetch
48
+ });
49
+ module.exports = __toCommonJS(unstable_framework_support_exports);
50
+ var import_site_version = require("../api/site-version");
51
+ var import_api_handler = require("../api-handler");
52
+ var import_cookies = require("../api-handler/cookies");
53
+ var import_redirect_live = require("../api-handler/handlers/redirect-live");
54
+ var import_node_request_response = require("../api-handler/node-request-response");
55
+ var import_preview = require("../api-handler/preview");
56
+ var import_client = require("../client");
57
+ var import_framework_context = require("../runtimes/react/components/framework-context");
58
+ var import_MakeswiftComponent = require("../runtimes/react/components/MakeswiftComponent");
59
+ var import_page = require("../runtimes/react/components/page");
60
+ var import_RuntimeProvider = require("../runtimes/react/components/RuntimeProvider");
61
+ var import_Slot = require("../runtimes/react/components/Slot");
62
+ var import_root_style_registry = require("../runtimes/react/root-style-registry");
63
+ var import_react_runtime = require("../runtimes/react/react-runtime");
64
+ // Annotate the CommonJS export names for ESM import in node:
65
+ 0 && (module.exports = {
66
+ DefaultHead,
67
+ DefaultHeadSnippet,
68
+ DefaultImage,
69
+ FrameworkContext,
70
+ MAKESWIFT_SITE_VERSION_COOKIE,
71
+ MakeswiftClient,
72
+ MakeswiftComponent,
73
+ Page,
74
+ REDIRECT_SEARCH_PARAM,
75
+ ReactRuntime,
76
+ RootStyleRegistry,
77
+ RuntimeProvider,
78
+ SET_COOKIE_HEADER,
79
+ SearchParams,
80
+ Slot,
81
+ StyleTagSSR,
82
+ cookieSettingOptions,
83
+ createApiHandler,
84
+ createRootStyleCache,
85
+ deserializeSiteVersion,
86
+ pipeResponseTo,
87
+ redirectLiveHandler,
88
+ secondsUntilSiteVersionExpiration,
89
+ serializeSiteVersion,
90
+ styleTagHtml,
91
+ toApiRequest,
92
+ versionedFetch
93
+ });
94
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/unstable-framework-support/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n serializeSiteVersion,\n deserializeSiteVersion,\n secondsUntilSiteVersionExpiration,\n} from '../api/site-version'\n\nexport { type ApiHandlerUserConfig, createApiHandler } from '../api-handler'\nexport { SET_COOKIE_HEADER, cookieSettingOptions } from '../api-handler/cookies'\nexport { REDIRECT_SEARCH_PARAM, redirectLiveHandler } from '../api-handler/handlers/redirect-live'\nexport { toApiRequest, pipeResponseTo } from '../api-handler/node-request-response'\nexport { MAKESWIFT_SITE_VERSION_COOKIE, SearchParams } from '../api-handler/preview'\n\nexport { MakeswiftClient } from '../client'\n\nexport {\n FrameworkContext,\n DefaultHead,\n DefaultHeadSnippet,\n DefaultImage,\n versionedFetch,\n} from '../runtimes/react/components/framework-context'\n\nexport { MakeswiftComponent } from '../runtimes/react/components/MakeswiftComponent'\nexport { Page } from '../runtimes/react/components/page'\nexport { RuntimeProvider } from '../runtimes/react/components/RuntimeProvider'\nexport { Slot } from '../runtimes/react/components/Slot'\n\nexport {\n createRootStyleCache,\n RootStyleRegistry,\n styleTagHtml,\n StyleTagSSR,\n type RootStyleProps,\n} from '../runtimes/react/root-style-registry'\n\nexport { ReactRuntime } from '../runtimes/react/react-runtime'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAKO;AAEP,yBAA4D;AAC5D,qBAAwD;AACxD,2BAA2D;AAC3D,mCAA6C;AAC7C,qBAA4D;AAE5D,oBAAgC;AAEhC,+BAMO;AAEP,gCAAmC;AACnC,kBAAqB;AACrB,6BAAgC;AAChC,kBAAqB;AAErB,iCAMO;AAEP,2BAA6B;","names":[]}
@@ -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.25.1-canary.1",
11
+ version: "0.25.1",
12
12
  interactionMode: true,
13
13
  clientSideNavigation: false,
14
14
  elementFromPoint: false,
@@ -0,0 +1,59 @@
1
+ import {
2
+ serializeSiteVersion,
3
+ deserializeSiteVersion,
4
+ secondsUntilSiteVersionExpiration
5
+ } from "../api/site-version";
6
+ import { createApiHandler } from "../api-handler";
7
+ import { SET_COOKIE_HEADER, cookieSettingOptions } from "../api-handler/cookies";
8
+ import { REDIRECT_SEARCH_PARAM, redirectLiveHandler } from "../api-handler/handlers/redirect-live";
9
+ import { toApiRequest, pipeResponseTo } from "../api-handler/node-request-response";
10
+ import { MAKESWIFT_SITE_VERSION_COOKIE, SearchParams } from "../api-handler/preview";
11
+ import { MakeswiftClient } from "../client";
12
+ import {
13
+ FrameworkContext,
14
+ DefaultHead,
15
+ DefaultHeadSnippet,
16
+ DefaultImage,
17
+ versionedFetch
18
+ } from "../runtimes/react/components/framework-context";
19
+ import { MakeswiftComponent } from "../runtimes/react/components/MakeswiftComponent";
20
+ import { Page } from "../runtimes/react/components/page";
21
+ import { RuntimeProvider } from "../runtimes/react/components/RuntimeProvider";
22
+ import { Slot } from "../runtimes/react/components/Slot";
23
+ import {
24
+ createRootStyleCache,
25
+ RootStyleRegistry,
26
+ styleTagHtml,
27
+ StyleTagSSR
28
+ } from "../runtimes/react/root-style-registry";
29
+ import { ReactRuntime } from "../runtimes/react/react-runtime";
30
+ export {
31
+ DefaultHead,
32
+ DefaultHeadSnippet,
33
+ DefaultImage,
34
+ FrameworkContext,
35
+ MAKESWIFT_SITE_VERSION_COOKIE,
36
+ MakeswiftClient,
37
+ MakeswiftComponent,
38
+ Page,
39
+ REDIRECT_SEARCH_PARAM,
40
+ ReactRuntime,
41
+ RootStyleRegistry,
42
+ RuntimeProvider,
43
+ SET_COOKIE_HEADER,
44
+ SearchParams,
45
+ Slot,
46
+ StyleTagSSR,
47
+ cookieSettingOptions,
48
+ createApiHandler,
49
+ createRootStyleCache,
50
+ deserializeSiteVersion,
51
+ pipeResponseTo,
52
+ redirectLiveHandler,
53
+ secondsUntilSiteVersionExpiration,
54
+ serializeSiteVersion,
55
+ styleTagHtml,
56
+ toApiRequest,
57
+ versionedFetch
58
+ };
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/unstable-framework-support/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n serializeSiteVersion,\n deserializeSiteVersion,\n secondsUntilSiteVersionExpiration,\n} from '../api/site-version'\n\nexport { type ApiHandlerUserConfig, createApiHandler } from '../api-handler'\nexport { SET_COOKIE_HEADER, cookieSettingOptions } from '../api-handler/cookies'\nexport { REDIRECT_SEARCH_PARAM, redirectLiveHandler } from '../api-handler/handlers/redirect-live'\nexport { toApiRequest, pipeResponseTo } from '../api-handler/node-request-response'\nexport { MAKESWIFT_SITE_VERSION_COOKIE, SearchParams } from '../api-handler/preview'\n\nexport { MakeswiftClient } from '../client'\n\nexport {\n FrameworkContext,\n DefaultHead,\n DefaultHeadSnippet,\n DefaultImage,\n versionedFetch,\n} from '../runtimes/react/components/framework-context'\n\nexport { MakeswiftComponent } from '../runtimes/react/components/MakeswiftComponent'\nexport { Page } from '../runtimes/react/components/page'\nexport { RuntimeProvider } from '../runtimes/react/components/RuntimeProvider'\nexport { Slot } from '../runtimes/react/components/Slot'\n\nexport {\n createRootStyleCache,\n RootStyleRegistry,\n styleTagHtml,\n StyleTagSSR,\n type RootStyleProps,\n} from '../runtimes/react/root-style-registry'\n\nexport { ReactRuntime } from '../runtimes/react/react-runtime'\n"],"mappings":"AAAA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAoC,wBAAwB;AAC5D,SAAS,mBAAmB,4BAA4B;AACxD,SAAS,uBAAuB,2BAA2B;AAC3D,SAAS,cAAc,sBAAsB;AAC7C,SAAS,+BAA+B,oBAAoB;AAE5D,SAAS,uBAAuB;AAEhC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,0BAA0B;AACnC,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,YAAY;AAErB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAEP,SAAS,oBAAoB;","names":[]}
@@ -0,0 +1,15 @@
1
+ export { type SiteVersion, serializeSiteVersion, deserializeSiteVersion, secondsUntilSiteVersionExpiration, } from '../api/site-version';
2
+ export { type ApiHandlerUserConfig, createApiHandler } from '../api-handler';
3
+ export { SET_COOKIE_HEADER, cookieSettingOptions } from '../api-handler/cookies';
4
+ export { REDIRECT_SEARCH_PARAM, redirectLiveHandler } from '../api-handler/handlers/redirect-live';
5
+ export { toApiRequest, pipeResponseTo } from '../api-handler/node-request-response';
6
+ export { MAKESWIFT_SITE_VERSION_COOKIE, SearchParams } from '../api-handler/preview';
7
+ export { MakeswiftClient } from '../client';
8
+ export { FrameworkContext, DefaultHead, DefaultHeadSnippet, DefaultImage, versionedFetch, } from '../runtimes/react/components/framework-context';
9
+ export { MakeswiftComponent } from '../runtimes/react/components/MakeswiftComponent';
10
+ export { Page } from '../runtimes/react/components/page';
11
+ export { RuntimeProvider } from '../runtimes/react/components/RuntimeProvider';
12
+ export { Slot } from '../runtimes/react/components/Slot';
13
+ export { createRootStyleCache, RootStyleRegistry, styleTagHtml, StyleTagSSR, type RootStyleProps, } from '../runtimes/react/root-style-registry';
14
+ export { ReactRuntime } from '../runtimes/react/react-runtime';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unstable-framework-support/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,KAAK,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC5E,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAClG,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AACnF,OAAO,EAAE,6BAA6B,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,cAAc,GACf,MAAM,gDAAgD,CAAA;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAA;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AAExD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,KAAK,cAAc,GACpB,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/runtime",
3
- "version": "0.25.1-canary.1",
3
+ "version": "0.25.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",
@@ -15,7 +15,8 @@
15
15
  "builder",
16
16
  "controls",
17
17
  "slate",
18
- "state"
18
+ "state",
19
+ "unstable-framework-support"
19
20
  ],
20
21
  "engines": {
21
22
  "node": ">=20.0.0"
@@ -111,6 +112,11 @@
111
112
  "require": "./dist/cjs/state/modules/breakpoints.js",
112
113
  "import": "./dist/esm/state/modules/breakpoints.js",
113
114
  "types": "./dist/types/state/modules/breakpoints.d.ts"
115
+ },
116
+ "./unstable-framework-support": {
117
+ "require": "./dist/cjs/unstable-framework-support/index.js",
118
+ "import": "./dist/esm/unstable-framework-support/index.js",
119
+ "types": "./dist/types/unstable-framework-support/index.d.ts"
114
120
  }
115
121
  },
116
122
  "types": "./dist/types/index.d.ts",
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../dist/cjs/unstable-framework-support/index.js",
3
+ "module": "../dist/esm/unstable-framework-support/index.js",
4
+ "types": "../dist/types/unstable-framework-support/index.d.ts"
5
+ }