@makeswift/react-router 0.1.8-canary.4 → 0.1.8-canary.5
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 +1 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/root-style-registry.js +0 -39
- package/dist/cjs/root-style-registry.js.map +0 -1
- package/dist/esm/root-style-registry.js +0 -18
- package/dist/esm/root-style-registry.js.map +0 -1
- package/dist/types/root-style-registry.d.ts +0 -4
- package/dist/types/root-style-registry.d.ts.map +0 -1
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_unstable_framework_support.ReactRuntime,
|
|
25
25
|
ReactRuntimeProvider: () => import_runtime_provider.RemixRuntimeProvider,
|
|
26
|
-
RootStyleRegistry: () =>
|
|
26
|
+
RootStyleRegistry: () => import_unstable_framework_support.DefaultRootStyleRegistry,
|
|
27
27
|
Slot: () => import_unstable_framework_support.Slot,
|
|
28
28
|
createApiHandler: () => import_api_handler.createApiHandler
|
|
29
29
|
});
|
|
@@ -32,7 +32,6 @@ var import_unstable_framework_support = require("@makeswift/runtime/unstable-fra
|
|
|
32
32
|
var import_client = require("./client");
|
|
33
33
|
var import_api_handler = require("./api-handler");
|
|
34
34
|
var import_runtime_provider = require("./runtime-provider");
|
|
35
|
-
var import_root_style_registry = require("./root-style-registry");
|
|
36
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
37
36
|
0 && (module.exports = {
|
|
38
37
|
Makeswift,
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n Page,\n MakeswiftComponent,\n Slot,\n ReactRuntime,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { createApiHandler } from './api-handler'\nexport { RemixRuntimeProvider as ReactRuntimeProvider } from './runtime-provider'\
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n Page,\n MakeswiftComponent,\n Slot,\n ReactRuntime,\n DefaultRootStyleRegistry as RootStyleRegistry,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { createApiHandler } from './api-handler'\nexport { RemixRuntimeProvider as ReactRuntimeProvider } from './runtime-provider'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wCAOO;AAEP,oBAA0B;AAC1B,yBAAiC;AACjC,8BAA6D;","names":[]}
|
package/dist/esm/index.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
Page,
|
|
3
3
|
MakeswiftComponent,
|
|
4
4
|
Slot,
|
|
5
|
-
ReactRuntime
|
|
5
|
+
ReactRuntime,
|
|
6
|
+
DefaultRootStyleRegistry
|
|
6
7
|
} from "@makeswift/runtime/unstable-framework-support";
|
|
7
8
|
import { Makeswift } from "./client";
|
|
8
9
|
import { createApiHandler } from "./api-handler";
|
|
9
10
|
import { RemixRuntimeProvider } from "./runtime-provider";
|
|
10
|
-
import { RemixRootStyleRegistry } from "./root-style-registry";
|
|
11
11
|
export {
|
|
12
12
|
Makeswift,
|
|
13
13
|
MakeswiftComponent,
|
|
14
14
|
Page,
|
|
15
15
|
ReactRuntime,
|
|
16
16
|
RemixRuntimeProvider as ReactRuntimeProvider,
|
|
17
|
-
|
|
17
|
+
DefaultRootStyleRegistry as RootStyleRegistry,
|
|
18
18
|
Slot,
|
|
19
19
|
createApiHandler
|
|
20
20
|
};
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n Page,\n MakeswiftComponent,\n Slot,\n ReactRuntime,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { createApiHandler } from './api-handler'\nexport { RemixRuntimeProvider as ReactRuntimeProvider } from './runtime-provider'\
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export {\n type SiteVersion,\n Page,\n MakeswiftComponent,\n Slot,\n ReactRuntime,\n DefaultRootStyleRegistry as RootStyleRegistry,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport { Makeswift } from './client'\nexport { createApiHandler } from './api-handler'\nexport { RemixRuntimeProvider as ReactRuntimeProvider } from './runtime-provider'\n"],"mappings":"AAAA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAC4B;AAAA,OACvB;AAEP,SAAS,iBAAiB;AAC1B,SAAS,wBAAwB;AACjC,SAAiC,4BAA4B;","names":[]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { type SiteVersion, Page, MakeswiftComponent, Slot, ReactRuntime, } from '@makeswift/runtime/unstable-framework-support';
|
|
1
|
+
export { type SiteVersion, Page, MakeswiftComponent, Slot, ReactRuntime, DefaultRootStyleRegistry as RootStyleRegistry, } from '@makeswift/runtime/unstable-framework-support';
|
|
2
2
|
export { Makeswift } from './client';
|
|
3
3
|
export { createApiHandler } from './api-handler';
|
|
4
4
|
export { RemixRuntimeProvider as ReactRuntimeProvider } from './runtime-provider';
|
|
5
|
-
export { RemixRootStyleRegistry as RootStyleRegistry } from './root-style-registry';
|
|
6
5
|
//# 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,IAAI,EACJ,kBAAkB,EAClB,IAAI,EACJ,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,IAAI,EACJ,kBAAkB,EAClB,IAAI,EACJ,YAAY,EACZ,wBAAwB,IAAI,iBAAiB,GAC9C,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,oBAAoB,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeswift/react-router",
|
|
3
|
-
"version": "0.1.8-canary.
|
|
3
|
+
"version": "0.1.8-canary.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "makeswift/makeswift",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@makeswift/runtime": "0.28.6-canary.
|
|
30
|
+
"@makeswift/runtime": "0.28.6-canary.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@react-router/node": "^7.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
|
-
RemixRootStyleRegistry: () => RemixRootStyleRegistry
|
|
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 RemixRootStyleRegistry({
|
|
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
|
-
RemixRootStyleRegistry
|
|
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 as ReactRootStyleRegistry,\n type RootStyleProps,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport function RemixRootStyleRegistry({\n children,\n cacheKey,\n enableCssReset,\n}: PropsWithChildren<RootStyleProps>) {\n const [cache] = useState(createRootStyleCache({ key: cacheKey }))\n\n return (\n <ReactRootStyleRegistry cache={cache} enableCssReset={enableCssReset}>\n {children}\n </ReactRootStyleRegistry>\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,kCAAAA,mBAAA,EAAuB,OAAc,gBACnC,UACH;AAEJ;","names":["ReactRootStyleRegistry"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import {
|
|
4
|
-
createRootStyleCache,
|
|
5
|
-
RootStyleRegistry as ReactRootStyleRegistry
|
|
6
|
-
} from "@makeswift/runtime/unstable-framework-support";
|
|
7
|
-
function RemixRootStyleRegistry({
|
|
8
|
-
children,
|
|
9
|
-
cacheKey,
|
|
10
|
-
enableCssReset
|
|
11
|
-
}) {
|
|
12
|
-
const [cache] = useState(createRootStyleCache({ key: cacheKey }));
|
|
13
|
-
return /* @__PURE__ */ jsx(ReactRootStyleRegistry, { cache, enableCssReset, children });
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
RemixRootStyleRegistry
|
|
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 as ReactRootStyleRegistry,\n type RootStyleProps,\n} from '@makeswift/runtime/unstable-framework-support'\n\nexport function RemixRootStyleRegistry({\n children,\n cacheKey,\n enableCssReset,\n}: PropsWithChildren<RootStyleProps>) {\n const [cache] = useState(createRootStyleCache({ key: cacheKey }))\n\n return (\n <ReactRootStyleRegistry cache={cache} enableCssReset={enableCssReset}>\n {children}\n </ReactRootStyleRegistry>\n )\n}\n"],"mappings":"AAgBI;AAhBJ,SAAiC,gBAAgB;AAEjD;AAAA,EACE;AAAA,EACA,qBAAqB;AAAA,OAEhB;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,0BAAuB,OAAc,gBACnC,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 RemixRootStyleRegistry({ 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"}
|