@equinor/fusion-wc-markdown
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -439,26 +439,2 @@ { | ||
{ | ||
"kind": "field", | ||
"name": "content", | ||
"type": { | ||
"text": "string" | ||
}, | ||
"privacy": "protected", | ||
"default": "''", | ||
"inheritedFrom": { | ||
"name": "MarkdownViewerElement", | ||
"module": "src/markdown-viewer/element.ts" | ||
} | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "mainSlot", | ||
"type": { | ||
"text": "HTMLSlotElement" | ||
}, | ||
"inheritedFrom": { | ||
"name": "MarkdownViewerElement", | ||
"module": "src/markdown-viewer/element.ts" | ||
} | ||
}, | ||
{ | ||
"kind": "method", | ||
@@ -703,18 +679,2 @@ "name": "handleSlotChange", | ||
{ | ||
"kind": "field", | ||
"name": "content", | ||
"type": { | ||
"text": "string" | ||
}, | ||
"privacy": "protected", | ||
"default": "''" | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "mainSlot", | ||
"type": { | ||
"text": "HTMLSlotElement" | ||
} | ||
}, | ||
{ | ||
"kind": "method", | ||
@@ -744,2 +704,3 @@ "name": "handleSlotChange", | ||
}, | ||
"tagName": "fwc-markdown-viewer", | ||
"customElement": true | ||
@@ -817,26 +778,2 @@ } | ||
{ | ||
"kind": "field", | ||
"name": "content", | ||
"type": { | ||
"text": "string" | ||
}, | ||
"privacy": "protected", | ||
"default": "''", | ||
"inheritedFrom": { | ||
"name": "MarkdownViewerElement", | ||
"module": "src/markdown-viewer/element.ts" | ||
} | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "mainSlot", | ||
"type": { | ||
"text": "HTMLSlotElement" | ||
}, | ||
"inheritedFrom": { | ||
"name": "MarkdownViewerElement", | ||
"module": "src/markdown-viewer/element.ts" | ||
} | ||
}, | ||
{ | ||
"kind": "method", | ||
@@ -843,0 +780,0 @@ "name": "handleSlotChange", |
@@ -79,3 +79,3 @@ import { __awaiter, __decorate } from "tslib"; | ||
if (!props.has('value') || !this.value) { | ||
this.value = this.innerHTML; | ||
this.value = this.textContent ? this.textContent.trim() : ''; | ||
} | ||
@@ -82,0 +82,0 @@ // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
import { toggleMark, setBlockType } from 'prosemirror-commands'; | ||
import { wrapInList } from 'prosemirror-schema-list'; | ||
import { schema } from 'prosemirror-markdown'; | ||
import { IconElement } from '@equinor/fusion-wc-icon'; | ||
IconElement; | ||
const icon = (text, name) => { | ||
@@ -5,0 +7,0 @@ const button = document.createElement('button'); |
@@ -11,2 +11,5 @@ import { __decorate } from "tslib"; | ||
`; | ||
/** | ||
* @tag fwc-markdown-viewer | ||
*/ | ||
export class MarkdownViewerElement extends LitElement { | ||
@@ -16,2 +19,5 @@ constructor() { | ||
this.value = ''; | ||
/** | ||
* @internal | ||
*/ | ||
this.content = ''; | ||
@@ -18,0 +24,0 @@ } |
import { type CSSResult, LitElement, type PropertyValues, type TemplateResult } from 'lit'; | ||
import { MarkdownViewerElementProps } from './types'; | ||
/** | ||
* @tag fwc-markdown-viewer | ||
*/ | ||
export declare class MarkdownViewerElement extends LitElement implements MarkdownViewerElementProps { | ||
static styles: CSSResult; | ||
value: string; | ||
/** | ||
* @internal | ||
*/ | ||
protected content: string; | ||
/** | ||
* @internal | ||
*/ | ||
mainSlot: HTMLSlotElement; | ||
@@ -8,0 +17,0 @@ protected updated(props: PropertyValues): void; |
{ | ||
"name": "@equinor/fusion-wc-markdown", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Markdown editor created from ProseMirror markdown", | ||
@@ -8,2 +8,6 @@ "main": "lib/index.js", | ||
".": "./lib/index.js", | ||
"./package.json": "./package.json", | ||
"./custom-elements.json": "./lib/custom-elements.json", | ||
"./README.md": "./README.md", | ||
"./CHANGELOG.md": "./CHANGELOG.md", | ||
"./markdown-editor": "./lib/markdown-editor/index.js", | ||
@@ -50,3 +54,3 @@ "./markdown-viewer": "./lib/markdown-viewer/index.js" | ||
"prosemirror-state": "^1.4.3", | ||
"prosemirror-view": "^1.31.8" | ||
"prosemirror-view": "^1.32.1" | ||
}, | ||
@@ -62,3 +66,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "7001d61663cbb2af8ba4e6fec90e1fe1673507f4" | ||
"gitHead": "ca4b854985ac9c925d50c498aefdb7e0bf2351e2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73042
1659
Updatedprosemirror-view@^1.32.1