@ashwin_droid/notion-stream 1.0.0 → 1.0.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/dist/{_baseUniq-DSwfPiGC.js → _baseUniq-D32sgNIc.js} +1 -1
- package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-DCnQIx8G.mjs} +51 -51
- package/dist/{arc-BBnIBs2j.js → arc-B0uBm0sN.js} +1 -1
- package/dist/{arc-DmoYXidQ.mjs → arc-OrNNmmBm.mjs} +1 -1
- package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-CLYqYgyv.js} +1 -1
- package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-seCMyeyz.mjs} +1 -1
- package/dist/architectureDiagram-VXUJARFQ-BGsDPmi_.js +36 -0
- package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-BmPLNLcs.mjs} +1846 -1850
- package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-CXKvT-9-.mjs} +913 -922
- package/dist/blockDiagram-VD42YOAC-NQhzFvsO.js +122 -0
- package/dist/c4Diagram-YG6GDRKO-CMXx6pyB.js +10 -0
- package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-DAGMHESb.mjs} +169 -170
- package/dist/{channel-DVpqhnow.mjs → channel-BXGyzQA6.mjs} +1 -1
- package/dist/channel-Dw8BXC8D.js +1 -0
- package/dist/chunk-4BX2VUAB-MnK73C0-.js +1 -0
- package/dist/chunk-4BX2VUAB-ZaWvd3Xe.mjs +8 -0
- package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-B1EpdpVW.js} +1 -1
- package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-iKbZBHA5.mjs} +1 -1
- package/dist/chunk-B4BG7PRW-Bo_sfBKL.js +165 -0
- package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-DgqSow4f.mjs} +251 -252
- package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-BAHL-2VJ.mjs} +444 -456
- package/dist/chunk-DI55MBZ5-BuuMLI1S.js +220 -0
- package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BE8MbNLe.mjs} +1 -1
- package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-Cs1BNv23.js} +1 -1
- package/dist/chunk-QN33PNHL-MX1ZMWu-.js +1 -0
- package/dist/chunk-QN33PNHL-ZaWv5vaA.mjs +19 -0
- package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-D2X7PBDi.mjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-Db6mVb9M.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-AMFXF6mq.mjs} +20 -20
- package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-CzjtACDr.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-CPwvtUDj.mjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-UNrH9bQo.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-CPwvtUDj.mjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-UNrH9bQo.js} +1 -1
- package/dist/{clone-KtLCwiKH.mjs → clone-CV4F8CSW.mjs} +1 -1
- package/dist/clone-HVsPHeK3.js +1 -0
- package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-38K5Mxo2.js} +1 -1
- package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-Q-OOsw6q.mjs} +1 -1
- package/dist/cose-bilkent-S5V4N54A-1B77PywG.js +1 -0
- package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-greBbyuM.mjs} +592 -589
- package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
- package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
- package/dist/dagre-6UL2VRFP-DEQXyXKh.js +4 -0
- package/dist/dagre-6UL2VRFP-DN5Inkgr.mjs +443 -0
- package/dist/diagram-PSM6KHXK-C7tjFZpr.js +24 -0
- package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-D-GS1fTc.mjs} +45 -48
- package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-DJXBxeH4.mjs} +10 -14
- package/dist/diagram-QEK2KX5R-Doa8ooC_.js +43 -0
- package/dist/diagram-S2PKOQOG-BN04h93a.js +24 -0
- package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-BuPevKqw.mjs} +22 -23
- package/dist/erDiagram-Q2GNP2WA-AS2vnQKc.js +60 -0
- package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-DxOmvmqL.mjs} +77 -78
- package/dist/flowDiagram-NV44I4VS-BChiRwcp.js +162 -0
- package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-Cs_jC87H.mjs} +442 -449
- package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-02b_-xyZ.mjs} +1049 -1041
- package/dist/ganttDiagram-JELNMOA3-BGy1b6TD.js +267 -0
- package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-BWm0SBV4.mjs} +1 -1
- package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-DVfckSNX.js} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-CfzoE07P.mjs +699 -0
- package/dist/gitGraphDiagram-NY62KEGX-Cm9ywQoW.js +65 -0
- package/dist/{graph-C_T4ZBuC.mjs → graph-DEu7-ZhH.mjs} +8 -8
- package/dist/{graph-BNpx6ebg.js → graph-Dw_87ii6.js} +1 -1
- package/dist/index-BwYOYPeK.js +670 -0
- package/dist/{index-oe4HpmeG.mjs → index-DH3CVXwD.mjs} +22541 -22646
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-BpKxONZx.js} +1 -1
- package/dist/info-NVLQJR56-MmJP3L6S.mjs +5 -0
- package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-Bfsucvti.mjs} +2 -2
- package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-q-yX3_By.js} +1 -1
- package/dist/journeyDiagram-XKPGCS4Q-BqtyHvQF.js +139 -0
- package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-dFRLmnr-.mjs} +24 -26
- package/dist/kanban-definition-3W4ZIXB7-DeOl9Eme.mjs +719 -0
- package/dist/kanban-definition-3W4ZIXB7-DraMxv75.js +89 -0
- package/dist/{layout-CuWQnP5Y.js → layout-BKTUO8WZ.js} +1 -1
- package/dist/{layout-Cd98WJ7r.mjs → layout-CpL-hYTa.mjs} +22 -22
- package/dist/{linear-SU4e8MRt.mjs → linear-CLwIU3di.mjs} +20 -20
- package/dist/{linear-DFDw13y6.js → linear-DvM229Di.js} +1 -1
- package/dist/mermaid-4DMBBIKO-BpqXz0_U.mjs +4 -0
- package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-Cd15t2pT.js} +1 -1
- package/dist/mermaid-parser.core-BVlc9Lqd.js +128 -0
- package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CLAapB2-.mjs} +3404 -3369
- package/dist/{min-C2k771MZ.mjs → min--ML-ONY_.mjs} +2 -2
- package/dist/{min-CppMRDFn.js → min-BQ4NUvNf.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-78K_EDCb.mjs} +170 -172
- package/dist/mindmap-definition-VGOIOE7T-ZHY70ZzV.js +68 -0
- package/dist/notion-stream.css +1 -0
- package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-B34lFb6T.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-C9xcJQVN.js} +1 -1
- package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-Bz_jfTd_.js} +1 -1
- package/dist/pie-7BOR55EZ-DW2Zgje5.mjs +5 -0
- package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-CKzchAXU.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-Ctp6QR7f.mjs} +21 -21
- package/dist/quadrantDiagram-AYHSOK5B-D2Rt32D2.js +7 -0
- package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-D3U_Qicu.mjs} +230 -232
- package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-CO5ECFHq.mjs} +1 -1
- package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-DI4PJJjm.js} +1 -1
- package/dist/requirementDiagram-UZGBJVZJ-CSgb6U9N.js +64 -0
- package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-Da_yWSD1.mjs} +190 -192
- package/dist/sankeyDiagram-TZEHDZUN-C8jpBnM0.js +10 -0
- package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-Dp3Eyl8Q.mjs} +189 -189
- package/dist/sequenceDiagram-WL72ISMW-BZJ7d_X4.js +145 -0
- package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-yJKe02sV.mjs} +222 -229
- package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-Cfuygt_P.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-z0IX85WL.mjs} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-BDMFqSat.mjs} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-BiriAQkj.js} +1 -1
- package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-BmEq-RM3.mjs} +217 -223
- package/dist/timeline-definition-IT6M3QCI-CBmpRgUM.js +61 -0
- package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-IaHP18r_.mjs} +1 -1
- package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-qP0VzKwW.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BSaI76KX.mjs} +7 -7
- package/dist/xychartDiagram-PRI3JC2R-CQgij0Fy.js +7 -0
- package/package.json +5 -5
- package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
- package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
- package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
- package/dist/channel-6dUO0MQi.js +0 -1
- package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
- package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
- package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
- package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
- package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
- package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
- package/dist/clone-B0UaPT2Z.js +0 -1
- package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
- package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
- package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
- package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
- package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
- package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
- package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
- package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
- package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
- package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
- package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
- package/dist/index-CkYZRBYn.js +0 -676
- package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
- package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
- package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
- package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
- package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
- package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
- package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
- package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
- package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
- package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
- package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
- package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
- package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './styles.css';
|
|
1
2
|
export { NotionStream } from './components/NotionStream';
|
|
2
3
|
export type { Block, BlockType, ListType, InlineBlock, InlineStyle, Span, BlockInsert, SlashCommand, TableAlign, TableBlock, Theme, NotionStreamProps, NotionStreamRef, BlockHooks, BlockProps, } from './types';
|
|
3
4
|
export { useStreamParser } from './hooks/useStreamParser';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BwYOYPeK.js");require("react/jsx-runtime");require("react");exports.BlockquoteBlock=e.BlockquoteBlock;exports.CodeBlock=e.CodeBlock;exports.DividerBlock=e.DividerBlock;exports.HeadingBlock=e.HeadingBlock;exports.ImageBlock=e.ImageBlock;exports.ListBlock=e.ListBlock;exports.MathBlock=e.MathBlock;exports.MermaidBlock=e.MermaidBlock;exports.NotionStream=e.NotionStream;exports.ParagraphBlock=e.ParagraphBlock;exports.applyMarkdownDiffReview=e.applyMarkdownDiffReview;exports.applyStyleToRange=e.applyStyleToRange;exports.blocksToMarkdown=e.blocksToMarkdown;exports.computeCodeDiff=e.computeCodeDiff;exports.computeDiff=e.computeDiff;exports.computeMarkdownBlockDiff=e.computeMarkdownBlockDiff;exports.computeMarkdownDiffReviewItems=e.computeMarkdownDiffReviewItems;exports.computeMarkdownRenderDiff=e.computeMarkdownRenderDiff;exports.domToSpans=e.domToSpans;exports.getSelectionTextOffsets=e.getSelectionTextOffsets;exports.mergeAdjacentSpans=e.mergeAdjacentSpans;exports.parseMarkdown=e.parseMarkdown;exports.parseMarkdownToSpans=e.parseMarkdownToSpans;exports.renderSpans=e.renderSpans;exports.setSelectionTextOffsets=e.setSelectionTextOffsets;exports.spansToHtml=e.spansToHtml;exports.spansToMarkdown=e.spansToMarkdown;exports.toggleStyle=e.toggleStyle;exports.useBlockState=e.useBlockState;exports.useDiffReview=e.useDiffReview;exports.useMarkdownShortcuts=e.useMarkdownShortcuts;exports.useStreamParser=e.useStreamParser;
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c2 as c, bZ as t, c3 as r, bY as b, b_ as n, c1 as k, b$ as l, c0 as p, bG as i, bX as f, c8 as d, bS as m, bM as S, c9 as w, c4 as B, c5 as M, c7 as u, c6 as T, bU as g, bV as D, bR as R, bL as v, bN as y, bQ as h, bW as x, bP as H, bO as I, bT as O, bI as P, bK as C, bJ as L, bH as N } from "./index-DH3CVXwD.mjs";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
export {
|
|
5
5
|
c as BlockquoteBlock,
|
|
6
6
|
t as CodeBlock,
|
|
7
7
|
r as DividerBlock,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
b as HeadingBlock,
|
|
9
|
+
n as ImageBlock,
|
|
10
10
|
k as ListBlock,
|
|
11
11
|
l as MathBlock,
|
|
12
12
|
p as MermaidBlock,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-BVlc9Lqd.js");exports.InfoModule=e.InfoModule;exports.createInfoServices=e.createInfoServices;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e, l as s, P as o, i, Q as g } from "./index-
|
|
2
|
-
import { p } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as e, l as s, P as o, i, Q as g } from "./index-DH3CVXwD.mjs";
|
|
2
|
+
import { p } from "./mermaid-parser.core-CLAapB2-.mjs";
|
|
3
3
|
var v = {
|
|
4
4
|
parse: /* @__PURE__ */ e(async (r) => {
|
|
5
5
|
const a = await p("info", r);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BwYOYPeK.js"),s=require("./mermaid-parser.core-BVlc9Lqd.js");var o={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},i={version:e.package_default.version+""},g=e.__name(()=>i.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=e.selectSvgElement(a);e.configureSvgSize(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),c={draw:v},p={parser:o,db:d,renderer:c};exports.diagram=p;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./chunk-TZMSLE5B-CzjtACDr.js"),ft=require("./chunk-FMBD7UC4-Cs1BNv23.js"),i=require("./index-BwYOYPeK.js"),tt=require("./arc-B0uBm0sN.js");var G=(function(){var t=i.__name(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],_={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i.__name(function(n,s,l,d,p,o,b){var x=o.length-1;switch(p){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 13:d.addTask(o[x-1],o[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i.__name(function(n,s){if(s.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=s,l}},"parseError"),parse:i.__name(function(n){var s=this,l=[0],d=[],p=[null],o=[],b=this.table,x="",E=0,D=0,ht=2,J=1,ut=o.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(n,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;o.push(O);var dt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}i.__name(yt,"popStack");function K(){var w;return w=d.pop()||k.lex()||J,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=s.symbols_[w]||w),w}i.__name(K,"lex");for(var v,I,T,Y,F={},N,M,Q,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((v===null||typeof v>"u")&&(v=K()),T=b[I]&&b[I][v]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in b[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
|
|
2
|
+
`+k.showPosition()+`
|
|
3
|
+
Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":H="Parse error on line "+(E+1)+": Unexpected "+(v==J?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(H,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(k.yytext),o.push(k.yylloc),l.push(T[1]),v=null,D=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},dt&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),Y=this.performAction.apply(F,[x,D,E,A.yy,T[1],p,o].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),Q=b[l[l.length-2]][l[l.length-1]],l.push(Q);break;case 3:return!0}}return!0},"parse")},g=(function(){var h={EOF:1,parseError:i.__name(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:i.__name(function(n,s){return this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:i.__name(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i.__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:i.__name(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var n=this.pastInput(),s=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
|
+
`+s+"^"},"showPosition"),test_match:i.__name(function(n,s){var l,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=n[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var o in p)this[o]=p[o];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,s,l,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),o=0;o<p.length;o++)if(l=this._input.match(this.rules[p[o]]),l&&(!s||l[0].length>s[0].length)){if(s=l,d=o,this.options.backtrack_lexer){if(n=this.test_match(l,p[o]),n!==!1)return n;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(n=this.test_match(s,p[d]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var s=this.next();return s||this.lex()},"lex"),begin:i.__name(function(s){this.conditionStack.push(s)},"begin"),popState:i.__name(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i.__name(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:i.__name(function(s){this.begin(s)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i.__name(function(s,l,d,p){switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h})();_.lexer=g;function m(){this.yy={}}return i.__name(m,"Parser"),m.prototype=_,_.Parser=m,new m})();G.parser=G;var pt=G,R="",U=[],V=[],L=[],_t=i.__name(function(){U.length=0,V.length=0,R="",L.length=0,i.clear()},"clear"),gt=i.__name(function(t){R=t,U.push(t)},"addSection"),mt=i.__name(function(){return U},"getSections"),xt=i.__name(function(){let t=et();const e=100;let a=0;for(;!t&&a<e;)t=et(),a++;return V.push(...L),V},"getTasks"),kt=i.__name(function(){const t=[];return V.forEach(a=>{a.people&&t.push(...a.people)}),[...new Set(t)].sort()},"updateActors"),vt=i.__name(function(t,e){const a=e.substr(1).split(":");let c=0,r=[];a.length===1?(c=Number(a[0]),r=[]):(c=Number(a[0]),r=a[1].split(","));const f=r.map(y=>y.trim()),u={section:R,type:R,people:f,task:t,score:c};L.push(u)},"addTask"),bt=i.__name(function(t){const e={section:R,type:R,description:t,task:t,classes:[]};V.push(e)},"addTaskOrg"),et=i.__name(function(){const t=i.__name(function(a){return L[a].processed},"compileTask");let e=!0;for(const[a,c]of L.entries())t(a),e=e&&c.processed;return e},"compileTasks"),wt=i.__name(function(){return kt()},"getActors"),nt={getConfig:i.__name(()=>i.getConfig2().journey,"getConfig"),clear:_t,setDiagramTitle:i.setDiagramTitle,getDiagramTitle:i.getDiagramTitle,setAccTitle:i.setAccTitle,getAccTitle:i.getAccTitle,setAccDescription:i.setAccDescription,getAccDescription:i.getAccDescription,addSection:gt,getSections:mt,getTasks:xt,addTask:vt,addTaskOrg:bt,getActors:wt},Tt=i.__name(t=>`.label {
|
|
7
|
+
font-family: ${t.fontFamily};
|
|
8
|
+
color: ${t.textColor};
|
|
9
|
+
}
|
|
10
|
+
.mouth {
|
|
11
|
+
stroke: #666;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
line {
|
|
15
|
+
stroke: ${t.textColor}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.legend {
|
|
19
|
+
fill: ${t.textColor};
|
|
20
|
+
font-family: ${t.fontFamily};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.label text {
|
|
24
|
+
fill: #333;
|
|
25
|
+
}
|
|
26
|
+
.label {
|
|
27
|
+
color: ${t.textColor}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.face {
|
|
31
|
+
${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
|
|
32
|
+
stroke: #999;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.node rect,
|
|
36
|
+
.node circle,
|
|
37
|
+
.node ellipse,
|
|
38
|
+
.node polygon,
|
|
39
|
+
.node path {
|
|
40
|
+
fill: ${t.mainBkg};
|
|
41
|
+
stroke: ${t.nodeBorder};
|
|
42
|
+
stroke-width: 1px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.node .label {
|
|
46
|
+
text-align: center;
|
|
47
|
+
}
|
|
48
|
+
.node.clickable {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.arrowheadPath {
|
|
53
|
+
fill: ${t.arrowheadColor};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.edgePath .path {
|
|
57
|
+
stroke: ${t.lineColor};
|
|
58
|
+
stroke-width: 1.5px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.flowchart-link {
|
|
62
|
+
stroke: ${t.lineColor};
|
|
63
|
+
fill: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.edgeLabel {
|
|
67
|
+
background-color: ${t.edgeLabelBackground};
|
|
68
|
+
rect {
|
|
69
|
+
opacity: 0.5;
|
|
70
|
+
}
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cluster rect {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.cluster text {
|
|
78
|
+
fill: ${t.titleColor};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
div.mermaidTooltip {
|
|
82
|
+
position: absolute;
|
|
83
|
+
text-align: center;
|
|
84
|
+
max-width: 200px;
|
|
85
|
+
padding: 2px;
|
|
86
|
+
font-family: ${t.fontFamily};
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
background: ${t.tertiaryColor};
|
|
89
|
+
border: 1px solid ${t.border2};
|
|
90
|
+
border-radius: 2px;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
z-index: 100;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.task-type-0, .section-type-0 {
|
|
96
|
+
${t.fillType0?`fill: ${t.fillType0}`:""};
|
|
97
|
+
}
|
|
98
|
+
.task-type-1, .section-type-1 {
|
|
99
|
+
${t.fillType0?`fill: ${t.fillType1}`:""};
|
|
100
|
+
}
|
|
101
|
+
.task-type-2, .section-type-2 {
|
|
102
|
+
${t.fillType0?`fill: ${t.fillType2}`:""};
|
|
103
|
+
}
|
|
104
|
+
.task-type-3, .section-type-3 {
|
|
105
|
+
${t.fillType0?`fill: ${t.fillType3}`:""};
|
|
106
|
+
}
|
|
107
|
+
.task-type-4, .section-type-4 {
|
|
108
|
+
${t.fillType0?`fill: ${t.fillType4}`:""};
|
|
109
|
+
}
|
|
110
|
+
.task-type-5, .section-type-5 {
|
|
111
|
+
${t.fillType0?`fill: ${t.fillType5}`:""};
|
|
112
|
+
}
|
|
113
|
+
.task-type-6, .section-type-6 {
|
|
114
|
+
${t.fillType0?`fill: ${t.fillType6}`:""};
|
|
115
|
+
}
|
|
116
|
+
.task-type-7, .section-type-7 {
|
|
117
|
+
${t.fillType0?`fill: ${t.fillType7}`:""};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.actor-0 {
|
|
121
|
+
${t.actor0?`fill: ${t.actor0}`:""};
|
|
122
|
+
}
|
|
123
|
+
.actor-1 {
|
|
124
|
+
${t.actor1?`fill: ${t.actor1}`:""};
|
|
125
|
+
}
|
|
126
|
+
.actor-2 {
|
|
127
|
+
${t.actor2?`fill: ${t.actor2}`:""};
|
|
128
|
+
}
|
|
129
|
+
.actor-3 {
|
|
130
|
+
${t.actor3?`fill: ${t.actor3}`:""};
|
|
131
|
+
}
|
|
132
|
+
.actor-4 {
|
|
133
|
+
${t.actor4?`fill: ${t.actor4}`:""};
|
|
134
|
+
}
|
|
135
|
+
.actor-5 {
|
|
136
|
+
${t.actor5?`fill: ${t.actor5}`:""};
|
|
137
|
+
}
|
|
138
|
+
${ft.getIconStyles()}
|
|
139
|
+
`,"getStyles"),St=Tt,Z=i.__name(function(t,e){return j.drawRect(t,e)},"drawRect"),$t=i.__name(function(t,e){const c=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");r.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function f(_){const g=tt.d3arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}i.__name(f,"smile");function u(_){const g=tt.d3arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}i.__name(u,"sad");function y(_){_.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.__name(y,"ambivalent"),e.score>3?f(r):e.score<3?u(r):y(r),c},"drawFace"),st=i.__name(function(t,e){const a=t.append("circle");return a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0&&a.attr("class",a.class),e.title!==void 0&&a.append("title").text(e.title),a},"drawCircle"),lt=i.__name(function(t,e){return j.drawText(t,e)},"drawText"),Mt=i.__name(function(t,e){function a(r,f,u,y,_){return r+","+f+" "+(r+u)+","+f+" "+(r+u)+","+(f+y-_)+" "+(r+u-_*1.2)+","+(f+y)+" "+r+","+(f+y)}i.__name(a,"genPoints");const c=t.append("polygon");c.attr("points",a(e.x,e.y,50,20,7)),c.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,lt(t,e)},"drawLabel"),Ct=i.__name(function(t,e,a){const c=t.append("g"),r=j.getNoteRect();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=a.width*e.taskCount+a.diagramMarginX*(e.taskCount-1),r.height=a.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,Z(c,r),ot(a)(e.text,c,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),it=-1,Et=i.__name(function(t,e,a){const c=e.x+a.width/2,r=t.append("g");it++,r.append("line").attr("id","task"+it).attr("x1",c).attr("y1",e.y).attr("x2",c).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),$t(r,{cx:c,cy:300+(5-e.score)*30,score:e.score});const u=j.getNoteRect();u.x=e.x,u.y=e.y,u.fill=e.fill,u.width=a.width,u.height=a.height,u.class="task task-type-"+e.num,u.rx=3,u.ry=3,Z(r,u);let y=e.x+14;e.people.forEach(_=>{const g=e.actors[_].color,m={cx:y,cy:e.y,r:7,fill:g,stroke:"#000",title:_,pos:e.actors[_].position};st(r,m),y+=10}),ot(a)(e.task,r,u.x,u.y,u.width,u.height,{class:"task"},a,e.colour)},"drawTask"),Pt=i.__name(function(t,e){j.drawBackgroundRect(t,e)},"drawBackgroundRect"),ot=(function(){function t(r,f,u,y,_,g,m,h){const n=f.append("text").attr("x",u+_/2).attr("y",y+g/2+5).style("font-color",h).style("text-anchor","middle").text(r);c(n,m)}i.__name(t,"byText");function e(r,f,u,y,_,g,m,h,n){const{taskFontSize:s,taskFontFamily:l}=h,d=r.split(/<br\s*\/?>/gi);for(let p=0;p<d.length;p++){const o=p*s-s*(d.length-1)/2,b=f.append("text").attr("x",u+_/2).attr("y",y).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",l);b.append("tspan").attr("x",u+_/2).attr("dy",o).text(d[p]),b.attr("y",y+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),c(b,m)}}i.__name(e,"byTspan");function a(r,f,u,y,_,g,m,h){const n=f.append("switch"),l=n.append("foreignObject").attr("x",u).attr("y",y).attr("width",_).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),e(r,n,u,y,_,g,m,h),c(l,m)}i.__name(a,"byFo");function c(r,f){for(const u in f)u in f&&r.attr(u,f[u])}return i.__name(c,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?a:r.textPlacement==="old"?t:e}})(),At=i.__name(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),B={drawRect:Z,drawCircle:st,drawSection:Ct,drawText:lt,drawLabel:Mt,drawTask:Et,drawBackgroundRect:Pt,initGraphics:At},It=i.__name(function(t){Object.keys(t).forEach(function(a){$[a]=t[a]})},"setConf"),C={},W=0;function ct(t){const e=i.getConfig2().journey,a=e.maxLabelWidth;W=0;let c=60;Object.keys(C).forEach(r=>{const f=C[r].color,u={cx:20,cy:c,r:7,fill:f,stroke:"#000",pos:C[r].position};B.drawCircle(t,u);let y=t.append("text").attr("visibility","hidden").text(r);const _=y.node().getBoundingClientRect().width;y.remove();let g=[];if(_<=a)g=[r];else{const m=r.split(" ");let h="";y=t.append("text").attr("visibility","hidden"),m.forEach(n=>{const s=h?`${h} ${n}`:n;if(y.text(s),y.node().getBoundingClientRect().width>a){if(h&&g.push(h),h=n,y.text(n),y.node().getBoundingClientRect().width>a){let d="";for(const p of n)d+=p,y.text(d+"-"),y.node().getBoundingClientRect().width>a&&(g.push(d.slice(0,-1)+"-"),d=p);h=d}}else h=s}),h&&g.push(h),y.remove()}g.forEach((m,h)=>{const n={x:40,y:c+7+h*20,fill:"#666",text:m,textMargin:e.boxTextMargin??5},l=B.drawText(t,n).node().getBoundingClientRect().width;l>W&&l>e.leftMargin-l&&(W=l)}),c+=Math.max(20,g.length*20)})}i.__name(ct,"drawActorLegend");var $=i.getConfig2().journey,P=0,Ft=i.__name(function(t,e,a,c){const r=i.getConfig2(),f=r.journey.titleColor,u=r.journey.titleFontSize,y=r.journey.titleFontFamily,_=r.securityLevel;let g;_==="sandbox"&&(g=i.select("#i"+e));const m=_==="sandbox"?i.select(g.nodes()[0].contentDocument.body):i.select("body");S.init();const h=m.select("#"+e);B.initGraphics(h);const n=c.db.getTasks(),s=c.db.getDiagramTitle(),l=c.db.getActors();for(const E in C)delete C[E];let d=0;l.forEach(E=>{C[E]={color:$.actorColours[d%$.actorColours.length],position:d},d++}),ct(h),P=$.leftMargin+W,S.insert(0,0,P,Object.keys(C).length*50),Rt(h,n,0);const p=S.getBounds();s&&h.append("text").text(s).attr("x",P).attr("font-size",u).attr("font-weight","bold").attr("y",25).attr("fill",f).attr("font-family",y);const o=p.stopy-p.starty+2*$.diagramMarginY,b=P+p.stopx+2*$.diagramMarginX;i.configureSvgSize(h,o,b,$.useMaxWidth),h.append("line").attr("x1",P).attr("y1",$.height*4).attr("x2",b-P-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const x=s?70:0;h.attr("viewBox",`${p.startx} -25 ${b} ${o+x}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",o+x+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:i.__name(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:i.__name(function(t,e,a,c){t[e]===void 0?t[e]=a:t[e]=c(a,t[e])},"updateVal"),updateBounds:i.__name(function(t,e,a,c){const r=i.getConfig2().journey,f=this;let u=0;function y(_){return i.__name(function(m){u++;const h=f.sequenceItems.length-u+1;f.updateVal(m,"starty",e-h*r.boxMargin,Math.min),f.updateVal(m,"stopy",c+h*r.boxMargin,Math.max),f.updateVal(S.data,"startx",t-h*r.boxMargin,Math.min),f.updateVal(S.data,"stopx",a+h*r.boxMargin,Math.max),_!=="activation"&&(f.updateVal(m,"startx",t-h*r.boxMargin,Math.min),f.updateVal(m,"stopx",a+h*r.boxMargin,Math.max),f.updateVal(S.data,"starty",e-h*r.boxMargin,Math.min),f.updateVal(S.data,"stopy",c+h*r.boxMargin,Math.max))},"updateItemBounds")}i.__name(y,"updateFn"),this.sequenceItems.forEach(y())},"updateBounds"),insert:i.__name(function(t,e,a,c){const r=Math.min(t,a),f=Math.max(t,a),u=Math.min(e,c),y=Math.max(e,c);this.updateVal(S.data,"startx",r,Math.min),this.updateVal(S.data,"starty",u,Math.min),this.updateVal(S.data,"stopx",f,Math.max),this.updateVal(S.data,"stopy",y,Math.max),this.updateBounds(r,u,f,y)},"insert"),bumpVerticalPos:i.__name(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:i.__name(function(){return this.verticalPos},"getVerticalPos"),getBounds:i.__name(function(){return this.data},"getBounds")},X=$.sectionFills,rt=$.sectionColours,Rt=i.__name(function(t,e,a){const c=i.getConfig2().journey;let r="";const f=c.height*2+c.diagramMarginY,u=a+f;let y=0,_="#CCC",g="black",m=0;for(const[h,n]of e.entries()){if(r!==n.section){_=X[y%X.length],m=y%X.length,g=rt[y%rt.length];let l=0;const d=n.section;for(let o=h;o<e.length&&e[o].section==d;o++)l=l+1;const p={x:h*c.taskMargin+h*c.width+P,y:50,text:n.section,fill:_,num:m,colour:g,taskCount:l};B.drawSection(t,p,c),r=n.section,y++}const s=n.people.reduce((l,d)=>(C[d]&&(l[d]=C[d]),l),{});n.x=h*c.taskMargin+h*c.width+P,n.y=u,n.width=c.diagramMarginX,n.height=c.diagramMarginY,n.colour=g,n.fill=_,n.num=m,n.actors=s,B.drawTask(t,n,c),S.insert(n.x,n.y,n.x+n.width+c.taskMargin,450)}},"drawTasks"),at={setConf:It,draw:Ft},Vt={parser:pt,db:nt,renderer:at,styles:St,init:i.__name(t=>{at.setConf(t.journey),nt.clear()},"init")};exports.diagram=Vt;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { g as kt } from "./chunk-FMBD7UC4-
|
|
3
|
-
import { _ as n, g as _t, s as vt, d as bt, e as wt, z as Tt, y as St, f as R, h as
|
|
4
|
-
import { d as et } from "./arc-
|
|
5
|
-
var U = function() {
|
|
1
|
+
import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-AMFXF6mq.mjs";
|
|
2
|
+
import { g as kt } from "./chunk-FMBD7UC4-BE8MbNLe.mjs";
|
|
3
|
+
import { _ as n, g as _t, s as vt, d as bt, e as wt, z as Tt, y as St, f as R, h as X, i as $t, D as Mt } from "./index-DH3CVXwD.mjs";
|
|
4
|
+
import { d as et } from "./arc-OrNNmmBm.mjs";
|
|
5
|
+
var U = (function() {
|
|
6
6
|
var t = /* @__PURE__ */ n(function(h, i, a, l) {
|
|
7
7
|
for (a = a || {}, l = h.length; l--; a[h[l]] = i) ;
|
|
8
8
|
return a;
|
|
@@ -80,13 +80,13 @@ var U = function() {
|
|
|
80
80
|
n(D, "lex");
|
|
81
81
|
for (var v, A, T, q, F = {}, N, M, tt, z; ; ) {
|
|
82
82
|
if (A = l[l.length - 1], this.defaultActions[A] ? T = this.defaultActions[A] : ((v === null || typeof v > "u") && (v = D()), T = b[A] && b[A][v]), typeof T > "u" || !T.length || !T[0]) {
|
|
83
|
-
var
|
|
83
|
+
var H = "";
|
|
84
84
|
z = [];
|
|
85
85
|
for (N in b[A])
|
|
86
86
|
this.terminals_[N] && N > dt && z.push("'" + this.terminals_[N] + "'");
|
|
87
|
-
_.showPosition ?
|
|
87
|
+
_.showPosition ? H = "Parse error on line " + (C + 1) + `:
|
|
88
88
|
` + _.showPosition() + `
|
|
89
|
-
Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" :
|
|
89
|
+
Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : H = "Parse error on line " + (C + 1) + ": Unexpected " + (v == Q ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(H, {
|
|
90
90
|
text: _.match,
|
|
91
91
|
token: this.terminals_[v] || v,
|
|
92
92
|
line: _.yylineno,
|
|
@@ -127,7 +127,7 @@ Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : X = "
|
|
|
127
127
|
}
|
|
128
128
|
return !0;
|
|
129
129
|
}, "parse")
|
|
130
|
-
}, m = /* @__PURE__ */ function() {
|
|
130
|
+
}, m = /* @__PURE__ */ (function() {
|
|
131
131
|
var h = {
|
|
132
132
|
EOF: 1,
|
|
133
133
|
parseError: /* @__PURE__ */ n(function(a, l) {
|
|
@@ -347,13 +347,13 @@ Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : X = "
|
|
|
347
347
|
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], inclusive: !0 } }
|
|
348
348
|
};
|
|
349
349
|
return h;
|
|
350
|
-
}();
|
|
350
|
+
})();
|
|
351
351
|
g.lexer = m;
|
|
352
352
|
function x() {
|
|
353
353
|
this.yy = {};
|
|
354
354
|
}
|
|
355
355
|
return n(x, "Parser"), x.prototype = g, g.Parser = x, new x();
|
|
356
|
-
}();
|
|
356
|
+
})();
|
|
357
357
|
U.parser = U;
|
|
358
358
|
var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
359
359
|
Z.length = 0, L.length = 0, V = "", B.length = 0, Mt();
|
|
@@ -599,9 +599,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
|
599
599
|
);
|
|
600
600
|
}, "drawSection"), nt = -1, Ot = /* @__PURE__ */ n(function(t, e, s) {
|
|
601
601
|
const c = e.x + s.width / 2, r = t.append("g");
|
|
602
|
-
nt
|
|
603
|
-
const f = 300 + 5 * 30;
|
|
604
|
-
r.append("line").attr("id", "task" + nt).attr("x1", c).attr("y1", e.y).attr("x2", c).attr("y2", f).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(r, {
|
|
602
|
+
nt++, r.append("line").attr("id", "task" + nt).attr("x1", c).attr("y1", e.y).attr("x2", c).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(r, {
|
|
605
603
|
cx: c,
|
|
606
604
|
cy: 300 + (5 - e.score) * 30,
|
|
607
605
|
score: e.score
|
|
@@ -633,7 +631,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
|
633
631
|
);
|
|
634
632
|
}, "drawTask"), Yt = /* @__PURE__ */ n(function(t, e) {
|
|
635
633
|
gt(t, e);
|
|
636
|
-
}, "drawBackgroundRect"), ht = /* @__PURE__ */ function() {
|
|
634
|
+
}, "drawBackgroundRect"), ht = /* @__PURE__ */ (function() {
|
|
637
635
|
function t(r, f, u, y, g, m, x, h) {
|
|
638
636
|
const i = f.append("text").attr("x", u + g / 2).attr("y", y + m / 2 + 5).style("font-color", h).style("text-anchor", "middle").text(r);
|
|
639
637
|
c(i, x);
|
|
@@ -659,7 +657,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
|
659
657
|
return n(c, "_setTextAttrs"), function(r) {
|
|
660
658
|
return r.textPlacement === "fo" ? s : r.textPlacement === "old" ? t : e;
|
|
661
659
|
};
|
|
662
|
-
}(), qt = /* @__PURE__ */ n(function(t) {
|
|
660
|
+
})(), qt = /* @__PURE__ */ n(function(t) {
|
|
663
661
|
t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
664
662
|
}, "initGraphics"), j = {
|
|
665
663
|
drawRect: J,
|
|
@@ -670,7 +668,7 @@ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
|
|
|
670
668
|
drawTask: Ot,
|
|
671
669
|
drawBackgroundRect: Yt,
|
|
672
670
|
initGraphics: qt
|
|
673
|
-
},
|
|
671
|
+
}, Ht = /* @__PURE__ */ n(function(t) {
|
|
674
672
|
Object.keys(t).forEach(function(s) {
|
|
675
673
|
$[s] = t[s];
|
|
676
674
|
});
|
|
@@ -724,11 +722,11 @@ function ut(t) {
|
|
|
724
722
|
});
|
|
725
723
|
}
|
|
726
724
|
n(ut, "drawActorLegend");
|
|
727
|
-
var $ = R().journey, P = 0,
|
|
725
|
+
var $ = R().journey, P = 0, Xt = /* @__PURE__ */ n(function(t, e, s, c) {
|
|
728
726
|
const r = R(), f = r.journey.titleColor, u = r.journey.titleFontSize, y = r.journey.titleFontFamily, g = r.securityLevel;
|
|
729
727
|
let m;
|
|
730
|
-
g === "sandbox" && (m =
|
|
731
|
-
const x = g === "sandbox" ?
|
|
728
|
+
g === "sandbox" && (m = X("#i" + e));
|
|
729
|
+
const x = g === "sandbox" ? X(m.nodes()[0].contentDocument.body) : X("body");
|
|
732
730
|
S.init();
|
|
733
731
|
const h = x.select("#" + e);
|
|
734
732
|
j.initGraphics(h);
|
|
@@ -741,7 +739,7 @@ var $ = R().journey, P = 0, Gt = /* @__PURE__ */ n(function(t, e, s, c) {
|
|
|
741
739
|
color: $.actorColours[d % $.actorColours.length],
|
|
742
740
|
position: d
|
|
743
741
|
}, d++;
|
|
744
|
-
}), ut(h), P = $.leftMargin + W, S.insert(0, 0, P, Object.keys(E).length * 50),
|
|
742
|
+
}), ut(h), P = $.leftMargin + W, S.insert(0, 0, P, Object.keys(E).length * 50), Gt(h, i, 0);
|
|
745
743
|
const p = S.getBounds();
|
|
746
744
|
a && h.append("text").text(a).attr("x", P).attr("font-size", u).attr("font-weight", "bold").attr("y", 25).attr("fill", f).attr("font-family", y);
|
|
747
745
|
const o = p.stopy - p.starty + 2 * $.diagramMarginY, b = P + p.stopx + 2 * $.diagramMarginX;
|
|
@@ -793,14 +791,14 @@ var $ = R().journey, P = 0, Gt = /* @__PURE__ */ n(function(t, e, s, c) {
|
|
|
793
791
|
getBounds: /* @__PURE__ */ n(function() {
|
|
794
792
|
return this.data;
|
|
795
793
|
}, "getBounds")
|
|
796
|
-
},
|
|
794
|
+
}, G = $.sectionFills, st = $.sectionColours, Gt = /* @__PURE__ */ n(function(t, e, s) {
|
|
797
795
|
const c = R().journey;
|
|
798
796
|
let r = "";
|
|
799
797
|
const f = c.height * 2 + c.diagramMarginY, u = s + f;
|
|
800
798
|
let y = 0, g = "#CCC", m = "black", x = 0;
|
|
801
799
|
for (const [h, i] of e.entries()) {
|
|
802
800
|
if (r !== i.section) {
|
|
803
|
-
g =
|
|
801
|
+
g = G[y % G.length], x = y % G.length, m = st[y % st.length];
|
|
804
802
|
let l = 0;
|
|
805
803
|
const d = i.section;
|
|
806
804
|
for (let o = h; o < e.length && e[o].section == d; o++)
|
|
@@ -817,11 +815,11 @@ var $ = R().journey, P = 0, Gt = /* @__PURE__ */ n(function(t, e, s, c) {
|
|
|
817
815
|
j.drawSection(t, p, c), r = i.section, y++;
|
|
818
816
|
}
|
|
819
817
|
const a = i.people.reduce((l, d) => (E[d] && (l[d] = E[d]), l), {});
|
|
820
|
-
i.x = h * c.taskMargin + h * c.width + P, i.y = u, i.width = c.diagramMarginX, i.height = c.diagramMarginY, i.colour = m, i.fill = g, i.num = x, i.actors = a, j.drawTask(t, i, c), S.insert(i.x, i.y, i.x + i.width + c.taskMargin,
|
|
818
|
+
i.x = h * c.taskMargin + h * c.width + P, i.y = u, i.width = c.diagramMarginX, i.height = c.diagramMarginY, i.colour = m, i.fill = g, i.num = x, i.actors = a, j.drawTask(t, i, c), S.insert(i.x, i.y, i.x + i.width + c.taskMargin, 450);
|
|
821
819
|
}
|
|
822
820
|
}, "drawTasks"), at = {
|
|
823
|
-
setConf:
|
|
824
|
-
draw:
|
|
821
|
+
setConf: Ht,
|
|
822
|
+
draw: Xt
|
|
825
823
|
}, Qt = {
|
|
826
824
|
parser: Et,
|
|
827
825
|
db: rt,
|