@leanix/components 0.4.745 → 0.4.747

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.
@@ -5,9 +5,9 @@ import type { Decoration } from '@tiptap/pm/view';
5
5
  import { AngularNodeViewComponent } from './node-view.component';
6
6
  interface RendererUpdateProps {
7
7
  oldNode: ProseMirrorNode;
8
- oldDecorations: Decoration[];
8
+ oldDecorations: readonly Decoration[];
9
9
  newNode: ProseMirrorNode;
10
- newDecorations: Decoration[];
10
+ newDecorations: readonly Decoration[];
11
11
  updateProps: () => void;
12
12
  }
13
13
  interface AngularNodeViewRendererOptions extends NodeViewRendererOptions {
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  export declare class AngularNodeViewComponent {
3
3
  editor: import("@angular/core").InputSignal<import("@tiptap/core").Editor>;
4
4
  node: import("@angular/core").InputSignal<import("prosemirror-model").Node>;
5
- decorations: import("@angular/core").InputSignal<import("@tiptap/core").DecorationWithType[]>;
5
+ decorations: import("@angular/core").InputSignal<readonly import("@tiptap/core").DecorationWithType[]>;
6
6
  selected: import("@angular/core").InputSignal<boolean>;
7
7
  extension: import("@angular/core").InputSignal<import("@tiptap/core").Node<any, any>>;
8
8
  getPos: import("@angular/core").InputSignal<() => number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.4.745",
3
+ "version": "0.4.747",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@ncstate/sat-popover": "14.1.0",
13
- "@tiptap/core": "2.6.6",
13
+ "@tiptap/core": "2.7.0",
14
14
  "@tiptap/extension-bold": "2.6.6",
15
15
  "@tiptap/extension-bubble-menu": "2.6.6",
16
16
  "@tiptap/extension-bullet-list": "2.6.6",
@@ -25,7 +25,7 @@
25
25
  "@tiptap/extension-history": "2.6.6",
26
26
  "@tiptap/extension-horizontal-rule": "2.6.6",
27
27
  "@tiptap/extension-italic": "2.6.6",
28
- "@tiptap/extension-link": "2.6.6",
28
+ "@tiptap/extension-link": "2.10.4",
29
29
  "@tiptap/extension-list-item": "2.6.6",
30
30
  "@tiptap/extension-ordered-list": "2.6.6",
31
31
  "@tiptap/extension-paragraph": "2.6.6",
@@ -37,7 +37,7 @@
37
37
  "@tiptap/extension-text": "2.6.6",
38
38
  "@tiptap/extension-text-align": "2.6.6",
39
39
  "@tiptap/extension-underline": "2.6.6",
40
- "@tiptap/pm": "2.6.6",
40
+ "@tiptap/pm": "2.7.0",
41
41
  "@ui5/webcomponents": "2.12.0",
42
42
  "@ui5/webcomponents-base": "2.12.0",
43
43
  "@ui5/webcomponents-icons": "2.12.0",
package/ui5/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export { IconComponent } from '@ui5/webcomponents-ngx/main/icon';
7
7
  export type { BreadcrumbsItemClickEventDetail } from '@ui5/webcomponents/dist/Breadcrumbs';
8
8
  export { BreadcrumbsItemComponent } from './components/breadcrumbs-item.component';
9
9
  export { BreadcrumbsComponent } from './components/breadcrumbs.component';
10
+ export { getOuterHtmlWithShadowDom } from './utils/get-outer-html-with-shadow-dom';
@@ -0,0 +1,15 @@
1
+ /**
2
+ *
3
+ * A replacement for `HTMLElement.outerHTML`, but works with web components shadow DOM.
4
+ * Returns a string of outer HTML of a DOM node, inlining shadow DOM for web components.
5
+ * (@see TRAVERSED_ELEMENTS_SELECTOR for the list of supported web components.)
6
+ *
7
+ *
8
+ * @description
9
+ * Solves the problem of getting the full HTML structure of web components,
10
+ * as `element.outerHTML` does not include shadow DOM.
11
+ * This function inlines shadow DOM into a <template> tag inside the component root.
12
+ * It helps to keep the shadow DOM structure and preserve style encapsulation.
13
+ * Also includes whitelisted styles from computed styles into the component root as inline styles (@see WEB_COMPONENT_STYLE_PROPERTIES_WHITELIST).
14
+ */
15
+ export declare function getOuterHtmlWithShadowDom(rootNode: HTMLElement): string;