unframer 1.0.0 → 1.0.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/README.md +5 -4
- package/dist/react.d.ts +1 -11
- package/dist/react.d.ts.map +1 -1
- package/framer-fixed/dist/framer.d.ts +11 -8
- package/framer-fixed/dist/framer.js +1453 -1042
- package/package.json +5 -2
- package/dist/inject.d.ts +0 -2
- package/dist/inject.d.ts.map +0 -1
- package/dist/inject.js +0 -2
- package/dist/inject.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
<br/>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
> [!IMPORTANT]
|
|
10
|
-
> If your component has any problem like missing imports create an issue with the component url, these issues are usually because of updates to the `framer` runtime which is kept in sync in this repository in [unframer/framer-fixed/dist](./unframer/framer-fixed/dist) folder
|
|
11
|
-
|
|
12
9
|
Download framer components as simple files
|
|
13
10
|
|
|
14
11
|
- Works with any React framework (Next.js, Gatsby, Vite, etc)
|
|
@@ -139,6 +136,10 @@ Known limitations:
|
|
|
139
136
|
}
|
|
140
137
|
```
|
|
141
138
|
|
|
139
|
+
- Instead of using links to your Framer pages you should make links variables and set them when rendering the component. This is because links to Framer pages are not supported in `unframer`.
|
|
140
|
+
|
|
141
|
+
- Internationalization is not supported
|
|
142
|
+
|
|
142
143
|
## Example
|
|
143
144
|
|
|
144
|
-
Look at the [nextjs-app](./nextjs-app) folder for an example
|
|
145
|
+
Look at the [nextjs-app](./nextjs-app) folder for an example and the deployed example [here](https://unframer-nextjs-app.vercel.app/)
|
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
1
|
declare const breakpointSizes: {
|
|
3
2
|
readonly base: 0;
|
|
4
3
|
readonly sm: 320;
|
|
@@ -11,15 +10,6 @@ export type UnframerBreakpoint = keyof typeof breakpointSizes;
|
|
|
11
10
|
export declare function FramerStyles({ Components }: {
|
|
12
11
|
Components?: any[] | undefined;
|
|
13
12
|
}): any;
|
|
14
|
-
export declare const WithFramerBreakpoints:
|
|
15
|
-
Component: ComponentType<{
|
|
16
|
-
variant?: any;
|
|
17
|
-
className?: string | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
variants: Record<"base" | "sm" | "md" | "lg" | "xl" | "2xl", any>;
|
|
20
|
-
} & Omit<{
|
|
21
|
-
variant?: any;
|
|
22
|
-
className?: string | undefined;
|
|
23
|
-
}, "variant"> & import("react").RefAttributes<unknown>>;
|
|
13
|
+
export declare const WithFramerBreakpoints: any;
|
|
24
14
|
export {};
|
|
25
15
|
//# sourceMappingURL=react.d.ts.map
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"AAyDA,QAAA,MAAM,eAAe;;;;;;;CAOX,CAAA;AAOV,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,eAAe,CAAA;AAsF7D,wBAAgB,YAAY,CAAC,EAAE,UAAwB,EAAE;;CAAA,GAAG,GAAG,CA6C9D;AAED,eAAO,MAAM,qBAAqB,KA4EhC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
-
import { AnimationPlaybackControls } from 'framer-motion';
|
|
3
|
+
import type { AnimationPlaybackControls } from 'framer-motion';
|
|
4
4
|
import { Component } from 'react';
|
|
5
5
|
import { ComponentType } from 'react';
|
|
6
6
|
import { ForwardRefExoticComponent } from 'react';
|
|
@@ -9,19 +9,19 @@ import { DeprecatedLayoutGroupContext as LayoutGroupContext } from 'framer-motio
|
|
|
9
9
|
import { MotionProps } from 'framer-motion';
|
|
10
10
|
import type { MotionStyle } from 'framer-motion';
|
|
11
11
|
import type { MotionTransform } from 'framer-motion';
|
|
12
|
-
import { MotionValue } from 'framer-motion';
|
|
12
|
+
import type { MotionValue } from 'framer-motion';
|
|
13
13
|
import { PanInfo } from 'framer-motion';
|
|
14
14
|
import { PropsWithoutRef } from 'react';
|
|
15
15
|
import { default as React_2 } from 'react';
|
|
16
16
|
import type { ReactNode } from 'react';
|
|
17
17
|
import { RefAttributes } from 'react';
|
|
18
|
-
import { SpringOptions as SpringOptions_2 } from 'framer-motion';
|
|
19
|
-
import { TargetAndTransition } from 'framer-motion';
|
|
20
|
-
import { Transition } from 'framer-motion';
|
|
18
|
+
import type { SpringOptions as SpringOptions_2 } from 'framer-motion';
|
|
19
|
+
import type { TargetAndTransition } from 'framer-motion';
|
|
20
|
+
import type { Transition } from 'framer-motion';
|
|
21
21
|
import { useDeprecatedAnimatedState as useAnimatedState } from 'framer-motion';
|
|
22
22
|
import { useDeprecatedInvertedScale as useInvertedScale } from 'framer-motion';
|
|
23
|
-
import { ValueAnimationTransition } from 'framer-motion';
|
|
24
|
-
import { VariantLabels } from 'framer-motion';
|
|
23
|
+
import type { ValueAnimationTransition } from 'framer-motion';
|
|
24
|
+
import type { VariantLabels } from 'framer-motion';
|
|
25
25
|
|
|
26
26
|
/** @public */
|
|
27
27
|
export declare function addFonts(component: React_2.ComponentType<unknown>, passedFonts: (ComponentFontV1 | ComponentFontBundle)[], flags?: {
|
|
@@ -3457,7 +3457,7 @@ export declare type PageProps = Partial<PageProperties> & Partial<Omit<FrameProp
|
|
|
3457
3457
|
* Webkit issue: https://bugs.webkit.org/show_bug.cgi?id=240653
|
|
3458
3458
|
* */
|
|
3459
3459
|
/** @public */
|
|
3460
|
-
export declare function PageRoot({ RootComponent, isWebsite, routeId, pathVariables, routes, collectionUtils, notFoundPage, isReducedMotion, includeDataObserver, localeId, locales, preserveQueryParams, enableSuspenseThatPreservesDom, }: PageRootProps): JSX.Element;
|
|
3460
|
+
export declare function PageRoot({ RootComponent, isWebsite, routeId, pathVariables, routes, collectionUtils, notFoundPage, isReducedMotion, includeDataObserver, localeId, locales, preserveQueryParams, enableSuspenseThatPreservesDom, shouldMarkHydrationEnd, }: PageRootProps): JSX.Element;
|
|
3461
3461
|
|
|
3462
3462
|
declare interface PageRootProps {
|
|
3463
3463
|
RootComponent: RouteComponent;
|
|
@@ -3472,7 +3472,10 @@ declare interface PageRootProps {
|
|
|
3472
3472
|
locales?: Locale[];
|
|
3473
3473
|
localeId?: LocaleId;
|
|
3474
3474
|
preserveQueryParams?: boolean;
|
|
3475
|
+
/** Is `true` when the noWhiteFlashSuspense experiment is enabled. To be removed when the experiment is removed. */
|
|
3475
3476
|
enableSuspenseThatPreservesDom?: boolean;
|
|
3477
|
+
/** Is `true` when the page root is used at the live site and is being hydrated. */
|
|
3478
|
+
shouldMarkHydrationEnd?: boolean;
|
|
3476
3479
|
}
|
|
3477
3480
|
|
|
3478
3481
|
export declare interface PageScopeControlDescription<P = any> extends BaseControlDescription<P> {
|