Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/Umbraco.Web.UI.Client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/assets/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2792,6 +2792,7 @@ export default {
config_statusbar: 'Statusbar',
config_toolbar: 'Toolbar',
extGroup_formatting: 'Text formatting',
extGroup_html: 'HTML',
extGroup_interactive: 'Interactive elements',
extGroup_media: 'Embeds and media',
extGroup_structure: 'Content structure',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Node, mergeAttributes } from '@tiptap/core';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const Anchor = Node.create({
name: 'anchor',

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Node, mergeAttributes } from '@tiptap/core';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface DivOptions {
/**
* HTML attributes to add to the element.
Expand All @@ -9,6 +10,7 @@ export interface DivOptions {
HTMLAttributes: Record<string, any>;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const Div = Node.create<DivOptions>({
name: 'div',

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Node } from '@tiptap/core';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface FigcaptionOptions {
/**
* HTML attributes to add to the image element.
Expand All @@ -9,6 +10,7 @@ export interface FigcaptionOptions {
HTMLAttributes: Record<string, any>;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const Figcaption = Node.create<FigcaptionOptions>({
name: 'figcaption',

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { mergeAttributes, Node } from '@tiptap/core';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface FigureOptions {
/**
* HTML attributes to add to the image element.
Expand All @@ -9,6 +10,7 @@ export interface FigureOptions {
HTMLAttributes: Record<string, any>;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const Figure = Node.create<FigureOptions>({
name: 'figure',
group: 'block',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function camelCaseToKebabCase(str: string): string {
return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());
}

/** @deprecated No longer used internally. This will be removed in Umbraco 17. [LK] */
export interface HtmlGlobalAttributesOptions {
/**
* The types where the text align attribute can be applied.
Expand All @@ -19,6 +20,7 @@ export interface HtmlGlobalAttributesOptions {
types: Array<string>;
}

/** @deprecated No longer used internally. This will be removed in Umbraco 17. [LK] */
export const HtmlGlobalAttributes = Extension.create<HtmlGlobalAttributesOptions>({
name: 'htmlGlobalAttributes',

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Mark, mergeAttributes } from '@tiptap/core';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface SpanOptions {
/**
* HTML attributes to add to the span element.
Expand Down Expand Up @@ -34,6 +35,7 @@ function serializeStyles(items: Record<string, string>): string {
);
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const Span = Mark.create<SpanOptions>({
name: 'span',

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Extension } from '@tiptap/core';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface TextDirectionOptions {
directions: Array<'auto' | 'ltr' | 'rtl'>;
types: Array<string>;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const TextDirection = Extension.create<TextDirectionOptions>({
name: 'textDirection',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import type { EditorState, Transaction } from '@tiptap/pm/state';
import { Extension } from '@tiptap/core';
import { AllSelection, TextSelection } from '@tiptap/pm/state';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface TextIndentOptions {
minLevel: number;
maxLevel: number;
types: Array<string>;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const TextIndent = Extension.create<TextIndentOptions>({
name: 'textIndent',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ function nodeEqualsType({ types, node }) {
return (Array.isArray(types) && types.includes(node.type)) || node.type === types;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface TrailingNodeOptions {
node: string;
notAfter: string[];
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const TrailingNode = Extension.create<TrailingNodeOptions>({
name: 'trailingNode',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import { EditorState, Plugin, PluginKey } from '@tiptap/pm/state';
import { EditorView } from '@tiptap/pm/view';
import type { PluginView } from '@tiptap/pm/state';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface UmbTiptapBubbleMenuElement extends HTMLElement {
editor?: Editor;
menuAlias?: string;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export type UmbBubbleMenuPluginProps = {
unique: string;
placement?: UUIPopoverContainerElement['placement'];
Expand All @@ -20,8 +22,10 @@ export type UmbBubbleMenuPluginProps = {
| null;
};

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export type UmbBubbleMenuOptions = UmbBubbleMenuPluginProps;

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const UmbBubbleMenu = Extension.create<UmbBubbleMenuOptions>({
name: 'umbBubbleMenu',

Expand Down Expand Up @@ -104,6 +108,7 @@ class UmbBubbleMenuPluginView implements PluginView {
}
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const UmbBubbleMenuPlugin = (editor: Editor, props: UmbBubbleMenuPluginProps) => {
return new Plugin({
view(editorView) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { mergeAttributes, Node } from '@tiptap/core';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface UmbEmbeddedMediaOptions {
inline: boolean;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const umbEmbeddedMedia = Node.create<UmbEmbeddedMediaOptions>({
name: 'umbEmbeddedMedia',
group() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Image from '@tiptap/extension-image';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export interface UmbImageAttributes {
src: string;
alt?: string;
Expand All @@ -13,6 +14,7 @@ export interface UmbImageAttributes {
'data-udi'?: string;
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const UmbImage = Image.extend({
addAttributes() {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Link from '@tiptap/extension-link';

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const UmbLink = Link.extend({
name: 'umbLink',

Expand All @@ -12,6 +13,9 @@ export const UmbLink = Link.extend({
};
},

// TODO: [LK] Look to use a NodeView to render the link
// https://tiptap.dev/docs/editor/extensions/custom-extensions/node-views/javascript

addOptions() {
return {
...this.parent?.(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { Rect } from '@tiptap/pm/tables';

// NOTE: Custom TableView, to allow for custom styles to be applied to the <table> element. [LK]
// ref: https://github.com/ueberdosis/tiptap/blob/v2.11.5/packages/extension-table/src/TableView.ts
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export class UmbTableView extends TableView {
constructor(node: ProseMirrorNode, cellMinWidth: number) {
super(node, cellMinWidth);
Expand All @@ -34,13 +35,16 @@ export class UmbTableView extends TableView {
}
}

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const UmbTable = Table.configure({ resizable: true, View: UmbTableView });

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const UmbTableRow = TableRow.extend({
allowGapCursor: false,
content: '(tableCell | tableHeader)*',
});

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const UmbTableHeader = TableHeader.extend({
addAttributes() {
return {
Expand Down Expand Up @@ -122,6 +126,7 @@ export const UmbTableHeader = TableHeader.extend({
},
});

/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
export const UmbTableCell = TableCell.extend({
addAttributes() {
return {
Expand Down
Loading
Loading