@elementor/editor-controls 4.1.0-737 → 4.1.0-739

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.js CHANGED
@@ -4162,8 +4162,9 @@ var StyledCardMediaContainer = (0, import_ui56.styled)(import_ui56.Stack)`
4162
4162
  var MODE_BROWSE = { mode: "browse" };
4163
4163
  var MODE_UPLOAD = { mode: "upload" };
4164
4164
  var SvgMediaControl = createControl(() => {
4165
- const { value, setValue } = useBoundProp(import_editor_props28.imageSrcPropTypeUtil);
4166
- const { id, url } = value ?? {};
4165
+ const { value, setValue } = useBoundProp(import_editor_props28.svgSrcPropTypeUtil);
4166
+ const id = value?.id;
4167
+ const url = value?.url;
4167
4168
  const { data: attachment, isFetching } = (0, import_wp_media2.useWpMediaAttachment)(id?.value || null);
4168
4169
  const src = attachment?.url ?? url?.value ?? null;
4169
4170
  const { data: allowSvgUpload } = useUnfilteredFilesUpload();
@@ -4179,7 +4180,7 @@ var SvgMediaControl = createControl(() => {
4179
4180
  $$type: "image-attachment-id",
4180
4181
  value: selectedAttachment.id
4181
4182
  },
4182
- url: null
4183
+ url: import_editor_props28.urlPropTypeUtil.create(selectedAttachment.url)
4183
4184
  });
4184
4185
  }
4185
4186
  });