File tree 9 files changed +38
-43
lines changed
9 files changed +38
-43
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"version" : " independent" ,
3
- "npmClient" : " yarn" ,
4
- "useWorkspaces" : true
3
+ "npmClient" : " yarn"
5
4
}
Original file line number Diff line number Diff line change 46
46
"eslint-plugin-react" : " ^7.29.4" ,
47
47
"if-env" : " ^1.0.4" ,
48
48
"jest" : " 29.5.0" ,
49
- "lerna" : " ^6.3.0 " ,
49
+ "lerna" : " ^7.4.2 " ,
50
50
"prettier" : " 2.7.1" ,
51
51
"size-limit" : " 8.2.4" ,
52
52
"tsconfig-paths" : " ^4.2.0" ,
Original file line number Diff line number Diff line change 1
- import { Slider } from "antd" ;
2
- import React , { ReactElement , useMemo } from "react" ;
3
- import { capitalize , Registerable , registerComponentHelper } from "./utils" ;
4
- import kebabCase from "lodash/kebabCase" ;
5
1
import { PropType } from "@plasmicapp/host" ;
2
+ import { Slider } from "antd" ;
6
3
import type { SliderTooltipProps } from "antd/lib/slider" ;
7
4
import type { TooltipPlacement } from "antd/lib/tooltip" ;
5
+ import kebabCase from "lodash/kebabCase" ;
6
+ import React , { ReactElement , useMemo } from "react" ;
7
+ import { Registerable , registerComponentHelper } from "./utils" ;
8
8
9
9
export type StylableMark = {
10
10
mark : number ;
@@ -53,8 +53,8 @@ export interface AntdRangeSliderProps extends AntdSliderBaseProps {
53
53
valueMax ?: number ;
54
54
defaultValueMin ?: number ;
55
55
defaultValueMax ?: number ;
56
- onChange : ( value ?: [ number , number ] ) => void ;
57
- onAfterChange : ( value ?: [ number , number ] ) => void ;
56
+ onChange : ( value ?: number [ ] ) => void ;
57
+ onAfterChange : ( value ?: number [ ] ) => void ;
58
58
}
59
59
60
60
export function useMarks ( {
Original file line number Diff line number Diff line change 4
4
"description" : " Plasmic ContentStack components." ,
5
5
"main" : " dist/index.js" ,
6
6
"typings" : " dist/index.d.ts" ,
7
- "module" : " dist/plasmic-content-stack.esm.js " ,
7
+ "module" : " dist/index.mjs " ,
8
8
"publishConfig" : {
9
9
"access" : " public"
10
10
},
11
11
"files" : [
12
12
" dist"
13
13
],
14
14
"scripts" : {
15
- "start" : " tsdx watch" ,
16
- "build" : " tsdx build" ,
15
+ "build" : " tsup-node src/index.tsx --dts --format esm,cjs --target es2019" ,
17
16
"test" : " yarn --cwd=../.. test --passWithNoTests" ,
18
- "lint" : " tsdx lint" ,
19
17
"prepare" : " if-env PREPARE_NO_BUILD=true || yarn build" ,
20
18
"size" : " size-limit" ,
21
19
"analyze" : " size-limit --why"
25
23
},
26
24
"size-limit" : [
27
25
{
28
- "path" : " dist/plasmic-content-stack.cjs.production.min .js" ,
26
+ "path" : " dist/index .js" ,
29
27
"limit" : " 10 KB"
30
28
},
31
29
{
32
- "path" : " dist/plasmic-content-stack.esm.js " ,
30
+ "path" : " dist/index.mjs " ,
33
31
"limit" : " 10 KB"
34
32
}
35
33
],
44
42
"react" : " ^18.2.0" ,
45
43
"react-dom" : " ^18.2.0" ,
46
44
"size-limit" : " ^7.0.8" ,
47
- "tsdx" : " ^0.14.1" ,
48
- "tslib" : " ^2.3.1"
45
+ "tslib" : " ^2.3.1" ,
46
+ "tsup" : " ^7.2.0" ,
47
+ "typescript" : " ^5.2.2"
49
48
},
50
49
"dependencies" : {
51
50
"change-case" : " ^4.1.2" ,
Original file line number Diff line number Diff line change 4
4
"description" : " Plasmic Contentful components." ,
5
5
"main" : " dist/index.js" ,
6
6
"typings" : " dist/index.d.ts" ,
7
- "module" : " dist/plasmic-contentful.esm.js " ,
7
+ "module" : " dist/index.mjs " ,
8
8
"publishConfig" : {
9
9
"access" : " public"
10
10
},
11
11
"files" : [
12
12
" dist"
13
13
],
14
14
"scripts" : {
15
- "start" : " tsdx watch" ,
16
- "build" : " tsdx build" ,
15
+ "build" : " tsup-node src/index.tsx --dts --format esm,cjs --target es2019" ,
17
16
"test" : " yarn --cwd=../.. test --passWithNoTests" ,
18
- "lint" : " tsdx lint" ,
19
17
"prepare" : " if-env PREPARE_NO_BUILD=true || yarn build" ,
20
18
"size" : " size-limit" ,
21
19
"analyze" : " size-limit --why"
25
23
},
26
24
"size-limit" : [
27
25
{
28
- "path" : " dist/plasmic-contentful.cjs.production.min .js" ,
26
+ "path" : " dist/index .js" ,
29
27
"limit" : " 10 KB"
30
28
},
31
29
{
32
- "path" : " dist/plasmic-contentful.esm.js " ,
30
+ "path" : " dist/index.mjs " ,
33
31
"limit" : " 10 KB"
34
32
}
35
33
],
44
42
"react" : " ^18.2.0" ,
45
43
"react-dom" : " ^18.2.0" ,
46
44
"size-limit" : " ^7.0.8" ,
47
- "tsdx" : " ^0.14.1" ,
48
- "tslib" : " ^2.3.1"
45
+ "tslib" : " ^2.3.1" ,
46
+ "tsup" : " ^7.2.0" ,
47
+ "typescript" : " ^5.2.2"
49
48
},
50
49
"dependencies" : {
51
50
"@contentful/rich-text-html-renderer" : " ^15.13.1" ,
Original file line number Diff line number Diff line change 4
4
"description" : " Plasmic Sanity.io components." ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
7
- "module" : " dist/plasmic-sanity-io.esm.js " ,
7
+ "module" : " dist/index.mjs " ,
8
8
"files" : [
9
9
" dist"
10
10
],
11
11
"size-limit" : [
12
12
{
13
- "path" : " dist/plasmic-sanity-io.cjs.production.min .js" ,
13
+ "path" : " dist/index .js" ,
14
14
"limit" : " 10 KB"
15
15
},
16
16
{
17
- "path" : " dist/plasmic-sanity-io.esm.js " ,
17
+ "path" : " dist/index.mjs " ,
18
18
"limit" : " 10 KB"
19
19
}
20
20
],
21
21
"scripts" : {
22
- "build" : " tsdx build" ,
23
- "start" : " tsdx watch" ,
22
+ "build" : " tsup-node src/index.tsx --dts --format esm,cjs --target es2019" ,
24
23
"test" : " yarn --cwd=../.. test --passWithNoTests" ,
25
- "lint" : " tsdx lint" ,
26
24
"prepare" : " if-env PREPARE_NO_BUILD=true || yarn build" ,
27
25
"size" : " size-limit" ,
28
26
"analyze" : " size-limit --why"
35
33
"@types/node" : " ^17.0.14" ,
36
34
"@types/react" : " ^18.2.33" ,
37
35
"size-limit" : " ^7.0.8" ,
38
- "tsdx" : " ^0.14.1" ,
39
- "tslib" : " ^2.3.1"
36
+ "tslib" : " ^2.3.1" ,
37
+ "tsup" : " ^7.2.0" ,
38
+ "typescript" : " ^5.2.2"
40
39
},
41
40
"dependencies" : {
42
41
"@sanity/client" : " ^6.2.0" ,
Original file line number Diff line number Diff line change 4
4
"description" : " Plasmic Strapi components." ,
5
5
"main" : " dist/index.js" ,
6
6
"typings" : " dist/index.d.ts" ,
7
- "module" : " dist/plasmic-strapi.esm.js " ,
7
+ "module" : " dist/index.mjs " ,
8
8
"publishConfig" : {
9
9
"access" : " public"
10
10
},
11
11
"files" : [
12
12
" dist"
13
13
],
14
14
"scripts" : {
15
- "start" : " tsdx watch" ,
16
- "build" : " tsdx build" ,
15
+ "build" : " tsup-node src/index.tsx --dts --format esm,cjs --target es2019" ,
17
16
"test" : " yarn --cwd=../.. test --passWithNoTests" ,
18
- "lint" : " tsdx lint" ,
19
17
"prepare" : " if-env PREPARE_NO_BUILD=true || yarn build" ,
20
18
"size" : " size-limit" ,
21
19
"analyze" : " size-limit --why"
25
23
},
26
24
"size-limit" : [
27
25
{
28
- "path" : " dist/plasmic-strapi.cjs.production.min .js" ,
26
+ "path" : " dist/index .js" ,
29
27
"limit" : " 10 KB"
30
28
},
31
29
{
32
- "path" : " dist/plasmic-strapi.esm.js " ,
30
+ "path" : " dist/index.mjs " ,
33
31
"limit" : " 10 KB"
34
32
}
35
33
],
46
44
"react" : " ^18.2.0" ,
47
45
"react-dom" : " ^18.2.0" ,
48
46
"size-limit" : " ^7.0.8" ,
49
- "tsdx" : " ^0.14.1" ,
50
- "tslib" : " ^2.3.1"
47
+ "tslib" : " ^2.3.1" ,
48
+ "tsup" : " ^7.2.0" ,
49
+ "typescript" : " ^5.2.2"
51
50
},
52
51
"dependencies" : {
53
52
"@types/dlv" : " ^1.1.2" ,
Original file line number Diff line number Diff line change 19
19
}
20
20
],
21
21
"scripts" : {
22
- "build" : " tsup src/index.tsx --dts --format esm,cjs --target es2019" ,
22
+ "build" : " tsup-node src/index.tsx --dts --format esm,cjs --target es2019" ,
23
23
"test" : " yarn --cwd=../.. test --passWithNoTests" ,
24
24
"prepare" : " if-env PREPARE_NO_BUILD=true || yarn build" ,
25
25
"size" : " size-limit" ,
Original file line number Diff line number Diff line change 12
12
" dist"
13
13
],
14
14
"scripts" : {
15
- "build" : " tsup src/index.tsx --dts --format esm,cjs --target es2019" ,
15
+ "build" : " tsup-node src/index.tsx --dts --format esm,cjs --target es2019" ,
16
16
"test" : " yarn --cwd=../.. test --passWithNoTests" ,
17
17
"prepare" : " if-env PREPARE_NO_BUILD=true || yarn build" ,
18
18
"size" : " size-limit" ,
You can’t perform that action at this time.
0 commit comments