@plasmicpkgs/antd 2.0.146 → 2.0.148
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/registerRate.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
3
3
|
import type { RateProps } from "antd/es/rate";
|
|
4
4
|
import { Registerable } from "./registerable";
|
|
5
5
|
export declare const Rate: import("react").ForwardRefExoticComponent<import("antd").RateProps & import("react").RefAttributes<unknown>>;
|
|
6
|
-
export declare const rateMeta:
|
|
7
|
-
export declare function registerRate(loader?: Registerable, customRateMeta?:
|
|
6
|
+
export declare const rateMeta: CodeComponentMeta<RateProps>;
|
|
7
|
+
export declare function registerRate(loader?: Registerable, customRateMeta?: CodeComponentMeta<RateProps>): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/antd",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.148",
|
|
4
4
|
"description": "Plasmic registration calls for antd components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -59,11 +59,10 @@
|
|
|
59
59
|
"antd": "^4.19.5"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@plasmicapp/host": "1.0.
|
|
62
|
+
"@plasmicapp/host": "1.0.225",
|
|
63
63
|
"@rollup/plugin-commonjs": "^11.0.0",
|
|
64
64
|
"@rollup/plugin-json": "^4.0.0",
|
|
65
65
|
"@rollup/plugin-node-resolve": "^9.0.0",
|
|
66
|
-
"@size-limit/preset-small-lib": "^4.11.0",
|
|
67
66
|
"@types/glob": "^7.1.3",
|
|
68
67
|
"@types/node": "^14.0.26",
|
|
69
68
|
"@types/react": "^18.2.33",
|
|
@@ -75,12 +74,11 @@
|
|
|
75
74
|
"rollup": "^3.10.1",
|
|
76
75
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
77
76
|
"rollup-plugin-replace-imports": "^1.0.0",
|
|
78
|
-
"size-limit": "^4.11.0",
|
|
79
77
|
"typescript": "^5.2.2"
|
|
80
78
|
},
|
|
81
79
|
"peerDependencies": {
|
|
82
80
|
"@plasmicapp/host": ">=1.0.0",
|
|
83
81
|
"react": ">=16.8.0"
|
|
84
82
|
},
|
|
85
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "400da4e813c2876ed9d2ada28ef265afd30c69d5"
|
|
86
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRate.cjs.js","sources":["../src/registerRate.ts"],"sourcesContent":["import registerComponent, {\n
|
|
1
|
+
{"version":3,"file":"registerRate.cjs.js","sources":["../src/registerRate.ts"],"sourcesContent":["import registerComponent, {\n CodeComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport { Rate as AntdRate } from \"antd\";\nimport type { RateProps } from \"antd/es/rate\";\nimport { Registerable } from \"./registerable\";\nexport const Rate = AntdRate;\n\nexport const rateMeta: CodeComponentMeta<RateProps> = {\n name: \"AntdRate\",\n displayName: \"Antd Rate\",\n props: {\n allowClear: {\n type: \"boolean\",\n description: \"Whether to allow clear when clicking again\",\n defaultValueHint: true,\n },\n allowHalf: {\n type: \"boolean\",\n description: \"Whether to allow semi selection\",\n defaultValueHint: false,\n },\n autoFocus: {\n type: \"boolean\",\n description: \"If componet is focused when mounted\",\n defaultValueHint: false,\n },\n count: {\n type: \"number\",\n description: \"Star count\",\n },\n disabled: {\n type: \"boolean\",\n description: \"Disabled state of component\",\n defaultValueHint: false,\n },\n tooltips: {\n type: \"array\",\n description: \"Array to customize tooltip for each icon\",\n },\n value: {\n type: \"number\",\n description: \"The default value\",\n editOnly: true,\n defaultValueHint: 0,\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"value\",\n type: \"number\",\n },\n ],\n },\n character: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n },\n states: {\n value: {\n type: \"writable\",\n variableType: \"text\",\n onChangeProp: \"onChange\",\n valueProp: \"value\",\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerRate\",\n importName: \"Rate\",\n};\n\nexport function registerRate(\n loader?: Registerable,\n customRateMeta?: CodeComponentMeta<RateProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Rate, customRateMeta ?? rateMeta);\n}\n"],"names":["AntdRate","registerComponent"],"mappings":";;;;;;;;;AAMO,MAAM,IAAO,GAAAA,UAAA;AAEb,MAAM,QAAyC,GAAA;AAAA,EACpD,IAAM,EAAA,UAAA;AAAA,EACN,WAAa,EAAA,WAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,UAAY,EAAA;AAAA,MACV,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,4CAAA;AAAA,MACb,gBAAkB,EAAA,IAAA;AAAA,KACpB;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,iCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,qCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,KAAO,EAAA;AAAA,MACL,IAAM,EAAA,QAAA;AAAA,MACN,WAAa,EAAA,YAAA;AAAA,KACf;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,6BAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,OAAA;AAAA,MACN,WAAa,EAAA,0CAAA;AAAA,KACf;AAAA,IACA,KAAO,EAAA;AAAA,MACL,IAAM,EAAA,QAAA;AAAA,MACN,WAAa,EAAA,mBAAA;AAAA,MACb,QAAU,EAAA,IAAA;AAAA,MACV,gBAAkB,EAAA,CAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,cAAA;AAAA,MACN,QAAU,EAAA;AAAA,QACR;AAAA,UACE,IAAM,EAAA,OAAA;AAAA,UACN,IAAM,EAAA,QAAA;AAAA,SACR;AAAA,OACF;AAAA,KACF;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MAAA;AAAA,MACN,eAAiB,EAAA,IAAA;AAAA,KACnB;AAAA,GACF;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA;AAAA,MACL,IAAM,EAAA,UAAA;AAAA,MACN,YAAc,EAAA,MAAA;AAAA,MACd,YAAc,EAAA,UAAA;AAAA,MACd,SAAW,EAAA,OAAA;AAAA,KACb;AAAA,GACF;AAAA,EACA,UAAY,EAAA,uCAAA;AAAA,EACZ,UAAY,EAAA,MAAA;AACd,EAAA;AAEgB,SAAA,YAAA,CACd,QACA,cACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAIC,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,IAAA,EAAM,0CAAkB,QAAQ,CAAA,CAAA;AACtD;;;;;;"}
|
package/skinny/registerRate.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
3
3
|
import type { RateProps } from "antd/es/rate";
|
|
4
4
|
import { Registerable } from "./registerable";
|
|
5
5
|
export declare const Rate: import("react").ForwardRefExoticComponent<import("antd").RateProps & import("react").RefAttributes<unknown>>;
|
|
6
|
-
export declare const rateMeta:
|
|
7
|
-
export declare function registerRate(loader?: Registerable, customRateMeta?:
|
|
6
|
+
export declare const rateMeta: CodeComponentMeta<RateProps>;
|
|
7
|
+
export declare function registerRate(loader?: Registerable, customRateMeta?: CodeComponentMeta<RateProps>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRate.esm.js","sources":["../src/registerRate.ts"],"sourcesContent":["import registerComponent, {\n
|
|
1
|
+
{"version":3,"file":"registerRate.esm.js","sources":["../src/registerRate.ts"],"sourcesContent":["import registerComponent, {\n CodeComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport { Rate as AntdRate } from \"antd\";\nimport type { RateProps } from \"antd/es/rate\";\nimport { Registerable } from \"./registerable\";\nexport const Rate = AntdRate;\n\nexport const rateMeta: CodeComponentMeta<RateProps> = {\n name: \"AntdRate\",\n displayName: \"Antd Rate\",\n props: {\n allowClear: {\n type: \"boolean\",\n description: \"Whether to allow clear when clicking again\",\n defaultValueHint: true,\n },\n allowHalf: {\n type: \"boolean\",\n description: \"Whether to allow semi selection\",\n defaultValueHint: false,\n },\n autoFocus: {\n type: \"boolean\",\n description: \"If componet is focused when mounted\",\n defaultValueHint: false,\n },\n count: {\n type: \"number\",\n description: \"Star count\",\n },\n disabled: {\n type: \"boolean\",\n description: \"Disabled state of component\",\n defaultValueHint: false,\n },\n tooltips: {\n type: \"array\",\n description: \"Array to customize tooltip for each icon\",\n },\n value: {\n type: \"number\",\n description: \"The default value\",\n editOnly: true,\n defaultValueHint: 0,\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"value\",\n type: \"number\",\n },\n ],\n },\n character: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n },\n states: {\n value: {\n type: \"writable\",\n variableType: \"text\",\n onChangeProp: \"onChange\",\n valueProp: \"value\",\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerRate\",\n importName: \"Rate\",\n};\n\nexport function registerRate(\n loader?: Registerable,\n customRateMeta?: CodeComponentMeta<RateProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Rate, customRateMeta ?? rateMeta);\n}\n"],"names":["AntdRate"],"mappings":";;;AAMO,MAAM,IAAO,GAAAA,OAAA;AAEb,MAAM,QAAyC,GAAA;AAAA,EACpD,IAAM,EAAA,UAAA;AAAA,EACN,WAAa,EAAA,WAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,UAAY,EAAA;AAAA,MACV,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,4CAAA;AAAA,MACb,gBAAkB,EAAA,IAAA;AAAA,KACpB;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,iCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,qCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,KAAO,EAAA;AAAA,MACL,IAAM,EAAA,QAAA;AAAA,MACN,WAAa,EAAA,YAAA;AAAA,KACf;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,6BAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,OAAA;AAAA,MACN,WAAa,EAAA,0CAAA;AAAA,KACf;AAAA,IACA,KAAO,EAAA;AAAA,MACL,IAAM,EAAA,QAAA;AAAA,MACN,WAAa,EAAA,mBAAA;AAAA,MACb,QAAU,EAAA,IAAA;AAAA,MACV,gBAAkB,EAAA,CAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,cAAA;AAAA,MACN,QAAU,EAAA;AAAA,QACR;AAAA,UACE,IAAM,EAAA,OAAA;AAAA,UACN,IAAM,EAAA,QAAA;AAAA,SACR;AAAA,OACF;AAAA,KACF;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MAAA;AAAA,MACN,eAAiB,EAAA,IAAA;AAAA,KACnB;AAAA,GACF;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA;AAAA,MACL,IAAM,EAAA,UAAA;AAAA,MACN,YAAc,EAAA,MAAA;AAAA,MACd,YAAc,EAAA,UAAA;AAAA,MACd,SAAW,EAAA,OAAA;AAAA,KACb;AAAA,GACF;AAAA,EACA,UAAY,EAAA,uCAAA;AAAA,EACZ,UAAY,EAAA,MAAA;AACd,EAAA;AAEgB,SAAA,YAAA,CACd,QACA,cACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,IAAA,EAAM,0CAAkB,QAAQ,CAAA,CAAA;AACtD;;;;"}
|