@tachybase/client 0.23.8-alpha.17 → 0.23.8-alpha.18
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/lib/index.mjs +14 -86
- package/lib/index.mjs.map +1 -1
- package/package.json +5 -6
- package/lib/953.mjs +0 -74
- package/lib/953.mjs.map +0 -1
package/lib/index.mjs
CHANGED
|
@@ -22,6 +22,7 @@ import "@js-preview/excel/lib/index.css";
|
|
|
22
22
|
import * as __WEBPACK_EXTERNAL_MODULE__ant_design_pro_components__ from "@ant-design/pro-components";
|
|
23
23
|
import * as __WEBPACK_EXTERNAL_MODULE_dayjs_plugin_relativeTime__ from "dayjs/plugin/relativeTime";
|
|
24
24
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_set__ from "lodash/set";
|
|
25
|
+
import * as __WEBPACK_EXTERNAL_MODULE_markdown_it__ from "markdown-it";
|
|
25
26
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_upload_style__ from "antd/es/upload/style";
|
|
26
27
|
import * as __WEBPACK_EXTERNAL_MODULE_sanitize_html__ from "sanitize-html";
|
|
27
28
|
import * as __WEBPACK_EXTERNAL_MODULE_mathjs__ from "mathjs";
|
|
@@ -63,9 +64,6 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep__ from "lodash/cloneDeep"
|
|
|
63
64
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_get__ from "lodash/get";
|
|
64
65
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_omit__ from "lodash/omit";
|
|
65
66
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_uniq__ from "lodash/uniq";
|
|
66
|
-
import * as __WEBPACK_EXTERNAL_MODULE_markdown_it__ from "markdown-it";
|
|
67
|
-
import * as __WEBPACK_EXTERNAL_MODULE_markdown_it_highlightjs__ from "markdown-it-highlightjs";
|
|
68
|
-
import * as __WEBPACK_EXTERNAL_MODULE_mermaid__ from "mermaid";
|
|
69
67
|
import * as __WEBPACK_EXTERNAL_MODULE_rc_util_lib_ref__ from "rc-util/lib/ref";
|
|
70
68
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
71
69
|
import * as __WEBPACK_EXTERNAL_MODULE_react_dom__ from "react-dom";
|
|
@@ -44258,23 +44256,24 @@ var __webpack_modules__ = {
|
|
|
44258
44256
|
},
|
|
44259
44257
|
"./packages/client/src/schema-component/antd/markdown/util.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44260
44258
|
__webpack_require__.d(__webpack_exports__, {
|
|
44261
|
-
Be:
|
|
44262
|
-
|
|
44263
|
-
|
|
44264
|
-
|
|
44265
|
-
|
|
44266
|
-
|
|
44259
|
+
Be: ()=>convertToText,
|
|
44260
|
+
qu: ()=>useParseMarkdown
|
|
44261
|
+
});
|
|
44262
|
+
var external_react_ = __webpack_require__("react");
|
|
44263
|
+
const md = new __WEBPACK_EXTERNAL_MODULE_markdown_it__["default"]({
|
|
44264
|
+
html: true,
|
|
44265
|
+
linkify: true,
|
|
44266
|
+
typographer: true,
|
|
44267
|
+
breaks: true
|
|
44267
44268
|
});
|
|
44268
|
-
var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("react");
|
|
44269
44269
|
async function parseMarkdown(text) {
|
|
44270
44270
|
if (!text) return text;
|
|
44271
|
-
|
|
44272
|
-
return m.default.render(text);
|
|
44271
|
+
return md.render(text);
|
|
44273
44272
|
}
|
|
44274
44273
|
function useParseMarkdown(text) {
|
|
44275
|
-
const [html, setHtml] = (0,
|
|
44276
|
-
const [loading, setLoading] = (0,
|
|
44277
|
-
(0,
|
|
44274
|
+
const [html, setHtml] = (0, external_react_.useState)('');
|
|
44275
|
+
const [loading, setLoading] = (0, external_react_.useState)(false);
|
|
44276
|
+
(0, external_react_.useEffect)(()=>{
|
|
44278
44277
|
setLoading(true);
|
|
44279
44278
|
parseMarkdown(text).then((r)=>{
|
|
44280
44279
|
setHtml(r);
|
|
@@ -85936,15 +85935,6 @@ var __webpack_modules__ = {
|
|
|
85936
85935
|
"lodash/uniq": function(module) {
|
|
85937
85936
|
module.exports = __WEBPACK_EXTERNAL_MODULE_lodash_uniq__;
|
|
85938
85937
|
},
|
|
85939
|
-
"markdown-it": function(module) {
|
|
85940
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_markdown_it__;
|
|
85941
|
-
},
|
|
85942
|
-
"markdown-it-highlightjs": function(module) {
|
|
85943
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_markdown_it_highlightjs__;
|
|
85944
|
-
},
|
|
85945
|
-
mermaid: function(module) {
|
|
85946
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_mermaid__;
|
|
85947
|
-
},
|
|
85948
85938
|
"rc-util/lib/ref": function(module) {
|
|
85949
85939
|
module.exports = __WEBPACK_EXTERNAL_MODULE_rc_util_lib_ref__;
|
|
85950
85940
|
},
|
|
@@ -85983,7 +85973,6 @@ function __webpack_require__(moduleId) {
|
|
|
85983
85973
|
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
85984
85974
|
return module.exports;
|
|
85985
85975
|
}
|
|
85986
|
-
__webpack_require__.m = __webpack_modules__;
|
|
85987
85976
|
(()=>{
|
|
85988
85977
|
__webpack_require__.d = function(exports, definition) {
|
|
85989
85978
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
@@ -85992,25 +85981,6 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
85992
85981
|
});
|
|
85993
85982
|
};
|
|
85994
85983
|
})();
|
|
85995
|
-
(()=>{
|
|
85996
|
-
__webpack_require__.f = {};
|
|
85997
|
-
__webpack_require__.e = function(chunkId) {
|
|
85998
|
-
return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
|
|
85999
|
-
__webpack_require__.f[key](chunkId, promises);
|
|
86000
|
-
return promises;
|
|
86001
|
-
}, []));
|
|
86002
|
-
};
|
|
86003
|
-
})();
|
|
86004
|
-
(()=>{
|
|
86005
|
-
__webpack_require__.u = function(chunkId) {
|
|
86006
|
-
return "" + chunkId + ".mjs";
|
|
86007
|
-
};
|
|
86008
|
-
})();
|
|
86009
|
-
(()=>{
|
|
86010
|
-
__webpack_require__.miniCssF = function(chunkId) {
|
|
86011
|
-
return "" + chunkId + ".css";
|
|
86012
|
-
};
|
|
86013
|
-
})();
|
|
86014
85984
|
(()=>{
|
|
86015
85985
|
__webpack_require__.o = function(obj, prop) {
|
|
86016
85986
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
@@ -86026,48 +85996,6 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
86026
85996
|
});
|
|
86027
85997
|
};
|
|
86028
85998
|
})();
|
|
86029
|
-
(()=>{
|
|
86030
|
-
__webpack_require__.p = "/";
|
|
86031
|
-
})();
|
|
86032
|
-
(()=>{
|
|
86033
|
-
var installedChunks = {
|
|
86034
|
-
980: 0
|
|
86035
|
-
};
|
|
86036
|
-
var installChunk = function(data) {
|
|
86037
|
-
var ids = data.ids;
|
|
86038
|
-
var modules = data.modules;
|
|
86039
|
-
var runtime = data.runtime;
|
|
86040
|
-
var moduleId, chunkId, i = 0;
|
|
86041
|
-
for(moduleId in modules)if (__webpack_require__.o(modules, moduleId)) __webpack_require__.m[moduleId] = modules[moduleId];
|
|
86042
|
-
if (runtime) runtime(__webpack_require__);
|
|
86043
|
-
for(; i < ids.length; i++){
|
|
86044
|
-
chunkId = ids[i];
|
|
86045
|
-
if (__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) installedChunks[chunkId][0]();
|
|
86046
|
-
installedChunks[ids[i]] = 0;
|
|
86047
|
-
}
|
|
86048
|
-
};
|
|
86049
|
-
__webpack_require__.f.j = function(chunkId, promises) {
|
|
86050
|
-
var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : void 0;
|
|
86051
|
-
if (0 !== installedChunkData) {
|
|
86052
|
-
if (installedChunkData) promises.push(installedChunkData[1]);
|
|
86053
|
-
else {
|
|
86054
|
-
var promise = import("./" + __webpack_require__.u(chunkId)).then(installChunk, function(e) {
|
|
86055
|
-
if (0 !== installedChunks[chunkId]) installedChunks[chunkId] = void 0;
|
|
86056
|
-
throw e;
|
|
86057
|
-
});
|
|
86058
|
-
var promise = Promise.race([
|
|
86059
|
-
promise,
|
|
86060
|
-
new Promise(function(resolve) {
|
|
86061
|
-
installedChunkData = installedChunks[chunkId] = [
|
|
86062
|
-
resolve
|
|
86063
|
-
];
|
|
86064
|
-
})
|
|
86065
|
-
]);
|
|
86066
|
-
promises.push(installedChunkData[1] = promise);
|
|
86067
|
-
}
|
|
86068
|
-
}
|
|
86069
|
-
};
|
|
86070
|
-
})();
|
|
86071
85999
|
__webpack_require__("antd/dist/reset.css");
|
|
86072
86000
|
__webpack_require__("./packages/client/src/global.less");
|
|
86073
86001
|
var acl = __webpack_require__("./packages/client/src/built-in/acl/index.ts");
|