@paroicms/quill-editor-plugin 1.36.0 → 1.36.2
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/backend/dist/plugin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
1
3
|
import { isJsonFieldValue, isObj } from "@paroicms/public-anywhere-lib";
|
|
2
4
|
import { escapeHtml, makeStylesheetLinkAsyncTag, resolveModuleDirectory, } from "@paroicms/public-server-lib";
|
|
3
5
|
import { type } from "arktype";
|
|
4
|
-
import { readFileSync } from "node:fs";
|
|
5
|
-
import { dirname, join } from "node:path";
|
|
6
6
|
import { convertQuillDeltaToHtml, convertQuillDeltaToPlainText } from "./quill-delta.js";
|
|
7
7
|
const MediaIdQueryAT = type({
|
|
8
8
|
"mediaId?": "string|undefined",
|
|
@@ -9,7 +9,7 @@ export function shouldOpenInBlankTab(service, url) {
|
|
|
9
9
|
}
|
|
10
10
|
if (url.startsWith("/"))
|
|
11
11
|
return false; // path-only url
|
|
12
|
-
const regex = /^https?:\/\/([
|
|
12
|
+
const regex = /^https?:\/\/([^/]+)/;
|
|
13
13
|
const match = url.match(regex);
|
|
14
14
|
if (!match)
|
|
15
15
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/quill-editor-plugin",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.2",
|
|
4
4
|
"description": "Quill Editor plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"@paroicms/public-server-lib": "0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@paroicms/public-admin-ui-lib": "0.26.
|
|
42
|
-
"@paroicms/public-anywhere-lib": "0.
|
|
43
|
-
"@paroicms/public-server-lib": "0.37.
|
|
41
|
+
"@paroicms/public-admin-ui-lib": "0.26.4",
|
|
42
|
+
"@paroicms/public-anywhere-lib": "0.26.2",
|
|
43
|
+
"@paroicms/public-server-lib": "0.37.4",
|
|
44
44
|
"@solid-primitives/i18n": "~2.2.1",
|
|
45
45
|
"@types/node": "~24.0.1",
|
|
46
46
|
"highlight.js": "~11.11.1",
|