first commit

This commit is contained in:
2026-05-25 14:34:29 +02:00
commit 64f5e06629
4236 changed files with 1314148 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* This file is generated by Webpack, do not edit it directly.
*/
return [
'handle' => 'elementor-v2-unlock-v4-promo',
'deps' => [
'elementor-v2-editor-current-user',
'elementor-v2-editor-elements-panel-notice',
'elementor-v2-editor-notifications',
'elementor-v2-editor-ui',
'elementor-v2-http-client',
'elementor-v2-ui',
'react',
'wp-i18n',
],
];

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,69 @@
/*! ../hooks/use-promo-suppressed-message */
/*! ./components/atomic-elements-promo */
/*! ./init */
/*! @elementor/editor-current-user */
/*! @elementor/editor-elements-panel-notice */
/*! @elementor/editor-notifications */
/*! @elementor/editor-ui */
/*! @elementor/http-client */
/*! @elementor/ui */
/*! @wordpress/i18n */
/*! react */
/*!**************************!*\
!*** external ["React"] ***!
\**************************/
/*!******************************!*\
!*** external ["wp","i18n"] ***!
\******************************/
/*!*************************************!*\
!*** external ["elementorV2","ui"] ***!
\*************************************/
/*!*******************************************!*\
!*** external ["elementorV2","editorUi"] ***!
\*******************************************/
/*!*********************************************!*\
!*** external ["elementorV2","httpClient"] ***!
\*********************************************/
/*!***************************************************!*\
!*** ./packages/apps/unlock-v4-promo/src/init.ts ***!
\***************************************************/
/*!****************************************************!*\
!*** ./packages/apps/unlock-v4-promo/src/index.ts ***!
\****************************************************/
/*!****************************************************!*\
!*** external ["elementorV2","editorCurrentUser"] ***!
\****************************************************/
/*!******************************************************!*\
!*** external ["elementorV2","editorNotifications"] ***!
\******************************************************/
/*!************************************************************!*\
!*** external ["elementorV2","editorElementsPanelNotice"] ***!
\************************************************************/
/*!********************************************************************************!*\
!*** ./packages/apps/unlock-v4-promo/src/components/atomic-elements-promo.tsx ***!
\********************************************************************************/
/*!*********************************************************************************!*\
!*** ./packages/apps/unlock-v4-promo/src/hooks/use-promo-suppressed-message.ts ***!
\*********************************************************************************/

View File

@@ -0,0 +1 @@
!function(){"use strict";var e={d:function(t,o){for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AtomicElementsPromo:function(){return y},init:function(){return w}});var o=window.elementorV2.editorElementsPanelNotice,n=window.React,r=window.elementorV2.editorCurrentUser,i=window.elementorV2.editorNotifications,l=window.elementorV2.editorUi,a=window.elementorV2.httpClient,c=window.elementorV2.ui,s=window.wp.i18n;const m="atomic_elements_promo",d=()=>{const[e,t]=(0,r.useSuppressedMessage)(m),o=(0,n.useCallback)(()=>{e||(t(),(0,i.notify)({type:"default",message:(0,s.__)("You can enable the Atomic editor anytime from Editor Settings.","elementor"),id:m}))},[e,t]);return[e,o]},p="https://assets.elementor.com/v4-promotion/v1/images/atomic_elements_section_260.png",u="https://go.elementor.com/wp-dash-opt-in-v4-help-center/";function y(){const[e,t]=d(),o=(0,r.getCurrentUser)()?.capabilities?.includes("manage_options"),m=(0,n.useCallback)(async()=>{try{(await(0,a.httpService)().post("elementor/v1/operations/opt-in-v4")).data.success&&window.location.reload()}catch{(0,i.notify)({type:"error",message:(0,s.__)("Failed to activate Atomic elements","elementor"),id:"atomic-elements-promo-error"})}},[]);return e||!o?null:n.createElement(l.ThemeProvider,null,n.createElement(c.Divider,null),n.createElement(c.Box,{sx:{bgcolor:"background.default",display:"flex",flexDirection:"column"}},n.createElement(c.Box,{sx:{display:"flex",alignItems:"center",gap:1,pl:2.5,pr:1,py:1}},n.createElement(c.Typography,{variant:"subtitle2",sx:{flexGrow:1,gap:1,display:"flex",alignItems:"center"}},(0,s.__)("Atomic Elements","elementor"),n.createElement(c.Chip,{label:(0,s.__)("New","elementor"),size:"tiny",variant:"standard",color:"secondary"})),n.createElement(c.CloseButton,{slotProps:{icon:{fontSize:"small"}},onClick:t})),n.createElement(c.Box,{sx:{maxHeight:205,mx:2,overflow:"hidden"}},n.createElement(c.Box,{component:"img",src:p,alt:"",sx:{width:"100%",objectFit:"cover",objectPosition:"center",display:"block"}})),n.createElement(c.Box,{sx:{pl:2.5,pr:4,pt:2}},n.createElement(c.Typography,{variant:"caption",color:"text.tertiary"},(0,s.__)("Build with modern, flexible elements designed for reusable styles and cleaner layouts. Your existing site and content stay exactly the same.","elementor"))),n.createElement(c.Box,{sx:{display:"flex",justifyContent:"flex-end",gap:1,pb:1.5,pl:2,pr:2.5,pt:1}},n.createElement(c.Button,{variant:"text",size:"small",color:"secondary",href:u,target:"_blank"},(0,s.__)("Learn more","elementor")),n.createElement(c.Button,{variant:"contained",size:"small",color:"inherit",sx:{bgcolor:"text.primary",color:"background.paper","&:hover":{bgcolor:"text.secondary",color:"background.paper"}},onClick:m},(0,s.__)("Activate now","elementor")))),n.createElement(c.Divider,null))}function w(){const{experimentalFeatures:e={}}=window.elementorCommon?.config||{},t=e?.e_atomic_elements,n=e?.container;!t&&n&&(0,o.register)(y)}(window.elementorV2=window.elementorV2||{}).unlockV4Promo=t}(),window.elementorV2.unlockV4Promo?.init?.();

View File

@@ -0,0 +1,10 @@
__( 'You can enable the Atomic editor anytime from Editor Settings.', 'elementor' );
__( 'Failed to activate Atomic elements', 'elementor' );
__( 'Atomic Elements', 'elementor' );
__( 'New', 'elementor' );
__(
'Build with modern, flexible elements designed for reusable styles and cleaner layouts. Your existing site and content stay exactly the same.',
'elementor'
);
__( 'Learn more', 'elementor' );
__( 'Activate now', 'elementor' );