@reframejs/unframer 4.2.0-reframe.0

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.
Files changed (111) hide show
  1. package/README.md +389 -0
  2. package/bin.js +5 -0
  3. package/dist/babel-jsx.d.ts +24 -0
  4. package/dist/babel-jsx.js +299 -0
  5. package/dist/babel-plugin-imports.d.ts +15 -0
  6. package/dist/babel-plugin-imports.js +211 -0
  7. package/dist/babel-typedoc.d.ts +39 -0
  8. package/dist/babel-typedoc.js +76 -0
  9. package/dist/bin.d.ts +2 -0
  10. package/dist/bin.js +3 -0
  11. package/dist/cli.d.ts +59 -0
  12. package/dist/cli.js +821 -0
  13. package/dist/compat.d.ts +2 -0
  14. package/dist/compat.js +23 -0
  15. package/dist/config.d.ts +18 -0
  16. package/dist/config.js +27 -0
  17. package/dist/css-core.d.ts +50 -0
  18. package/dist/css-core.js +231 -0
  19. package/dist/css.d.ts +15 -0
  20. package/dist/css.js +36 -0
  21. package/dist/esbuild.d.ts +31 -0
  22. package/dist/esbuild.js +317 -0
  23. package/dist/exporter.d.ts +96 -0
  24. package/dist/exporter.js +1151 -0
  25. package/dist/flat-cache-interceptor.d.ts +24 -0
  26. package/dist/flat-cache-interceptor.js +87 -0
  27. package/dist/framer-chunks/chunk-IKQSD2QC.js +10 -0
  28. package/dist/framer-chunks/fontshare-PZLWRK4B-MHMZIGTX.js +7 -0
  29. package/dist/framer-chunks/fontshare-SXU5BGFE-OWTMMPGS.js +7 -0
  30. package/dist/framer-chunks/fontshare-TIA7QUPT-PUDLUTQ7.js +7 -0
  31. package/dist/framer-chunks/framer-font-RD2SUPQH-Q4MS7WS6.js +7 -0
  32. package/dist/framer-chunks/google-EGNT223R-P4DUHBW2.js +7 -0
  33. package/dist/framer-chunks/google-H6SFY4F5-5JSJCGDR.js +7 -0
  34. package/dist/framer-chunks/google-YSYBFRE6-L7YAHH7V.js +7 -0
  35. package/dist/framer-client.server.d.ts +4 -0
  36. package/dist/framer-client.server.js +45 -0
  37. package/dist/framer-package-versions.d.ts +781 -0
  38. package/dist/framer-package-versions.js +782 -0
  39. package/dist/framer-types.d.ts +30 -0
  40. package/dist/framer-types.js +35 -0
  41. package/dist/framer.d.ts +4990 -0
  42. package/dist/framer.js +64296 -0
  43. package/dist/index.d.ts +10 -0
  44. package/dist/index.js +13 -0
  45. package/dist/package-manager.d.ts +10 -0
  46. package/dist/package-manager.js +138 -0
  47. package/dist/plugin-mcp-dist/lib/client-websocket.d.ts +5 -0
  48. package/dist/plugin-mcp-dist/lib/client-websocket.js +103 -0
  49. package/dist/plugin-mcp-dist/lib/cms.d.ts +10 -0
  50. package/dist/plugin-mcp-dist/lib/cms.js +58 -0
  51. package/dist/plugin-mcp-dist/lib/errors.d.ts +5 -0
  52. package/dist/plugin-mcp-dist/lib/errors.js +48 -0
  53. package/dist/plugin-mcp-dist/lib/framer-client.d.ts +2 -0
  54. package/dist/plugin-mcp-dist/lib/framer-client.js +4 -0
  55. package/dist/plugin-mcp-dist/lib/framer-client.server.d.ts +3 -0
  56. package/dist/plugin-mcp-dist/lib/framer-client.server.js +46 -0
  57. package/dist/plugin-mcp-dist/lib/framer.d.ts +30 -0
  58. package/dist/plugin-mcp-dist/lib/framer.js +1084 -0
  59. package/dist/plugin-mcp-dist/lib/hooks.d.ts +6 -0
  60. package/dist/plugin-mcp-dist/lib/hooks.js +46 -0
  61. package/dist/plugin-mcp-dist/lib/mcp-client.d.ts +142 -0
  62. package/dist/plugin-mcp-dist/lib/mcp-client.js +40 -0
  63. package/dist/plugin-mcp-dist/lib/mcp-handlers.d.ts +385 -0
  64. package/dist/plugin-mcp-dist/lib/mcp-handlers.js +1924 -0
  65. package/dist/plugin-mcp-dist/lib/mcp-tools.d.ts +5 -0
  66. package/dist/plugin-mcp-dist/lib/mcp-tools.js +5 -0
  67. package/dist/plugin-mcp-dist/lib/mcp-websocket.d.ts +10 -0
  68. package/dist/plugin-mcp-dist/lib/mcp-websocket.js +88 -0
  69. package/dist/plugin-mcp-dist/lib/plugin-websocket.d.ts +5 -0
  70. package/dist/plugin-mcp-dist/lib/plugin-websocket.js +170 -0
  71. package/dist/plugin-mcp-dist/lib/react-export.d.ts +51 -0
  72. package/dist/plugin-mcp-dist/lib/react-export.js +358 -0
  73. package/dist/plugin-mcp-dist/lib/schema.d.ts +276 -0
  74. package/dist/plugin-mcp-dist/lib/schema.js +907 -0
  75. package/dist/plugin-mcp-dist/lib/store.d.ts +2 -0
  76. package/dist/plugin-mcp-dist/lib/store.js +10 -0
  77. package/dist/plugin-mcp-dist/lib/tree-utils.d.ts +6 -0
  78. package/dist/plugin-mcp-dist/lib/tree-utils.js +141 -0
  79. package/dist/plugin-mcp-dist/lib/tunnel.d.ts +46 -0
  80. package/dist/plugin-mcp-dist/lib/tunnel.js +117 -0
  81. package/dist/plugin-mcp-dist/lib/types.d.ts +110 -0
  82. package/dist/plugin-mcp-dist/lib/types.js +188 -0
  83. package/dist/plugin-mcp-dist/lib/upstream-socket.d.ts +13 -0
  84. package/dist/plugin-mcp-dist/lib/upstream-socket.js +56 -0
  85. package/dist/plugin-mcp-dist/lib/utils.d.ts +13 -0
  86. package/dist/plugin-mcp-dist/lib/utils.js +57 -0
  87. package/dist/plugin-mcp-dist/lib/websocket-server.d.ts +10 -0
  88. package/dist/plugin-mcp-dist/lib/websocket-server.js +88 -0
  89. package/dist/plugin-mcp-dist/lib/xml.d.ts +10 -0
  90. package/dist/plugin-mcp-dist/lib/xml.js +395 -0
  91. package/dist/react.d.ts +76 -0
  92. package/dist/react.js +280 -0
  93. package/dist/renamer.d.ts +11 -0
  94. package/dist/renamer.js +139 -0
  95. package/dist/sentry.d.ts +2 -0
  96. package/dist/sentry.js +5 -0
  97. package/dist/stackblitz.d.ts +9 -0
  98. package/dist/stackblitz.js +179 -0
  99. package/dist/styles/framer.css +920 -0
  100. package/dist/styles/reset.css +37 -0
  101. package/dist/typescript.d.ts +24 -0
  102. package/dist/typescript.js +197 -0
  103. package/dist/undici-dispatcher.d.ts +2 -0
  104. package/dist/undici-dispatcher.js +10 -0
  105. package/dist/unframer-loader.d.ts +2 -0
  106. package/dist/unframer-loader.js +12 -0
  107. package/dist/utils.d.ts +20 -0
  108. package/dist/utils.js +81 -0
  109. package/dist/version.d.ts +2 -0
  110. package/dist/version.js +2 -0
  111. package/package.json +131 -0
