mirror of
https://github.com/outline/outline.git
synced 2026-11-28 16:19:46 +03:00
chore: Plugin naming consistency (#10751)
This commit is contained in:
1 parent
ac06a06a66
commit
71d15a3f9b
9 files changed
+9
-7
No files matched your search
@@ -4,7 +4,7 @@ import { InputRule } from "prosemirror-inputrules";
|
||||
import { NodeType, Schema } from "prosemirror-model";
|
||||
import { EditorState, Plugin } from "prosemirror-state";
|
||||
import Extension from "@shared/editor/lib/Extension";
|
||||
import { SuggestionsMenuPlugin } from "@shared/editor/plugins/Suggestions";
|
||||
import { SuggestionsMenuPlugin } from "@shared/editor/plugins/SuggestionsMenuPlugin";
|
||||
import { isInCode } from "@shared/editor/queries/isInCode";
|
||||
|
||||
type Options = {
|
||||
|
||||
@@ -61,7 +61,7 @@ import {
|
||||
LightboxImageFactory,
|
||||
} from "@shared/editor/lib/Lightbox";
|
||||
import Lightbox from "~/components/Lightbox";
|
||||
import { anchorPlugin } from "@shared/editor/plugins/anchorPlugin";
|
||||
import { anchorPlugin } from "@shared/editor/plugins/AnchorPlugin";
|
||||
|
||||
export type Props = {
|
||||
/** An optional identifier for the editor context. It is used to persist local settings */
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Command, EditorState, NodeSelection } from "prosemirror-state";
|
||||
import { Node } from "prosemirror-model";
|
||||
import Extension, { CommandFactory } from "../lib/Extension";
|
||||
import FileHelper, { ImageSource } from "../lib/FileHelper";
|
||||
import { IntegrationService } from "../../types";
|
||||
@@ -7,7 +8,7 @@ import {
|
||||
DiagramsNetClient,
|
||||
EMPTY_DIAGRAM_IMAGE,
|
||||
} from "../lib/DiagramsNetClient";
|
||||
import { Node } from "prosemirror-model";
|
||||
import { sanitizeUrl } from "../../utils/urls";
|
||||
|
||||
/**
|
||||
* An editor extension that adds commands to insert and edit diagrams using diagrams.net.
|
||||
@@ -214,8 +215,9 @@ export default class Diagrams extends Extension {
|
||||
(integ) => integ.name === IntegrationService.Diagrams
|
||||
);
|
||||
return (
|
||||
(integration?.settings?.diagrams?.url ?? "https://embed.diagrams.net/") +
|
||||
"?embed=1&ui=atlas&spin=1&modified=unsavedChanges&proto=json"
|
||||
sanitizeUrl(
|
||||
integration?.settings?.diagrams?.url ?? "https://embed.diagrams.net/"
|
||||
) + "?embed=1&ui=atlas&spin=1&modified=unsavedChanges&proto=json"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import { markInputRuleForPattern } from "../lib/markInputRule";
|
||||
import { MarkdownSerializerState } from "../lib/markdown/serializer";
|
||||
import { isInCode } from "../queries/isInCode";
|
||||
import Mark from "./Mark";
|
||||
import { codeWordDecorations } from "../plugins/CodeWordDecorations";
|
||||
import { codeWordDecorations } from "../plugins/CodeWordDecorationsPlugin";
|
||||
|
||||
export default class Code extends Mark {
|
||||
get name() {
|
||||
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
mergeCellsAndCollapse,
|
||||
} from "../commands/table";
|
||||
import { MarkdownSerializerState } from "../lib/markdown/serializer";
|
||||
import { FixTablesPlugin } from "../plugins/FixTables";
|
||||
import { FixTablesPlugin } from "../plugins/FixTablesPlugin";
|
||||
import { TableLayoutPlugin } from "../plugins/TableLayoutPlugin";
|
||||
import tablesRule from "../rules/tables";
|
||||
import { EditorStyleHelper } from "../styles/EditorStyleHelper";
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user