@readme/markdown 7.10.1 → 7.10.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.
Files changed (44) hide show
  1. package/components/Image/index.tsx +1 -1
  2. package/dist/lib/migrate.d.ts +3 -1
  3. package/dist/main.js +19 -28
  4. package/dist/main.node.js +419 -5471
  5. package/dist/processor/migration/index.d.ts +2 -1
  6. package/dist/processor/migration/table-cell.d.ts +1 -1
  7. package/package.json +2 -2
  8. package/dist/10.node.js +0 -22721
  9. package/dist/11.node.js +0 -1443
  10. package/dist/120.node.js +0 -22
  11. package/dist/134.node.js +0 -22
  12. package/dist/150.node.js +0 -1891
  13. package/dist/17.node.js +0 -1376
  14. package/dist/246.node.js +0 -1932
  15. package/dist/351.node.js +0 -2403
  16. package/dist/366.node.js +0 -1184
  17. package/dist/403.node.js +0 -2195
  18. package/dist/429.node.js +0 -11133
  19. package/dist/485.node.js +0 -517
  20. package/dist/486.node.js +0 -31818
  21. package/dist/488.node.js +0 -58
  22. package/dist/489.node.js +0 -18475
  23. package/dist/510.node.js +0 -249
  24. package/dist/52.node.js +0 -811
  25. package/dist/550.node.js +0 -1456
  26. package/dist/551.node.js +0 -2725
  27. package/dist/617.node.js +0 -22
  28. package/dist/687.node.js +0 -3674
  29. package/dist/745.node.js +0 -7507
  30. package/dist/775.node.js +0 -1903
  31. package/dist/786.node.js +0 -31381
  32. package/dist/788.node.js +0 -1024
  33. package/dist/81.node.js +0 -385
  34. package/dist/849.node.js +0 -2589
  35. package/dist/863.node.js +0 -22
  36. package/dist/867.node.js +0 -1417
  37. package/dist/881.node.js +0 -1279
  38. package/dist/885.node.js +0 -51
  39. package/dist/896.node.js +0 -1616
  40. package/dist/906.node.js +0 -1818
  41. package/dist/91.node.js +0 -22
  42. package/dist/940.node.js +0 -3362
  43. package/dist/952.node.js +0 -246
  44. package/dist/995.node.js +0 -5737
