@elementor/editor-app-bar 0.6.8 → 0.7.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 +19 -0
- package/dist/index.d.mts +45 -1
- package/dist/index.d.ts +45 -1
- package/dist/index.js +222 -169
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +192 -130
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/__tests__/top-bar.test.tsx +4 -4
- package/src/components/locations/__tests__/locations-components.test.tsx +4 -4
- package/src/components/locations/__tests__/menus.test.tsx +39 -8
- package/src/components/locations/integrations-menu-location.tsx +59 -0
- package/src/components/locations/main-menu-location.tsx +9 -21
- package/src/components/ui/popover-sub-menu.tsx +29 -0
- package/src/components/ui/toolbar-logo.tsx +2 -2
- package/src/extensions/documents-indicator/components/__tests__/settings-button.test.tsx +6 -6
- package/src/extensions/documents-indicator/index.ts +1 -1
- package/src/extensions/documents-save/components/__tests__/primary-action-menu.test.tsx +3 -3
- package/src/extensions/documents-save/components/__tests__/primary-action.test.tsx +24 -24
- package/src/extensions/documents-save/components/primary-action-menu.tsx +2 -1
- package/src/extensions/documents-save/index.ts +1 -1
- package/src/extensions/site-settings/components/__tests__/portalled-primary-action.test.tsx +1 -1
- package/src/extensions/site-settings/components/__tests__/primary-action.test.tsx +2 -2
- package/src/extensions/site-settings/index.ts +1 -1
- package/src/index.ts +1 -0
- package/src/init.ts +1 -1
- package/src/locations/__tests__/menus.test.tsx +28 -30
- package/src/locations/index.ts +2 -0
- package/src/locations/menus.tsx +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.7.0](https://github.com/elementor/elementor-packages/compare/@elementor/editor-app-bar@0.6.9...@elementor/editor-app-bar@0.7.0) (2023-08-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **app-bar:** introduce integrations menu [ED-11437] ([#93](https://github.com/elementor/elementor-packages/issues/93)) ([507f367](https://github.com/elementor/elementor-packages/commit/507f367ea54e80ed29c22b64fe93f15353327c21))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.6.9](https://github.com/elementor/elementor-packages/compare/@elementor/editor-app-bar@0.6.8...@elementor/editor-app-bar@0.6.9) (2023-07-17)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @elementor/editor-app-bar
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.6.8](https://github.com/elementor/elementor-packages/compare/@elementor/editor-app-bar@0.6.7...@elementor/editor-app-bar@0.6.8) (2023-07-17)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @elementor/editor-app-bar
|
package/dist/index.d.mts
CHANGED
|
@@ -167,6 +167,50 @@ declare const utilitiesMenu: {
|
|
|
167
167
|
}[];
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
|
+
declare const integrationsMenu: {
|
|
171
|
+
registerAction: (args: {
|
|
172
|
+
id: string;
|
|
173
|
+
group?: "default" | undefined;
|
|
174
|
+
priority?: number | undefined;
|
|
175
|
+
overwrite?: boolean | undefined;
|
|
176
|
+
} & ({
|
|
177
|
+
props: Props$2;
|
|
178
|
+
useProps?: undefined;
|
|
179
|
+
} | {
|
|
180
|
+
useProps: () => Props$2;
|
|
181
|
+
props?: undefined;
|
|
182
|
+
})) => void;
|
|
183
|
+
registerToggleAction: (args: {
|
|
184
|
+
id: string;
|
|
185
|
+
group?: "default" | undefined;
|
|
186
|
+
priority?: number | undefined;
|
|
187
|
+
overwrite?: boolean | undefined;
|
|
188
|
+
} & ({
|
|
189
|
+
props: Props$1;
|
|
190
|
+
useProps?: undefined;
|
|
191
|
+
} | {
|
|
192
|
+
useProps: () => Props$1;
|
|
193
|
+
props?: undefined;
|
|
194
|
+
})) => void;
|
|
195
|
+
registerLink: (args: {
|
|
196
|
+
id: string;
|
|
197
|
+
group?: "default" | undefined;
|
|
198
|
+
priority?: number | undefined;
|
|
199
|
+
overwrite?: boolean | undefined;
|
|
200
|
+
} & ({
|
|
201
|
+
props: Props;
|
|
202
|
+
useProps?: undefined;
|
|
203
|
+
} | {
|
|
204
|
+
useProps: () => Props;
|
|
205
|
+
props?: undefined;
|
|
206
|
+
})) => void;
|
|
207
|
+
useMenuItems: () => {
|
|
208
|
+
default: {
|
|
209
|
+
id: string;
|
|
210
|
+
MenuItem: react.ElementType;
|
|
211
|
+
}[];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
170
214
|
declare const documentOptionsMenu: {
|
|
171
215
|
registerAction: (args: {
|
|
172
216
|
id: string;
|
|
@@ -216,4 +260,4 @@ declare const documentOptionsMenu: {
|
|
|
216
260
|
};
|
|
217
261
|
};
|
|
218
262
|
|
|
219
|
-
export { documentOptionsMenu, injectIntoPageIndication, injectIntoPrimaryAction, injectIntoResponsive, mainMenu, toolsMenu, utilitiesMenu };
|
|
263
|
+
export { documentOptionsMenu, injectIntoPageIndication, injectIntoPrimaryAction, injectIntoResponsive, integrationsMenu, mainMenu, toolsMenu, utilitiesMenu };
|
package/dist/index.d.ts
CHANGED
|
@@ -167,6 +167,50 @@ declare const utilitiesMenu: {
|
|
|
167
167
|
}[];
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
|
+
declare const integrationsMenu: {
|
|
171
|
+
registerAction: (args: {
|
|
172
|
+
id: string;
|
|
173
|
+
group?: "default" | undefined;
|
|
174
|
+
priority?: number | undefined;
|
|
175
|
+
overwrite?: boolean | undefined;
|
|
176
|
+
} & ({
|
|
177
|
+
props: Props$2;
|
|
178
|
+
useProps?: undefined;
|
|
179
|
+
} | {
|
|
180
|
+
useProps: () => Props$2;
|
|
181
|
+
props?: undefined;
|
|
182
|
+
})) => void;
|
|
183
|
+
registerToggleAction: (args: {
|
|
184
|
+
id: string;
|
|
185
|
+
group?: "default" | undefined;
|
|
186
|
+
priority?: number | undefined;
|
|
187
|
+
overwrite?: boolean | undefined;
|
|
188
|
+
} & ({
|
|
189
|
+
props: Props$1;
|
|
190
|
+
useProps?: undefined;
|
|
191
|
+
} | {
|
|
192
|
+
useProps: () => Props$1;
|
|
193
|
+
props?: undefined;
|
|
194
|
+
})) => void;
|
|
195
|
+
registerLink: (args: {
|
|
196
|
+
id: string;
|
|
197
|
+
group?: "default" | undefined;
|
|
198
|
+
priority?: number | undefined;
|
|
199
|
+
overwrite?: boolean | undefined;
|
|
200
|
+
} & ({
|
|
201
|
+
props: Props;
|
|
202
|
+
useProps?: undefined;
|
|
203
|
+
} | {
|
|
204
|
+
useProps: () => Props;
|
|
205
|
+
props?: undefined;
|
|
206
|
+
})) => void;
|
|
207
|
+
useMenuItems: () => {
|
|
208
|
+
default: {
|
|
209
|
+
id: string;
|
|
210
|
+
MenuItem: react.ElementType;
|
|
211
|
+
}[];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
170
214
|
declare const documentOptionsMenu: {
|
|
171
215
|
registerAction: (args: {
|
|
172
216
|
id: string;
|
|
@@ -216,4 +260,4 @@ declare const documentOptionsMenu: {
|
|
|
216
260
|
};
|
|
217
261
|
};
|
|
218
262
|
|
|
219
|
-
export { documentOptionsMenu, injectIntoPageIndication, injectIntoPrimaryAction, injectIntoResponsive, mainMenu, toolsMenu, utilitiesMenu };
|
|
263
|
+
export { documentOptionsMenu, injectIntoPageIndication, injectIntoPrimaryAction, injectIntoResponsive, integrationsMenu, mainMenu, toolsMenu, utilitiesMenu };
|