@makeswift/hono-react 0.1.8-canary.5 → 0.1.8-canary.7

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,7 +23,7 @@ __export(src_exports, {
23
23
  Page: () => import_unstable_framework_support.Page,
24
24
  ReactRuntime: () => import_runtime.HonoReactRuntime,
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
  Unstable_GoogleFontLink: () => import_unstable_framework_support.GoogleFontLink,
29
29
  Unstable_MakeswiftFonts: () => import_unstable_framework_support.MakeswiftFonts
@@ -31,7 +31,6 @@ __export(src_exports, {
31
31
  module.exports = __toCommonJS(src_exports);
32
32
  var import_unstable_framework_support = require("@makeswift/runtime/unstable-framework-support");
33
33
  var import_client = require("./client");
34
- var import_root_style_registry = require("./root-style-registry");
35
34
  var import_runtime = require("./runtime");
36
35
  // Annotate the CommonJS export names for ESM import in node:
37
36
  0 && (module.exports = {
@@ -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 GoogleFontLink as Unstable_GoogleFontLink,\n MakeswiftFonts as Unstable_MakeswiftFonts,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { ReactRootStyleRegistry as RootStyleRegistry } from './root-style-registry'\nexport { HonoReactRuntime as ReactRuntime } from './runtime'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wCAQO;AAEP,oBAA0B;AAC1B,iCAA4D;AAC5D,qBAAiD;","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 GoogleFontLink as Unstable_GoogleFontLink,\n MakeswiftFonts as Unstable_MakeswiftFonts,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { HonoReactRuntime as ReactRuntime } from './runtime'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wCASO;AAEP,oBAA0B;AAC1B,qBAAiD;","names":[]}
package/dist/esm/index.js CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  Page,
4
4
  Slot,
5
5
  RuntimeProvider,
6
+ DefaultRootStyleRegistry,
6
7
  GoogleFontLink,
7
8
  MakeswiftFonts
8
9
  } from "@makeswift/runtime/unstable-framework-support";
9
10
  import { Makeswift } from "./client";
10
- import { ReactRootStyleRegistry } from "./root-style-registry";
11
11
  import { HonoReactRuntime } from "./runtime";
12
12
  export {
13
13
  Makeswift,
@@ -15,7 +15,7 @@ export {
15
15
  Page,
16
16
  HonoReactRuntime as ReactRuntime,
17
17
  RuntimeProvider as ReactRuntimeProvider,
18
- ReactRootStyleRegistry as RootStyleRegistry,
18
+ DefaultRootStyleRegistry as RootStyleRegistry,
19
19
  Slot,
20
20
  GoogleFontLink as Unstable_GoogleFontLink,
21
21
  MakeswiftFonts as Unstable_MakeswiftFonts
@@ -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 GoogleFontLink as Unstable_GoogleFontLink,\n MakeswiftFonts as Unstable_MakeswiftFonts,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { ReactRootStyleRegistry as RootStyleRegistry } from './root-style-registry'\nexport { HonoReactRuntime as ReactRuntime } from './runtime'\n"],"mappings":"AAAA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACmB;AAAA,EACD;AAAA,EACA;AAAA,OACb;AAEP,SAAS,iBAAiB;AAC1B,SAAmC,8BAAyB;AAC5D,SAA6B,wBAAoB;","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 GoogleFontLink as Unstable_GoogleFontLink,\n MakeswiftFonts as Unstable_MakeswiftFonts,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { HonoReactRuntime as ReactRuntime } from './runtime'\n"],"mappings":"AAAA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACmB;AAAA,EACS;AAAA,EACV;AAAA,EACA;AAAA,OACb;AAEP,SAAS,iBAAiB;AAC1B,SAA6B,wBAAoB;","names":[]}
@@ -1,5 +1,4 @@
1
- export { type SiteVersion, MakeswiftComponent, Page, Slot, RuntimeProvider as ReactRuntimeProvider, GoogleFontLink as Unstable_GoogleFontLink, MakeswiftFonts as Unstable_MakeswiftFonts, } from '@makeswift/runtime/unstable-framework-support';
1
+ export { type SiteVersion, MakeswiftComponent, Page, Slot, RuntimeProvider as ReactRuntimeProvider, DefaultRootStyleRegistry as RootStyleRegistry, GoogleFontLink as Unstable_GoogleFontLink, MakeswiftFonts as Unstable_MakeswiftFonts, } from '@makeswift/runtime/unstable-framework-support';
2
2
  export { Makeswift } from './client';
3
- export { ReactRootStyleRegistry as RootStyleRegistry } from './root-style-registry';
4
3
  export { HonoReactRuntime as ReactRuntime } from './runtime';
5
4
  //# 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,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,GAC1C,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,EAAE,sBAAsB,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACnF,OAAO,EAAE,gBAAgB,IAAI,YAAY,EAAE,MAAM,WAAW,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,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,GAC1C,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,EAAE,gBAAgB,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/hono-react",
3
- "version": "0.1.8-canary.5",
3
+ "version": "0.1.8-canary.7",
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.3"
31
+ "@makeswift/runtime": "0.28.6-canary.5"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@types/react": "^19.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"}