package/dist/952.node.js DELETED
@@ -1,246 +0,0 @@
1
- "use strict";
2
- exports.id = 952;
3
- exports.ids = [952];
4
- exports.modules = {
5
-
6
- /***/ 9314:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
- /* harmony export */ S: () => (/* binding */ populateCommonDb)
11
- /* harmony export */ });
12
- /* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6322);
13
-
14
-
15
- // src/diagrams/common/populateCommonDb.ts
16
- function populateCommonDb(ast, db) {
17
- if (ast.accDescr) {
18
- db.setAccDescription?.(ast.accDescr);
19
- }
20
- if (ast.accTitle) {
21
- db.setAccTitle?.(ast.accTitle);
22
- }
23
- if (ast.title) {
24
- db.setDiagramTitle?.(ast.title);
25
- }
26
- }
27
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(populateCommonDb, "populateCommonDb");
28
-
29
-
30
-
31
-
32
- /***/ }),
33
-
34
- /***/ 952:
35
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
36
-
37
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
38
- /* harmony export */ diagram: () => (/* binding */ diagram)
39
- /* harmony export */ });
40
- /* harmony import */ var _chunk_RYO7GUH3_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9314);
41
- /* harmony import */ var _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2843);
42
- /* harmony import */ var _chunk_OBAELV6Q_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4196);
43
- /* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6322);
44
- /* harmony import */ var _mermaid_js_parser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4010);
45
- /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8066);
46
-
47
-
48
-
49
-
50
-
51
- // src/diagrams/pie/pieParser.ts
52
-
53
-
54
- // src/diagrams/pie/pieDb.ts
55
- var DEFAULT_PIE_CONFIG = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .defaultConfig_default */ .UI.pie;
56
- var DEFAULT_PIE_DB = {
57
- sections: /* @__PURE__ */ new Map(),
58
- showData: false,
59
- config: DEFAULT_PIE_CONFIG
60
- };
61
- var sections = DEFAULT_PIE_DB.sections;
62
- var showData = DEFAULT_PIE_DB.showData;
63
- var config = structuredClone(DEFAULT_PIE_CONFIG);
64
- var getConfig2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => structuredClone(config), "getConfig");
65
- var clear2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => {
66
- sections = /* @__PURE__ */ new Map();
67
- showData = DEFAULT_PIE_DB.showData;
68
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .clear */ .IU)();
69
- }, "clear");
70
- var addSection = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(({ label, value }) => {
71
- if (!sections.has(label)) {
72
- sections.set(label, value);
73
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(`added new section: ${label}, with value: ${value}`);
74
- }
75
- }, "addSection");
76
- var getSections = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => sections, "getSections");
77
- var setShowData = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((toggle) => {
78
- showData = toggle;
79
- }, "setShowData");
80
- var getShowData = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => showData, "getShowData");
81
- var db = {
82
- getConfig: getConfig2,
83
- clear: clear2,
84
- setDiagramTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setDiagramTitle */ .ke,
85
- getDiagramTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getDiagramTitle */ .ab,
86
- setAccTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccTitle */ .SV,
87
- getAccTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getAccTitle */ .iN,
88
- setAccDescription: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccDescription */ .EI,
89
- getAccDescription: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getAccDescription */ .m7,
90
- addSection,
91
- getSections,
92
- setShowData,
93
- getShowData
94
- };
95
-
96
- // src/diagrams/pie/pieParser.ts
97
- var populateDb = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((ast, db2) => {
98
- (0,_chunk_RYO7GUH3_mjs__WEBPACK_IMPORTED_MODULE_0__/* .populateCommonDb */ .S)(ast, db2);
99
- db2.setShowData(ast.showData);
100
- ast.sections.map(db2.addSection);
101
- }, "populateDb");
102
- var parser = {
103
- parse: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async (input) => {
104
- const ast = await (0,_mermaid_js_parser__WEBPACK_IMPORTED_MODULE_4__/* .parse */ .qg)("pie", input);
105
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(ast);
106
- populateDb(ast, db);
107
- }, "parse")
108
- };
109
-
110
- // src/diagrams/pie/pieStyles.ts
111
- var getStyles = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((options) => `
112
- .pieCircle{
113
- stroke: ${options.pieStrokeColor};
114
- stroke-width : ${options.pieStrokeWidth};
115
- opacity : ${options.pieOpacity};
116
- }
117
- .pieOuterCircle{
118
- stroke: ${options.pieOuterStrokeColor};
119
- stroke-width: ${options.pieOuterStrokeWidth};
120
- fill: none;
121
- }
122
- .pieTitleText {
123
- text-anchor: middle;
124
- font-size: ${options.pieTitleTextSize};
125
- fill: ${options.pieTitleTextColor};
126
- font-family: ${options.fontFamily};
127
- }
128
- .slice {
129
- font-family: ${options.fontFamily};
130
- fill: ${options.pieSectionTextColor};
131
- font-size:${options.pieSectionTextSize};
132
- // fill: white;
133
- }
134
- .legend text {
135
- fill: ${options.pieLegendTextColor};
136
- font-family: ${options.fontFamily};
137
- font-size: ${options.pieLegendTextSize};
138
- }
139
- `, "getStyles");
140
- var pieStyles_default = getStyles;
141
-
142
- // src/diagrams/pie/pieRenderer.ts
143
-
144
- var createPieArcs = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((sections2) => {
145
- const pieData = [...sections2.entries()].map((element) => {
146
- return {
147
- label: element[0],
148
- value: element[1]
149
- };
150
- }).sort((a, b) => {
151
- return b.value - a.value;
152
- });
153
- const pie = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .pie */ .rLf)().value(
154
- (d3Section) => d3Section.value
155
- );
156
- return pie(pieData);
157
- }, "createPieArcs");
158
- var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((text, id, _version, diagObj) => {
159
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("rendering pie chart\n" + text);
160
- const db2 = diagObj.db;
161
- const globalConfig = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)();
162
- const pieConfig = (0,_chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_1__/* .cleanAndMerge */ .$t)(db2.getConfig(), globalConfig.pie);
163
- const MARGIN = 40;
164
- const LEGEND_RECT_SIZE = 18;
165
- const LEGEND_SPACING = 4;
166
- const height = 450;
167
- const pieWidth = height;
168
- const svg = (0,_chunk_OBAELV6Q_mjs__WEBPACK_IMPORTED_MODULE_2__/* .selectSvgElement */ .D)(id);
169
- const group = svg.append("g");
170
- group.attr("transform", "translate(" + pieWidth / 2 + "," + height / 2 + ")");
171
- const { themeVariables } = globalConfig;
172
- let [outerStrokeWidth] = (0,_chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_1__/* .parseFontSize */ .I5)(themeVariables.pieOuterStrokeWidth);
173
- outerStrokeWidth ??= 2;
174
- const textPosition = pieConfig.textPosition;
175
- const radius = Math.min(pieWidth, height) / 2 - MARGIN;
176
- const arcGenerator = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .arc */ .JLW)().innerRadius(0).outerRadius(radius);
177
- const labelArcGenerator = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .arc */ .JLW)().innerRadius(radius * textPosition).outerRadius(radius * textPosition);
178
- group.append("circle").attr("cx", 0).attr("cy", 0).attr("r", radius + outerStrokeWidth / 2).attr("class", "pieOuterCircle");
179
- const sections2 = db2.getSections();
180
- const arcs = createPieArcs(sections2);
181
- const myGeneratedColors = [
182
- themeVariables.pie1,
183
- themeVariables.pie2,
184
- themeVariables.pie3,
185
- themeVariables.pie4,
186
- themeVariables.pie5,
187
- themeVariables.pie6,
188
- themeVariables.pie7,
189
- themeVariables.pie8,
190
- themeVariables.pie9,
191
- themeVariables.pie10,
192
- themeVariables.pie11,
193
- themeVariables.pie12
194
- ];
195
- const color = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .scaleOrdinal */ .UMr)(myGeneratedColors);
196
- group.selectAll("mySlices").data(arcs).enter().append("path").attr("d", arcGenerator).attr("fill", (datum) => {
197
- return color(datum.data.label);
198
- }).attr("class", "pieCircle");
199
- let sum = 0;
200
- sections2.forEach((section) => {
201
- sum += section;
202
- });
203
- group.selectAll("mySlices").data(arcs).enter().append("text").text((datum) => {
204
- return (datum.data.value / sum * 100).toFixed(0) + "%";
205
- }).attr("transform", (datum) => {
206
- return "translate(" + labelArcGenerator.centroid(datum) + ")";
207
- }).style("text-anchor", "middle").attr("class", "slice");
208
- group.append("text").text(db2.getDiagramTitle()).attr("x", 0).attr("y", -(height - 50) / 2).attr("class", "pieTitleText");
209
- const legend = group.selectAll(".legend").data(color.domain()).enter().append("g").attr("class", "legend").attr("transform", (_datum, index) => {
210
- const height2 = LEGEND_RECT_SIZE + LEGEND_SPACING;
211
- const offset = height2 * color.domain().length / 2;
212
- const horizontal = 12 * LEGEND_RECT_SIZE;
213
- const vertical = index * height2 - offset;
214
- return "translate(" + horizontal + "," + vertical + ")";
215
- });
216
- legend.append("rect").attr("width", LEGEND_RECT_SIZE).attr("height", LEGEND_RECT_SIZE).style("fill", color).style("stroke", color);
217
- legend.data(arcs).append("text").attr("x", LEGEND_RECT_SIZE + LEGEND_SPACING).attr("y", LEGEND_RECT_SIZE - LEGEND_SPACING).text((datum) => {
218
- const { label, value } = datum.data;
219
- if (db2.getShowData()) {
220
- return `${label} [${value}]`;
221
- }
222
- return label;
223
- });
224
- const longestTextWidth = Math.max(
225
- ...legend.selectAll("text").nodes().map((node) => node?.getBoundingClientRect().width ?? 0)
226
- );
227
- const totalWidth = pieWidth + MARGIN + LEGEND_RECT_SIZE + LEGEND_SPACING + longestTextWidth;
228
- svg.attr("viewBox", `0 0 ${totalWidth} ${height}`);
229
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .configureSvgSize */ .a$)(svg, height, totalWidth, pieConfig.useMaxWidth);
230
- }, "draw");
231
- var renderer = { draw };
232
-
233
- // src/diagrams/pie/pieDiagram.ts
234
- var diagram = {
235
- parser,
236
- db,
237
- renderer,
238
- styles: pieStyles_default
239
- };
240
-
241
-
242
-
243
- /***/ })
244
-
245
- };
246
- ;