@parallelworks/tandem-web 0.191.1 → 0.192.1
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/_virtual/_virtual_i18n/en/common.js +18 -4
- package/_virtual/_virtual_i18n/es/common.js +18 -4
- package/_virtual/_virtual_i18n/ja/common.js +18 -4
- package/_virtual/_virtual_i18n/ko/common.js +18 -4
- package/_virtual/_virtual_i18n/zh/common.js +18 -4
- package/api/queries.js +13 -5
- package/components/DocProperties.js +1 -1
- package/components/Editor.js +101 -99
- package/components/HoverCards.js +121 -121
- package/components/NewPageModal.js +374 -0
- package/components/SubpageViews.js +273 -277
- package/components/docLink.js +18 -0
- package/lib/base.js +10 -1
- package/lib/calendarMonth.js +6 -0
- package/lib/listSearch.js +13 -10
- package/package.json +2 -1
- package/pages/issues.js +466 -414
- package/routes/_workspace/docs/_doc2.js +2 -2
- package/routes/_workspace2.js +357 -383
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { mountedHref as e, storedHref as t } from "../lib/base.js";
|
|
2
|
+
import n from "@tiptap/extension-link";
|
|
3
|
+
// src/components/docLink.ts
|
|
4
|
+
var r = n.extend({ addAttributes() {
|
|
5
|
+
let n = this.parent?.() ?? {};
|
|
6
|
+
return {
|
|
7
|
+
...n,
|
|
8
|
+
href: {
|
|
9
|
+
...n.href,
|
|
10
|
+
parseHTML: (e) => {
|
|
11
|
+
let n = e.getAttribute("href");
|
|
12
|
+
return n === null ? null : t(n);
|
|
13
|
+
},
|
|
14
|
+
renderHTML: (t) => typeof t.href == "string" ? { href: e(t.href) } : {}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
} });
|
|
18
|
+
export { r as DocLink };
|
package/lib/base.js
CHANGED
|
@@ -15,4 +15,13 @@ function i(e) {
|
|
|
15
15
|
function a(t) {
|
|
16
16
|
return window.location.origin + e + t;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
var o = /^\/[^/]+\/docs\/[^/?#]/;
|
|
19
|
+
function s(t) {
|
|
20
|
+
return e && o.test(t) ? e + t : t;
|
|
21
|
+
}
|
|
22
|
+
function c(t) {
|
|
23
|
+
if (!e || !t.startsWith(`${e}/`)) return t;
|
|
24
|
+
let n = t.slice(e.length);
|
|
25
|
+
return o.test(n) ? n : t;
|
|
26
|
+
}
|
|
27
|
+
export { i as appPath, a as appURL, e as basePath, n as mountAt, s as mountedHref, t as routerBase, r as routerPath, c as storedHref };
|
package/lib/listSearch.js
CHANGED
|
@@ -19,16 +19,19 @@ function i(t) {
|
|
|
19
19
|
return {};
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
var a = (e, t) => JSON.stringify(e) === JSON.stringify(t);
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
if (r !== n && u && !a(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
var a = (e, t) => JSON.stringify(e) === JSON.stringify(t), o = "q";
|
|
23
|
+
function s(r, s, c, l = t()) {
|
|
24
|
+
let u = i(l), { [o]: d, ...f } = u[r] ?? {}, { [o]: p, ...m } = s;
|
|
25
|
+
if (r !== n && u[r] && !a(m, f) && Object.entries(m).every(([e, t]) => a(t, f[e]))) return p === void 0 ? f : {
|
|
26
|
+
...f,
|
|
27
|
+
[o]: p
|
|
28
|
+
};
|
|
29
|
+
if (c) return;
|
|
30
|
+
delete u[r], u[r] = m;
|
|
31
|
+
let h = Object.keys(u);
|
|
32
|
+
for (let e of h.slice(0, Math.max(0, h.length - 100))) delete u[e];
|
|
30
33
|
try {
|
|
31
|
-
|
|
34
|
+
l?.setItem(e, JSON.stringify(u));
|
|
32
35
|
} catch {}
|
|
33
36
|
}
|
|
34
|
-
export {
|
|
37
|
+
export { s as rememberSearch, r as setShownPath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parallelworks/tandem-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.192.1",
|
|
4
4
|
"description": "Tandem's pages, for a host app to render in its own",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@tiptap/extension-drag-handle": "3.34.0",
|
|
31
31
|
"@tiptap/extension-drag-handle-react": "3.34.0",
|
|
32
32
|
"@tiptap/extension-image": "^3.34.0",
|
|
33
|
+
"@tiptap/extension-link": "3.34.0",
|
|
33
34
|
"@tiptap/extension-list": "^3.34.0",
|
|
34
35
|
"@tiptap/extension-node-range": "3.34.0",
|
|
35
36
|
"@tiptap/extension-table": "3.34.0",
|