@elementor/editor-editing-panel 4.2.0-840 → 4.2.0-841
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/index.d.mts +125 -0
- package/dist/index.d.ts +125 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/controls-registry/controls-registry.tsx +5 -0
package/dist/index.d.mts
CHANGED
|
@@ -957,6 +957,131 @@ declare const controlTypes: {
|
|
|
957
957
|
key: "query";
|
|
958
958
|
};
|
|
959
959
|
};
|
|
960
|
+
readonly 'query-chips': {
|
|
961
|
+
readonly component: ControlComponent<(props: {
|
|
962
|
+
queryOptions: {
|
|
963
|
+
params: Record<string, unknown>;
|
|
964
|
+
url: string;
|
|
965
|
+
};
|
|
966
|
+
placeholder?: string;
|
|
967
|
+
minInputLength?: number;
|
|
968
|
+
}) => react.JSX.Element>;
|
|
969
|
+
readonly layout: "full";
|
|
970
|
+
readonly propTypeUtil: {
|
|
971
|
+
extract: (prop: unknown) => {
|
|
972
|
+
$$type: "query";
|
|
973
|
+
value: {
|
|
974
|
+
id?: any;
|
|
975
|
+
label?: any;
|
|
976
|
+
};
|
|
977
|
+
disabled?: boolean | undefined;
|
|
978
|
+
}[] | null;
|
|
979
|
+
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<string, {
|
|
980
|
+
$$type: "query";
|
|
981
|
+
value: {
|
|
982
|
+
id?: any;
|
|
983
|
+
label?: any;
|
|
984
|
+
};
|
|
985
|
+
disabled?: boolean | undefined;
|
|
986
|
+
}[]>;
|
|
987
|
+
create: {
|
|
988
|
+
(value: {
|
|
989
|
+
$$type: "query";
|
|
990
|
+
value: {
|
|
991
|
+
id?: any;
|
|
992
|
+
label?: any;
|
|
993
|
+
};
|
|
994
|
+
disabled?: boolean | undefined;
|
|
995
|
+
}[]): _elementor_editor_props.TransformablePropValue<string, {
|
|
996
|
+
$$type: "query";
|
|
997
|
+
value: {
|
|
998
|
+
id?: any;
|
|
999
|
+
label?: any;
|
|
1000
|
+
};
|
|
1001
|
+
disabled?: boolean | undefined;
|
|
1002
|
+
}[]>;
|
|
1003
|
+
(value: {
|
|
1004
|
+
$$type: "query";
|
|
1005
|
+
value: {
|
|
1006
|
+
id?: any;
|
|
1007
|
+
label?: any;
|
|
1008
|
+
};
|
|
1009
|
+
disabled?: boolean | undefined;
|
|
1010
|
+
}[], createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<string, {
|
|
1011
|
+
$$type: "query";
|
|
1012
|
+
value: {
|
|
1013
|
+
id?: any;
|
|
1014
|
+
label?: any;
|
|
1015
|
+
};
|
|
1016
|
+
disabled?: boolean | undefined;
|
|
1017
|
+
}[]>;
|
|
1018
|
+
(value: (prev?: {
|
|
1019
|
+
$$type: "query";
|
|
1020
|
+
value: {
|
|
1021
|
+
id?: any;
|
|
1022
|
+
label?: any;
|
|
1023
|
+
};
|
|
1024
|
+
disabled?: boolean | undefined;
|
|
1025
|
+
}[] | undefined) => {
|
|
1026
|
+
$$type: "query";
|
|
1027
|
+
value: {
|
|
1028
|
+
id?: any;
|
|
1029
|
+
label?: any;
|
|
1030
|
+
};
|
|
1031
|
+
disabled?: boolean | undefined;
|
|
1032
|
+
}[], createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<string, {
|
|
1033
|
+
$$type: "query";
|
|
1034
|
+
value: {
|
|
1035
|
+
id?: any;
|
|
1036
|
+
label?: any;
|
|
1037
|
+
};
|
|
1038
|
+
disabled?: boolean | undefined;
|
|
1039
|
+
}[]>;
|
|
1040
|
+
};
|
|
1041
|
+
schema: zod.ZodObject<{
|
|
1042
|
+
$$type: zod.ZodLiteral<string>;
|
|
1043
|
+
value: zod.ZodType<{
|
|
1044
|
+
$$type: "query";
|
|
1045
|
+
value: {
|
|
1046
|
+
id?: any;
|
|
1047
|
+
label?: any;
|
|
1048
|
+
};
|
|
1049
|
+
disabled?: boolean | undefined;
|
|
1050
|
+
}[], zod.ZodTypeDef, {
|
|
1051
|
+
$$type: "query";
|
|
1052
|
+
value: {
|
|
1053
|
+
id?: any;
|
|
1054
|
+
label?: any;
|
|
1055
|
+
};
|
|
1056
|
+
disabled?: boolean | undefined;
|
|
1057
|
+
}[]>;
|
|
1058
|
+
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
1059
|
+
}, "strict", zod.ZodTypeAny, {
|
|
1060
|
+
$$type: string;
|
|
1061
|
+
value: {
|
|
1062
|
+
$$type: "query";
|
|
1063
|
+
value: {
|
|
1064
|
+
id?: any;
|
|
1065
|
+
label?: any;
|
|
1066
|
+
};
|
|
1067
|
+
disabled?: boolean | undefined;
|
|
1068
|
+
}[];
|
|
1069
|
+
disabled?: boolean | undefined;
|
|
1070
|
+
}, {
|
|
1071
|
+
$$type: string;
|
|
1072
|
+
value: {
|
|
1073
|
+
$$type: "query";
|
|
1074
|
+
value: {
|
|
1075
|
+
id?: any;
|
|
1076
|
+
label?: any;
|
|
1077
|
+
};
|
|
1078
|
+
disabled?: boolean | undefined;
|
|
1079
|
+
}[];
|
|
1080
|
+
disabled?: boolean | undefined;
|
|
1081
|
+
}>;
|
|
1082
|
+
key: string;
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
960
1085
|
readonly url: {
|
|
961
1086
|
readonly component: ControlComponent<({ placeholder: propPlaceholder, ariaLabel }: {
|
|
962
1087
|
placeholder?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -957,6 +957,131 @@ declare const controlTypes: {
|
|
|
957
957
|
key: "query";
|
|
958
958
|
};
|
|
959
959
|
};
|
|
960
|
+
readonly 'query-chips': {
|
|
961
|
+
readonly component: ControlComponent<(props: {
|
|
962
|
+
queryOptions: {
|
|
963
|
+
params: Record<string, unknown>;
|
|
964
|
+
url: string;
|
|
965
|
+
};
|
|
966
|
+
placeholder?: string;
|
|
967
|
+
minInputLength?: number;
|
|
968
|
+
}) => react.JSX.Element>;
|
|
969
|
+
readonly layout: "full";
|
|
970
|
+
readonly propTypeUtil: {
|
|
971
|
+
extract: (prop: unknown) => {
|
|
972
|
+
$$type: "query";
|
|
973
|
+
value: {
|
|
974
|
+
id?: any;
|
|
975
|
+
label?: any;
|
|
976
|
+
};
|
|
977
|
+
disabled?: boolean | undefined;
|
|
978
|
+
}[] | null;
|
|
979
|
+
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<string, {
|
|
980
|
+
$$type: "query";
|
|
981
|
+
value: {
|
|
982
|
+
id?: any;
|
|
983
|
+
label?: any;
|
|
984
|
+
};
|
|
985
|
+
disabled?: boolean | undefined;
|
|
986
|
+
}[]>;
|
|
987
|
+
create: {
|
|
988
|
+
(value: {
|
|
989
|
+
$$type: "query";
|
|
990
|
+
value: {
|
|
991
|
+
id?: any;
|
|
992
|
+
label?: any;
|
|
993
|
+
};
|
|
994
|
+
disabled?: boolean | undefined;
|
|
995
|
+
}[]): _elementor_editor_props.TransformablePropValue<string, {
|
|
996
|
+
$$type: "query";
|
|
997
|
+
value: {
|
|
998
|
+
id?: any;
|
|
999
|
+
label?: any;
|
|
1000
|
+
};
|
|
1001
|
+
disabled?: boolean | undefined;
|
|
1002
|
+
}[]>;
|
|
1003
|
+
(value: {
|
|
1004
|
+
$$type: "query";
|
|
1005
|
+
value: {
|
|
1006
|
+
id?: any;
|
|
1007
|
+
label?: any;
|
|
1008
|
+
};
|
|
1009
|
+
disabled?: boolean | undefined;
|
|
1010
|
+
}[], createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<string, {
|
|
1011
|
+
$$type: "query";
|
|
1012
|
+
value: {
|
|
1013
|
+
id?: any;
|
|
1014
|
+
label?: any;
|
|
1015
|
+
};
|
|
1016
|
+
disabled?: boolean | undefined;
|
|
1017
|
+
}[]>;
|
|
1018
|
+
(value: (prev?: {
|
|
1019
|
+
$$type: "query";
|
|
1020
|
+
value: {
|
|
1021
|
+
id?: any;
|
|
1022
|
+
label?: any;
|
|
1023
|
+
};
|
|
1024
|
+
disabled?: boolean | undefined;
|
|
1025
|
+
}[] | undefined) => {
|
|
1026
|
+
$$type: "query";
|
|
1027
|
+
value: {
|
|
1028
|
+
id?: any;
|
|
1029
|
+
label?: any;
|
|
1030
|
+
};
|
|
1031
|
+
disabled?: boolean | undefined;
|
|
1032
|
+
}[], createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<string, {
|
|
1033
|
+
$$type: "query";
|
|
1034
|
+
value: {
|
|
1035
|
+
id?: any;
|
|
1036
|
+
label?: any;
|
|
1037
|
+
};
|
|
1038
|
+
disabled?: boolean | undefined;
|
|
1039
|
+
}[]>;
|
|
1040
|
+
};
|
|
1041
|
+
schema: zod.ZodObject<{
|
|
1042
|
+
$$type: zod.ZodLiteral<string>;
|
|
1043
|
+
value: zod.ZodType<{
|
|
1044
|
+
$$type: "query";
|
|
1045
|
+
value: {
|
|
1046
|
+
id?: any;
|
|
1047
|
+
label?: any;
|
|
1048
|
+
};
|
|
1049
|
+
disabled?: boolean | undefined;
|
|
1050
|
+
}[], zod.ZodTypeDef, {
|
|
1051
|
+
$$type: "query";
|
|
1052
|
+
value: {
|
|
1053
|
+
id?: any;
|
|
1054
|
+
label?: any;
|
|
1055
|
+
};
|
|
1056
|
+
disabled?: boolean | undefined;
|
|
1057
|
+
}[]>;
|
|
1058
|
+
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
1059
|
+
}, "strict", zod.ZodTypeAny, {
|
|
1060
|
+
$$type: string;
|
|
1061
|
+
value: {
|
|
1062
|
+
$$type: "query";
|
|
1063
|
+
value: {
|
|
1064
|
+
id?: any;
|
|
1065
|
+
label?: any;
|
|
1066
|
+
};
|
|
1067
|
+
disabled?: boolean | undefined;
|
|
1068
|
+
}[];
|
|
1069
|
+
disabled?: boolean | undefined;
|
|
1070
|
+
}, {
|
|
1071
|
+
$$type: string;
|
|
1072
|
+
value: {
|
|
1073
|
+
$$type: "query";
|
|
1074
|
+
value: {
|
|
1075
|
+
id?: any;
|
|
1076
|
+
label?: any;
|
|
1077
|
+
};
|
|
1078
|
+
disabled?: boolean | undefined;
|
|
1079
|
+
}[];
|
|
1080
|
+
disabled?: boolean | undefined;
|
|
1081
|
+
}>;
|
|
1082
|
+
key: string;
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
960
1085
|
readonly url: {
|
|
961
1086
|
readonly component: ControlComponent<({ placeholder: propPlaceholder, ariaLabel }: {
|
|
962
1087
|
placeholder?: string;
|
package/dist/index.js
CHANGED
|
@@ -2029,6 +2029,7 @@ var React18 = __toESM(require("react"));
|
|
|
2029
2029
|
// src/controls-registry/controls-registry.tsx
|
|
2030
2030
|
var import_editor_controls = require("@elementor/editor-controls");
|
|
2031
2031
|
var import_editor_props4 = require("@elementor/editor-props");
|
|
2032
|
+
var queryArrayPropTypeUtil = (0, import_editor_props4.createArrayPropUtils)(import_editor_props4.queryPropTypeUtil.key, import_editor_props4.queryPropTypeUtil.schema);
|
|
2032
2033
|
var controlTypes = {
|
|
2033
2034
|
image: { component: import_editor_controls.ImageControl, layout: "custom", propTypeUtil: import_editor_props4.imagePropTypeUtil },
|
|
2034
2035
|
"svg-media": { component: import_editor_controls.SvgMediaControl, layout: "full", propTypeUtil: import_editor_props4.svgSrcPropTypeUtil },
|
|
@@ -2039,6 +2040,7 @@ var controlTypes = {
|
|
|
2039
2040
|
chips: { component: import_editor_controls.ChipsControl, layout: "full", propTypeUtil: import_editor_props4.stringArrayPropTypeUtil },
|
|
2040
2041
|
link: { component: import_editor_controls.LinkControl, layout: "custom", propTypeUtil: import_editor_props4.linkPropTypeUtil },
|
|
2041
2042
|
query: { component: import_editor_controls.QueryControl, layout: "full", propTypeUtil: import_editor_props4.queryPropTypeUtil },
|
|
2043
|
+
"query-chips": { component: import_editor_controls.QueryChipsControl, layout: "full", propTypeUtil: queryArrayPropTypeUtil },
|
|
2042
2044
|
url: { component: import_editor_controls.UrlControl, layout: "full", propTypeUtil: import_editor_props4.stringPropTypeUtil },
|
|
2043
2045
|
switch: { component: import_editor_controls.SwitchControl, layout: "two-columns", propTypeUtil: import_editor_props4.booleanPropTypeUtil },
|
|
2044
2046
|
number: { component: import_editor_controls.NumberControl, layout: "two-columns", propTypeUtil: import_editor_props4.numberPropTypeUtil },
|