@makeswift/react-router 0.1.10-canary.1 → 0.1.10-canary.3

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.
@@ -22,17 +22,11 @@ __export(framework_provider_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(framework_provider_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_react = require("react");
26
25
  var import_unstable_framework_support = require("@makeswift/runtime/unstable-framework-support");
27
26
  var import_link = require("./link");
27
+ const context = { Link: import_link.Link };
28
28
  function FrameworkProvider({ children }) {
29
- const [context] = (0, import_react.useState)({
30
- Head: import_unstable_framework_support.DefaultHead,
31
- HeadSnippet: import_unstable_framework_support.DefaultHeadSnippet,
32
- Image: import_unstable_framework_support.DefaultImage,
33
- Link: import_link.Link
34
- });
35
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_unstable_framework_support.FrameworkContext.Provider, { value: context, children });
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_unstable_framework_support.FrameworkContextProvider, { value: context, children });
36
30
  }
37
31
  // Annotate the CommonJS export names for ESM import in node:
38
32
  0 && (module.exports = {
@@ -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} 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 })\n\n return <FrameworkContext.Provider value={context}>{children}</FrameworkContext.Provider>\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBS;AAnBT,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,EACF,CAAC;AAED,SAAO,4CAAC,mDAAiB,UAAjB,EAA0B,OAAO,SAAU,UAAS;AAC9D;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/framework-provider/index.tsx"],"sourcesContent":["import { type PropsWithChildren } from 'react'\n\nimport { FrameworkContextProvider } from '@makeswift/runtime/unstable-framework-support'\n\nimport { Link } from './link'\n\nconst context = { Link }\n\nexport function FrameworkProvider({ children }: PropsWithChildren) {\n return <FrameworkContextProvider value={context}>{children}</FrameworkContextProvider>\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASS;AAPT,wCAAyC;AAEzC,kBAAqB;AAErB,MAAM,UAAU,EAAE,uBAAK;AAEhB,SAAS,kBAAkB,EAAE,SAAS,GAAsB;AACjE,SAAO,4CAAC,8DAAyB,OAAO,SAAU,UAAS;AAC7D;","names":[]}
@@ -1,20 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import {
4
- FrameworkContext,
5
- DefaultHead,
6
- DefaultHeadSnippet,
7
- DefaultImage
8
- } from "@makeswift/runtime/unstable-framework-support";
2
+ import { FrameworkContextProvider } from "@makeswift/runtime/unstable-framework-support";
9
3
  import { Link } from "./link";
4
+ const context = { Link };
10
5
  function FrameworkProvider({ children }) {
11
- const [context] = useState({
12
- Head: DefaultHead,
13
- HeadSnippet: DefaultHeadSnippet,
14
- Image: DefaultImage,
15
- Link
16
- });
17
- return /* @__PURE__ */ jsx(FrameworkContext.Provider, { value: context, children });
6
+ return /* @__PURE__ */ jsx(FrameworkContextProvider, { value: context, children });
18
7
  }
19
8
  export {
20
9
  FrameworkProvider
@@ -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} 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 })\n\n return <FrameworkContext.Provider value={context}>{children}</FrameworkContext.Provider>\n}\n"],"mappings":"AAmBS;AAnBT,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,EACF,CAAC;AAED,SAAO,oBAAC,iBAAiB,UAAjB,EAA0B,OAAO,SAAU,UAAS;AAC9D;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/framework-provider/index.tsx"],"sourcesContent":["import { type PropsWithChildren } from 'react'\n\nimport { FrameworkContextProvider } from '@makeswift/runtime/unstable-framework-support'\n\nimport { Link } from './link'\n\nconst context = { Link }\n\nexport function FrameworkProvider({ children }: PropsWithChildren) {\n return <FrameworkContextProvider value={context}>{children}</FrameworkContextProvider>\n}\n"],"mappings":"AASS;AAPT,SAAS,gCAAgC;AAEzC,SAAS,YAAY;AAErB,MAAM,UAAU,EAAE,KAAK;AAEhB,SAAS,kBAAkB,EAAE,SAAS,GAAsB;AACjE,SAAO,oBAAC,4BAAyB,OAAO,SAAU,UAAS;AAC7D;","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;AAWxD,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAShE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/framework-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAQ9C,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAEhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/react-router",
3
- "version": "0.1.10-canary.1",
3
+ "version": "0.1.10-canary.3",
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.8-canary.1"
30
+ "@makeswift/runtime": "0.28.8-canary.3"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@react-router/node": "^7.0.0",