@makeswift/express-react 0.1.8-canary.4 → 0.1.8-canary.6

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/index.js CHANGED
@@ -23,13 +23,12 @@ __export(src_exports, {
23
23
  Page: () => import_unstable_framework_support.Page,
24
24
  ReactRuntime: () => import_unstable_framework_support.ReactRuntime,
25
25
  ReactRuntimeProvider: () => import_unstable_framework_support.RuntimeProvider,
26
- RootStyleRegistry: () => import_root_style_registry.ReactRootStyleRegistry,
26
+ RootStyleRegistry: () => import_unstable_framework_support.DefaultRootStyleRegistry,
27
27
  Slot: () => import_unstable_framework_support.Slot
28
28
  });
29
29
  module.exports = __toCommonJS(src_exports);
30
30
  var import_unstable_framework_support = require("@makeswift/runtime/unstable-framework-support");
31
31
  var import_client = require("./client");
32
- var import_root_style_registry = require("./root-style-registry");
33
32
  // Annotate the CommonJS export names for ESM import in node:
34
33
  0 && (module.exports = {
35
34
  Makeswift,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n MakeswiftComponent,\n Page,\n Slot,\n RuntimeProvider as ReactRuntimeProvider,\n ReactRuntime,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { ReactRootStyleRegistry as RootStyleRegistry } from './root-style-registry'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wCAOO;AAEP,oBAA0B;AAC1B,iCAA4D;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n MakeswiftComponent,\n Page,\n Slot,\n RuntimeProvider as ReactRuntimeProvider,\n DefaultRootStyleRegistry as RootStyleRegistry,\n ReactRuntime,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wCAQO;AAEP,oBAA0B;","names":[]}
package/dist/esm/index.js CHANGED
@@ -3,17 +3,17 @@ import {
3
3
  Page,
4
4
  Slot,
5
5
  RuntimeProvider,
6
+ DefaultRootStyleRegistry,
6
7
  ReactRuntime
7
8
  } from "@makeswift/runtime/unstable-framework-support";
8
9
  import { Makeswift } from "./client";
9
- import { ReactRootStyleRegistry } from "./root-style-registry";
10
10
  export {
11
11
  Makeswift,
12
12
  MakeswiftComponent,
13
13
  Page,
14
14
  ReactRuntime,
15
15
  RuntimeProvider as ReactRuntimeProvider,
16
- ReactRootStyleRegistry as RootStyleRegistry,
16
+ DefaultRootStyleRegistry as RootStyleRegistry,
17
17
  Slot
18
18
  };
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n MakeswiftComponent,\n Page,\n Slot,\n RuntimeProvider as ReactRuntimeProvider,\n ReactRuntime,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { ReactRootStyleRegistry as RootStyleRegistry } from './root-style-registry'\n"],"mappings":"AAAA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACmB;AAAA,EACnB;AAAA,OACK;AAEP,SAAS,iBAAiB;AAC1B,SAAmC,8BAAyB;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n MakeswiftComponent,\n Page,\n Slot,\n RuntimeProvider as ReactRuntimeProvider,\n DefaultRootStyleRegistry as RootStyleRegistry,\n ReactRuntime,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\n"],"mappings":"AAAA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACmB;AAAA,EACS;AAAA,EAC5B;AAAA,OACK;AAEP,SAAS,iBAAiB;","names":[]}
@@ -1,4 +1,3 @@
1
- export { type SiteVersion, MakeswiftComponent, Page, Slot, RuntimeProvider as ReactRuntimeProvider, ReactRuntime, } from '@makeswift/runtime/unstable-framework-support';
1
+ export { type SiteVersion, MakeswiftComponent, Page, Slot, RuntimeProvider as ReactRuntimeProvider, DefaultRootStyleRegistry as RootStyleRegistry, ReactRuntime, } from '@makeswift/runtime/unstable-framework-support';
2
2
  export { Makeswift } from './client';
3
- export { ReactRootStyleRegistry as RootStyleRegistry } from './root-style-registry';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,kBAAkB,EAClB,IAAI,EACJ,IAAI,EACJ,eAAe,IAAI,oBAAoB,EACvC,YAAY,GACb,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,EAAE,sBAAsB,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,kBAAkB,EAClB,IAAI,EACJ,IAAI,EACJ,eAAe,IAAI,oBAAoB,EACvC,wBAAwB,IAAI,iBAAiB,EAC7C,YAAY,GACb,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/express-react",
3
- "version": "0.1.8-canary.4",
3
+ "version": "0.1.8-canary.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "url": "makeswift/makeswift",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "cookie": "^1.0.2",
31
- "@makeswift/runtime": "0.28.6-canary.4"
31
+ "@makeswift/runtime": "0.28.6-canary.6"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@types/express": "^5.0.0",
@@ -1,39 +0,0 @@
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 root_style_registry_exports = {};
20
- __export(root_style_registry_exports, {
21
- ReactRootStyleRegistry: () => ReactRootStyleRegistry
22
- });
23
- module.exports = __toCommonJS(root_style_registry_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_react = require("react");
26
- var import_unstable_framework_support = require("@makeswift/runtime/unstable-framework-support");
27
- function ReactRootStyleRegistry({
28
- children,
29
- cacheKey,
30
- enableCssReset
31
- }) {
32
- const [cache] = (0, import_react.useState)((0, import_unstable_framework_support.createRootStyleCache)({ key: cacheKey }));
33
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_unstable_framework_support.RootStyleRegistry, { cache, enableCssReset, children });
34
- }
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- ReactRootStyleRegistry
38
- });
39
- //# sourceMappingURL=root-style-registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/root-style-registry.tsx"],"sourcesContent":["import { type PropsWithChildren, useState } from 'react'\n\nimport {\n createRootStyleCache,\n RootStyleRegistry,\n type RootStyleProps,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport function ReactRootStyleRegistry({\n children,\n cacheKey,\n enableCssReset,\n}: PropsWithChildren<RootStyleProps>) {\n const [cache] = useState(createRootStyleCache({ key: cacheKey }))\n\n return (\n <RootStyleRegistry cache={cache} enableCssReset={enableCssReset}>\n {children}\n </RootStyleRegistry>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBI;AAhBJ,mBAAiD;AAEjD,wCAIO;AAEA,SAAS,uBAAuB;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AACF,GAAsC;AACpC,QAAM,CAAC,KAAK,QAAI,2BAAS,wDAAqB,EAAE,KAAK,SAAS,CAAC,CAAC;AAEhE,SACE,4CAAC,uDAAkB,OAAc,gBAC9B,UACH;AAEJ;","names":[]}
@@ -1,18 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import {
4
- createRootStyleCache,
5
- RootStyleRegistry
6
- } from "@makeswift/runtime/unstable-framework-support";
7
- function ReactRootStyleRegistry({
8
- children,
9
- cacheKey,
10
- enableCssReset
11
- }) {
12
- const [cache] = useState(createRootStyleCache({ key: cacheKey }));
13
- return /* @__PURE__ */ jsx(RootStyleRegistry, { cache, enableCssReset, children });
14
- }
15
- export {
16
- ReactRootStyleRegistry
17
- };
18
- //# sourceMappingURL=root-style-registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/root-style-registry.tsx"],"sourcesContent":["import { type PropsWithChildren, useState } from 'react'\n\nimport {\n createRootStyleCache,\n RootStyleRegistry,\n type RootStyleProps,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport function ReactRootStyleRegistry({\n children,\n cacheKey,\n enableCssReset,\n}: PropsWithChildren<RootStyleProps>) {\n const [cache] = useState(createRootStyleCache({ key: cacheKey }))\n\n return (\n <RootStyleRegistry cache={cache} enableCssReset={enableCssReset}>\n {children}\n </RootStyleRegistry>\n )\n}\n"],"mappings":"AAgBI;AAhBJ,SAAiC,gBAAgB;AAEjD;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AAEA,SAAS,uBAAuB;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AACF,GAAsC;AACpC,QAAM,CAAC,KAAK,IAAI,SAAS,qBAAqB,EAAE,KAAK,SAAS,CAAC,CAAC;AAEhE,SACE,oBAAC,qBAAkB,OAAc,gBAC9B,UACH;AAEJ;","names":[]}
@@ -1,4 +0,0 @@
1
- import { type PropsWithChildren } from 'react';
2
- import { type RootStyleProps } from '@makeswift/runtime/unstable-framework-support';
3
- export declare function ReactRootStyleRegistry({ children, cacheKey, enableCssReset, }: PropsWithChildren<RootStyleProps>): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=root-style-registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"root-style-registry.d.ts","sourceRoot":"","sources":["../../src/root-style-registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAY,MAAM,OAAO,CAAA;AAExD,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,+CAA+C,CAAA;AAEtD,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,EACR,cAAc,GACf,EAAE,iBAAiB,CAAC,cAAc,CAAC,2CAQnC"}