unframer 2.4.0 → 2.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.
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -2
- package/dist/cli.js.map +1 -1
- package/dist/framer.d.ts.map +1 -1
- package/dist/framer.js +2306 -1885
- package/dist/framer.js.map +1 -1
- package/dist/react.d.ts +1 -11
- package/dist/react.d.ts.map +1 -1
- package/esm/cli.d.ts.map +1 -1
- package/esm/cli.js +3 -2
- package/esm/cli.js.map +1 -1
- package/esm/framer.d.ts.map +1 -1
- package/esm/framer.js +2460 -2040
- package/esm/framer.js.map +1 -1
- package/esm/react.d.ts +1 -11
- package/esm/react.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/cli.tsx +7 -3
- package/src/framer.js +2813 -2275
package/esm/react.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
1
|
import { defaultBreakpointSizes } from './css.js';
|
|
3
2
|
export type UnframerBreakpoint = keyof typeof defaultBreakpointSizes;
|
|
4
3
|
/**
|
|
@@ -7,14 +6,5 @@ export type UnframerBreakpoint = keyof typeof defaultBreakpointSizes;
|
|
|
7
6
|
export declare function FramerStyles({ Components }: {
|
|
8
7
|
Components?: any[] | undefined;
|
|
9
8
|
}): any;
|
|
10
|
-
export declare const WithFramerBreakpoints:
|
|
11
|
-
Component: ComponentType<{
|
|
12
|
-
variant?: any;
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
variants: Record<"2xl" | "base" | "sm" | "md" | "lg" | "xl", any>;
|
|
16
|
-
} & Omit<{
|
|
17
|
-
variant?: any;
|
|
18
|
-
className?: string | undefined;
|
|
19
|
-
}, "variant"> & import("react").RefAttributes<unknown>>;
|
|
9
|
+
export declare const WithFramerBreakpoints: any;
|
|
20
10
|
//# sourceMappingURL=react.d.ts.map
|
package/esm/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":"AAWA,OAAO,EAEH,sBAAsB,EAEzB,MAAM,UAAU,CAAA;AAWjB,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,sBAAsB,CAAA;AA8BpE;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAAE,UAAwB,EAAE;;CAAA,GAAG,GAAG,CAmD9D;AAED,eAAO,MAAM,qBAAqB,KA4EhC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unframer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Import Framer components directly in your React app, type safe and customizable",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"repository": "https://github.com/remorses/unframer",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"author": "Tommaso De Rossi, morse <beats.by.morse@gmail.com>",
|
|
27
27
|
"license": "",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@types/react": "*",
|
|
30
29
|
"react": "*",
|
|
31
30
|
"react-dom": "*"
|
|
32
31
|
},
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
"chokidar": "^3.5.3",
|
|
37
36
|
"dedent": "^1.5.1",
|
|
38
37
|
"dprint-node": "^1.0.8",
|
|
39
|
-
"esbuild": "^0.
|
|
38
|
+
"esbuild": "^0.21.4",
|
|
40
39
|
"esbuild-plugin-polyfill-node": "^0.3.0",
|
|
41
40
|
"eventemitter3": "^3.1.0",
|
|
42
41
|
"find-up": "^5.0.0",
|
|
@@ -60,15 +59,16 @@
|
|
|
60
59
|
"@types/fs-extra": "^11.0.1",
|
|
61
60
|
"@types/node": "^20.5.7",
|
|
62
61
|
"@xmorse/deployment-utils": "^0.1.0",
|
|
62
|
+
"concurrently": "^8.2.2",
|
|
63
63
|
"openai": "^4.40.2",
|
|
64
64
|
"posthtml": "^0.16.6",
|
|
65
|
-
"react": "
|
|
66
|
-
"react-dom": "
|
|
65
|
+
"react": "18.3.1",
|
|
66
|
+
"react-dom": "18.3.1",
|
|
67
67
|
"tiktoken": "^1.0.14"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "rm -rf dist && tsc -m esnext --outDir esm && tsc && cp ../README.md ./README.md && cp ./src/framer.d.ts ./dist/framer.d.ts && cp ./src/framer.d.ts ./esm/framer.d.ts",
|
|
71
71
|
"download-framer": "tsx scripts/download.ts",
|
|
72
|
-
"watch": "rm -rf dist && tsc -w"
|
|
72
|
+
"watch": "rm -rf dist esm && concurrently 'tsc -w' 'tsc -m esnext -w --outDir esm'"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/src/cli.tsx
CHANGED
|
@@ -12,7 +12,7 @@ import { cac } from 'cac'
|
|
|
12
12
|
import { logger } from './utils.js'
|
|
13
13
|
import { BreakpointSizes } from './css.js'
|
|
14
14
|
|
|
15
|
-
export const cli = cac()
|
|
15
|
+
export const cli = cac('unframer')
|
|
16
16
|
|
|
17
17
|
cli.command('', 'Run unframer')
|
|
18
18
|
.option('--watch', 'Watch for Framer and unframer.config.json changes')
|
|
@@ -98,7 +98,9 @@ function fixOldUnframerPath() {
|
|
|
98
98
|
const oldConfigPath = fs.existsSync('unframer.json')
|
|
99
99
|
if (oldConfigPath) {
|
|
100
100
|
fs.renameSync('unframer.json', 'unframer.config.json')
|
|
101
|
-
logger.green(
|
|
101
|
+
logger.green(
|
|
102
|
+
'legacy unframer.json config renamed to unframer.config.json',
|
|
103
|
+
)
|
|
102
104
|
return true
|
|
103
105
|
}
|
|
104
106
|
return false
|
|
@@ -116,7 +118,9 @@ cli.command('init', 'Init the unframer.config.json config').action(
|
|
|
116
118
|
},
|
|
117
119
|
)
|
|
118
120
|
|
|
119
|
-
|
|
121
|
+
const version = require('../package.json').version
|
|
122
|
+
|
|
123
|
+
cli.version(version).help()
|
|
120
124
|
|
|
121
125
|
function safeJsonParse(json: string) {
|
|
122
126
|
try {
|