package/README.md ADDED
@@ -0,0 +1,389 @@
1
+ <div hidden align='center'>
2
+ <br/>
3
+ <br/>
4
+ <h3>unframer</h3>
5
+ <p>design in Framer, deploy in React</p>
6
+ <br/>
7
+ <br/>
8
+ </div>
9
+
10
+ # @reframejs/unframer
11
+
12
+ Reframe's maintained runtime for components exported from Framer. It is based on Unframer and is distributed with the Reframe CLI so generated components can keep their normal `unframer` imports.
13
+
14
+ For installation and usage, see the [Reframe documentation](https://reframe.elxr.studio/docs).
15
+
16
+ - Unframer exports your Framer components as simple .js files
17
+ - Works with any React framework (Next.js, Remix, Vite, Astro, etc)
18
+ - Includes all your components dependencies
19
+ - Works with breakpoints, Framer fetch, Forms, color styles, dark mode (via `dark` class), etc
20
+ - Full Typescript support, inferred from your component variables (like `variant`)
21
+
22
+ ## Usage
23
+
24
+ You can watch a [Video Tutorial on YouTube here](https://www.youtube.com/watch?v=RL2BWqNSPhU) to see an overview of the process.
25
+
26
+ 1. Install unframer and update react to 19
27
+
28
+ ```sh
29
+ npm install unframer react@19 react-dom@19
30
+ ```
31
+
32
+ 1. Install the [`React Export` Framer plugin](https://framer.link/TGWRs2U), open it and select which components you want to export.
33
+
34
+ 1. Run the command `npx unframer {projectId} --outDir ./src/framer` to download the components and their types in the `outDir` directory.
35
+ Run this command every time you add a new Framer component.
36
+
37
+ 1. Import the components inside your `jsx` files together with `styles.css`, for example
38
+
39
+ ```tsx
40
+ import './framer/styles.css' // load base Framer styles
41
+ import Menu from './framer/menus'
42
+
43
+ export default function App() {
44
+ return (
45
+ <div>
46
+ <Menu componentVariable='some variable' />
47
+ </div>
48
+ )
49
+ }
50
+ ```
51
+
52
+ 1. To make sure everything works correctly install React 19 (latest version) and disable React Strict Mode in your app. Strict mode renders your components twice and this can cause issues with Framer animations.
53
+
54
+ ## Using responsive variants
55
+
56
+ ```tsx
57
+ import './framer/styles.css'
58
+ import Logos from './framer/logos'
59
+
60
+ export default function App() {
61
+ return (
62
+ <div>
63
+ {/* Changes component variant based on breakpoint */}
64
+ <Logos.Responsive
65
+ // variants should be automatically generated by default by the Framer plugin, only pass them to override the defaults
66
+ variants={{
67
+ lg: 'Your Desktop Variant',
68
+ md: 'Your Tablet Variant',
69
+ base: 'Your Mobile Variant',
70
+ }}
71
+ />
72
+ </div>
73
+ )
74
+ }
75
+ ```
76
+
77
+ ## Styling
78
+
79
+ You can use `className` or `style` props to style your components
80
+
81
+ Notice that you will often need to use `!important` to override styles already defined in framer like `width` and `height`
82
+
83
+ ```tsx
84
+ import './framer/styles.css'
85
+ import Logos from './framer/logos'
86
+
87
+ export default function App() {
88
+ return (
89
+ <div>
90
+ {/* Changes component variant based on breakpoint */}
91
+ <Logos.responsive
92
+ className='!w-full'
93
+ variants={{
94
+ lg: 'Desktop',
95
+ md: 'Tablet',
96
+ base: 'Mobile',
97
+ }}
98
+ />
99
+ </div>
100
+ )
101
+ }
102
+ ```
103
+
104
+ ## Sizing components
105
+
106
+ Framer components can have a fixed size, this comes from the root element in the Framer component editor. To override this size you will need to use the `style` prop or use a class with high specificity.
107
+
108
+ ```tsx
109
+ import './framer/styles.css'
110
+ import Logos from './framer/logos'
111
+
112
+ export default function App() {
113
+ return (
114
+ <div>
115
+ <Logos.responsive
116
+ className='!w-full' // use !important to override framer default size
117
+ style={{ width: '100%' }} // or use style prop, which has higher specificity than the Framer class
118
+ // variants are automatically generated by default by the Framer plugin, you only need to pass them to override them
119
+ variants={{
120
+ lg: 'Desktop',
121
+ md: 'Tablet',
122
+ base: 'Mobile',
123
+ }}
124
+ />
125
+ </div>
126
+ )
127
+ }
128
+ ```
129
+
130
+ ## Changing locale
131
+
132
+ You can change locale of your component by passing `locale` prop to the component. The locale must be one of the country codes configured in your Framer project.
133
+
134
+ ```tsx
135
+ import './framer/styles.css'
136
+ import Logos from './framer/logos'
137
+
138
+ export default function App() {
139
+ return (
140
+ <div>
141
+ <Logos locale='it-IT' />
142
+ </div>
143
+ )
144
+ }
145
+ ```
146
+
147
+ ## Dark Mode
148
+
149
+ Unframer supports dark mode through CSS classes:
150
+
151
+ 1. Add the `dark` class to any parent element of your component
152
+ 2. This will automatically switch all color style variables to use the dark mode values defined in Framer
153
+
154
+ That's all you need to enable dark mode for your Framer components!
155
+
156
+ > This is also how Tailwind's dark mode works - when you add the `dark` class to a parent element, any Tailwind dark mode classes (like `dark:bg-gray-900`) within that element will be activated. So you can seamlessly combine Framer and Tailwind dark mode by using the same `dark` class:
157
+
158
+ ```tsx
159
+ import './framer/styles.css'
160
+ import Logos from './framer/logos'
161
+
162
+ export default function App() {
163
+ return (
164
+ <div className='dark'>
165
+ <Logos />
166
+ </div>
167
+ )
168
+ }
169
+ ```
170
+
171
+ ## Using the Framer color styles as CSS variables
172
+
173
+ Unframer will export your color styles as CSS variables, for example:
174
+
175
+ > You can use Framer CSS variables in your own code, for example in tailwind with `<div className='bg-(--unframer-white)' />`
176
+
177
+ ```css
178
+ :root {
179
+ --unframer-chambray: rgb(72, 86, 150);
180
+ --unframer-gray: rgb(231, 231, 231);
181
+ --unframer-off-black: rgb(16, 16, 16);
182
+ --unframer-300: rgb(255, 160, 122);
183
+ --unframer-500: rgb(252, 62, 19);
184
+ --unframer-dark-gray: rgb(169, 169, 169);
185
+ --unframer-400: rgb(254, 102, 57);
186
+ --unframer-100: rgb(255, 227, 212);
187
+ --unframer-50: rgb(255, 243, 237);
188
+ --unframer-25: rgb(255, 252, 250);
189
+ --unframer-white: rgb(255, 255, 255);
190
+ --unframer-primary: rgb(231, 34, 8);
191
+ }
192
+
193
+ .dark {
194
+ --unframer-chambray: rgb(161, 180, 255);
195
+ --unframer-gray: rgb(42, 42, 42);
196
+ --unframer-off-black: rgb(255, 255, 255);
197
+ --unframer-300: rgb(255, 160, 122);
198
+ --unframer-500: rgb(252, 62, 19);
199
+ --unframer-dark-gray: rgb(176, 176, 176);
200
+ --unframer-400: rgb(254, 102, 57);
201
+ --unframer-100: rgb(58, 58, 58);
202
+ --unframer-50: rgb(40, 40, 40);
203
+ --unframer-25: rgb(30, 30, 30);
204
+ --unframer-white: rgb(16, 16, 16);
205
+ --unframer-primary: rgb(231, 34, 8);
206
+ }
207
+ ```
208
+
209
+ ## When should I run the plugin again?
210
+
211
+ You can just run the `unframer` cli to get changes from the existing components.
212
+
213
+ The Framer plugin should be reopened when:
214
+
215
+ - When you add a new component
216
+ - When changing color styles
217
+ - When adding new pages (this is necessary to make relative links to those pages work)
218
+ - When adding new locales
219
+ - When changing breakpoints
220
+ - When changing breakpoints
221
+
222
+ ## Watching for changes
223
+
224
+ You can use the `--watch` flag to automatically re-export components when they change in Framer: notice that you will need to click the Publish button in Framer to trigger the cli, Framer only updates the JavaScript modules when you publish your website.
225
+
226
+ <details>
227
+ <summary>How it works</summary>
228
+ Unframer cli will poll your website url every 2 seconds with a HEAD request, when the `etag` header changes it will re-export the components. This means that the --watch flag may not work if your components are not used in your main page of your Framer website.
229
+ </details>
230
+
231
+ ## Using client navigation for links
232
+
233
+ If you use a framework like Next.js or react-router you can pass a navigate function to let Unframer use client navigation instead of full page refreshes for relative links.
234
+
235
+ All Unframer components below will use this navigate function to go to the new page.
236
+
237
+ ```tsx
238
+ import { useRouter } from 'next/navigation'
239
+ import { UnframerProvider } from 'unframer'
240
+
241
+ export function Providers({ children }: { children: React.ReactNode }) {
242
+ const router = useRouter()
243
+
244
+ return (
245
+ <UnframerProvider navigate={router.push}>{children}</UnframerProvider>
246
+ )
247
+ }
248
+ ```
249
+
250
+ ## Passing locale prop to all components with `UnframerProvider`
251
+
252
+ You can change the locale of all components under the provider passing locale prop to UnframerProvider.
253
+
254
+ ```tsx
255
+ import { UnframerProvider } from 'unframer'
256
+
257
+ export function Providers({ children }) {
258
+ return <UnframerProvider locale='de'>{children}</UnframerProvider>
259
+ }
260
+ ```
261
+
262
+ ## How does unframer cli work?
263
+
264
+ The Framer React Export plugin saves your Framer components JavaScript url in the Unframer database. When you run the Unframer cli the components urls are fetched and bundled with esbuild. The bundler will also resolve npm dependencies in your Framer overrides and code components using the latest version.
265
+
266
+ You can customize the npm dependencies versions using the `--external` flag and installing them manually with `npm install`.
267
+
268
+ Unframer will also create a `styles.css` file with the Framer global styles and the fonts used in your components.
269
+
270
+ To generate TypeScript types for your components Unframer runs your downloaded components with Node.js and extracts the TypeScript types from the component `propertyControls` field, which is used to populate the Framer right bar controls.
271
+
272
+ The Responsive component renders your components for each different breakpoint and only shows the current breakpoint via a CSS media query. The unused breakpoints are removed before hydration thanks to React [`useSyncExternalStore`](https://react.dev/reference/react/useSyncExternalStore).
273
+
274
+ ## Troubleshooting
275
+
276
+ If you find any errors rendering your components:
277
+
278
+ - Check you have the latest version of `unframer` installed
279
+ - If an animation is now working as expected try disabled React strict mode and updating to React 19.
280
+ - Try downloading new versions of the components by running again `npx unframer {projectId}`, Framer may already have fixed the problem.
281
+ - Try disabling React strict mode, this can cause many issues in Framer components.
282
+ - If the export fails because Esbuild cannot find an export from a package (like `No matching export in "/:https://esm.sh/zustand" for import "default"`) you can use the `--external` option to externalie npm packages used by Framer, then install them manually with the right version with `npm install`.
283
+ Framer sometimes uses legacy versions of npm packages in their components, for example with Zustand which is usually still in version 3.x. This happens because Framer packages must be the same in the whole project and their versions are fixed at the time the npm package is used in a code component or override.
284
+
285
+ ## Supported component props
286
+
287
+ `unframer` will add TypeScript definitions for your Framer components props and variables, some example variables you can use are:
288
+
289
+ - `variant`, created when you use variants in Framer
290
+ - functions, created when you use an `event` variable in Framer
291
+ - Any scalar variable like String, Number, Boolean, Date, etc
292
+ - Image variables (object with `src`, `srcSet` and `alt`), created when you use an `image` variable in Framer
293
+ - Link strings, created when you make a link a variable in Framer
294
+ - Rich text, created when you use a `richText` variable in Framer
295
+ - Color, a string
296
+ - React component, created when you use a `component` variable in Framer, for example in the Ticker component
297
+
298
+ ## Known limitations:
299
+
300
+ - You may face React warnings like:
301
+ - `Accessing element.ref was removed in React 19.` This warning appears because Framer still uses the old `element.ref` API which was removed in React 19. This warning is harmless and will be fixed when Framer updates their codebase to use the new React 19 APIs.
302
+ - `A tree hydrated but some attributes of the server rendered HTML didn't match the client properties.` This warning sometimes appears when using SVG icons, it should be harmless, it only happens in development mode.
303
+
304
+ ## Future Compatibility
305
+
306
+ Every Framer runtime change is upstreamed automatically via Github Actions to this [file](https://github.com/remorses/unframer/blob/main/unframer/src/framer.js) and an example app is deployed [here](https://unframer-nextjs-app.vercel.app/). This means that if something breaks it's easy to bisect the specific change and fix it.
307
+
308
+ For example in May 2024 Framer upgraded to React 19 and unframer broke, the reason was that framer runtime no longer injected ssr styles to `head` because react should do it automatically from version 19, this however broke unframer when using react 18, but i was able to quickly fix it by adding back the code to inject styles to `head` in unframer.
309
+
310
+ ## Performance
311
+
312
+ Unframer renders your components with server side rendering, giving your good performance and SEO, in pair with the Framer deployed websites.
313
+
314
+ Here is the below landing page Lighthouse score when using Astro:
315
+
316
+ > **Important**: For best performance in development, disable React strict mode. Strict mode causes components to mount and unmount twice, which can cause issues with Framer animations and state management.
317
+
318
+ ![lighthouse score](https://raw.githubusercontent.com/remorses/unframer/main/assets/astro-performance.png)
319
+
320
+ ## Example
321
+
322
+ Look at the [nextjs-app source code folder](https://github.com/remorses/unframer/tree/main/nextjs-app) for an example and [the deployed website here](https://unframer-nextjs-app.vercel.app/)
323
+
324
+ ## MCP CLI Commands
325
+
326
+ Unframer can act as a command-line client for the [Framer MCP plugin](https://www.framer.com/marketplace/plugins/mcp/), allowing you to interact with your Framer project directly from the terminal.
327
+
328
+ ### Setup
329
+
330
+ ```sh
331
+ # Login with your MCP URL (get it from the Framer MCP plugin)
332
+ npx unframer mcp login
333
+ ```
334
+
335
+ After login, all MCP commands become available. Run `npx unframer --help` to see the full list.
336
+
337
+ ### Example Commands
338
+
339
+ ```sh
340
+ # Get project structure as XML
341
+ npx unframer mcp getProjectXml
342
+
343
+ # Get a specific node's XML by ID
344
+ npx unframer mcp getNodeXml --nodeId "abc123"
345
+
346
+ # Update node text or attributes
347
+ npx unframer mcp updateXmlForNode --nodeId "abc123" --xml '<Text nodeId="abc123">New text</Text>'
348
+
349
+ # Search for fonts
350
+ npx unframer mcp searchFonts --query "Inter"
351
+
352
+ # Export React components
353
+ npx unframer mcp exportReactComponents
354
+
355
+ # Get published website URL
356
+ npx unframer mcp getProjectWebsiteUrl
357
+ ```
358
+
359
+ ### CMS Operations
360
+
361
+ ```sh
362
+ # List all CMS collections
363
+ npx unframer mcp getCMSCollections
364
+
365
+ # Get items from a collection
366
+ npx unframer mcp getCMSItems --collectionId "col123"
367
+
368
+ # Create or update a CMS item
369
+ npx unframer mcp upsertCMSItem --collectionId "col123" --slug "my-post" --fieldData '{"title": "Hello"}'
370
+ ```
371
+
372
+ ### Code Files
373
+
374
+ ```sh
375
+ # Create a new code component
376
+ npx unframer mcp createCodeFile --name "MyComponent.tsx" --content "export default function MyComponent() { return <div>Hello</div> }"
377
+
378
+ # Read existing code file
379
+ npx unframer mcp readCodeFile --codeFileId "code123"
380
+
381
+ # Update code file content
382
+ npx unframer mcp updateCodeFile --codeFileId "code123" --content "// updated code"
383
+ ```
384
+
385
+ Run any command with `--help` for detailed options:
386
+
387
+ ```sh
388
+ npx unframer mcp updateXmlForNode --help
389
+ ```
package/bin.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { cli } from './dist/cli.js'
4
+
5
+ cli.parse()
@@ -0,0 +1,24 @@
1
+ import type * as BabelTypes from '@babel/types';
2
+ import type { PluginObj } from '@babel/core';
3
+ export declare function removeJsxExpressionContainer({ types: t }: {
4
+ types: typeof BabelTypes;
5
+ }): PluginObj;
6
+ export declare function babelPluginJsxTransform({ types: t }: {
7
+ types: typeof BabelTypes;
8
+ }): {
9
+ name: string;
10
+ visitor: {
11
+ ImportDeclaration(path: any): void;
12
+ CallExpression(path: any): void;
13
+ };
14
+ };
15
+ /**
16
+ * Injects `suppressHydrationWarning: true` into _jsx/_jsxs call props for elements
17
+ * that support it: lowercase HTML elements (div, span, etc.) and motion.* components.
18
+ * This prevents React hydration mismatch warnings caused by Framer's runtime rendering
19
+ * differently on server vs client (e.g. motion.div with layoutId, SVG containers, style attributes).
20
+ */
21
+ export declare function babelPluginSuppressHydration({ types: t }: {
22
+ types: typeof BabelTypes;
23
+ }): PluginObj;
24
+ //# sourceMappingURL=babel-jsx.d.ts.map