modifywithai 1.5.0 → 1.5.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.
@@ -1,21 +1,13 @@
1
- //#region src/shims.d.ts
2
- declare const shims: {
3
- readonly "react-shim.js": "// Re-export React from the window object (set by the app)\nconst React = window.__REACT__;\nexport default React;\nexport const {\n useState,\n useEffect,\n useLayoutEffect,\n useRef,\n useCallback,\n useMemo,\n useContext,\n useReducer,\n useId,\n useTransition,\n useDeferredValue,\n useImperativeHandle,\n useDebugValue,\n useSyncExternalStore,\n useInsertionEffect,\n createElement,\n createContext,\n createRef,\n forwardRef,\n memo,\n lazy,\n Suspense,\n Fragment,\n Children,\n cloneElement,\n isValidElement,\n Component,\n PureComponent,\n StrictMode,\n startTransition,\n use,\n} = React;\n";
4
- readonly "react-jsx-shim.js": "// Re-export jsx-runtime from the window object (set by the app)\nconst jsxRuntime = window.__REACT_JSX_RUNTIME__;\nexport const jsx = jsxRuntime?.jsx;\nexport const jsxs = jsxRuntime?.jsxs;\nexport const Fragment = jsxRuntime?.Fragment;\n";
5
- readonly "react-dom-shim.js": "// Re-export ReactDOM from the window object (set by the app)\nconst ReactDOM = window.__REACT_DOM__\nexport default ReactDOM\nexport const {\n\tcreatePortal,\n\tflushSync,\n\tfindDOMNode,\n\thydrate,\n\trender,\n\tunmountComponentAtNode,\n\tunstable_batchedUpdates,\n\tversion,\n} = ReactDOM || {}\n";
6
- readonly "react-dom-client-shim.js": "// Re-export ReactDOM/client from the window object (set by the app)\nconst ReactDOMClient = window.__REACT_DOM_CLIENT__;\nexport const createRoot = ReactDOMClient?.createRoot;\nexport const hydrateRoot = ReactDOMClient?.hydrateRoot;\nexport default ReactDOMClient;\n";
7
- };
8
- //#endregion
9
1
  //#region src/nextjs/shims.d.ts
10
2
  declare function generateStaticParams(): Promise<{
11
3
  path: string;
12
4
  }[]>;
13
- declare function GET(_request: Request, {
5
+ declare const GET: (_request: Request, {
14
6
  params
15
7
  }: {
16
8
  params: Promise<{
17
- path: keyof typeof shims;
9
+ path: string;
18
10
  }>;
19
- }): Promise<Response>;
11
+ }) => Promise<Response>;
20
12
  //#endregion
21
13
  export { GET, generateStaticParams };
@@ -57,4 +57,4 @@ const ReactDOMClient = window.__REACT_DOM_CLIENT__;
57
57
  export const createRoot = ReactDOMClient?.createRoot;
58
58
  export const hydrateRoot = ReactDOMClient?.hydrateRoot;
59
59
  export default ReactDOMClient;
60
- `};async function t(){return Object.keys(e).map(e=>({path:e}))}async function n(t,{params:n}){let r=(await n).path;return new Response(e[r],{headers:{"Content-Type":`application/javascript`,"Cache-Control":`public, max-age=31536000, immutable`}})}export{n as GET,t as generateStaticParams};
60
+ `};async function t(){return Object.keys(e).map(e=>({path:e}))}const n=async(t,{params:n})=>{let r=(await n).path;return new Response(e[r],{headers:{"Content-Type":`application/javascript`,"Cache-Control":`public, max-age=31536000, immutable`}})};export{n as GET,t as generateStaticParams};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modifywithai",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",