@makeswift/react-router 0.0.8-canary.0 → 0.0.8-canary.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.
- package/dist/cjs/components/framework-provider/index.js +1 -1
- package/dist/cjs/components/framework-provider/index.js.map +1 -1
- package/dist/esm/components/framework-provider/index.js +2 -3
- package/dist/esm/components/framework-provider/index.js.map +1 -1
- package/dist/types/components/framework-provider/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -31,7 +31,7 @@ function FrameworkProvider({ children }) {
|
|
|
31
31
|
HeadSnippet: import_unstable_framework_support.DefaultHeadSnippet,
|
|
32
32
|
Image: import_unstable_framework_support.DefaultImage,
|
|
33
33
|
Link: import_link.Link,
|
|
34
|
-
|
|
34
|
+
fetch: globalThis.fetch
|
|
35
35
|
});
|
|
36
36
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_unstable_framework_support.FrameworkContext.Provider, { value: context, children });
|
|
37
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/framework-provider/index.tsx"],"sourcesContent":["import { type PropsWithChildren, useState } from 'react'\n\nimport {\n FrameworkContext,\n DefaultHead,\n DefaultHeadSnippet,\n DefaultImage,\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/framework-provider/index.tsx"],"sourcesContent":["import { type PropsWithChildren, useState } from 'react'\n\nimport {\n FrameworkContext,\n DefaultHead,\n DefaultHeadSnippet,\n DefaultImage,\n} from '@makeswift/runtime/unstable-framework-support'\n\nimport { Link } from './link'\n\nexport function FrameworkProvider({ children }: PropsWithChildren) {\n const [context] = useState<FrameworkContext>({\n Head: DefaultHead,\n HeadSnippet: DefaultHeadSnippet,\n Image: DefaultImage,\n Link,\n fetch: globalThis.fetch,\n })\n\n return <FrameworkContext.Provider value={context}>{children}</FrameworkContext.Provider>\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBS;AApBT,mBAAiD;AAEjD,wCAKO;AAEP,kBAAqB;AAEd,SAAS,kBAAkB,EAAE,SAAS,GAAsB;AACjE,QAAM,CAAC,OAAO,QAAI,uBAA2B;AAAA,IAC3C,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,IACP;AAAA,IACA,OAAO,WAAW;AAAA,EACpB,CAAC;AAED,SAAO,4CAAC,mDAAiB,UAAjB,EAA0B,OAAO,SAAU,UAAS;AAC9D;","names":[]}
|
|
@@ -4,8 +4,7 @@ import {
|
|
|
4
4
|
FrameworkContext,
|
|
5
5
|
DefaultHead,
|
|
6
6
|
DefaultHeadSnippet,
|
|
7
|
-
DefaultImage
|
|
8
|
-
versionedFetch
|
|
7
|
+
DefaultImage
|
|
9
8
|
} from "@makeswift/runtime/unstable-framework-support";
|
|
10
9
|
import { Link } from "./link";
|
|
11
10
|
function FrameworkProvider({ children }) {
|
|
@@ -14,7 +13,7 @@ function FrameworkProvider({ children }) {
|
|
|
14
13
|
HeadSnippet: DefaultHeadSnippet,
|
|
15
14
|
Image: DefaultImage,
|
|
16
15
|
Link,
|
|
17
|
-
|
|
16
|
+
fetch: globalThis.fetch
|
|
18
17
|
});
|
|
19
18
|
return /* @__PURE__ */ jsx(FrameworkContext.Provider, { value: context, children });
|
|
20
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/framework-provider/index.tsx"],"sourcesContent":["import { type PropsWithChildren, useState } from 'react'\n\nimport {\n FrameworkContext,\n DefaultHead,\n DefaultHeadSnippet,\n DefaultImage,\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/framework-provider/index.tsx"],"sourcesContent":["import { type PropsWithChildren, useState } from 'react'\n\nimport {\n FrameworkContext,\n DefaultHead,\n DefaultHeadSnippet,\n DefaultImage,\n} from '@makeswift/runtime/unstable-framework-support'\n\nimport { Link } from './link'\n\nexport function FrameworkProvider({ children }: PropsWithChildren) {\n const [context] = useState<FrameworkContext>({\n Head: DefaultHead,\n HeadSnippet: DefaultHeadSnippet,\n Image: DefaultImage,\n Link,\n fetch: globalThis.fetch,\n })\n\n return <FrameworkContext.Provider value={context}>{children}</FrameworkContext.Provider>\n}\n"],"mappings":"AAoBS;AApBT,SAAiC,gBAAgB;AAEjD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,YAAY;AAEd,SAAS,kBAAkB,EAAE,SAAS,GAAsB;AACjE,QAAM,CAAC,OAAO,IAAI,SAA2B;AAAA,IAC3C,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,IACP;AAAA,IACA,OAAO,WAAW;AAAA,EACpB,CAAC;AAED,SAAO,oBAAC,iBAAiB,UAAjB,EAA0B,OAAO,SAAU,UAAS;AAC9D;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/framework-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAY,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/framework-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAY,MAAM,OAAO,CAAA;AAWxD,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAUhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeswift/react-router",
|
|
3
|
-
"version": "0.0.8-canary.
|
|
3
|
+
"version": "0.0.8-canary.1",
|
|
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.26.4-canary.
|
|
30
|
+
"@makeswift/runtime": "0.26.4-canary.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@react-router/node": "^7.0.0",
|