This commit is contained in:
proelements
2026-05-04 11:47:14 +03:00
parent b499583e5a
commit 872bc6fb57
375 changed files with 39949 additions and 9185 deletions
@@ -33,7 +33,7 @@ function useNotesActionProps() {
icon: _elementor_icons__WEBPACK_IMPORTED_MODULE_1__.MessageIcon,
onClick: () => {
const extendedWindow = window;
const eventsManager = extendedWindow?.elementorCommon?.eventsManager || extendedWindow?.elementor?.editorEvents;
const eventsManager = extendedWindow?.elementorCommon?.eventsManager;
const config = eventsManager?.config;
if (config) {
eventsManager.dispatchEvent(config.names.topBar.notes, {
@@ -138,6 +138,12 @@ module.exports = window["wp"]["i18n"];
/******/ };
/******/
/******/ // Execute the module function
/******/ if (!(moduleId in __webpack_modules__)) {
/******/ delete __webpack_module_cache__[moduleId];
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
/******/ e.code = 'MODULE_NOT_FOUND';
/******/ throw e;
/******/ }
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
@@ -187,7 +193,7 @@ module.exports = window["wp"]["i18n"];
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
!function() {
/*!*********************************************************!*\
!*** ./packages/packages/pro/editor-notes/src/index.ts ***!
@@ -202,4 +208,4 @@ __webpack_require__.r(__webpack_exports__);
(window.elementorV2 = window.elementorV2 || {}).editorNotes = __webpack_exports__;
/******/ })()
;
window.elementorV2.editorNotes?.init?.();
window.elementorV2.editorNotes?.init?.();
+1 -1
View File
@@ -1 +1 @@
!function(){"use strict";var e={d:function(o,t){for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{init:function(){return d}});var t=window.elementorV2.editorAppBar,n=window.elementorV2.editorV1Adapters,i=window.elementorV2.icons,r=window.wp.i18n;function s(){const{isActive:e,isBlocked:o}=(0,n.__privateUseRouteStatus)("notes",{allowedEditModes:["edit","preview"]});return{title:(0,r.__)("Notes","elementor-pro"),icon:i.MessageIcon,onClick:()=>{const e=window,o=e?.elementorCommon?.eventsManager||e?.elementor?.editorEvents,t=o?.config;t&&o.dispatchEvent(t.names.topBar.notes,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.notes,trigger:t.triggers.toggleClick,element:t.elements.buttonIcon}),(0,n.__privateRunCommand)("notes/toggle")},selected:e,disabled:o}}function d(){t.mainMenu.registerAction({id:"toggle-notes",group:"default",priority:20,useProps:s})}(window.elementorV2=window.elementorV2||{}).editorNotes=o}(),window.elementorV2.editorNotes?.init?.();
!function(){"use strict";var e={d:function(o,t){for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{init:function(){return d}});var t=window.elementorV2.editorAppBar,n=window.elementorV2.editorV1Adapters,i=window.elementorV2.icons,r=window.wp.i18n;function s(){const{isActive:e,isBlocked:o}=(0,n.__privateUseRouteStatus)("notes",{allowedEditModes:["edit","preview"]});return{title:(0,r.__)("Notes","elementor-pro"),icon:i.MessageIcon,onClick:()=>{const e=window,o=e?.elementorCommon?.eventsManager,t=o?.config;t&&o.dispatchEvent(t.names.topBar.notes,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.notes,trigger:t.triggers.toggleClick,element:t.elements.buttonIcon}),(0,n.__privateRunCommand)("notes/toggle")},selected:e,disabled:o}}function d(){t.mainMenu.registerAction({id:"toggle-notes",group:"default",priority:20,useProps:s})}(window.elementorV2=window.elementorV2||{}).editorNotes=o}(),window.elementorV2.editorNotes?.init?.();
@@ -1 +1 @@
__( 'Notes', 'elementor-pro' );
__( 'Notes', 'elementor-pro' );