@elementor/editor-editing-panel 3.33.0-211 → 3.33.0-213
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 +68 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/controls-registry/controls-registry.tsx +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -1102,6 +1102,74 @@ declare const controlTypes: {
|
|
|
1102
1102
|
key: "string";
|
|
1103
1103
|
};
|
|
1104
1104
|
};
|
|
1105
|
+
readonly 'date-time': {
|
|
1106
|
+
readonly component: ControlComponent<({ inputDisabled }: {
|
|
1107
|
+
inputDisabled?: boolean;
|
|
1108
|
+
}) => react.JSX.Element>;
|
|
1109
|
+
readonly layout: "full";
|
|
1110
|
+
readonly propTypeUtil: {
|
|
1111
|
+
extract: (prop: unknown) => {
|
|
1112
|
+
date?: any;
|
|
1113
|
+
time?: any;
|
|
1114
|
+
} | null;
|
|
1115
|
+
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"date-time", {
|
|
1116
|
+
date?: any;
|
|
1117
|
+
time?: any;
|
|
1118
|
+
}>;
|
|
1119
|
+
create: {
|
|
1120
|
+
(value: {
|
|
1121
|
+
date?: any;
|
|
1122
|
+
time?: any;
|
|
1123
|
+
}): _elementor_editor_props.TransformablePropValue<"date-time", {
|
|
1124
|
+
date?: any;
|
|
1125
|
+
time?: any;
|
|
1126
|
+
}>;
|
|
1127
|
+
(value: {
|
|
1128
|
+
date?: any;
|
|
1129
|
+
time?: any;
|
|
1130
|
+
}, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-time", {
|
|
1131
|
+
date?: any;
|
|
1132
|
+
time?: any;
|
|
1133
|
+
}>;
|
|
1134
|
+
(value: (prev?: {
|
|
1135
|
+
date?: any;
|
|
1136
|
+
time?: any;
|
|
1137
|
+
} | undefined) => {
|
|
1138
|
+
date?: any;
|
|
1139
|
+
time?: any;
|
|
1140
|
+
}, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-time", {
|
|
1141
|
+
date?: any;
|
|
1142
|
+
time?: any;
|
|
1143
|
+
}>;
|
|
1144
|
+
};
|
|
1145
|
+
schema: zod.ZodObject<{
|
|
1146
|
+
$$type: zod.ZodLiteral<"date-time">;
|
|
1147
|
+
value: zod.ZodType<{
|
|
1148
|
+
date?: any;
|
|
1149
|
+
time?: any;
|
|
1150
|
+
}, zod.ZodTypeDef, {
|
|
1151
|
+
date?: any;
|
|
1152
|
+
time?: any;
|
|
1153
|
+
}>;
|
|
1154
|
+
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
1155
|
+
}, "strict", zod.ZodTypeAny, {
|
|
1156
|
+
$$type: "date-time";
|
|
1157
|
+
value: {
|
|
1158
|
+
date?: any;
|
|
1159
|
+
time?: any;
|
|
1160
|
+
};
|
|
1161
|
+
disabled?: boolean | undefined;
|
|
1162
|
+
}, {
|
|
1163
|
+
$$type: "date-time";
|
|
1164
|
+
value: {
|
|
1165
|
+
date?: any;
|
|
1166
|
+
time?: any;
|
|
1167
|
+
};
|
|
1168
|
+
disabled?: boolean | undefined;
|
|
1169
|
+
}>;
|
|
1170
|
+
key: "date-time";
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1105
1173
|
};
|
|
1106
1174
|
type ControlType = keyof typeof controlTypes;
|
|
1107
1175
|
declare class ControlsRegistry {
|
package/dist/index.d.ts
CHANGED
|
@@ -1102,6 +1102,74 @@ declare const controlTypes: {
|
|
|
1102
1102
|
key: "string";
|
|
1103
1103
|
};
|
|
1104
1104
|
};
|
|
1105
|
+
readonly 'date-time': {
|
|
1106
|
+
readonly component: ControlComponent<({ inputDisabled }: {
|
|
1107
|
+
inputDisabled?: boolean;
|
|
1108
|
+
}) => react.JSX.Element>;
|
|
1109
|
+
readonly layout: "full";
|
|
1110
|
+
readonly propTypeUtil: {
|
|
1111
|
+
extract: (prop: unknown) => {
|
|
1112
|
+
date?: any;
|
|
1113
|
+
time?: any;
|
|
1114
|
+
} | null;
|
|
1115
|
+
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"date-time", {
|
|
1116
|
+
date?: any;
|
|
1117
|
+
time?: any;
|
|
1118
|
+
}>;
|
|
1119
|
+
create: {
|
|
1120
|
+
(value: {
|
|
1121
|
+
date?: any;
|
|
1122
|
+
time?: any;
|
|
1123
|
+
}): _elementor_editor_props.TransformablePropValue<"date-time", {
|
|
1124
|
+
date?: any;
|
|
1125
|
+
time?: any;
|
|
1126
|
+
}>;
|
|
1127
|
+
(value: {
|
|
1128
|
+
date?: any;
|
|
1129
|
+
time?: any;
|
|
1130
|
+
}, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-time", {
|
|
1131
|
+
date?: any;
|
|
1132
|
+
time?: any;
|
|
1133
|
+
}>;
|
|
1134
|
+
(value: (prev?: {
|
|
1135
|
+
date?: any;
|
|
1136
|
+
time?: any;
|
|
1137
|
+
} | undefined) => {
|
|
1138
|
+
date?: any;
|
|
1139
|
+
time?: any;
|
|
1140
|
+
}, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-time", {
|
|
1141
|
+
date?: any;
|
|
1142
|
+
time?: any;
|
|
1143
|
+
}>;
|
|
1144
|
+
};
|
|
1145
|
+
schema: zod.ZodObject<{
|
|
1146
|
+
$$type: zod.ZodLiteral<"date-time">;
|
|
1147
|
+
value: zod.ZodType<{
|
|
1148
|
+
date?: any;
|
|
1149
|
+
time?: any;
|
|
1150
|
+
}, zod.ZodTypeDef, {
|
|
1151
|
+
date?: any;
|
|
1152
|
+
time?: any;
|
|
1153
|
+
}>;
|
|
1154
|
+
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
1155
|
+
}, "strict", zod.ZodTypeAny, {
|
|
1156
|
+
$$type: "date-time";
|
|
1157
|
+
value: {
|
|
1158
|
+
date?: any;
|
|
1159
|
+
time?: any;
|
|
1160
|
+
};
|
|
1161
|
+
disabled?: boolean | undefined;
|
|
1162
|
+
}, {
|
|
1163
|
+
$$type: "date-time";
|
|
1164
|
+
value: {
|
|
1165
|
+
date?: any;
|
|
1166
|
+
time?: any;
|
|
1167
|
+
};
|
|
1168
|
+
disabled?: boolean | undefined;
|
|
1169
|
+
}>;
|
|
1170
|
+
key: "date-time";
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1105
1173
|
};
|
|
1106
1174
|
type ControlType = keyof typeof controlTypes;
|
|
1107
1175
|
declare class ControlsRegistry {
|
package/dist/index.js
CHANGED
|
@@ -4734,7 +4734,8 @@ var controlTypes = {
|
|
|
4734
4734
|
repeatable: { component: import_editor_controls50.RepeatableControl, layout: "full", propTypeUtil: void 0 },
|
|
4735
4735
|
"key-value": { component: import_editor_controls50.KeyValueControl, layout: "full", propTypeUtil: import_editor_props13.keyValuePropTypeUtil },
|
|
4736
4736
|
"html-tag": { component: import_editor_controls50.HtmlTagControl, layout: "two-columns", propTypeUtil: import_editor_props13.stringPropTypeUtil },
|
|
4737
|
-
toggle: { component: import_editor_controls50.ToggleControl, layout: "full", propTypeUtil: import_editor_props13.stringPropTypeUtil }
|
|
4737
|
+
toggle: { component: import_editor_controls50.ToggleControl, layout: "full", propTypeUtil: import_editor_props13.stringPropTypeUtil },
|
|
4738
|
+
"date-time": { component: import_editor_controls50.DateTimeControl, layout: "full", propTypeUtil: import_editor_props13.DateTimePropTypeUtil }
|
|
4738
4739
|
};
|
|
4739
4740
|
var ControlsRegistry = class {
|
|
4740
4741
|
constructor(controlsRegistry2) {
|