@nocobase/client 1.4.0-alpha.9 → 1.4.0-beta.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.
@@ -0,0 +1,61 @@
1
+ var A = Object.defineProperty;
2
+ var f = Object.getOwnPropertySymbols;
3
+ var H = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
4
+ var h = (r, e, t) => e in r ? A(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, p = (r, e) => {
5
+ for (var t in e || (e = {}))
6
+ H.call(e, t) && h(r, t, e[t]);
7
+ if (f)
8
+ for (var t of f(e))
9
+ L.call(e, t) && h(r, t, e[t]);
10
+ return r;
11
+ };
12
+ import M from "markdown-it";
13
+ import R from "markdown-it-highlightjs";
14
+ import y from "mermaid";
15
+ /* istanbul ignore file -- @preserve */
16
+ function b(r, e) {
17
+ y.initialize(p({
18
+ securityLevel: "loose"
19
+ }, e));
20
+ function t(n) {
21
+ return n.split(/\s+/g)[0];
22
+ }
23
+ const d = r.renderer.rules.fence;
24
+ function x(n, s, I, $, c) {
25
+ const l = n[s], u = l.info.trim(), k = u ? t(u) : "";
26
+ if (["mermaid", "{mermaid}"].indexOf(k) === -1)
27
+ return d !== void 0 ? d(n, s, I, $, c) : "";
28
+ let g = "";
29
+ const m = [], o = document.createElement("div");
30
+ document.body.appendChild(o);
31
+ try {
32
+ const i = "mermaid-container";
33
+ y.mermaidAPI.render(
34
+ i,
35
+ l.content,
36
+ (w) => {
37
+ const a = document.getElementById(i);
38
+ a !== null && m.push(["style", `max-width:${a.style.maxWidth};max-height:${a.style.maxHeight}`]), g = w;
39
+ },
40
+ o
41
+ );
42
+ } catch (i) {
43
+ return `<div class="alert alert-danger">${i}</div>`;
44
+ } finally {
45
+ o.remove();
46
+ }
47
+ return m.push(["src", `data:image/svg+xml,${encodeURIComponent(g)}`]), `<img ${c.renderAttrs({ attrs: m })}>`;
48
+ }
49
+ r.renderer.rules.fence = x;
50
+ }
51
+ const v = new M({
52
+ html: !0,
53
+ linkify: !0,
54
+ typographer: !0,
55
+ breaks: !0
56
+ });
57
+ v.use(R);
58
+ v.use(b);
59
+ export {
60
+ v as default
61
+ };
@@ -7,3 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  export * from './DatePicker';
10
+ export * from './util';
@@ -11,7 +11,7 @@ export * from './FixedBlock';
11
11
  export * from './FixedBlockDesignerItem';
12
12
  export * from './Page';
13
13
  export * from './Page.Settings';
14
- export { PagePopups } from './PagePopups';
14
+ export { PagePopups, useCurrentPopupContext } from './PagePopups';
15
15
  export { getPopupPathFromParams, getStoredPopupContext, storePopupContext, withSearchParams } from './pagePopupUtils';
16
16
  export * from './PageTab.Settings';
17
17
  export { PopupSettingsProvider, usePopupSettings } from './PopupSettingsProvider';
package/lib/index.css ADDED
@@ -0,0 +1 @@
1
+ ::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}