@elementor/editor-components 3.32.0-50 → 3.32.0-51
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 +26 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -2
- package/src/components/components-tab.tsx +6 -0
- package/src/init.ts +12 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/index.ts
|
|
@@ -24,8 +34,24 @@ __export(index_exports, {
|
|
|
24
34
|
});
|
|
25
35
|
module.exports = __toCommonJS(index_exports);
|
|
26
36
|
|
|
37
|
+
// src/init.ts
|
|
38
|
+
var import_editor_elements_panel = require("@elementor/editor-elements-panel");
|
|
39
|
+
var import_i18n = require("@wordpress/i18n");
|
|
40
|
+
|
|
41
|
+
// src/components/components-tab.tsx
|
|
42
|
+
var React = __toESM(require("react"));
|
|
43
|
+
var import_ui = require("@elementor/ui");
|
|
44
|
+
function ComponentsTab() {
|
|
45
|
+
return /* @__PURE__ */ React.createElement(import_ui.Box, { px: 2 }, "This is the Components tab.");
|
|
46
|
+
}
|
|
47
|
+
|
|
27
48
|
// src/init.ts
|
|
28
49
|
function init() {
|
|
50
|
+
(0, import_editor_elements_panel.injectTab)({
|
|
51
|
+
id: "components",
|
|
52
|
+
label: (0, import_i18n.__)("Components", "elementor"),
|
|
53
|
+
component: ComponentsTab
|
|
54
|
+
});
|
|
29
55
|
}
|
|
30
56
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
57
|
0 && (module.exports = {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/init.ts"],"sourcesContent":["export { init } from './init';\n","
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/init.ts","../src/components/components-tab.tsx"],"sourcesContent":["export { init } from './init';\n","import { injectTab } from '@elementor/editor-elements-panel';\nimport { __ } from '@wordpress/i18n';\n\nimport { ComponentsTab } from './components/components-tab';\n\nexport function init() {\n\tinjectTab( {\n\t\tid: 'components',\n\t\tlabel: __( 'Components', 'elementor' ),\n\t\tcomponent: ComponentsTab,\n\t} );\n}\n","import * as React from 'react';\nimport { Box } from '@elementor/ui';\n\nexport function ComponentsTab() {\n\treturn <Box px={ 2 }>This is the Components tab.</Box>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mCAA0B;AAC1B,kBAAmB;;;ACDnB,YAAuB;AACvB,gBAAoB;AAEb,SAAS,gBAAgB;AAC/B,SAAO,oCAAC,iBAAI,IAAK,KAAI,6BAA2B;AACjD;;;ADAO,SAAS,OAAO;AACtB,8CAAW;AAAA,IACV,IAAI;AAAA,IACJ,WAAO,gBAAI,cAAc,WAAY;AAAA,IACrC,WAAW;AAAA,EACZ,CAAE;AACH;","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
// src/init.ts
|
|
2
|
+
import { injectTab } from "@elementor/editor-elements-panel";
|
|
3
|
+
import { __ } from "@wordpress/i18n";
|
|
4
|
+
|
|
5
|
+
// src/components/components-tab.tsx
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { Box } from "@elementor/ui";
|
|
8
|
+
function ComponentsTab() {
|
|
9
|
+
return /* @__PURE__ */ React.createElement(Box, { px: 2 }, "This is the Components tab.");
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
// src/init.ts
|
|
2
13
|
function init() {
|
|
14
|
+
injectTab({
|
|
15
|
+
id: "components",
|
|
16
|
+
label: __("Components", "elementor"),
|
|
17
|
+
component: ComponentsTab
|
|
18
|
+
});
|
|
3
19
|
}
|
|
4
20
|
export {
|
|
5
21
|
init
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/init.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/init.ts","../src/components/components-tab.tsx"],"sourcesContent":["import { injectTab } from '@elementor/editor-elements-panel';\nimport { __ } from '@wordpress/i18n';\n\nimport { ComponentsTab } from './components/components-tab';\n\nexport function init() {\n\tinjectTab( {\n\t\tid: 'components',\n\t\tlabel: __( 'Components', 'elementor' ),\n\t\tcomponent: ComponentsTab,\n\t} );\n}\n","import * as React from 'react';\nimport { Box } from '@elementor/ui';\n\nexport function ComponentsTab() {\n\treturn <Box px={ 2 }>This is the Components tab.</Box>;\n}\n"],"mappings":";AAAA,SAAS,iBAAiB;AAC1B,SAAS,UAAU;;;ACDnB,YAAY,WAAW;AACvB,SAAS,WAAW;AAEb,SAAS,gBAAgB;AAC/B,SAAO,oCAAC,OAAI,IAAK,KAAI,6BAA2B;AACjD;;;ADAO,SAAS,OAAO;AACtB,YAAW;AAAA,IACV,IAAI;AAAA,IACJ,OAAO,GAAI,cAAc,WAAY;AAAA,IACrC,WAAW;AAAA,EACZ,CAAE;AACH;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-components",
|
|
3
3
|
"description": "Elementor editor components",
|
|
4
|
-
"version": "3.32.0-
|
|
4
|
+
"version": "3.32.0-51",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -39,7 +39,11 @@
|
|
|
39
39
|
"build": "tsup --config=../../tsup.build.ts",
|
|
40
40
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
41
41
|
},
|
|
42
|
-
"dependencies": {
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@elementor/ui": "1.36.8",
|
|
44
|
+
"@elementor/editor-elements-panel": "3.32.0-51",
|
|
45
|
+
"@wordpress/i18n": "^5.13.0"
|
|
46
|
+
},
|
|
43
47
|
"peerDependencies": {
|
|
44
48
|
"react": "^18.3.1",
|
|
45
49
|
"react-dom": "^18.3.1"
|
package/src/init.ts
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { injectTab } from '@elementor/editor-elements-panel';
|
|
2
|
+
import { __ } from '@wordpress/i18n';
|
|
3
|
+
|
|
4
|
+
import { ComponentsTab } from './components/components-tab';
|
|
5
|
+
|
|
6
|
+
export function init() {
|
|
7
|
+
injectTab( {
|
|
8
|
+
id: 'components',
|
|
9
|
+
label: __( 'Components', 'elementor' ),
|
|
10
|
+
component: ComponentsTab,
|
|
11
|
+
} );
|
|
12
|
+
}
|