@limetech/lime-elements 37.48.0 → 37.49.1
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 +16 -0
- package/dist/cjs/limel-icon_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +7 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js.map +1 -1
- package/dist/collection/components/portal/portal.js +23 -8
- package/dist/collection/components/portal/portal.js.map +1 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +7 -2
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js.map +1 -1
- package/dist/esm/limel-icon_2.entry.js.map +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +7 -2
- package/dist/esm/limel-prosemirror-adapter.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-94598713.entry.js → p-8053312b.entry.js} +2 -2
- package/dist/lime-elements/p-8053312b.entry.js.map +1 -0
- package/dist/lime-elements/p-d4d2593b.entry.js.map +1 -1
- package/dist/types/components/portal/portal.d.ts +30 -8
- package/dist/types/components/text-editor/prosemirror-adapter/prosemirror-adapter.d.ts +2 -0
- package/dist/types/components.d.ts +78 -30
- package/package.json +1 -1
- package/dist/lime-elements/p-94598713.entry.js.map +0 -1
|
@@ -26066,6 +26066,11 @@ const ProsemirrorAdapter = class {
|
|
|
26066
26066
|
setTimeout(() => {
|
|
26067
26067
|
this.initializeTextEditor();
|
|
26068
26068
|
}, 0);
|
|
26069
|
+
}
|
|
26070
|
+
connectedCallback() {
|
|
26071
|
+
if (this.view) {
|
|
26072
|
+
this.initializeTextEditor();
|
|
26073
|
+
}
|
|
26069
26074
|
this.host.addEventListener('open-editor-link-menu', this.handleOpenLinkMenu);
|
|
26070
26075
|
}
|
|
26071
26076
|
disconnectedCallback() {
|
|
@@ -26075,8 +26080,8 @@ const ProsemirrorAdapter = class {
|
|
|
26075
26080
|
render() {
|
|
26076
26081
|
return [
|
|
26077
26082
|
index.h("div", { id: "editor" }),
|
|
26078
|
-
index.h("limel-action-bar", {
|
|
26079
|
-
index.h("limel-portal", { containerId: this.portalId, visible: this.isLinkMenuOpen, openDirection: "top", inheritParentWidth: true, containerStyle: { 'z-index': 1 } }, index.h("limel-menu-surface", { open: this.isLinkMenuOpen, onDismiss: this.handleCancelLinkMenu, style: {
|
|
26083
|
+
index.h("limel-action-bar", { ref: (el) => (this.actionBarElement = el), accessibleLabel: "Toolbar", actions: this.actionBarItems, onItemSelected: this.handleActionBarItem }),
|
|
26084
|
+
index.h("limel-portal", { containerId: this.portalId, visible: this.isLinkMenuOpen, openDirection: "top", inheritParentWidth: true, anchor: this.actionBarElement, containerStyle: { 'z-index': 1 } }, index.h("limel-menu-surface", { open: this.isLinkMenuOpen, onDismiss: this.handleCancelLinkMenu, style: {
|
|
26080
26085
|
'--mdc-menu-min-width': '100%',
|
|
26081
26086
|
'max-height': 'inherit',
|
|
26082
26087
|
} }, index.h("limel-text-editor-link-menu", { link: this.link, isOpen: this.isLinkMenuOpen, onLinkChange: this.handleLinkChange, onCancel: this.handleCancelLinkMenu, onSave: this.handleSaveLinkMenu }))),
|