@elementor/editor-canvas 3.35.0-325 → 3.35.0-326

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
@@ -974,11 +974,12 @@ var dateTimeTransformer = createTransformer((values) => {
974
974
  });
975
975
 
976
976
  // src/transformers/settings/link-transformer.ts
977
- var linkTransformer = createTransformer(({ destination, isTargetBlank }) => {
977
+ var linkTransformer = createTransformer(({ destination, isTargetBlank, tag }) => {
978
978
  return {
979
979
  // The real post URL is not relevant in the Editor.
980
980
  href: typeof destination === "number" ? "#post-id-" + destination : destination,
981
- target: isTargetBlank ? "_blank" : "_self"
981
+ target: isTargetBlank ? "_blank" : "_self",
982
+ tag: tag ?? "a"
982
983
  };
983
984
  });
984
985
 
package/dist/index.mjs CHANGED
@@ -939,11 +939,12 @@ var dateTimeTransformer = createTransformer((values) => {
939
939
  });
940
940
 
941
941
  // src/transformers/settings/link-transformer.ts
942
- var linkTransformer = createTransformer(({ destination, isTargetBlank }) => {
942
+ var linkTransformer = createTransformer(({ destination, isTargetBlank, tag }) => {
943
943
  return {
944
944
  // The real post URL is not relevant in the Editor.
945
945
  href: typeof destination === "number" ? "#post-id-" + destination : destination,
946
- target: isTargetBlank ? "_blank" : "_self"
946
+ target: isTargetBlank ? "_blank" : "_self",
947
+ tag: tag ?? "a"
947
948
  };
948
949
  });
949
950
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-canvas",
3
3
  "description": "Elementor Editor Canvas",
4
- "version": "3.35.0-325",
4
+ "version": "3.35.0-326",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -37,23 +37,23 @@
37
37
  "react-dom": "^18.3.1"
38
38
  },
39
39
  "dependencies": {
40
- "@elementor/editor": "3.35.0-325",
41
- "@elementor/editor-controls": "3.35.0-325",
42
- "@elementor/editor-documents": "3.35.0-325",
43
- "@elementor/editor-elements": "3.35.0-325",
44
- "@elementor/editor-interactions": "3.35.0-325",
45
- "@elementor/editor-notifications": "3.35.0-325",
46
- "@elementor/editor-props": "3.35.0-325",
47
- "@elementor/editor-responsive": "3.35.0-325",
48
- "@elementor/editor-styles": "3.35.0-325",
49
- "@elementor/editor-styles-repository": "3.35.0-325",
50
- "@elementor/editor-v1-adapters": "3.35.0-325",
51
- "@elementor/editor-mcp": "3.35.0-325",
52
- "@elementor/schema": "3.35.0-325",
53
- "@elementor/twing": "3.35.0-325",
40
+ "@elementor/editor": "3.35.0-326",
41
+ "@elementor/editor-controls": "3.35.0-326",
42
+ "@elementor/editor-documents": "3.35.0-326",
43
+ "@elementor/editor-elements": "3.35.0-326",
44
+ "@elementor/editor-interactions": "3.35.0-326",
45
+ "@elementor/editor-notifications": "3.35.0-326",
46
+ "@elementor/editor-props": "3.35.0-326",
47
+ "@elementor/editor-responsive": "3.35.0-326",
48
+ "@elementor/editor-styles": "3.35.0-326",
49
+ "@elementor/editor-styles-repository": "3.35.0-326",
50
+ "@elementor/editor-v1-adapters": "3.35.0-326",
51
+ "@elementor/editor-mcp": "3.35.0-326",
52
+ "@elementor/schema": "3.35.0-326",
53
+ "@elementor/twing": "3.35.0-326",
54
54
  "@elementor/ui": "1.36.17",
55
- "@elementor/utils": "3.35.0-325",
56
- "@elementor/wp-media": "3.35.0-325",
55
+ "@elementor/utils": "3.35.0-326",
56
+ "@elementor/wp-media": "3.35.0-326",
57
57
  "@floating-ui/react": "^0.27.5",
58
58
  "@wordpress/i18n": "^5.13.0"
59
59
  },
@@ -31,6 +31,7 @@ export function linkPropType() {
31
31
  shape: {
32
32
  destination: stringPropType(),
33
33
  isTargetBlank: booleanPropType(),
34
+ tag: stringPropType(),
34
35
  },
35
36
  } );
36
37
  }
@@ -82,8 +82,8 @@ describe( 'settings props resolver', () => {
82
82
  link2: linkPropType(),
83
83
  },
84
84
  expected: {
85
- link1: { href: 'https://elementor.com/blank', target: '_blank' },
86
- link2: { href: 'https://elementor.com/self', target: '_self' },
85
+ link1: { href: 'https://elementor.com/blank', target: '_blank', tag: 'a' },
86
+ link2: { href: 'https://elementor.com/self', target: '_self', tag: 'a' },
87
87
  },
88
88
  },
89
89
  {
@@ -3,12 +3,14 @@ import { createTransformer } from '../create-transformer';
3
3
  type Link = {
4
4
  destination: string | number;
5
5
  isTargetBlank: boolean;
6
+ tag: string;
6
7
  };
7
8
 
8
- export const linkTransformer = createTransformer( ( { destination, isTargetBlank }: Link ) => {
9
+ export const linkTransformer = createTransformer( ( { destination, isTargetBlank, tag }: Link ) => {
9
10
  return {
10
11
  // The real post URL is not relevant in the Editor.
11
12
  href: typeof destination === 'number' ? '#post-id-' + destination : destination,
12
13
  target: isTargetBlank ? '_blank' : '_self',
14
+ tag: tag ?? 'a',
13
15
  };
14
16
  } );