@elementor/editor-app-bar 0.11.0 → 0.13.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 CHANGED
@@ -3,6 +3,28 @@
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.13.0](https://github.com/elementor/elementor-packages/compare/@elementor/editor-app-bar@0.12.0...@elementor/editor-app-bar@0.13.0) (2024-06-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **editor-app-bar:** adjust the UI of the "View Page" link in the "Top Bar" [ED-14942] ([#183](https://github.com/elementor/elementor-packages/issues/183)) ([60d576a](https://github.com/elementor/elementor-packages/commit/60d576ad9f5afbf56984e363f2f9973c84e1f798))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.12.0](https://github.com/elementor/elementor-packages/compare/@elementor/editor-app-bar@0.11.0...@elementor/editor-app-bar@0.12.0) (2024-05-09)
18
+
19
+
20
+ ### Features
21
+
22
+ * conversions - add logic to top bar for links page ([#181](https://github.com/elementor/elementor-packages/issues/181)) ([19b3d82](https://github.com/elementor/elementor-packages/commit/19b3d82b3795917e8d0aaaf40da36309ec83da97))
23
+
24
+
25
+
26
+
27
+
6
28
  # [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
29
 
8
30
 
package/dist/index.js CHANGED
@@ -213,12 +213,14 @@ var import_ui2 = require("@elementor/ui");
213
213
  var import_editor_app_bar_ui4 = require("@elementor/editor-app-bar-ui");
214
214
  var { useMenuItems } = documentOptionsMenu;
215
215
  var StyledPopoverMenu = (0, import_ui2.styled)(import_editor_app_bar_ui4.__privatePopoverMenu)`
216
- & > .MuiPopover-paper > .MuiList-root > .MuiDivider-root {
217
- &:only-child, /* A divider is being rendered lonely */
218
- &:last-child, /* The last group renders empty but renders a divider */
219
- & + .MuiDivider-root /* Multiple dividers due to multiple empty groups */ {
216
+ & > .MuiPopover-paper > .MuiList-root {
217
+ & > .MuiDivider-root {
220
218
  display: none;
221
219
  }
220
+
221
+ & > *:not(.MuiDivider-root):not(:last-of-type) + .MuiDivider-root {
222
+ display: block;
223
+ }
222
224
  }
223
225
  `;
224
226
  function PrimaryActionMenu(props) {
@@ -244,8 +246,11 @@ function PrimaryActionMenu(props) {
244
246
  index > 0 && /* @__PURE__ */ React2.createElement(import_ui2.Divider, { key: `${id}-divider` }),
245
247
  /* @__PURE__ */ React2.createElement(MenuItem, { key: id })
246
248
  ]),
247
- defaultActions.length > 0 && /* @__PURE__ */ React2.createElement(import_ui2.Divider, null),
248
- defaultActions.map(({ MenuItem, id }) => /* @__PURE__ */ React2.createElement(MenuItem, { key: id }))
249
+ saveActions.length > 0 && defaultActions.length > 0 && /* @__PURE__ */ React2.createElement(import_ui2.Divider, null),
250
+ defaultActions.map(({ MenuItem, id }, index) => [
251
+ index > 0 && /* @__PURE__ */ React2.createElement(import_ui2.Divider, { key: `${id}-divider` }),
252
+ /* @__PURE__ */ React2.createElement(MenuItem, { key: id })
253
+ ])
249
254
  );
250
255
  }
251
256
 
@@ -319,6 +324,22 @@ function isPublishEnabled(document2) {
319
324
  return document2.isDirty || document2.status.value === "draft";
320
325
  }
321
326
 
327
+ // src/extensions/documents-save/hooks/use-document-copy-and-share-props.ts
328
+ var import_i18n7 = require("@wordpress/i18n");
329
+ var import_icons7 = require("@elementor/icons");
330
+ var import_editor_documents7 = require("@elementor/editor-documents");
331
+ function useDocumentCopyAndShareProps() {
332
+ const document2 = (0, import_editor_documents7.__useActiveDocument)();
333
+ const { copyAndShare } = (0, import_editor_documents7.__useActiveDocumentActions)();
334
+ return {
335
+ icon: import_icons7.LinkIcon,
336
+ title: (0, import_i18n7.__)("Copy and Share", "elementor"),
337
+ onClick: copyAndShare,
338
+ disabled: !document2 || document2.isSaving || document2.isSavingDraft || !("publish" === document2.status.value),
339
+ visible: document2?.permissions?.showCopyAndShare
340
+ };
341
+ }
342
+
322
343
  // src/extensions/documents-save/index.ts
323
344
  function init3() {
324
345
  (0, import_editor_app_bar_ui5.__privateInjectIntoPrimaryAction)({
@@ -329,31 +350,32 @@ function init3() {
329
350
  group: "save",
330
351
  id: "document-save-draft",
331
352
  priority: 10,
332
- // Before save as template.
333
353
  useProps: useDocumentSaveDraftProps
334
354
  });
335
355
  documentOptionsMenu.registerAction({
336
356
  group: "save",
337
357
  id: "document-save-as-template",
338
358
  priority: 20,
339
- // After save draft.
340
359
  useProps: useDocumentSaveTemplateProps
341
360
  });
342
361
  documentOptionsMenu.registerAction({
343
- group: "save",
362
+ id: "document-copy-and-share",
363
+ priority: 10,
364
+ useProps: useDocumentCopyAndShareProps
365
+ });
366
+ documentOptionsMenu.registerAction({
344
367
  id: "document-view-page",
345
- priority: 30,
346
- // After save draft.
368
+ priority: 50,
347
369
  useProps: useDocumentViewPageProps
348
370
  });
349
371
  }
350
372
 
351
373
  // src/extensions/elements/sync/sync-panel-title.ts
352
- var import_i18n7 = require("@wordpress/i18n");
374
+ var import_i18n8 = require("@wordpress/i18n");
353
375
  var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
354
376
  function syncPanelTitle() {
355
- const panelTitle = (0, import_i18n7.__)("Elements", "elementor");
356
- const tabTitle = (0, import_i18n7.__)("Widgets", "elementor");
377
+ const panelTitle = (0, import_i18n8.__)("Elements", "elementor");
378
+ const tabTitle = (0, import_i18n8.__)("Widgets", "elementor");
357
379
  (0, import_editor_v1_adapters6.__privateListenTo)(
358
380
  (0, import_editor_v1_adapters6.routeOpenEvent)("panel/elements"),
359
381
  () => {
@@ -385,14 +407,14 @@ function setTabTitle(title) {
385
407
  var import_editor_app_bar_ui6 = require("@elementor/editor-app-bar-ui");
386
408
 
387
409
  // src/extensions/elements/hooks/use-action-props.ts
388
- var import_icons7 = require("@elementor/icons");
389
- var import_i18n8 = require("@wordpress/i18n");
410
+ var import_icons8 = require("@elementor/icons");
411
+ var import_i18n9 = require("@wordpress/i18n");
390
412
  var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
391
413
  function useActionProps2() {
392
414
  const { isActive, isBlocked } = (0, import_editor_v1_adapters7.__privateUseRouteStatus)("panel/elements");
393
415
  return {
394
- title: (0, import_i18n8.__)("Add Element", "elementor"),
395
- icon: import_icons7.PlusIcon,
416
+ title: (0, import_i18n9.__)("Add Element", "elementor"),
417
+ icon: import_icons8.PlusIcon,
396
418
  onClick: () => (0, import_editor_v1_adapters7.__privateOpenRoute)("panel/elements/categories"),
397
419
  selected: isActive,
398
420
  disabled: isBlocked
@@ -413,8 +435,8 @@ function init4() {
413
435
  var import_editor_app_bar_ui7 = require("@elementor/editor-app-bar-ui");
414
436
 
415
437
  // src/extensions/finder/hooks/use-action-props.ts
416
- var import_i18n9 = require("@wordpress/i18n");
417
- var import_icons8 = require("@elementor/icons");
438
+ var import_i18n10 = require("@wordpress/i18n");
439
+ var import_icons9 = require("@elementor/icons");
418
440
  var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
419
441
  function useActionProps3() {
420
442
  const { isBlocked } = (0, import_editor_v1_adapters8.__privateUseRouteStatus)("finder", {
@@ -422,8 +444,8 @@ function useActionProps3() {
422
444
  blockOnPreviewMode: false
423
445
  });
424
446
  return {
425
- title: (0, import_i18n9.__)("Finder", "elementor"),
426
- icon: import_icons8.SearchIcon,
447
+ title: (0, import_i18n10.__)("Finder", "elementor"),
448
+ icon: import_icons9.SearchIcon,
427
449
  onClick: () => (0, import_editor_v1_adapters8.__privateRunCommand)("finder/toggle"),
428
450
  disabled: isBlocked
429
451
  };
@@ -441,8 +463,8 @@ function init5() {
441
463
 
442
464
  // src/extensions/help/index.ts
443
465
  var import_editor_app_bar_ui8 = require("@elementor/editor-app-bar-ui");
444
- var import_i18n10 = require("@wordpress/i18n");
445
- var import_icons9 = require("@elementor/icons");
466
+ var import_i18n11 = require("@wordpress/i18n");
467
+ var import_icons10 = require("@elementor/icons");
446
468
  function init6() {
447
469
  import_editor_app_bar_ui8.__privateUtilitiesMenu.registerLink({
448
470
  id: "open-help-center",
@@ -450,9 +472,9 @@ function init6() {
450
472
  // After Finder.
451
473
  useProps: () => {
452
474
  return {
453
- title: (0, import_i18n10.__)("Help", "elementor"),
475
+ title: (0, import_i18n11.__)("Help", "elementor"),
454
476
  href: "https://go.elementor.com/editor-top-bar-learn/",
455
- icon: import_icons9.HelpIcon,
477
+ icon: import_icons10.HelpIcon,
456
478
  target: "_blank"
457
479
  };
458
480
  }
@@ -463,14 +485,14 @@ function init6() {
463
485
  var import_editor_app_bar_ui9 = require("@elementor/editor-app-bar-ui");
464
486
 
465
487
  // src/extensions/history/hooks/use-action-props.ts
466
- var import_icons10 = require("@elementor/icons");
467
- var import_i18n11 = require("@wordpress/i18n");
488
+ var import_icons11 = require("@elementor/icons");
489
+ var import_i18n12 = require("@wordpress/i18n");
468
490
  var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
469
491
  function useActionProps4() {
470
492
  const { isActive, isBlocked } = (0, import_editor_v1_adapters9.__privateUseRouteStatus)("panel/history");
471
493
  return {
472
- title: (0, import_i18n11.__)("History", "elementor"),
473
- icon: import_icons10.HistoryIcon,
494
+ title: (0, import_i18n12.__)("History", "elementor"),
495
+ icon: import_icons11.HistoryIcon,
474
496
  onClick: () => (0, import_editor_v1_adapters9.__privateOpenRoute)("panel/history/actions"),
475
497
  selected: isActive,
476
498
  disabled: isBlocked
@@ -490,13 +512,13 @@ function init7() {
490
512
  var import_editor_app_bar_ui10 = require("@elementor/editor-app-bar-ui");
491
513
 
492
514
  // src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
493
- var import_i18n12 = require("@wordpress/i18n");
494
- var import_icons11 = require("@elementor/icons");
515
+ var import_i18n13 = require("@wordpress/i18n");
516
+ var import_icons12 = require("@elementor/icons");
495
517
  var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
496
518
  function useActionProps5() {
497
519
  return {
498
- icon: import_icons11.KeyboardIcon,
499
- title: (0, import_i18n12.__)("Keyboard Shortcuts", "elementor"),
520
+ icon: import_icons12.KeyboardIcon,
521
+ title: (0, import_i18n13.__)("Keyboard Shortcuts", "elementor"),
500
522
  onClick: () => (0, import_editor_v1_adapters10.__privateRunCommand)("shortcuts/open")
501
523
  };
502
524
  }
@@ -541,12 +563,12 @@ function getContainerRef() {
541
563
 
542
564
  // src/extensions/site-settings/components/primary-action.tsx
543
565
  var React5 = __toESM(require("react"));
544
- var import_editor_documents7 = require("@elementor/editor-documents");
566
+ var import_editor_documents8 = require("@elementor/editor-documents");
545
567
  var import_ui5 = require("@elementor/ui");
546
- var import_i18n13 = require("@wordpress/i18n");
568
+ var import_i18n14 = require("@wordpress/i18n");
547
569
  function PrimaryAction2() {
548
- const document2 = (0, import_editor_documents7.__useActiveDocument)();
549
- const { save } = (0, import_editor_documents7.__useActiveDocumentActions)();
570
+ const document2 = (0, import_editor_documents8.__useActiveDocument)();
571
+ const { save } = (0, import_editor_documents8.__useActiveDocumentActions)();
550
572
  return /* @__PURE__ */ React5.createElement(import_ui5.Paper, { sx: {
551
573
  px: 5,
552
574
  py: 4,
@@ -561,7 +583,7 @@ function PrimaryAction2() {
561
583
  sx: { width: "100%" },
562
584
  onClick: () => document2 && !document2.isSaving ? save() : null
563
585
  },
564
- document2?.isSaving ? /* @__PURE__ */ React5.createElement(import_ui5.CircularProgress, null) : (0, import_i18n13.__)("Save Changes", "elementor")
586
+ document2?.isSaving ? /* @__PURE__ */ React5.createElement(import_ui5.CircularProgress, null) : (0, import_i18n14.__)("Save Changes", "elementor")
565
587
  ));
566
588
  }
567
589
 
@@ -574,16 +596,16 @@ function PortalledPrimaryAction() {
574
596
  var import_editor_app_bar_ui11 = require("@elementor/editor-app-bar-ui");
575
597
 
576
598
  // src/extensions/site-settings/hooks/use-action-props.ts
577
- var import_i18n14 = require("@wordpress/i18n");
599
+ var import_i18n15 = require("@wordpress/i18n");
578
600
  var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
579
- var import_icons12 = require("@elementor/icons");
601
+ var import_icons13 = require("@elementor/icons");
580
602
  function useActionProps6() {
581
603
  const { isActive, isBlocked } = (0, import_editor_v1_adapters12.__privateUseRouteStatus)("panel/global", {
582
604
  blockOnKitRoutes: false
583
605
  });
584
606
  return {
585
- title: (0, import_i18n14.__)("Site Settings", "elementor"),
586
- icon: import_icons12.AdjustmentsHorizontalIcon,
607
+ title: (0, import_i18n15.__)("Site Settings", "elementor"),
608
+ icon: import_icons13.AdjustmentsHorizontalIcon,
587
609
  onClick: () => isActive ? (0, import_editor_v1_adapters12.__privateRunCommand)("panel/global/close") : (0, import_editor_v1_adapters12.__privateRunCommand)("panel/global/open"),
588
610
  selected: isActive,
589
611
  disabled: isBlocked
@@ -607,14 +629,14 @@ function init9() {
607
629
  var import_editor_app_bar_ui12 = require("@elementor/editor-app-bar-ui");
608
630
 
609
631
  // src/extensions/structure/hooks/use-action-props.ts
610
- var import_i18n15 = require("@wordpress/i18n");
632
+ var import_i18n16 = require("@wordpress/i18n");
611
633
  var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
612
- var import_icons13 = require("@elementor/icons");
634
+ var import_icons14 = require("@elementor/icons");
613
635
  function useActionProps7() {
614
636
  const { isActive, isBlocked } = (0, import_editor_v1_adapters13.__privateUseRouteStatus)("navigator");
615
637
  return {
616
- title: (0, import_i18n15.__)("Structure", "elementor"),
617
- icon: import_icons13.StructureIcon,
638
+ title: (0, import_i18n16.__)("Structure", "elementor"),
639
+ icon: import_icons14.StructureIcon,
618
640
  onClick: () => (0, import_editor_v1_adapters13.__privateRunCommand)("navigator/toggle"),
619
641
  selected: isActive,
620
642
  disabled: isBlocked
@@ -634,13 +656,13 @@ function init10() {
634
656
  var import_editor_app_bar_ui13 = require("@elementor/editor-app-bar-ui");
635
657
 
636
658
  // src/extensions/theme-builder/hooks/use-action-props.ts
637
- var import_i18n16 = require("@wordpress/i18n");
638
- var import_icons14 = require("@elementor/icons");
659
+ var import_i18n17 = require("@wordpress/i18n");
660
+ var import_icons15 = require("@elementor/icons");
639
661
  var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
640
662
  function useActionProps8() {
641
663
  return {
642
- icon: import_icons14.ThemeBuilderIcon,
643
- title: (0, import_i18n16.__)("Theme Builder", "elementor"),
664
+ icon: import_icons15.ThemeBuilderIcon,
665
+ title: (0, import_i18n17.__)("Theme Builder", "elementor"),
644
666
  onClick: () => (0, import_editor_v1_adapters14.__privateRunCommand)("app/open")
645
667
  };
646
668
  }
@@ -657,14 +679,14 @@ function init11() {
657
679
  var import_editor_app_bar_ui14 = require("@elementor/editor-app-bar-ui");
658
680
 
659
681
  // src/extensions/user-preferences/hooks/use-action-props.ts
660
- var import_i18n17 = require("@wordpress/i18n");
661
- var import_icons15 = require("@elementor/icons");
682
+ var import_i18n18 = require("@wordpress/i18n");
683
+ var import_icons16 = require("@elementor/icons");
662
684
  var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
663
685
  function useActionProps9() {
664
686
  const { isActive, isBlocked } = (0, import_editor_v1_adapters15.__privateUseRouteStatus)("panel/editor-preferences");
665
687
  return {
666
- icon: import_icons15.ToggleRightIcon,
667
- title: (0, import_i18n17.__)("User Preferences", "elementor"),
688
+ icon: import_icons16.ToggleRightIcon,
689
+ title: (0, import_i18n18.__)("User Preferences", "elementor"),
668
690
  onClick: () => (0, import_editor_v1_adapters15.__privateOpenRoute)("panel/editor-preferences"),
669
691
  selected: isActive,
670
692
  disabled: isBlocked
@@ -683,19 +705,19 @@ function init12() {
683
705
 
684
706
  // src/extensions/wordpress/index.ts
685
707
  var import_editor_app_bar_ui15 = require("@elementor/editor-app-bar-ui");
686
- var import_i18n18 = require("@wordpress/i18n");
687
- var import_icons16 = require("@elementor/icons");
688
- var import_editor_documents8 = require("@elementor/editor-documents");
708
+ var import_i18n19 = require("@wordpress/i18n");
709
+ var import_icons17 = require("@elementor/icons");
710
+ var import_editor_documents9 = require("@elementor/editor-documents");
689
711
  function init13() {
690
712
  import_editor_app_bar_ui15.__privateMainMenu.registerLink({
691
713
  id: "exit-to-wordpress",
692
714
  group: "exits",
693
715
  useProps: () => {
694
- const document2 = (0, import_editor_documents8.__useActiveDocument)();
716
+ const document2 = (0, import_editor_documents9.__useActiveDocument)();
695
717
  return {
696
- title: (0, import_i18n18.__)("Exit to WordPress", "elementor"),
718
+ title: (0, import_i18n19.__)("Exit to WordPress", "elementor"),
697
719
  href: document2?.links?.platformEdit,
698
- icon: import_icons16.WordpressIcon
720
+ icon: import_icons17.WordpressIcon
699
721
  };
700
722
  }
701
723
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/extensions/documents-save/locations.ts","../src/init.ts","../src/sync/redirect-old-menus.ts","../src/extensions/documents-indicator/index.ts","../src/extensions/documents-indicator/components/settings-button.tsx","../src/extensions/documents-preview/index.ts","../src/extensions/documents-preview/hooks/use-action-props.ts","../src/extensions/documents-save/index.ts","../src/extensions/documents-save/hooks/use-document-save-draft-props.ts","../src/extensions/documents-save/hooks/use-document-save-template-props.ts","../src/extensions/documents-save/hooks/use-document-view-page-props.ts","../src/extensions/documents-save/components/primary-action.tsx","../src/extensions/documents-save/components/primary-action-menu.tsx","../src/extensions/elements/sync/sync-panel-title.ts","../src/extensions/elements/index.ts","../src/extensions/elements/hooks/use-action-props.ts","../src/extensions/finder/index.ts","../src/extensions/finder/hooks/use-action-props.ts","../src/extensions/help/index.ts","../src/extensions/history/index.ts","../src/extensions/history/hooks/use-action-props.ts","../src/extensions/keyboard-shortcuts/index.ts","../src/extensions/keyboard-shortcuts/hooks/use-action-props.ts","../src/extensions/site-settings/index.ts","../src/extensions/site-settings/components/portalled-primary-action.tsx","../src/extensions/site-settings/components/portal.tsx","../src/extensions/site-settings/components/primary-action.tsx","../src/extensions/site-settings/hooks/use-action-props.ts","../src/extensions/structure/index.ts","../src/extensions/structure/hooks/use-action-props.ts","../src/extensions/theme-builder/index.ts","../src/extensions/theme-builder/hooks/use-action-props.ts","../src/extensions/user-preferences/index.ts","../src/extensions/user-preferences/hooks/use-action-props.ts","../src/extensions/wordpress/index.ts","../src/extensions/index.ts"],"sourcesContent":["// Re-exporting the menus & locations from `@elementor/editor-app-bar-ui`\n// to expose the API for other packages to use.\nexport {\n\t__privateMainMenu as mainMenu,\n\t__privateToolsMenu as toolsMenu,\n\t__privateUtilitiesMenu as utilitiesMenu,\n\t__privateIntegrationsMenu as integrationsMenu,\n\t__privateInjectIntoPageIndication as injectIntoPageIndication,\n\t__privateInjectIntoResponsive as injectIntoResponsive,\n\t__privateInjectIntoPrimaryAction as injectIntoPrimaryAction,\n} from '@elementor/editor-app-bar-ui';\n\nexport { documentOptionsMenu } from './extensions/documents-save/locations';\n\nimport init from './init';\n\ninit();\n","import { __privateCreateMenu as createMenu } from '@elementor/editor-app-bar-ui';\n\nexport const documentOptionsMenu = createMenu( [ 'save' ] );\n","import { __privateAppBar as AppBar } from '@elementor/editor-app-bar-ui';\nimport { injectIntoTop } from '@elementor/editor';\nimport redirectOldMenus from './sync/redirect-old-menus';\nimport { init as initExtensions } from './extensions';\n\nexport default function init() {\n\tredirectOldMenus();\n\n\tinitExtensions();\n\n\tinjectIntoTop( {\n\t\tid: 'app-bar',\n\t\tcomponent: AppBar,\n\t} );\n}\n","import { __privateListenTo as listenTo, __privateOpenRoute as openRoute, routeOpenEvent } from '@elementor/editor-v1-adapters';\n\nexport default function redirectOldMenus() {\n\t// Currently, in V1, when you click `esc` it opens the hamburger menu in the panel.\n\t// In V2, we don't have this panel, so we redirect the user to the elements panel instead.\n\tlistenTo( routeOpenEvent( 'panel/menu' ), () => {\n\t\topenRoute( 'panel/elements/categories' );\n\t} );\n}\n","import { __privateInjectIntoPageIndication as injectIntoPageIndication } from '@elementor/editor-app-bar-ui';\nimport SettingsButton from './components/settings-button';\n\nexport function init() {\n\tinjectIntoPageIndication( {\n\t\tid: 'document-settings-button',\n\t\tcomponent: SettingsButton,\n\t\toptions: {\n\t\t\tpriority: 20, // After document indicator.\n\t\t},\n\t} );\n}\n","import * as React from 'react';\nimport { Box, ToggleButton, Tooltip as BaseTooltip, TooltipProps } from '@elementor/ui';\nimport { __ } from '@wordpress/i18n';\nimport { __privateOpenRoute as openRoute, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\nimport { SettingsIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument, __useHostDocument as useHostDocument } from '@elementor/editor-documents';\n\nexport default function SettingsButton() {\n\tconst activeDocument = useActiveDocument();\n\tconst hostDocument = useHostDocument();\n\n\tconst document = activeDocument && activeDocument.type.value !== 'kit'\n\t\t? activeDocument\n\t\t: hostDocument;\n\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/page-settings' );\n\n\tif ( ! document ) {\n\t\treturn null;\n\t}\n\n\t/* translators: %s: Post type label. */\n\tconst title = __( '%s Settings', 'elementor' )\n\t\t.replace( '%s', document.type.label );\n\n\treturn (\n\t\t<Tooltip title={ title }>\n\t\t\t{ /* @see https://mui.com/material-ui/react-tooltip/#disabled-elements */ }\n\t\t\t<Box component=\"span\" aria-label={ undefined }>\n\t\t\t\t<ToggleButton\n\t\t\t\t\tvalue=\"document-settings\"\n\t\t\t\t\tselected={ isActive }\n\t\t\t\t\tdisabled={ isBlocked }\n\t\t\t\t\tonChange={ () => openRoute( 'panel/page-settings/settings' ) }\n\t\t\t\t\taria-label={ title }\n\t\t\t\t\tsize=\"small\"\n\t\t\t\t\tsx={ {\n\t\t\t\t\t\tborder: 0, // Temp fix until the style of the ToggleButton component will be decided.\n\t\t\t\t\t\t'&.Mui-disabled': {\n\t\t\t\t\t\t\tborder: 0, // Temp fix until the style of the ToggleButton component will be decided.\n\t\t\t\t\t\t},\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<SettingsIcon fontSize=\"small\" />\n\t\t\t\t</ToggleButton>\n\t\t\t</Box>\n\t\t</Tooltip>\n\t);\n}\n\nfunction Tooltip( props: TooltipProps ) {\n\treturn <BaseTooltip\n\t\tPopperProps={ {\n\t\t\tsx: {\n\t\t\t\t'&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom': {\n\t\t\t\t\tmt: 1.7,\n\t\t\t\t},\n\t\t\t},\n\t\t} }\n\t\t{ ...props }\n\t/>;\n}\n","import { __privateUtilitiesMenu as utilitiesMenu } from '@elementor/editor-app-bar-ui';\nimport useDocumentPreviewProps from './hooks/use-action-props';\n\nexport function init() {\n\tutilitiesMenu.registerAction( {\n\t\tid: 'document-preview-button',\n\t\tpriority: 30, // After help.\n\t\tuseProps: useDocumentPreviewProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { EyeIcon } from '@elementor/icons';\nimport { __privateRunCommand as runCommand } from '@elementor/editor-v1-adapters';\nimport { __useActiveDocument as useActiveDocument } from '@elementor/editor-documents';\n\nexport default function useActionProps() {\n\tconst document = useActiveDocument();\n\n\treturn {\n\t\ticon: EyeIcon,\n\t\ttitle: __( 'Preview Changes', 'elementor' ),\n\t\tonClick: () => document && runCommand( 'editor/documents/preview', {\n\t\t\tid: document.id,\n\t\t\tforce: true,\n\t\t} ),\n\t};\n}\n","import { __privateInjectIntoPrimaryAction as injectIntoPrimaryAction } from '@elementor/editor-app-bar-ui';\nimport useDocumentSaveDraftProps from './hooks/use-document-save-draft-props';\nimport useDocumentSaveTemplateProps from './hooks/use-document-save-template-props';\nimport useDocumentViewPageProps from './hooks/use-document-view-page-props';\nimport PrimaryAction from './components/primary-action';\nimport { documentOptionsMenu } from './locations';\n\nexport function init() {\n\tinjectIntoPrimaryAction( {\n\t\tid: 'document-primary-action',\n\t\tcomponent: PrimaryAction,\n\t} );\n\n\t// Documents options menu.\n\tdocumentOptionsMenu.registerAction( {\n\t\tgroup: 'save',\n\t\tid: 'document-save-draft',\n\t\tpriority: 10, // Before save as template.\n\t\tuseProps: useDocumentSaveDraftProps,\n\t} );\n\n\tdocumentOptionsMenu.registerAction( {\n\t\tgroup: 'save',\n\t\tid: 'document-save-as-template',\n\t\tpriority: 20, // After save draft.\n\t\tuseProps: useDocumentSaveTemplateProps,\n\t} );\n\n\tdocumentOptionsMenu.registerAction( {\n\t\tgroup: 'save',\n\t\tid: 'document-view-page',\n\t\tpriority: 30, // After save draft.\n\t\tuseProps: useDocumentViewPageProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\nimport { FileReportIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument, __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\n\nexport default function useDocumentSaveDraftProps(): ActionProps {\n\tconst document = useActiveDocument();\n\tconst { saveDraft } = useActiveDocumentActions();\n\n\treturn {\n\t\ticon: FileReportIcon,\n\t\ttitle: __( 'Save Draft', 'elementor' ),\n\t\tonClick: saveDraft,\n\t\tdisabled: ! document || document.isSaving || document.isSavingDraft || ! document.isDirty,\n\t};\n}\n","import { __ } from '@wordpress/i18n';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\nimport { FolderIcon } from '@elementor/icons';\nimport { __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\n\nexport default function useDocumentSaveTemplateProps(): ActionProps {\n\tconst { saveTemplate } = useActiveDocumentActions();\n\n\treturn {\n\t\ticon: FolderIcon,\n\t\ttitle: __( 'Save as Template', 'elementor' ),\n\t\tonClick: saveTemplate,\n\t};\n}\n","import { __ } from '@wordpress/i18n';\nimport { EyeIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument } from '@elementor/editor-documents';\nimport { __privateRunCommand as runCommand } from '@elementor/editor-v1-adapters';\n\nexport default function useDocumentViewPageProps() {\n\tconst document = useActiveDocument();\n\n\treturn {\n\t\ticon: EyeIcon,\n\t\ttitle: __( 'View Page', 'elementor' ),\n\t\tonClick: () => document?.id && runCommand( 'editor/documents/view', {\n\t\t\tid: document.id,\n\t\t} ),\n\t};\n}\n","import * as React from 'react';\nimport { __ } from '@wordpress/i18n';\nimport PrimaryActionMenu from './primary-action-menu';\nimport {\n\tbindMenu,\n\tbindTrigger,\n\tBox,\n\tButton,\n\tButtonGroup,\n\tCircularProgress,\n\tTooltip,\n\tusePopupState,\n} from '@elementor/ui';\nimport { Document, __useActiveDocument as useActiveDocument, __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\nimport { ChevronDownIcon } from '@elementor/icons';\nimport { __privateUseIsPreviewMode as useIsPreviewMode } from '@elementor/editor-v1-adapters';\n\nexport default function PrimaryAction() {\n\tconst document = useActiveDocument();\n\tconst { save } = useActiveDocumentActions();\n\tconst isPreviewMode = useIsPreviewMode();\n\n\tconst popupState = usePopupState( {\n\t\tvariant: 'popover',\n\t\tpopupId: 'document-save-options',\n\t} );\n\n\tif ( ! document ) {\n\t\treturn null;\n\t}\n\n\tconst isPublishDisabled = isPreviewMode || ! isPublishEnabled( document );\n\tconst isSaveOptionsDisabled = isPreviewMode || document.type.value === 'kit';\n\n\t// When the document is being saved, the spinner should not appear.\n\t// Usually happens when the Kit is being saved.\n\tconst shouldShowSpinner = document.isSaving && ! isPublishDisabled;\n\n\treturn (\n\t\t<>\n\t\t\t<ButtonGroup size=\"large\" variant=\"contained\">\n\t\t\t\t<Button\n\t\t\t\t\tonClick={ () => ! document.isSaving && save() }\n\t\t\t\t\tsx={ {\n\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\tborderRadius: 0,\n\t\t\t\t\t\tmaxWidth: '158px',\n\t\t\t\t\t\t'&.MuiButtonBase-root.MuiButtonGroup-grouped': {\n\t\t\t\t\t\t\tminWidth: '110px',\n\t\t\t\t\t\t},\n\t\t\t\t\t} }\n\t\t\t\t\tdisabled={ isPublishDisabled }\n\t\t\t\t>\n\t\t\t\t\t{ shouldShowSpinner ? <CircularProgress color=\"inherit\" size=\"1.5em\" /> : getLabel( document ) }\n\t\t\t\t</Button>\n\n\t\t\t\t<Tooltip\n\t\t\t\t\ttitle={ __( 'Save Options', 'elementor' ) }\n\t\t\t\t\tPopperProps={ {\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t'&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom': {\n\t\t\t\t\t\t\t\tmt: 1,\n\t\t\t\t\t\t\t\tmr: 0.25,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<Box component=\"span\" aria-label={ undefined }>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t{ ...bindTrigger( popupState ) }\n\t\t\t\t\t\t\tsx={ { px: 0, height: '100%', borderRadius: 0 } }\n\t\t\t\t\t\t\tdisabled={ isSaveOptionsDisabled }\n\t\t\t\t\t\t\taria-label={ __( 'Save Options', 'elementor' ) }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ChevronDownIcon />\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</Box>\n\t\t\t\t</Tooltip>\n\t\t\t</ButtonGroup>\n\t\t\t<PrimaryActionMenu { ...bindMenu( popupState ) } onClick={ popupState.close } />\n\t\t</>\n\t);\n}\n\nfunction getLabel( document: Document ) {\n\treturn document.userCan.publish\n\t\t? __( 'Publish', 'elementor' )\n\t\t: __( 'Submit', 'elementor' );\n}\n\nfunction isPublishEnabled( document: Document ) {\n\tif ( document.type.value === 'kit' ) {\n\t\treturn false;\n\t}\n\n\treturn document.isDirty || document.status.value === 'draft';\n}\n","import * as React from 'react';\nimport { Divider, styled } from '@elementor/ui';\nimport { __privatePopoverMenu as PopoverMenu, PopoverMenuProps } from '@elementor/editor-app-bar-ui';\nimport { documentOptionsMenu } from '../locations';\n\nconst { useMenuItems } = documentOptionsMenu;\n\n// CSS hack to hide dividers when a group is rendered empty (due to a limitation in our locations' mechanism).\n// It doesn't cover all the cases (i.e. when there are multiple dividers at the end), but it's good enough for our use-case.\nconst StyledPopoverMenu = styled( PopoverMenu )`\n\t& > .MuiPopover-paper > .MuiList-root > .MuiDivider-root {\n\t\t&:only-child, /* A divider is being rendered lonely */\n\t\t&:last-child, /* The last group renders empty but renders a divider */\n\t\t& + .MuiDivider-root /* Multiple dividers due to multiple empty groups */ {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n`;\n\nexport default function PrimaryActionMenu( props: PopoverMenuProps ) {\n\tconst { save: saveActions, default: defaultActions } = useMenuItems();\n\n\treturn (\n\t\t<StyledPopoverMenu\n\t\t\t{ ...props }\n\t\t\tanchorOrigin={ {\n\t\t\t\tvertical: 'bottom',\n\t\t\t\thorizontal: 'right',\n\t\t\t} }\n\t\t\ttransformOrigin={ {\n\t\t\t\tvertical: 'top',\n\t\t\t\thorizontal: 'right',\n\t\t\t} }\n\t\t\tmarginThreshold={ 4 }\n\t\t\tPaperProps={ {\n\t\t\t\tsx: { mt: 0.5 },\n\t\t\t} }\n\t\t>\n\t\t\t{ saveActions.map( ( { MenuItem, id }, index ) => ( [\n\t\t\t\t( index > 0 ) && <Divider key={ `${ id }-divider` } />,\n\t\t\t\t<MenuItem key={ id } />,\n\t\t\t] ) ) }\n\n\t\t\t{ defaultActions.length > 0 && <Divider /> }\n\n\t\t\t{ defaultActions.map( ( { MenuItem, id } ) => <MenuItem key={ id } /> ) }\n\t\t</StyledPopoverMenu>\n\t);\n}\n","import { __ } from '@wordpress/i18n';\nimport { __privateIsRouteActive as isRouteActive, __privateListenTo as listenTo, routeOpenEvent, v1ReadyEvent } from '@elementor/editor-v1-adapters';\n\ntype ExtendedWindow = Window & {\n\telementor: {\n\t\tgetPanelView: () => {\n\t\t\tgetHeaderView: () => {\n\t\t\t\tsetTitle: ( title: string ) => void;\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport default function syncPanelTitle() {\n\tconst panelTitle = __( 'Elements', 'elementor' );\n\tconst tabTitle = __( 'Widgets', 'elementor' );\n\n\tlistenTo(\n\t\trouteOpenEvent( 'panel/elements' ),\n\t\t() => {\n\t\t\tsetPanelTitle( panelTitle );\n\t\t\tsetTabTitle( tabTitle );\n\t\t}\n\t);\n\n\tlistenTo(\n\t\tv1ReadyEvent(),\n\t\t() => {\n\t\t\tif ( isRouteActive( 'panel/elements' ) ) {\n\t\t\t\tsetPanelTitle( panelTitle );\n\t\t\t\tsetTabTitle( tabTitle );\n\t\t\t}\n\t\t}\n\t);\n}\n\nfunction setPanelTitle( title: string ) {\n\t( window as unknown as ExtendedWindow ).elementor?.getPanelView?.()?.getHeaderView?.()?.setTitle?.( title );\n}\n\nfunction setTabTitle( title: string ) {\n\tconst tab = document.querySelector( '.elementor-component-tab[data-tab=\"categories\"]' );\n\n\tif ( tab ) {\n\t\ttab.textContent = title;\n\t}\n}\n","import syncPanelTitle from './sync/sync-panel-title';\nimport { __privateToolsMenu as toolsMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tsyncPanelTitle();\n\n\ttoolsMenu.registerToggleAction( {\n\t\tid: 'open-elements-panel',\n\t\tpriority: 1,\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { PlusIcon } from '@elementor/icons';\nimport { __ } from '@wordpress/i18n';\nimport { __privateOpenRoute as openRoute, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps() {\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/elements' );\n\n\treturn {\n\t\ttitle: __( 'Add Element', 'elementor' ),\n\t\ticon: PlusIcon,\n\t\tonClick: () => openRoute( 'panel/elements/categories' ),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateUtilitiesMenu as utilitiesMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tutilitiesMenu.registerAction( {\n\t\tid: 'toggle-finder',\n\t\tpriority: 10, // Before help.\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { SearchIcon } from '@elementor/icons';\nimport { __privateRunCommand as runCommand, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps() {\n\tconst { isBlocked } = useRouteStatus( 'finder', {\n\t\tblockOnKitRoutes: false,\n\t\tblockOnPreviewMode: false,\n\t} );\n\n\treturn {\n\t\ttitle: __( 'Finder', 'elementor' ),\n\t\ticon: SearchIcon,\n\t\tonClick: () => runCommand( 'finder/toggle' ),\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateUtilitiesMenu as utilitiesMenu } from '@elementor/editor-app-bar-ui';\nimport { __ } from '@wordpress/i18n';\nimport { HelpIcon } from '@elementor/icons';\n\nexport function init() {\n\tutilitiesMenu.registerLink( {\n\t\tid: 'open-help-center',\n\t\tpriority: 20, // After Finder.\n\t\tuseProps: () => {\n\t\t\treturn {\n\t\t\t\ttitle: __( 'Help', 'elementor' ),\n\t\t\t\thref: 'https://go.elementor.com/editor-top-bar-learn/',\n\t\t\t\ticon: HelpIcon,\n\t\t\t\ttarget: '_blank',\n\t\t\t};\n\t\t},\n\t} );\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tmainMenu.registerToggleAction( {\n\t\tid: 'open-history',\n\t\tpriority: 20,\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { HistoryIcon } from '@elementor/icons';\nimport { __ } from '@wordpress/i18n';\nimport { __privateOpenRoute as openRoute, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps() {\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/history' );\n\n\treturn {\n\t\ttitle: __( 'History', 'elementor' ),\n\t\ticon: HistoryIcon,\n\t\tonClick: () => openRoute( 'panel/history/actions' ),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tmainMenu.registerAction( {\n\t\tid: 'open-keyboard-shortcuts',\n\t\tgroup: 'default',\n\t\tpriority: 40, // After user preferences.\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\nimport { KeyboardIcon } from '@elementor/icons';\nimport { __privateRunCommand as runCommand } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps(): ActionProps {\n\treturn {\n\t\ticon: KeyboardIcon,\n\t\ttitle: __( 'Keyboard Shortcuts', 'elementor' ),\n\t\tonClick: () => runCommand( 'shortcuts/open' ),\n\t};\n}\n","import { injectIntoTop } from '@elementor/editor';\nimport PortalledPrimaryAction from './components/portalled-primary-action';\nimport { __privateToolsMenu as toolsMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\t// This is portal, so it injected into the top of the editor, but renders inside the site-settings panel.\n\tinjectIntoTop( {\n\t\tid: 'site-settings-primary-action-portal',\n\t\tcomponent: PortalledPrimaryAction,\n\t} );\n\n\ttoolsMenu.registerToggleAction( {\n\t\tid: 'toggle-site-settings',\n\t\tpriority: 2,\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import * as React from 'react';\nimport Portal from './portal';\nimport PrimaryAction from './primary-action';\n\nexport default function PortalledPrimaryAction() {\n\treturn (\n\t\t<Portal>\n\t\t\t<PrimaryAction />\n\t\t</Portal>\n\t);\n}\n","import * as React from 'react';\nimport { Portal as BasePortal, PortalProps } from '@elementor/ui';\nimport { __privateIsRouteActive as isRouteActive, routeCloseEvent, routeOpenEvent, __privateUseListenTo as useListenTo } from '@elementor/editor-v1-adapters';\n\nexport default function Portal( props: Omit<PortalProps, 'container'> ) {\n\tconst containerRef = useListenTo(\n\t\t[\n\t\t\trouteOpenEvent( 'panel/global' ),\n\t\t\trouteCloseEvent( 'panel/global' ),\n\t\t],\n\t\tgetContainerRef\n\t);\n\n\tif ( ! containerRef.current ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<BasePortal container={ containerRef.current } { ...props } />\n\t);\n}\n\nfunction getContainerRef() {\n\treturn isRouteActive( 'panel/global' )\n\t\t? { current: document.querySelector( '#elementor-panel-inner' ) }\n\t\t: { current: null };\n}\n","import * as React from 'react';\nimport { __useActiveDocument as useActiveDocument, __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\nimport { Button, CircularProgress, Paper } from '@elementor/ui';\nimport { __ } from '@wordpress/i18n';\n\nexport default function PrimaryAction() {\n\tconst document = useActiveDocument();\n\tconst { save } = useActiveDocumentActions();\n\n\treturn (\n\t\t<Paper sx={ {\n\t\t\tpx: 5,\n\t\t\tpy: 4,\n\t\t\tborderTop: 1,\n\t\t\tborderColor: 'divider',\n\t\t} }>\n\t\t\t<Button\n\t\t\t\tvariant=\"contained\"\n\t\t\t\tdisabled={ ! document || ! document.isDirty }\n\t\t\t\tsize=\"medium\"\n\t\t\t\tsx={ { width: '100%' } }\n\t\t\t\tonClick={ () => document && ! document.isSaving ? save() : null }\n\t\t\t>\n\t\t\t\t{\n\t\t\t\t\tdocument?.isSaving\n\t\t\t\t\t\t? <CircularProgress />\n\t\t\t\t\t\t: __( 'Save Changes', 'elementor' )\n\t\t\t\t}\n\t\t\t</Button>\n\t\t</Paper>\n\t);\n}\n","import { __ } from '@wordpress/i18n';\nimport { __privateRunCommand as runCommand, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\nimport { ToggleActionProps } from '@elementor/editor-app-bar-ui';\nimport { AdjustmentsHorizontalIcon } from '@elementor/icons';\n\nexport default function useActionProps(): ToggleActionProps {\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/global', {\n\t\tblockOnKitRoutes: false,\n\t} );\n\n\treturn {\n\t\ttitle: __( 'Site Settings', 'elementor' ),\n\t\ticon: AdjustmentsHorizontalIcon,\n\t\tonClick: () => (\n\t\t\tisActive\n\t\t\t\t? runCommand( 'panel/global/close' )\n\t\t\t\t: runCommand( 'panel/global/open' )\n\t\t),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateToolsMenu as toolsMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\ttoolsMenu.registerToggleAction( {\n\t\tid: 'toggle-structure-view',\n\t\tpriority: 3,\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { __privateRunCommand as runCommand, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\nimport { StructureIcon } from '@elementor/icons';\nimport { ToggleActionProps } from '@elementor/editor-app-bar-ui';\n\nexport default function useActionProps(): ToggleActionProps {\n\tconst { isActive, isBlocked } = useRouteStatus( 'navigator' );\n\n\treturn {\n\t\ttitle: __( 'Structure', 'elementor' ),\n\t\ticon: StructureIcon,\n\t\tonClick: () => runCommand( 'navigator/toggle' ),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport useThemeBuilderActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tmainMenu.registerAction( {\n\t\tid: 'open-theme-builder',\n\t\tuseProps: useThemeBuilderActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { ThemeBuilderIcon } from '@elementor/icons';\nimport { __privateRunCommand as runCommand } from '@elementor/editor-v1-adapters';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\n\nexport default function useActionProps(): ActionProps {\n\treturn {\n\t\ticon: ThemeBuilderIcon,\n\t\ttitle: __( 'Theme Builder', 'elementor' ),\n\t\tonClick: () => runCommand( 'app/open' ),\n\t};\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tmainMenu.registerToggleAction( {\n\t\tid: 'open-user-preferences',\n\t\tpriority: 30, // After history.\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { ToggleActionProps } from '@elementor/editor-app-bar-ui';\nimport { ToggleRightIcon } from '@elementor/icons';\nimport { __privateOpenRoute as openRoute, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps(): ToggleActionProps {\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/editor-preferences' );\n\n\treturn {\n\t\ticon: ToggleRightIcon,\n\t\ttitle: __( 'User Preferences', 'elementor' ),\n\t\tonClick: () => openRoute( 'panel/editor-preferences' ),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport { __ } from '@wordpress/i18n';\nimport { WordpressIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument } from '@elementor/editor-documents';\n\nexport function init() {\n\tmainMenu.registerLink( {\n\t\tid: 'exit-to-wordpress',\n\t\tgroup: 'exits',\n\t\tuseProps: () => {\n\t\t\tconst document = useActiveDocument();\n\n\t\t\treturn {\n\t\t\t\ttitle: __( 'Exit to WordPress', 'elementor' ),\n\t\t\t\thref: document?.links?.platformEdit,\n\t\t\t\ticon: WordpressIcon,\n\t\t\t};\n\t\t},\n\t} );\n}\n","/**\n * All the code in this directory is a temporary solution.\n * The code should be moved to the appropriate packages.\n */\n\nimport { init as initDocumentsIndicator } from './documents-indicator';\nimport { init as initDocumentsPreview } from './documents-preview';\nimport { init as initDocumentsSave } from './documents-save';\nimport { init as initElements } from './elements';\nimport { init as initFinder } from './finder';\nimport { init as initHelp } from './help';\nimport { init as initHistory } from './history';\nimport { init as initKeyboardShortcuts } from './keyboard-shortcuts';\nimport { init as initSiteSettings } from './site-settings';\nimport { init as initStructure } from './structure';\nimport { init as initThemeBuilder } from './theme-builder';\nimport { init as initUserPreferences } from './user-preferences';\nimport { init as initWordpress } from './wordpress';\n\nexport function init() {\n\tinitDocumentsIndicator();\n\tinitDocumentsPreview();\n\tinitDocumentsSave();\n\tinitElements();\n\tinitFinder();\n\tinitHelp();\n\tinitHistory();\n\tinitKeyboardShortcuts();\n\tinitSiteSettings();\n\tinitStructure();\n\tinitThemeBuilder();\n\tinitUserPreferences();\n\tinitWordpress();\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,IAAAA,6BAQO;;;ACVP,+BAAkD;AAE3C,IAAM,0BAAsB,yBAAAC,qBAAY,CAAE,MAAO,CAAE;;;ACF1D,IAAAC,6BAA0C;AAC1C,IAAAC,iBAA8B;;;ACD9B,gCAA+F;AAEhF,SAAR,mBAAoC;AAG1C,gCAAAC,uBAAU,0CAAgB,YAAa,GAAG,MAAM;AAC/C,kCAAAC,oBAAW,2BAA4B;AAAA,EACxC,CAAE;AACH;;;ACRA,IAAAC,4BAA8E;;;ACA9E,YAAuB;AACvB,gBAAwE;AACxE,kBAAmB;AACnB,IAAAC,6BAA2F;AAC3F,mBAA6B;AAC7B,8BAA+F;AAEhF,SAAR,iBAAkC;AACxC,QAAM,qBAAiB,wBAAAC,qBAAkB;AACzC,QAAM,mBAAe,wBAAAC,mBAAgB;AAErC,QAAMC,YAAW,kBAAkB,eAAe,KAAK,UAAU,QAC9D,iBACA;AAEH,QAAM,EAAE,UAAU,UAAU,QAAI,2BAAAC,yBAAgB,qBAAsB;AAEtE,MAAK,CAAED,WAAW;AACjB,WAAO;AAAA,EACR;AAGA,QAAM,YAAQ,gBAAI,eAAe,WAAY,EAC3C,QAAS,MAAMA,UAAS,KAAK,KAAM;AAErC,SACC,oCAAC,WAAQ,SAER,oCAAC,iBAAI,WAAU,QAAO,cAAa,UAClC;AAAA,IAAC;AAAA;AAAA,MACA,OAAM;AAAA,MACN,UAAW;AAAA,MACX,UAAW;AAAA,MACX,UAAW,UAAM,2BAAAE,oBAAW,8BAA+B;AAAA,MAC3D,cAAa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C9B,IAAAC,2BAAyD;AAElD,SAASC,SAAO;AACtB,6BAAAC,kBAAS,aAAc;AAAA,IACtB,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,UAAU,MAAM;AACf,YAAMC,gBAAW,yBAAAC,qBAAkB;AAEnC,aAAO;AAAA,QACN,WAAO,kBAAI,qBAAqB,WAAY;AAAA,QAC5C,MAAMD,WAAU,OAAO;AAAA,QACvB,MAAM;AAAA,MACP;AAAA,IACD;AAAA,EACD,CAAE;AACH;;;ACAO,SAASE,SAAO;AACtB,OAAuB;AACvB,EAAAA,MAAqB;AACrB,EAAAA,MAAkB;AAClB,EAAAA,MAAa;AACb,EAAAA,MAAW;AACX,EAAAA,MAAS;AACT,EAAAA,MAAY;AACZ,EAAAA,MAAsB;AACtB,EAAAA,MAAiB;AACjB,EAAAA,OAAc;AACd,EAAAA,OAAiB;AACjB,EAAAA,OAAoB;AACpB,EAAAA,OAAc;AACf;;;AlC5Be,SAARC,SAAwB;AAC9B,mBAAiB;AAEjB,EAAAA,OAAe;AAEf,oCAAe;AAAA,IACd,IAAI;AAAA,IACJ,WAAW,2BAAAC;AAAA,EACZ,CAAE;AACH;;;AFEAC,OAAK;","names":["import_editor_app_bar_ui","createMenu","import_editor_app_bar_ui","import_editor","listenTo","openRoute","import_editor_app_bar_ui","import_editor_v1_adapters","useActiveDocument","useHostDocument","document","useRouteStatus","openRoute","BaseTooltip","injectIntoPageIndication","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","import_editor_documents","document","useActiveDocument","runCommand","init","utilitiesMenu","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_documents","document","useActiveDocument","useActiveDocumentActions","import_i18n","import_icons","import_editor_documents","useActiveDocumentActions","import_i18n","import_icons","import_editor_documents","import_editor_v1_adapters","document","useActiveDocument","runCommand","React","import_i18n","React","import_ui","import_editor_app_bar_ui","PopoverMenu","import_ui","import_editor_documents","import_icons","import_editor_v1_adapters","document","useActiveDocument","useActiveDocumentActions","useIsPreviewMode","init","injectIntoPrimaryAction","import_i18n","import_editor_v1_adapters","listenTo","isRouteActive","import_editor_app_bar_ui","import_icons","import_i18n","import_editor_v1_adapters","useActionProps","useRouteStatus","openRoute","init","toolsMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","useActionProps","useRouteStatus","runCommand","init","utilitiesMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","init","utilitiesMenu","import_editor_app_bar_ui","import_icons","import_i18n","import_editor_v1_adapters","useActionProps","useRouteStatus","openRoute","init","mainMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","useActionProps","runCommand","init","mainMenu","useActionProps","React","React","import_ui","import_editor_v1_adapters","useListenTo","BasePortal","isRouteActive","React","import_editor_documents","import_ui","import_i18n","PrimaryAction","document","useActiveDocument","useActiveDocumentActions","PrimaryAction","import_editor_app_bar_ui","import_i18n","import_editor_v1_adapters","import_icons","useActionProps","useRouteStatus","runCommand","init","toolsMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_editor_v1_adapters","import_icons","useActionProps","useRouteStatus","runCommand","init","toolsMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","useActionProps","runCommand","init","mainMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","useActionProps","useRouteStatus","openRoute","init","mainMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_documents","init","mainMenu","document","useActiveDocument","init","init","AppBar","init"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/extensions/documents-save/locations.ts","../src/init.ts","../src/sync/redirect-old-menus.ts","../src/extensions/documents-indicator/index.ts","../src/extensions/documents-indicator/components/settings-button.tsx","../src/extensions/documents-preview/index.ts","../src/extensions/documents-preview/hooks/use-action-props.ts","../src/extensions/documents-save/index.ts","../src/extensions/documents-save/hooks/use-document-save-draft-props.ts","../src/extensions/documents-save/hooks/use-document-save-template-props.ts","../src/extensions/documents-save/hooks/use-document-view-page-props.ts","../src/extensions/documents-save/components/primary-action.tsx","../src/extensions/documents-save/components/primary-action-menu.tsx","../src/extensions/documents-save/hooks/use-document-copy-and-share-props.ts","../src/extensions/elements/sync/sync-panel-title.ts","../src/extensions/elements/index.ts","../src/extensions/elements/hooks/use-action-props.ts","../src/extensions/finder/index.ts","../src/extensions/finder/hooks/use-action-props.ts","../src/extensions/help/index.ts","../src/extensions/history/index.ts","../src/extensions/history/hooks/use-action-props.ts","../src/extensions/keyboard-shortcuts/index.ts","../src/extensions/keyboard-shortcuts/hooks/use-action-props.ts","../src/extensions/site-settings/index.ts","../src/extensions/site-settings/components/portalled-primary-action.tsx","../src/extensions/site-settings/components/portal.tsx","../src/extensions/site-settings/components/primary-action.tsx","../src/extensions/site-settings/hooks/use-action-props.ts","../src/extensions/structure/index.ts","../src/extensions/structure/hooks/use-action-props.ts","../src/extensions/theme-builder/index.ts","../src/extensions/theme-builder/hooks/use-action-props.ts","../src/extensions/user-preferences/index.ts","../src/extensions/user-preferences/hooks/use-action-props.ts","../src/extensions/wordpress/index.ts","../src/extensions/index.ts"],"sourcesContent":["// Re-exporting the menus & locations from `@elementor/editor-app-bar-ui`\n// to expose the API for other packages to use.\nexport {\n\t__privateMainMenu as mainMenu,\n\t__privateToolsMenu as toolsMenu,\n\t__privateUtilitiesMenu as utilitiesMenu,\n\t__privateIntegrationsMenu as integrationsMenu,\n\t__privateInjectIntoPageIndication as injectIntoPageIndication,\n\t__privateInjectIntoResponsive as injectIntoResponsive,\n\t__privateInjectIntoPrimaryAction as injectIntoPrimaryAction,\n} from '@elementor/editor-app-bar-ui';\n\nexport { documentOptionsMenu } from './extensions/documents-save/locations';\n\nimport init from './init';\n\ninit();\n","import { __privateCreateMenu as createMenu } from '@elementor/editor-app-bar-ui';\n\nexport const documentOptionsMenu = createMenu( [ 'save' ] );\n","import { __privateAppBar as AppBar } from '@elementor/editor-app-bar-ui';\nimport { injectIntoTop } from '@elementor/editor';\nimport redirectOldMenus from './sync/redirect-old-menus';\nimport { init as initExtensions } from './extensions';\n\nexport default function init() {\n\tredirectOldMenus();\n\n\tinitExtensions();\n\n\tinjectIntoTop( {\n\t\tid: 'app-bar',\n\t\tcomponent: AppBar,\n\t} );\n}\n","import { __privateListenTo as listenTo, __privateOpenRoute as openRoute, routeOpenEvent } from '@elementor/editor-v1-adapters';\n\nexport default function redirectOldMenus() {\n\t// Currently, in V1, when you click `esc` it opens the hamburger menu in the panel.\n\t// In V2, we don't have this panel, so we redirect the user to the elements panel instead.\n\tlistenTo( routeOpenEvent( 'panel/menu' ), () => {\n\t\topenRoute( 'panel/elements/categories' );\n\t} );\n}\n","import { __privateInjectIntoPageIndication as injectIntoPageIndication } from '@elementor/editor-app-bar-ui';\nimport SettingsButton from './components/settings-button';\n\nexport function init() {\n\tinjectIntoPageIndication( {\n\t\tid: 'document-settings-button',\n\t\tcomponent: SettingsButton,\n\t\toptions: {\n\t\t\tpriority: 20, // After document indicator.\n\t\t},\n\t} );\n}\n","import * as React from 'react';\nimport { Box, ToggleButton, Tooltip as BaseTooltip, TooltipProps } from '@elementor/ui';\nimport { __ } from '@wordpress/i18n';\nimport { __privateOpenRoute as openRoute, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\nimport { SettingsIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument, __useHostDocument as useHostDocument } from '@elementor/editor-documents';\n\nexport default function SettingsButton() {\n\tconst activeDocument = useActiveDocument();\n\tconst hostDocument = useHostDocument();\n\n\tconst document = activeDocument && activeDocument.type.value !== 'kit'\n\t\t? activeDocument\n\t\t: hostDocument;\n\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/page-settings' );\n\n\tif ( ! document ) {\n\t\treturn null;\n\t}\n\n\t/* translators: %s: Post type label. */\n\tconst title = __( '%s Settings', 'elementor' )\n\t\t.replace( '%s', document.type.label );\n\n\treturn (\n\t\t<Tooltip title={ title }>\n\t\t\t{ /* @see https://mui.com/material-ui/react-tooltip/#disabled-elements */ }\n\t\t\t<Box component=\"span\" aria-label={ undefined }>\n\t\t\t\t<ToggleButton\n\t\t\t\t\tvalue=\"document-settings\"\n\t\t\t\t\tselected={ isActive }\n\t\t\t\t\tdisabled={ isBlocked }\n\t\t\t\t\tonChange={ () => openRoute( 'panel/page-settings/settings' ) }\n\t\t\t\t\taria-label={ title }\n\t\t\t\t\tsize=\"small\"\n\t\t\t\t\tsx={ {\n\t\t\t\t\t\tborder: 0, // Temp fix until the style of the ToggleButton component will be decided.\n\t\t\t\t\t\t'&.Mui-disabled': {\n\t\t\t\t\t\t\tborder: 0, // Temp fix until the style of the ToggleButton component will be decided.\n\t\t\t\t\t\t},\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<SettingsIcon fontSize=\"small\" />\n\t\t\t\t</ToggleButton>\n\t\t\t</Box>\n\t\t</Tooltip>\n\t);\n}\n\nfunction Tooltip( props: TooltipProps ) {\n\treturn <BaseTooltip\n\t\tPopperProps={ {\n\t\t\tsx: {\n\t\t\t\t'&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom': {\n\t\t\t\t\tmt: 1.7,\n\t\t\t\t},\n\t\t\t},\n\t\t} }\n\t\t{ ...props }\n\t/>;\n}\n","import { __privateUtilitiesMenu as utilitiesMenu } from '@elementor/editor-app-bar-ui';\nimport useDocumentPreviewProps from './hooks/use-action-props';\n\nexport function init() {\n\tutilitiesMenu.registerAction( {\n\t\tid: 'document-preview-button',\n\t\tpriority: 30, // After help.\n\t\tuseProps: useDocumentPreviewProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { EyeIcon } from '@elementor/icons';\nimport { __privateRunCommand as runCommand } from '@elementor/editor-v1-adapters';\nimport { __useActiveDocument as useActiveDocument } from '@elementor/editor-documents';\n\nexport default function useActionProps() {\n\tconst document = useActiveDocument();\n\n\treturn {\n\t\ticon: EyeIcon,\n\t\ttitle: __( 'Preview Changes', 'elementor' ),\n\t\tonClick: () => document && runCommand( 'editor/documents/preview', {\n\t\t\tid: document.id,\n\t\t\tforce: true,\n\t\t} ),\n\t};\n}\n","import { __privateInjectIntoPrimaryAction as injectIntoPrimaryAction } from '@elementor/editor-app-bar-ui';\nimport useDocumentSaveDraftProps from './hooks/use-document-save-draft-props';\nimport useDocumentSaveTemplateProps from './hooks/use-document-save-template-props';\nimport useDocumentViewPageProps from './hooks/use-document-view-page-props';\nimport PrimaryAction from './components/primary-action';\nimport { documentOptionsMenu } from './locations';\nimport useDocumentCopyAndShareProps from './hooks/use-document-copy-and-share-props';\n\nexport function init() {\n\tinjectIntoPrimaryAction( {\n\t\tid: 'document-primary-action',\n\t\tcomponent: PrimaryAction,\n\t} );\n\n\tdocumentOptionsMenu.registerAction( {\n\t\tgroup: 'save',\n\t\tid: 'document-save-draft',\n\t\tpriority: 10,\n\t\tuseProps: useDocumentSaveDraftProps,\n\t} );\n\n\tdocumentOptionsMenu.registerAction( {\n\t\tgroup: 'save',\n\t\tid: 'document-save-as-template',\n\t\tpriority: 20,\n\t\tuseProps: useDocumentSaveTemplateProps,\n\t} );\n\n\tdocumentOptionsMenu.registerAction( {\n\t\tid: 'document-copy-and-share',\n\t\tpriority: 10,\n\t\tuseProps: useDocumentCopyAndShareProps,\n\t} );\n\n\tdocumentOptionsMenu.registerAction( {\n\t\tid: 'document-view-page',\n\t\tpriority: 50,\n\t\tuseProps: useDocumentViewPageProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\nimport { FileReportIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument, __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\n\nexport default function useDocumentSaveDraftProps(): ActionProps {\n\tconst document = useActiveDocument();\n\tconst { saveDraft } = useActiveDocumentActions();\n\n\treturn {\n\t\ticon: FileReportIcon,\n\t\ttitle: __( 'Save Draft', 'elementor' ),\n\t\tonClick: saveDraft,\n\t\tdisabled: ! document || document.isSaving || document.isSavingDraft || ! document.isDirty,\n\t};\n}\n","import { __ } from '@wordpress/i18n';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\nimport { FolderIcon } from '@elementor/icons';\nimport { __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\n\nexport default function useDocumentSaveTemplateProps(): ActionProps {\n\tconst { saveTemplate } = useActiveDocumentActions();\n\n\treturn {\n\t\ticon: FolderIcon,\n\t\ttitle: __( 'Save as Template', 'elementor' ),\n\t\tonClick: saveTemplate,\n\t};\n}\n","import { __ } from '@wordpress/i18n';\nimport { EyeIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument } from '@elementor/editor-documents';\nimport { __privateRunCommand as runCommand } from '@elementor/editor-v1-adapters';\n\nexport default function useDocumentViewPageProps() {\n\tconst document = useActiveDocument();\n\n\treturn {\n\t\ticon: EyeIcon,\n\t\ttitle: __( 'View Page', 'elementor' ),\n\t\tonClick: () => document?.id && runCommand( 'editor/documents/view', {\n\t\t\tid: document.id,\n\t\t} ),\n\t};\n}\n","import * as React from 'react';\nimport { __ } from '@wordpress/i18n';\nimport PrimaryActionMenu from './primary-action-menu';\nimport {\n\tbindMenu,\n\tbindTrigger,\n\tBox,\n\tButton,\n\tButtonGroup,\n\tCircularProgress,\n\tTooltip,\n\tusePopupState,\n} from '@elementor/ui';\nimport { Document, __useActiveDocument as useActiveDocument, __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\nimport { ChevronDownIcon } from '@elementor/icons';\nimport { __privateUseIsPreviewMode as useIsPreviewMode } from '@elementor/editor-v1-adapters';\n\nexport default function PrimaryAction() {\n\tconst document = useActiveDocument();\n\tconst { save } = useActiveDocumentActions();\n\tconst isPreviewMode = useIsPreviewMode();\n\n\tconst popupState = usePopupState( {\n\t\tvariant: 'popover',\n\t\tpopupId: 'document-save-options',\n\t} );\n\n\tif ( ! document ) {\n\t\treturn null;\n\t}\n\n\tconst isPublishDisabled = isPreviewMode || ! isPublishEnabled( document );\n\tconst isSaveOptionsDisabled = isPreviewMode || document.type.value === 'kit';\n\n\t// When the document is being saved, the spinner should not appear.\n\t// Usually happens when the Kit is being saved.\n\tconst shouldShowSpinner = document.isSaving && ! isPublishDisabled;\n\n\treturn (\n\t\t<>\n\t\t\t<ButtonGroup size=\"large\" variant=\"contained\">\n\t\t\t\t<Button\n\t\t\t\t\tonClick={ () => ! document.isSaving && save() }\n\t\t\t\t\tsx={ {\n\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\tborderRadius: 0,\n\t\t\t\t\t\tmaxWidth: '158px',\n\t\t\t\t\t\t'&.MuiButtonBase-root.MuiButtonGroup-grouped': {\n\t\t\t\t\t\t\tminWidth: '110px',\n\t\t\t\t\t\t},\n\t\t\t\t\t} }\n\t\t\t\t\tdisabled={ isPublishDisabled }\n\t\t\t\t>\n\t\t\t\t\t{ shouldShowSpinner ? <CircularProgress color=\"inherit\" size=\"1.5em\" /> : getLabel( document ) }\n\t\t\t\t</Button>\n\n\t\t\t\t<Tooltip\n\t\t\t\t\ttitle={ __( 'Save Options', 'elementor' ) }\n\t\t\t\t\tPopperProps={ {\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t'&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom': {\n\t\t\t\t\t\t\t\tmt: 1,\n\t\t\t\t\t\t\t\tmr: 0.25,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<Box component=\"span\" aria-label={ undefined }>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t{ ...bindTrigger( popupState ) }\n\t\t\t\t\t\t\tsx={ { px: 0, height: '100%', borderRadius: 0 } }\n\t\t\t\t\t\t\tdisabled={ isSaveOptionsDisabled }\n\t\t\t\t\t\t\taria-label={ __( 'Save Options', 'elementor' ) }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ChevronDownIcon />\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</Box>\n\t\t\t\t</Tooltip>\n\t\t\t</ButtonGroup>\n\t\t\t<PrimaryActionMenu { ...bindMenu( popupState ) } onClick={ popupState.close } />\n\t\t</>\n\t);\n}\n\nfunction getLabel( document: Document ) {\n\treturn document.userCan.publish\n\t\t? __( 'Publish', 'elementor' )\n\t\t: __( 'Submit', 'elementor' );\n}\n\nfunction isPublishEnabled( document: Document ) {\n\tif ( document.type.value === 'kit' ) {\n\t\treturn false;\n\t}\n\n\treturn document.isDirty || document.status.value === 'draft';\n}\n","import * as React from 'react';\nimport { Divider, styled } from '@elementor/ui';\nimport { __privatePopoverMenu as PopoverMenu, PopoverMenuProps } from '@elementor/editor-app-bar-ui';\nimport { documentOptionsMenu } from '../locations';\n\nconst { useMenuItems } = documentOptionsMenu;\n\n// CSS hack to hide dividers for empty menu items, due to a limitation in the locations' mechanism.\nconst StyledPopoverMenu = styled( PopoverMenu )`\n\t& > .MuiPopover-paper > .MuiList-root {\n\t\t& > .MuiDivider-root {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > *:not(.MuiDivider-root):not(:last-of-type) + .MuiDivider-root {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n`;\n\nexport default function PrimaryActionMenu( props: PopoverMenuProps ) {\n\tconst { save: saveActions, default: defaultActions } = useMenuItems();\n\n\treturn (\n\t\t<StyledPopoverMenu\n\t\t\t{ ...props }\n\t\t\tanchorOrigin={ {\n\t\t\t\tvertical: 'bottom',\n\t\t\t\thorizontal: 'right',\n\t\t\t} }\n\t\t\ttransformOrigin={ {\n\t\t\t\tvertical: 'top',\n\t\t\t\thorizontal: 'right',\n\t\t\t} }\n\t\t\tmarginThreshold={ 4 }\n\t\t\tPaperProps={ {\n\t\t\t\tsx: { mt: 0.5 },\n\t\t\t} }\n\t\t>\n\t\t\t{ saveActions.map( ( { MenuItem, id }, index ) => ( [\n\t\t\t\t( index > 0 ) && <Divider key={ `${ id }-divider` } />,\n\t\t\t\t<MenuItem key={ id } />,\n\t\t\t] ) ) }\n\n\t\t\t{ saveActions.length > 0 && defaultActions.length > 0 && <Divider /> }\n\n\t\t\t{ defaultActions.map( ( { MenuItem, id }, index ) => ( [\n\t\t\t\t( index > 0 ) && <Divider key={ `${ id }-divider` } />,\n\t\t\t\t<MenuItem key={ id } />,\n\t\t\t] ) ) }\n\t\t</StyledPopoverMenu>\n\t);\n}\n","import { __ } from '@wordpress/i18n';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\nimport { LinkIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument, __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\n\nexport default function useDocumentCopyAndShareProps(): ActionProps {\n\tconst document = useActiveDocument();\n\tconst { copyAndShare } = useActiveDocumentActions();\n\n\treturn {\n\t\ticon: LinkIcon,\n\t\ttitle: __( 'Copy and Share', 'elementor' ),\n\t\tonClick: copyAndShare,\n\t\tdisabled: ! document ||\n\t\t\tdocument.isSaving ||\n\t\t\tdocument.isSavingDraft ||\n\t\t\t! ( 'publish' === document.status.value ),\n\t\tvisible: document?.permissions?.showCopyAndShare,\n\t};\n}\n","import { __ } from '@wordpress/i18n';\nimport { __privateIsRouteActive as isRouteActive, __privateListenTo as listenTo, routeOpenEvent, v1ReadyEvent } from '@elementor/editor-v1-adapters';\n\ntype ExtendedWindow = Window & {\n\telementor: {\n\t\tgetPanelView: () => {\n\t\t\tgetHeaderView: () => {\n\t\t\t\tsetTitle: ( title: string ) => void;\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport default function syncPanelTitle() {\n\tconst panelTitle = __( 'Elements', 'elementor' );\n\tconst tabTitle = __( 'Widgets', 'elementor' );\n\n\tlistenTo(\n\t\trouteOpenEvent( 'panel/elements' ),\n\t\t() => {\n\t\t\tsetPanelTitle( panelTitle );\n\t\t\tsetTabTitle( tabTitle );\n\t\t}\n\t);\n\n\tlistenTo(\n\t\tv1ReadyEvent(),\n\t\t() => {\n\t\t\tif ( isRouteActive( 'panel/elements' ) ) {\n\t\t\t\tsetPanelTitle( panelTitle );\n\t\t\t\tsetTabTitle( tabTitle );\n\t\t\t}\n\t\t}\n\t);\n}\n\nfunction setPanelTitle( title: string ) {\n\t( window as unknown as ExtendedWindow ).elementor?.getPanelView?.()?.getHeaderView?.()?.setTitle?.( title );\n}\n\nfunction setTabTitle( title: string ) {\n\tconst tab = document.querySelector( '.elementor-component-tab[data-tab=\"categories\"]' );\n\n\tif ( tab ) {\n\t\ttab.textContent = title;\n\t}\n}\n","import syncPanelTitle from './sync/sync-panel-title';\nimport { __privateToolsMenu as toolsMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tsyncPanelTitle();\n\n\ttoolsMenu.registerToggleAction( {\n\t\tid: 'open-elements-panel',\n\t\tpriority: 1,\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { PlusIcon } from '@elementor/icons';\nimport { __ } from '@wordpress/i18n';\nimport { __privateOpenRoute as openRoute, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps() {\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/elements' );\n\n\treturn {\n\t\ttitle: __( 'Add Element', 'elementor' ),\n\t\ticon: PlusIcon,\n\t\tonClick: () => openRoute( 'panel/elements/categories' ),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateUtilitiesMenu as utilitiesMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tutilitiesMenu.registerAction( {\n\t\tid: 'toggle-finder',\n\t\tpriority: 10, // Before help.\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { SearchIcon } from '@elementor/icons';\nimport { __privateRunCommand as runCommand, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps() {\n\tconst { isBlocked } = useRouteStatus( 'finder', {\n\t\tblockOnKitRoutes: false,\n\t\tblockOnPreviewMode: false,\n\t} );\n\n\treturn {\n\t\ttitle: __( 'Finder', 'elementor' ),\n\t\ticon: SearchIcon,\n\t\tonClick: () => runCommand( 'finder/toggle' ),\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateUtilitiesMenu as utilitiesMenu } from '@elementor/editor-app-bar-ui';\nimport { __ } from '@wordpress/i18n';\nimport { HelpIcon } from '@elementor/icons';\n\nexport function init() {\n\tutilitiesMenu.registerLink( {\n\t\tid: 'open-help-center',\n\t\tpriority: 20, // After Finder.\n\t\tuseProps: () => {\n\t\t\treturn {\n\t\t\t\ttitle: __( 'Help', 'elementor' ),\n\t\t\t\thref: 'https://go.elementor.com/editor-top-bar-learn/',\n\t\t\t\ticon: HelpIcon,\n\t\t\t\ttarget: '_blank',\n\t\t\t};\n\t\t},\n\t} );\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tmainMenu.registerToggleAction( {\n\t\tid: 'open-history',\n\t\tpriority: 20,\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { HistoryIcon } from '@elementor/icons';\nimport { __ } from '@wordpress/i18n';\nimport { __privateOpenRoute as openRoute, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps() {\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/history' );\n\n\treturn {\n\t\ttitle: __( 'History', 'elementor' ),\n\t\ticon: HistoryIcon,\n\t\tonClick: () => openRoute( 'panel/history/actions' ),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tmainMenu.registerAction( {\n\t\tid: 'open-keyboard-shortcuts',\n\t\tgroup: 'default',\n\t\tpriority: 40, // After user preferences.\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\nimport { KeyboardIcon } from '@elementor/icons';\nimport { __privateRunCommand as runCommand } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps(): ActionProps {\n\treturn {\n\t\ticon: KeyboardIcon,\n\t\ttitle: __( 'Keyboard Shortcuts', 'elementor' ),\n\t\tonClick: () => runCommand( 'shortcuts/open' ),\n\t};\n}\n","import { injectIntoTop } from '@elementor/editor';\nimport PortalledPrimaryAction from './components/portalled-primary-action';\nimport { __privateToolsMenu as toolsMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\t// This is portal, so it injected into the top of the editor, but renders inside the site-settings panel.\n\tinjectIntoTop( {\n\t\tid: 'site-settings-primary-action-portal',\n\t\tcomponent: PortalledPrimaryAction,\n\t} );\n\n\ttoolsMenu.registerToggleAction( {\n\t\tid: 'toggle-site-settings',\n\t\tpriority: 2,\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import * as React from 'react';\nimport Portal from './portal';\nimport PrimaryAction from './primary-action';\n\nexport default function PortalledPrimaryAction() {\n\treturn (\n\t\t<Portal>\n\t\t\t<PrimaryAction />\n\t\t</Portal>\n\t);\n}\n","import * as React from 'react';\nimport { Portal as BasePortal, PortalProps } from '@elementor/ui';\nimport { __privateIsRouteActive as isRouteActive, routeCloseEvent, routeOpenEvent, __privateUseListenTo as useListenTo } from '@elementor/editor-v1-adapters';\n\nexport default function Portal( props: Omit<PortalProps, 'container'> ) {\n\tconst containerRef = useListenTo(\n\t\t[\n\t\t\trouteOpenEvent( 'panel/global' ),\n\t\t\trouteCloseEvent( 'panel/global' ),\n\t\t],\n\t\tgetContainerRef\n\t);\n\n\tif ( ! containerRef.current ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<BasePortal container={ containerRef.current } { ...props } />\n\t);\n}\n\nfunction getContainerRef() {\n\treturn isRouteActive( 'panel/global' )\n\t\t? { current: document.querySelector( '#elementor-panel-inner' ) }\n\t\t: { current: null };\n}\n","import * as React from 'react';\nimport { __useActiveDocument as useActiveDocument, __useActiveDocumentActions as useActiveDocumentActions } from '@elementor/editor-documents';\nimport { Button, CircularProgress, Paper } from '@elementor/ui';\nimport { __ } from '@wordpress/i18n';\n\nexport default function PrimaryAction() {\n\tconst document = useActiveDocument();\n\tconst { save } = useActiveDocumentActions();\n\n\treturn (\n\t\t<Paper sx={ {\n\t\t\tpx: 5,\n\t\t\tpy: 4,\n\t\t\tborderTop: 1,\n\t\t\tborderColor: 'divider',\n\t\t} }>\n\t\t\t<Button\n\t\t\t\tvariant=\"contained\"\n\t\t\t\tdisabled={ ! document || ! document.isDirty }\n\t\t\t\tsize=\"medium\"\n\t\t\t\tsx={ { width: '100%' } }\n\t\t\t\tonClick={ () => document && ! document.isSaving ? save() : null }\n\t\t\t>\n\t\t\t\t{\n\t\t\t\t\tdocument?.isSaving\n\t\t\t\t\t\t? <CircularProgress />\n\t\t\t\t\t\t: __( 'Save Changes', 'elementor' )\n\t\t\t\t}\n\t\t\t</Button>\n\t\t</Paper>\n\t);\n}\n","import { __ } from '@wordpress/i18n';\nimport { __privateRunCommand as runCommand, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\nimport { ToggleActionProps } from '@elementor/editor-app-bar-ui';\nimport { AdjustmentsHorizontalIcon } from '@elementor/icons';\n\nexport default function useActionProps(): ToggleActionProps {\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/global', {\n\t\tblockOnKitRoutes: false,\n\t} );\n\n\treturn {\n\t\ttitle: __( 'Site Settings', 'elementor' ),\n\t\ticon: AdjustmentsHorizontalIcon,\n\t\tonClick: () => (\n\t\t\tisActive\n\t\t\t\t? runCommand( 'panel/global/close' )\n\t\t\t\t: runCommand( 'panel/global/open' )\n\t\t),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateToolsMenu as toolsMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\ttoolsMenu.registerToggleAction( {\n\t\tid: 'toggle-structure-view',\n\t\tpriority: 3,\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { __privateRunCommand as runCommand, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\nimport { StructureIcon } from '@elementor/icons';\nimport { ToggleActionProps } from '@elementor/editor-app-bar-ui';\n\nexport default function useActionProps(): ToggleActionProps {\n\tconst { isActive, isBlocked } = useRouteStatus( 'navigator' );\n\n\treturn {\n\t\ttitle: __( 'Structure', 'elementor' ),\n\t\ticon: StructureIcon,\n\t\tonClick: () => runCommand( 'navigator/toggle' ),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport useThemeBuilderActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tmainMenu.registerAction( {\n\t\tid: 'open-theme-builder',\n\t\tuseProps: useThemeBuilderActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { ThemeBuilderIcon } from '@elementor/icons';\nimport { __privateRunCommand as runCommand } from '@elementor/editor-v1-adapters';\nimport { ActionProps } from '@elementor/editor-app-bar-ui';\n\nexport default function useActionProps(): ActionProps {\n\treturn {\n\t\ticon: ThemeBuilderIcon,\n\t\ttitle: __( 'Theme Builder', 'elementor' ),\n\t\tonClick: () => runCommand( 'app/open' ),\n\t};\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport useActionProps from './hooks/use-action-props';\n\nexport function init() {\n\tmainMenu.registerToggleAction( {\n\t\tid: 'open-user-preferences',\n\t\tpriority: 30, // After history.\n\t\tuseProps: useActionProps,\n\t} );\n}\n","import { __ } from '@wordpress/i18n';\nimport { ToggleActionProps } from '@elementor/editor-app-bar-ui';\nimport { ToggleRightIcon } from '@elementor/icons';\nimport { __privateOpenRoute as openRoute, __privateUseRouteStatus as useRouteStatus } from '@elementor/editor-v1-adapters';\n\nexport default function useActionProps(): ToggleActionProps {\n\tconst { isActive, isBlocked } = useRouteStatus( 'panel/editor-preferences' );\n\n\treturn {\n\t\ticon: ToggleRightIcon,\n\t\ttitle: __( 'User Preferences', 'elementor' ),\n\t\tonClick: () => openRoute( 'panel/editor-preferences' ),\n\t\tselected: isActive,\n\t\tdisabled: isBlocked,\n\t};\n}\n","import { __privateMainMenu as mainMenu } from '@elementor/editor-app-bar-ui';\nimport { __ } from '@wordpress/i18n';\nimport { WordpressIcon } from '@elementor/icons';\nimport { __useActiveDocument as useActiveDocument } from '@elementor/editor-documents';\n\nexport function init() {\n\tmainMenu.registerLink( {\n\t\tid: 'exit-to-wordpress',\n\t\tgroup: 'exits',\n\t\tuseProps: () => {\n\t\t\tconst document = useActiveDocument();\n\t\t\treturn {\n\t\t\t\ttitle: __( 'Exit to WordPress', 'elementor' ),\n\t\t\t\thref: document?.links?.platformEdit,\n\t\t\t\ticon: WordpressIcon,\n\t\t\t};\n\t\t},\n\t} );\n}\n","/**\n * All the code in this directory is a temporary solution.\n * The code should be moved to the appropriate packages.\n */\n\nimport { init as initDocumentsIndicator } from './documents-indicator';\nimport { init as initDocumentsPreview } from './documents-preview';\nimport { init as initDocumentsSave } from './documents-save';\nimport { init as initElements } from './elements';\nimport { init as initFinder } from './finder';\nimport { init as initHelp } from './help';\nimport { init as initHistory } from './history';\nimport { init as initKeyboardShortcuts } from './keyboard-shortcuts';\nimport { init as initSiteSettings } from './site-settings';\nimport { init as initStructure } from './structure';\nimport { init as initThemeBuilder } from './theme-builder';\nimport { init as initUserPreferences } from './user-preferences';\nimport { init as initWordpress } from './wordpress';\n\nexport function init() {\n\tinitDocumentsIndicator();\n\tinitDocumentsPreview();\n\tinitDocumentsSave();\n\tinitElements();\n\tinitFinder();\n\tinitHelp();\n\tinitHistory();\n\tinitKeybo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bar_ui","createMenu","import_editor_app_bar_ui","import_editor","listenTo","openRoute","import_editor_app_bar_ui","import_editor_v1_adapters","useActiveDocument","useHostDocument","document","useRouteStatus","openRoute","BaseTooltip","injectIntoPageIndication","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","import_editor_documents","document","useActiveDocument","runCommand","init","utilitiesMenu","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_documents","document","useActiveDocument","useActiveDocumentActions","import_i18n","import_icons","import_editor_documents","useActiveDocumentActions","import_i18n","import_icons","import_editor_documents","import_editor_v1_adapters","document","useActiveDocument","runCommand","React","import_i18n","React","import_ui","import_editor_app_bar_ui","PopoverMenu","import_ui","import_editor_documents","import_icons","import_editor_v1_adapters","document","useActiveDocument","useActiveDocumentActions","useIsPreviewMode","import_i18n","import_icons","import_editor_documents","document","useActiveDocument","useActiveDocumentActions","init","injectIntoPrimaryAction","import_i18n","import_editor_v1_adapters","listenTo","isRouteActive","import_editor_app_bar_ui","import_icons","import_i18n","import_editor_v1_adapters","useActionProps","useRouteStatus","openRoute","init","toolsMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","useActionProps","useRouteStatus","runCommand","init","utilitiesMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","init","utilitiesMenu","import_editor_app_bar_ui","import_icons","import_i18n","import_editor_v1_adapters","useActionProps","useRouteStatus","openRoute","init","mainMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","useActionProps","runCommand","init","mainMenu","useActionProps","React","React","import_ui","import_editor_v1_adapters","useListenTo","BasePortal","isRouteActive","React","import_editor_documents","import_ui","import_i18n","PrimaryAction","document","useActiveDocument","useActiveDocumentActions","PrimaryAction","import_editor_app_bar_ui","import_i18n","import_editor_v1_adapters","import_icons","useActionProps","useRouteStatus","runCommand","init","toolsMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_editor_v1_adapters","import_icons","useActionProps","useRouteStatus","runCommand","init","toolsMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","useActionProps","runCommand","init","mainMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_v1_adapters","useActionProps","useRouteStatus","openRoute","init","mainMenu","useActionProps","import_editor_app_bar_ui","import_i18n","import_icons","import_editor_documents","init","mainMenu","document","useActiveDocument","init","init","AppBar","init"]}