@elementor/editor-app-bar 0.10.9 → 0.11.0
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/CHANGELOG.md +11 -0
- package/dist/index.js +117 -94
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +68 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/extensions/documents-save/hooks/__tests__/use-document-view-page-props.test.ts +43 -0
- package/src/extensions/documents-save/hooks/use-document-view-page-props.ts +16 -0
- package/src/extensions/documents-save/index.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.11.0](https://github.com/elementor/elementor-packages/compare/@elementor/editor-app-bar@0.10.9...@elementor/editor-app-bar@0.11.0) (2024-05-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **editor-app-bar:** new view page button [ED-14270] ([#180](https://github.com/elementor/elementor-packages/issues/180)) ([692925c](https://github.com/elementor/elementor-packages/commit/692925ce7110742453655fcdaa27b3b40c10f242))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.10.9](https://github.com/elementor/elementor-packages/compare/@elementor/editor-app-bar@0.10.8...@elementor/editor-app-bar@0.10.9) (2024-05-07)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @elementor/editor-app-bar
|
package/dist/index.js
CHANGED
|
@@ -187,9 +187,25 @@ function useDocumentSaveTemplateProps() {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
// src/extensions/documents-save/hooks/use-document-view-page-props.ts
|
|
191
|
+
var import_i18n5 = require("@wordpress/i18n");
|
|
192
|
+
var import_icons5 = require("@elementor/icons");
|
|
193
|
+
var import_editor_documents5 = require("@elementor/editor-documents");
|
|
194
|
+
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
195
|
+
function useDocumentViewPageProps() {
|
|
196
|
+
const document2 = (0, import_editor_documents5.__useActiveDocument)();
|
|
197
|
+
return {
|
|
198
|
+
icon: import_icons5.EyeIcon,
|
|
199
|
+
title: (0, import_i18n5.__)("View Page", "elementor"),
|
|
200
|
+
onClick: () => document2?.id && (0, import_editor_v1_adapters4.__privateRunCommand)("editor/documents/view", {
|
|
201
|
+
id: document2.id
|
|
202
|
+
})
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|
|
190
206
|
// src/extensions/documents-save/components/primary-action.tsx
|
|
191
207
|
var React3 = __toESM(require("react"));
|
|
192
|
-
var
|
|
208
|
+
var import_i18n6 = require("@wordpress/i18n");
|
|
193
209
|
|
|
194
210
|
// src/extensions/documents-save/components/primary-action-menu.tsx
|
|
195
211
|
var React2 = __toESM(require("react"));
|
|
@@ -235,13 +251,13 @@ function PrimaryActionMenu(props) {
|
|
|
235
251
|
|
|
236
252
|
// src/extensions/documents-save/components/primary-action.tsx
|
|
237
253
|
var import_ui3 = require("@elementor/ui");
|
|
238
|
-
var
|
|
239
|
-
var
|
|
240
|
-
var
|
|
254
|
+
var import_editor_documents6 = require("@elementor/editor-documents");
|
|
255
|
+
var import_icons6 = require("@elementor/icons");
|
|
256
|
+
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
241
257
|
function PrimaryAction() {
|
|
242
|
-
const document2 = (0,
|
|
243
|
-
const { save } = (0,
|
|
244
|
-
const isPreviewMode = (0,
|
|
258
|
+
const document2 = (0, import_editor_documents6.__useActiveDocument)();
|
|
259
|
+
const { save } = (0, import_editor_documents6.__useActiveDocumentActions)();
|
|
260
|
+
const isPreviewMode = (0, import_editor_v1_adapters5.__privateUseIsPreviewMode)();
|
|
245
261
|
const popupState = (0, import_ui3.usePopupState)({
|
|
246
262
|
variant: "popover",
|
|
247
263
|
popupId: "document-save-options"
|
|
@@ -270,7 +286,7 @@ function PrimaryAction() {
|
|
|
270
286
|
), /* @__PURE__ */ React3.createElement(
|
|
271
287
|
import_ui3.Tooltip,
|
|
272
288
|
{
|
|
273
|
-
title: (0,
|
|
289
|
+
title: (0, import_i18n6.__)("Save Options", "elementor"),
|
|
274
290
|
PopperProps: {
|
|
275
291
|
sx: {
|
|
276
292
|
"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom": {
|
|
@@ -287,14 +303,14 @@ function PrimaryAction() {
|
|
|
287
303
|
...(0, import_ui3.bindTrigger)(popupState),
|
|
288
304
|
sx: { px: 0, height: "100%", borderRadius: 0 },
|
|
289
305
|
disabled: isSaveOptionsDisabled,
|
|
290
|
-
"aria-label": (0,
|
|
306
|
+
"aria-label": (0, import_i18n6.__)("Save Options", "elementor")
|
|
291
307
|
},
|
|
292
|
-
/* @__PURE__ */ React3.createElement(
|
|
308
|
+
/* @__PURE__ */ React3.createElement(import_icons6.ChevronDownIcon, null)
|
|
293
309
|
))
|
|
294
310
|
)), /* @__PURE__ */ React3.createElement(PrimaryActionMenu, { ...(0, import_ui3.bindMenu)(popupState), onClick: popupState.close }));
|
|
295
311
|
}
|
|
296
312
|
function getLabel(document2) {
|
|
297
|
-
return document2.userCan.publish ? (0,
|
|
313
|
+
return document2.userCan.publish ? (0, import_i18n6.__)("Publish", "elementor") : (0, import_i18n6.__)("Submit", "elementor");
|
|
298
314
|
}
|
|
299
315
|
function isPublishEnabled(document2) {
|
|
300
316
|
if (document2.type.value === "kit") {
|
|
@@ -323,25 +339,32 @@ function init3() {
|
|
|
323
339
|
// After save draft.
|
|
324
340
|
useProps: useDocumentSaveTemplateProps
|
|
325
341
|
});
|
|
342
|
+
documentOptionsMenu.registerAction({
|
|
343
|
+
group: "save",
|
|
344
|
+
id: "document-view-page",
|
|
345
|
+
priority: 30,
|
|
346
|
+
// After save draft.
|
|
347
|
+
useProps: useDocumentViewPageProps
|
|
348
|
+
});
|
|
326
349
|
}
|
|
327
350
|
|
|
328
351
|
// src/extensions/elements/sync/sync-panel-title.ts
|
|
329
|
-
var
|
|
330
|
-
var
|
|
352
|
+
var import_i18n7 = require("@wordpress/i18n");
|
|
353
|
+
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
331
354
|
function syncPanelTitle() {
|
|
332
|
-
const panelTitle = (0,
|
|
333
|
-
const tabTitle = (0,
|
|
334
|
-
(0,
|
|
335
|
-
(0,
|
|
355
|
+
const panelTitle = (0, import_i18n7.__)("Elements", "elementor");
|
|
356
|
+
const tabTitle = (0, import_i18n7.__)("Widgets", "elementor");
|
|
357
|
+
(0, import_editor_v1_adapters6.__privateListenTo)(
|
|
358
|
+
(0, import_editor_v1_adapters6.routeOpenEvent)("panel/elements"),
|
|
336
359
|
() => {
|
|
337
360
|
setPanelTitle(panelTitle);
|
|
338
361
|
setTabTitle(tabTitle);
|
|
339
362
|
}
|
|
340
363
|
);
|
|
341
|
-
(0,
|
|
342
|
-
(0,
|
|
364
|
+
(0, import_editor_v1_adapters6.__privateListenTo)(
|
|
365
|
+
(0, import_editor_v1_adapters6.v1ReadyEvent)(),
|
|
343
366
|
() => {
|
|
344
|
-
if ((0,
|
|
367
|
+
if ((0, import_editor_v1_adapters6.__privateIsRouteActive)("panel/elements")) {
|
|
345
368
|
setPanelTitle(panelTitle);
|
|
346
369
|
setTabTitle(tabTitle);
|
|
347
370
|
}
|
|
@@ -362,15 +385,15 @@ function setTabTitle(title) {
|
|
|
362
385
|
var import_editor_app_bar_ui6 = require("@elementor/editor-app-bar-ui");
|
|
363
386
|
|
|
364
387
|
// src/extensions/elements/hooks/use-action-props.ts
|
|
365
|
-
var
|
|
366
|
-
var
|
|
367
|
-
var
|
|
388
|
+
var import_icons7 = require("@elementor/icons");
|
|
389
|
+
var import_i18n8 = require("@wordpress/i18n");
|
|
390
|
+
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
368
391
|
function useActionProps2() {
|
|
369
|
-
const { isActive, isBlocked } = (0,
|
|
392
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters7.__privateUseRouteStatus)("panel/elements");
|
|
370
393
|
return {
|
|
371
|
-
title: (0,
|
|
372
|
-
icon:
|
|
373
|
-
onClick: () => (0,
|
|
394
|
+
title: (0, import_i18n8.__)("Add Element", "elementor"),
|
|
395
|
+
icon: import_icons7.PlusIcon,
|
|
396
|
+
onClick: () => (0, import_editor_v1_adapters7.__privateOpenRoute)("panel/elements/categories"),
|
|
374
397
|
selected: isActive,
|
|
375
398
|
disabled: isBlocked
|
|
376
399
|
};
|
|
@@ -390,18 +413,18 @@ function init4() {
|
|
|
390
413
|
var import_editor_app_bar_ui7 = require("@elementor/editor-app-bar-ui");
|
|
391
414
|
|
|
392
415
|
// src/extensions/finder/hooks/use-action-props.ts
|
|
393
|
-
var
|
|
394
|
-
var
|
|
395
|
-
var
|
|
416
|
+
var import_i18n9 = require("@wordpress/i18n");
|
|
417
|
+
var import_icons8 = require("@elementor/icons");
|
|
418
|
+
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
396
419
|
function useActionProps3() {
|
|
397
|
-
const { isBlocked } = (0,
|
|
420
|
+
const { isBlocked } = (0, import_editor_v1_adapters8.__privateUseRouteStatus)("finder", {
|
|
398
421
|
blockOnKitRoutes: false,
|
|
399
422
|
blockOnPreviewMode: false
|
|
400
423
|
});
|
|
401
424
|
return {
|
|
402
|
-
title: (0,
|
|
403
|
-
icon:
|
|
404
|
-
onClick: () => (0,
|
|
425
|
+
title: (0, import_i18n9.__)("Finder", "elementor"),
|
|
426
|
+
icon: import_icons8.SearchIcon,
|
|
427
|
+
onClick: () => (0, import_editor_v1_adapters8.__privateRunCommand)("finder/toggle"),
|
|
405
428
|
disabled: isBlocked
|
|
406
429
|
};
|
|
407
430
|
}
|
|
@@ -418,8 +441,8 @@ function init5() {
|
|
|
418
441
|
|
|
419
442
|
// src/extensions/help/index.ts
|
|
420
443
|
var import_editor_app_bar_ui8 = require("@elementor/editor-app-bar-ui");
|
|
421
|
-
var
|
|
422
|
-
var
|
|
444
|
+
var import_i18n10 = require("@wordpress/i18n");
|
|
445
|
+
var import_icons9 = require("@elementor/icons");
|
|
423
446
|
function init6() {
|
|
424
447
|
import_editor_app_bar_ui8.__privateUtilitiesMenu.registerLink({
|
|
425
448
|
id: "open-help-center",
|
|
@@ -427,9 +450,9 @@ function init6() {
|
|
|
427
450
|
// After Finder.
|
|
428
451
|
useProps: () => {
|
|
429
452
|
return {
|
|
430
|
-
title: (0,
|
|
453
|
+
title: (0, import_i18n10.__)("Help", "elementor"),
|
|
431
454
|
href: "https://go.elementor.com/editor-top-bar-learn/",
|
|
432
|
-
icon:
|
|
455
|
+
icon: import_icons9.HelpIcon,
|
|
433
456
|
target: "_blank"
|
|
434
457
|
};
|
|
435
458
|
}
|
|
@@ -440,15 +463,15 @@ function init6() {
|
|
|
440
463
|
var import_editor_app_bar_ui9 = require("@elementor/editor-app-bar-ui");
|
|
441
464
|
|
|
442
465
|
// src/extensions/history/hooks/use-action-props.ts
|
|
443
|
-
var
|
|
444
|
-
var
|
|
445
|
-
var
|
|
466
|
+
var import_icons10 = require("@elementor/icons");
|
|
467
|
+
var import_i18n11 = require("@wordpress/i18n");
|
|
468
|
+
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
446
469
|
function useActionProps4() {
|
|
447
|
-
const { isActive, isBlocked } = (0,
|
|
470
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters9.__privateUseRouteStatus)("panel/history");
|
|
448
471
|
return {
|
|
449
|
-
title: (0,
|
|
450
|
-
icon:
|
|
451
|
-
onClick: () => (0,
|
|
472
|
+
title: (0, import_i18n11.__)("History", "elementor"),
|
|
473
|
+
icon: import_icons10.HistoryIcon,
|
|
474
|
+
onClick: () => (0, import_editor_v1_adapters9.__privateOpenRoute)("panel/history/actions"),
|
|
452
475
|
selected: isActive,
|
|
453
476
|
disabled: isBlocked
|
|
454
477
|
};
|
|
@@ -467,14 +490,14 @@ function init7() {
|
|
|
467
490
|
var import_editor_app_bar_ui10 = require("@elementor/editor-app-bar-ui");
|
|
468
491
|
|
|
469
492
|
// src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
|
|
470
|
-
var
|
|
471
|
-
var
|
|
472
|
-
var
|
|
493
|
+
var import_i18n12 = require("@wordpress/i18n");
|
|
494
|
+
var import_icons11 = require("@elementor/icons");
|
|
495
|
+
var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
|
|
473
496
|
function useActionProps5() {
|
|
474
497
|
return {
|
|
475
|
-
icon:
|
|
476
|
-
title: (0,
|
|
477
|
-
onClick: () => (0,
|
|
498
|
+
icon: import_icons11.KeyboardIcon,
|
|
499
|
+
title: (0, import_i18n12.__)("Keyboard Shortcuts", "elementor"),
|
|
500
|
+
onClick: () => (0, import_editor_v1_adapters10.__privateRunCommand)("shortcuts/open")
|
|
478
501
|
};
|
|
479
502
|
}
|
|
480
503
|
|
|
@@ -498,12 +521,12 @@ var React6 = __toESM(require("react"));
|
|
|
498
521
|
// src/extensions/site-settings/components/portal.tsx
|
|
499
522
|
var React4 = __toESM(require("react"));
|
|
500
523
|
var import_ui4 = require("@elementor/ui");
|
|
501
|
-
var
|
|
524
|
+
var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
|
|
502
525
|
function Portal(props) {
|
|
503
|
-
const containerRef = (0,
|
|
526
|
+
const containerRef = (0, import_editor_v1_adapters11.__privateUseListenTo)(
|
|
504
527
|
[
|
|
505
|
-
(0,
|
|
506
|
-
(0,
|
|
528
|
+
(0, import_editor_v1_adapters11.routeOpenEvent)("panel/global"),
|
|
529
|
+
(0, import_editor_v1_adapters11.routeCloseEvent)("panel/global")
|
|
507
530
|
],
|
|
508
531
|
getContainerRef
|
|
509
532
|
);
|
|
@@ -513,17 +536,17 @@ function Portal(props) {
|
|
|
513
536
|
return /* @__PURE__ */ React4.createElement(import_ui4.Portal, { container: containerRef.current, ...props });
|
|
514
537
|
}
|
|
515
538
|
function getContainerRef() {
|
|
516
|
-
return (0,
|
|
539
|
+
return (0, import_editor_v1_adapters11.__privateIsRouteActive)("panel/global") ? { current: document.querySelector("#elementor-panel-inner") } : { current: null };
|
|
517
540
|
}
|
|
518
541
|
|
|
519
542
|
// src/extensions/site-settings/components/primary-action.tsx
|
|
520
543
|
var React5 = __toESM(require("react"));
|
|
521
|
-
var
|
|
544
|
+
var import_editor_documents7 = require("@elementor/editor-documents");
|
|
522
545
|
var import_ui5 = require("@elementor/ui");
|
|
523
|
-
var
|
|
546
|
+
var import_i18n13 = require("@wordpress/i18n");
|
|
524
547
|
function PrimaryAction2() {
|
|
525
|
-
const document2 = (0,
|
|
526
|
-
const { save } = (0,
|
|
548
|
+
const document2 = (0, import_editor_documents7.__useActiveDocument)();
|
|
549
|
+
const { save } = (0, import_editor_documents7.__useActiveDocumentActions)();
|
|
527
550
|
return /* @__PURE__ */ React5.createElement(import_ui5.Paper, { sx: {
|
|
528
551
|
px: 5,
|
|
529
552
|
py: 4,
|
|
@@ -538,7 +561,7 @@ function PrimaryAction2() {
|
|
|
538
561
|
sx: { width: "100%" },
|
|
539
562
|
onClick: () => document2 && !document2.isSaving ? save() : null
|
|
540
563
|
},
|
|
541
|
-
document2?.isSaving ? /* @__PURE__ */ React5.createElement(import_ui5.CircularProgress, null) : (0,
|
|
564
|
+
document2?.isSaving ? /* @__PURE__ */ React5.createElement(import_ui5.CircularProgress, null) : (0, import_i18n13.__)("Save Changes", "elementor")
|
|
542
565
|
));
|
|
543
566
|
}
|
|
544
567
|
|
|
@@ -551,17 +574,17 @@ function PortalledPrimaryAction() {
|
|
|
551
574
|
var import_editor_app_bar_ui11 = require("@elementor/editor-app-bar-ui");
|
|
552
575
|
|
|
553
576
|
// src/extensions/site-settings/hooks/use-action-props.ts
|
|
554
|
-
var
|
|
555
|
-
var
|
|
556
|
-
var
|
|
577
|
+
var import_i18n14 = require("@wordpress/i18n");
|
|
578
|
+
var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
|
|
579
|
+
var import_icons12 = require("@elementor/icons");
|
|
557
580
|
function useActionProps6() {
|
|
558
|
-
const { isActive, isBlocked } = (0,
|
|
581
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters12.__privateUseRouteStatus)("panel/global", {
|
|
559
582
|
blockOnKitRoutes: false
|
|
560
583
|
});
|
|
561
584
|
return {
|
|
562
|
-
title: (0,
|
|
563
|
-
icon:
|
|
564
|
-
onClick: () => isActive ? (0,
|
|
585
|
+
title: (0, import_i18n14.__)("Site Settings", "elementor"),
|
|
586
|
+
icon: import_icons12.AdjustmentsHorizontalIcon,
|
|
587
|
+
onClick: () => isActive ? (0, import_editor_v1_adapters12.__privateRunCommand)("panel/global/close") : (0, import_editor_v1_adapters12.__privateRunCommand)("panel/global/open"),
|
|
565
588
|
selected: isActive,
|
|
566
589
|
disabled: isBlocked
|
|
567
590
|
};
|
|
@@ -584,15 +607,15 @@ function init9() {
|
|
|
584
607
|
var import_editor_app_bar_ui12 = require("@elementor/editor-app-bar-ui");
|
|
585
608
|
|
|
586
609
|
// src/extensions/structure/hooks/use-action-props.ts
|
|
587
|
-
var
|
|
588
|
-
var
|
|
589
|
-
var
|
|
610
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
611
|
+
var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
|
|
612
|
+
var import_icons13 = require("@elementor/icons");
|
|
590
613
|
function useActionProps7() {
|
|
591
|
-
const { isActive, isBlocked } = (0,
|
|
614
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters13.__privateUseRouteStatus)("navigator");
|
|
592
615
|
return {
|
|
593
|
-
title: (0,
|
|
594
|
-
icon:
|
|
595
|
-
onClick: () => (0,
|
|
616
|
+
title: (0, import_i18n15.__)("Structure", "elementor"),
|
|
617
|
+
icon: import_icons13.StructureIcon,
|
|
618
|
+
onClick: () => (0, import_editor_v1_adapters13.__privateRunCommand)("navigator/toggle"),
|
|
596
619
|
selected: isActive,
|
|
597
620
|
disabled: isBlocked
|
|
598
621
|
};
|
|
@@ -611,14 +634,14 @@ function init10() {
|
|
|
611
634
|
var import_editor_app_bar_ui13 = require("@elementor/editor-app-bar-ui");
|
|
612
635
|
|
|
613
636
|
// src/extensions/theme-builder/hooks/use-action-props.ts
|
|
614
|
-
var
|
|
615
|
-
var
|
|
616
|
-
var
|
|
637
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
638
|
+
var import_icons14 = require("@elementor/icons");
|
|
639
|
+
var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
|
|
617
640
|
function useActionProps8() {
|
|
618
641
|
return {
|
|
619
|
-
icon:
|
|
620
|
-
title: (0,
|
|
621
|
-
onClick: () => (0,
|
|
642
|
+
icon: import_icons14.ThemeBuilderIcon,
|
|
643
|
+
title: (0, import_i18n16.__)("Theme Builder", "elementor"),
|
|
644
|
+
onClick: () => (0, import_editor_v1_adapters14.__privateRunCommand)("app/open")
|
|
622
645
|
};
|
|
623
646
|
}
|
|
624
647
|
|
|
@@ -634,15 +657,15 @@ function init11() {
|
|
|
634
657
|
var import_editor_app_bar_ui14 = require("@elementor/editor-app-bar-ui");
|
|
635
658
|
|
|
636
659
|
// src/extensions/user-preferences/hooks/use-action-props.ts
|
|
637
|
-
var
|
|
638
|
-
var
|
|
639
|
-
var
|
|
660
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
661
|
+
var import_icons15 = require("@elementor/icons");
|
|
662
|
+
var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
|
|
640
663
|
function useActionProps9() {
|
|
641
|
-
const { isActive, isBlocked } = (0,
|
|
664
|
+
const { isActive, isBlocked } = (0, import_editor_v1_adapters15.__privateUseRouteStatus)("panel/editor-preferences");
|
|
642
665
|
return {
|
|
643
|
-
icon:
|
|
644
|
-
title: (0,
|
|
645
|
-
onClick: () => (0,
|
|
666
|
+
icon: import_icons15.ToggleRightIcon,
|
|
667
|
+
title: (0, import_i18n17.__)("User Preferences", "elementor"),
|
|
668
|
+
onClick: () => (0, import_editor_v1_adapters15.__privateOpenRoute)("panel/editor-preferences"),
|
|
646
669
|
selected: isActive,
|
|
647
670
|
disabled: isBlocked
|
|
648
671
|
};
|
|
@@ -660,19 +683,19 @@ function init12() {
|
|
|
660
683
|
|
|
661
684
|
// src/extensions/wordpress/index.ts
|
|
662
685
|
var import_editor_app_bar_ui15 = require("@elementor/editor-app-bar-ui");
|
|
663
|
-
var
|
|
664
|
-
var
|
|
665
|
-
var
|
|
686
|
+
var import_i18n18 = require("@wordpress/i18n");
|
|
687
|
+
var import_icons16 = require("@elementor/icons");
|
|
688
|
+
var import_editor_documents8 = require("@elementor/editor-documents");
|
|
666
689
|
function init13() {
|
|
667
690
|
import_editor_app_bar_ui15.__privateMainMenu.registerLink({
|
|
668
691
|
id: "exit-to-wordpress",
|
|
669
692
|
group: "exits",
|
|
670
693
|
useProps: () => {
|
|
671
|
-
const document2 = (0,
|
|
694
|
+
const document2 = (0, import_editor_documents8.__useActiveDocument)();
|
|
672
695
|
return {
|
|
673
|
-
title: (0,
|
|
696
|
+
title: (0, import_i18n18.__)("Exit to WordPress", "elementor"),
|
|
674
697
|
href: document2?.links?.platformEdit,
|
|
675
|
-
icon:
|
|
698
|
+
icon: import_icons16.WordpressIcon
|
|
676
699
|
};
|
|
677
700
|
}
|
|
678
701
|
});
|