@tickernelz/paperclip-pro-server 2026.926.6 → 2026.927.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/dist/build-info.json +1 -1
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/agents.js +3 -2
- package/dist/routes/agents.js.map +1 -1
- package/dist/routes/issues.d.ts +2 -1
- package/dist/routes/issues.d.ts.map +1 -1
- package/dist/routes/issues.js +200 -52
- package/dist/routes/issues.js.map +1 -1
- package/dist/routes/openapi.d.ts.map +1 -1
- package/dist/routes/openapi.js +27 -3
- package/dist/routes/openapi.js.map +1 -1
- package/dist/routes/paperclip-mcp.d.ts.map +1 -1
- package/dist/routes/paperclip-mcp.js +4 -15
- package/dist/routes/paperclip-mcp.js.map +1 -1
- package/dist/services/instance-settings.d.ts.map +1 -1
- package/dist/services/instance-settings.js +3 -1
- package/dist/services/instance-settings.js.map +1 -1
- package/dist/services/teams-catalog.d.ts +1 -0
- package/dist/services/teams-catalog.d.ts.map +1 -1
- package/dist/services/teams-catalog.js +31 -1
- package/dist/services/teams-catalog.js.map +1 -1
- package/node_modules/mdast-util-to-markdown/index.d.ts +2 -0
- package/node_modules/mdast-util-to-markdown/lib/configure.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/configure.js +19 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/break.js +16 -5
- package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/code.js +13 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +30 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +39 -41
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.js +11 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/html.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +10 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +17 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +10 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/image.js +10 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +9 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +14 -4
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +10 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +17 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/link.js +24 -9
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +12 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/list.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/root.js +13 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +30 -2
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.js +39 -41
- package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/text.js +7 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +6 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +6 -0
- package/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/index.js +34 -8
- package/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/join.js +18 -1
- package/node_modules/mdast-util-to-markdown/lib/types.d.ts +50 -30
- package/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/unsafe.js +15 -1
- package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
- package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -0
- package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +3 -1
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +2 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +9 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +95 -4
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +636 -57
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +2 -2
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +12 -7
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -2
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +20 -15
- package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
- package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
- package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +5 -0
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +2 -2
- package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/safe.js +71 -7
- package/node_modules/mdast-util-to-markdown/package.json +13 -57
- package/node_modules/mdast-util-to-markdown/readme.md +139 -84
- package/package.json +21 -20
- package/ui-dist/assets/{AgentAvatar-CnpBTXF0.js → AgentAvatar-PT82VwmU.js} +1 -1
- package/ui-dist/assets/{AgentIdentity-CV55DQtR.js → AgentIdentity-MCshmbhZ.js} +1 -1
- package/ui-dist/assets/{Agents.production-DVAeGpcj.js → Agents.production-M_NY58co.js} +2 -2
- package/ui-dist/assets/{CompanyActivity.production-CfhZMRXj.js → CompanyActivity.production-DYQKd80o.js} +1 -1
- package/ui-dist/assets/{CompanyExport-gwDWvzqx.js → CompanyExport-Ch4DvzDC.js} +1 -1
- package/ui-dist/assets/{CompanySkills.production-BT_6NNEX.js → CompanySkills.production-BGOAW-TP.js} +1 -1
- package/ui-dist/assets/{Costs.production-rBVKz6XI.js → Costs.production-AiD1rIrs.js} +1 -1
- package/ui-dist/assets/{EmptyState-DeVTy8IU.js → EmptyState-DPcc0zYh.js} +1 -1
- package/ui-dist/assets/{MarkdownBody-Da7yUIDf.js → MarkdownBody-D0eCfSWN.js} +1 -1
- package/ui-dist/assets/{MarkdownEditor-7JCtdEaZ.js → MarkdownEditor-Pip4OXiJ.js} +49 -49
- package/ui-dist/assets/{OrgChart.production-BUvWpHy6.js → OrgChart.production-WmGsXZUQ.js} +1 -1
- package/ui-dist/assets/{PageSkeleton-DRRnaWWU.js → PageSkeleton-DHjTwRT3.js} +1 -1
- package/ui-dist/assets/{RoutineDetail.production-DOdpoBuO.js → RoutineDetail.production-B8ydFpMP.js} +1 -1
- package/ui-dist/assets/{RoutineRunVariablesDialog-Bj-Q_Ua3.js → RoutineRunVariablesDialog-IRX4TLng.js} +1 -1
- package/ui-dist/assets/{Routines.production-DaUtfMFw.js → Routines.production-Bcb1R-Uu.js} +1 -1
- package/ui-dist/assets/{SidebarContext-CxjppFTY.js → SidebarContext-D01pu4wh.js} +1 -1
- package/ui-dist/assets/{StatusIcon-j05cEqDO.js → StatusIcon-BuUYMqqU.js} +1 -1
- package/ui-dist/assets/{agents-ZcIBncVi.js → agents-BlSzFh-1.js} +1 -1
- package/ui-dist/assets/{badge-B4sBXDQo.js → badge-Cf7ihb3q.js} +1 -1
- package/ui-dist/assets/{bot-CcFVz40n.js → bot-DZDpMzjD.js} +1 -1
- package/ui-dist/assets/{button-LkWt40cm.js → button-CAPbz11u.js} +1 -1
- package/ui-dist/assets/{card-DbvoJZ3K.js → card-dmVcp3AX.js} +1 -1
- package/ui-dist/assets/{check-CgfxcCMv.js → check-DDiXDm2i.js} +1 -1
- package/ui-dist/assets/{checkbox-CLAkJpms.js → checkbox-CmMbs2PZ.js} +1 -1
- package/ui-dist/assets/{chevron-down-CpKmud_n.js → chevron-down-F9aZv-V7.js} +1 -1
- package/ui-dist/assets/{chevron-right-IZydUoW5.js → chevron-right-B9JUOr38.js} +1 -1
- package/ui-dist/assets/{clipboard-CjMs5cp9.js → clipboard-CYJ5Q78m.js} +1 -1
- package/ui-dist/assets/{company-members-Dyq_pnza.js → company-members-BcZm1g8Q.js} +1 -1
- package/ui-dist/assets/createLucideIcon-r3v6fbGz.js +92 -0
- package/ui-dist/assets/{definition-6XjQ-LsW.js → definition-Irgr7mY_.js} +1 -1
- package/ui-dist/assets/{dist-pDmgIRxg.js → dist-5v80Jc6A.js} +1 -1
- package/ui-dist/assets/{dist-Cqh7BG-j.js → dist-D1zgkcBw.js} +1 -1
- package/ui-dist/assets/{environments-xbdxVBLT.js → environments-BVeNFanj.js} +1 -1
- package/ui-dist/assets/{external-link-BbeUY6zf.js → external-link-0lrOvZWO.js} +1 -1
- package/ui-dist/assets/{file-text-BMJQ4LZs.js → file-text-C9vgFckt.js} +1 -1
- package/ui-dist/assets/{health-Bj6kLXe5.js → health-DeeeogeJ.js} +1 -1
- package/ui-dist/assets/{heartbeats-DFiFf4Zf.js → heartbeats-CK_aXmx5.js} +1 -1
- package/ui-dist/assets/{index-Cf2CHzHP.js → index-F2pxxyIV.js} +153 -153
- package/ui-dist/assets/{input-a7SggR2b.js → input-DpsS9it-.js} +1 -1
- package/ui-dist/assets/{label-Dnc69R1W.js → label-C2ddSDJj.js} +1 -1
- package/ui-dist/assets/{loader-circle-Cu72DKdC.js → loader-circle-BD9wx-lw.js} +1 -1
- package/ui-dist/assets/{mention-chips-BEaOTvHT.js → mention-chips-DXumPrOR.js} +1 -1
- package/ui-dist/assets/{octagon-alert-DfqJ6RjK.js → octagon-alert-rGMwyrWA.js} +1 -1
- package/ui-dist/assets/{rotate-ccw-DiFaj3XM.js → rotate-ccw-CRAQ3Xng.js} +1 -1
- package/ui-dist/assets/{router-G1KztA90.js → router-DyZkoSkG.js} +2 -2
- package/ui-dist/assets/{save-D9PtvKKu.js → save-DUnPDT6R.js} +1 -1
- package/ui-dist/assets/{select-DSr2hsz2.js → select-mS22eY6T.js} +1 -1
- package/ui-dist/assets/{sheet-H27vJn3G.js → sheet-DeCxNmfl.js} +1 -1
- package/ui-dist/assets/{skeleton-CPVPMT4g.js → skeleton-CKir8TUW.js} +1 -1
- package/ui-dist/assets/{tabs-D8G3-AL7.js → tabs-DWRZjksg.js} +1 -1
- package/ui-dist/assets/{triangle-alert-DiD4Atur.js → triangle-alert-CgJcxSQX.js} +1 -1
- package/ui-dist/assets/{use-adapter-capabilities-D_QCYxa2.js → use-adapter-capabilities-BiWYK4zJ.js} +1 -1
- package/ui-dist/assets/{useHiddenSettings-vbDpbX0U.js → useHiddenSettings-2JpxuJV7.js} +1 -1
- package/ui-dist/assets/{zap-CCqZhqc3.js → zap-P-cXfK28.js} +1 -1
- package/ui-dist/index.html +45 -45
- package/ui-dist/sw.js +1 -1
- package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
- package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
- package/ui-dist/assets/createLucideIcon-CZEG6UJ7.js +0 -92
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
+
* Checks the preferred strong option.
|
|
6
|
+
*
|
|
5
7
|
* @param {State} state
|
|
8
|
+
* Info passed around.
|
|
6
9
|
* @returns {Exclude<Options['strong'], null | undefined>}
|
|
10
|
+
* Preferred strong marker.
|
|
7
11
|
*/
|
|
8
12
|
export function checkStrong(state: State): Exclude<Options["strong"], null | undefined>;
|
|
9
13
|
import type { State } from 'mdast-util-to-markdown';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-strong.d.ts","sourceRoot":"","sources":["check-strong.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"check-strong.d.ts","sourceRoot":"","sources":["check-strong.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,mCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAexD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* Checks the preferred strong option.
|
|
7
|
+
*
|
|
6
8
|
* @param {State} state
|
|
9
|
+
* Info passed around.
|
|
7
10
|
* @returns {Exclude<Options['strong'], null | undefined>}
|
|
11
|
+
* Preferred strong marker.
|
|
8
12
|
*/
|
|
9
13
|
export function checkStrong(state) {
|
|
10
14
|
const marker = state.options.strong || '*'
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* Compiles a pattern object into a regular expression.
|
|
7
|
+
*
|
|
6
8
|
* @type {CompilePattern}
|
|
7
9
|
*/
|
|
8
10
|
export function compilePattern(pattern) {
|
|
@@ -13,7 +15,7 @@ export function compilePattern(pattern) {
|
|
|
13
15
|
|
|
14
16
|
pattern._compiled = new RegExp(
|
|
15
17
|
(before ? '(' + before + ')' : '') +
|
|
16
|
-
(/[
|
|
18
|
+
(/[$()*+\-.?[\\\]^{|}]/.test(pattern.character) ? '\\' : '') +
|
|
17
19
|
pattern.character +
|
|
18
20
|
(pattern.after ? '(?:' + pattern.after + ')' : ''),
|
|
19
21
|
'g'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-flow.d.ts","sourceRoot":"","sources":["container-flow.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"container-flow.d.ts","sourceRoot":"","sources":["container-flow.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AACH,sCATW,WAAW,SAEX,KAAK,QAEL,WAAW,GAET,MAAM,CA0ClB;iCAtDwD,aAAa;2BAD9C,wBAAwB;iCACS,aAAa"}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* Serialize the children of a parent that contains flow children.
|
|
8
|
+
*
|
|
7
9
|
* @param {FlowParents} parent
|
|
8
10
|
* Parent of flow nodes.
|
|
9
11
|
* @param {State} state
|
|
@@ -55,11 +57,18 @@ export function containerFlow(parent, state, info) {
|
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
/**
|
|
60
|
+
* Determine the markdown to insert between two flow nodes.
|
|
61
|
+
*
|
|
58
62
|
* @param {FlowChildren} left
|
|
63
|
+
* Left flow node.
|
|
59
64
|
* @param {FlowChildren} right
|
|
65
|
+
* Right flow node.
|
|
60
66
|
* @param {FlowParents} parent
|
|
67
|
+
* Parent of the flow nodes.
|
|
61
68
|
* @param {State} state
|
|
69
|
+
* Info passed around.
|
|
62
70
|
* @returns {string}
|
|
71
|
+
* Markdown to insert between the two flow nodes.
|
|
63
72
|
*/
|
|
64
73
|
function between(left, right, parent, state) {
|
|
65
74
|
let index = state.join.length
|
|
@@ -1,18 +1,109 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Serialize the children of a parent that contains phrasing children.
|
|
3
3
|
*
|
|
4
|
-
* These children will be joined flush together.
|
|
5
|
-
*
|
|
6
4
|
* @param {PhrasingParents} parent
|
|
7
|
-
* Parent of
|
|
5
|
+
* Parent of phrasing nodes.
|
|
8
6
|
* @param {State} state
|
|
9
7
|
* Info passed around about the current state.
|
|
10
8
|
* @param {Info} info
|
|
11
9
|
* Info on where we are in the document we are generating.
|
|
12
10
|
* @returns {string}
|
|
13
|
-
* Serialized
|
|
11
|
+
* Serialized result.
|
|
14
12
|
*/
|
|
15
13
|
export function containerPhrasing(parent: PhrasingParents, state: State, info: Info): string;
|
|
14
|
+
/**
|
|
15
|
+
* Attention, of which the sequence is chosen later.
|
|
16
|
+
*/
|
|
17
|
+
export type AttentionResult = {
|
|
18
|
+
/**
|
|
19
|
+
* Serialized children.
|
|
20
|
+
*/
|
|
21
|
+
children: Array<Item>;
|
|
22
|
+
/**
|
|
23
|
+
* Sequences that can be used, in order of preference.
|
|
24
|
+
*/
|
|
25
|
+
sequences: Array<string>;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Improvement of attention sequences.
|
|
29
|
+
*/
|
|
30
|
+
export type Improvement = {
|
|
31
|
+
/**
|
|
32
|
+
* Chosen sequences for each attention.
|
|
33
|
+
*/
|
|
34
|
+
chosen: Map<AttentionResult, string>;
|
|
35
|
+
/**
|
|
36
|
+
* Tokens involved in the improvement.
|
|
37
|
+
*/
|
|
38
|
+
tokens: Array<Token>;
|
|
39
|
+
/**
|
|
40
|
+
* Mistake that led to this improvement, if any.
|
|
41
|
+
*/
|
|
42
|
+
mistake: Mistake | undefined;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Serialized phrasing.
|
|
46
|
+
*/
|
|
47
|
+
export type Item = AttentionResult | string;
|
|
48
|
+
/**
|
|
49
|
+
* Sequence that does not form its attention.
|
|
50
|
+
*/
|
|
51
|
+
export type Mistake = {
|
|
52
|
+
/**
|
|
53
|
+
* Attention to try other sequences for.
|
|
54
|
+
*/
|
|
55
|
+
attention: Array<AttentionResult>;
|
|
56
|
+
/**
|
|
57
|
+
* Index of the token.
|
|
58
|
+
*/
|
|
59
|
+
index: number;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Sequences next to each other with the same marker.
|
|
63
|
+
*/
|
|
64
|
+
export type Run = {
|
|
65
|
+
/**
|
|
66
|
+
* Whether it can close.
|
|
67
|
+
*/
|
|
68
|
+
close: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Index after the last marker not used (to open).
|
|
71
|
+
*/
|
|
72
|
+
end: number;
|
|
73
|
+
/**
|
|
74
|
+
* Sequence of each marker.
|
|
75
|
+
*/
|
|
76
|
+
markers: Array<Token>;
|
|
77
|
+
/**
|
|
78
|
+
* Whether it can open.
|
|
79
|
+
*/
|
|
80
|
+
open: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Whether it can be split (built-in attention).
|
|
83
|
+
*/
|
|
84
|
+
split: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Index of the first marker not used (to close).
|
|
87
|
+
*/
|
|
88
|
+
start: number;
|
|
89
|
+
/**
|
|
90
|
+
* Sequences.
|
|
91
|
+
*/
|
|
92
|
+
tokens: Array<Token>;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Rendered phrasing.
|
|
96
|
+
*/
|
|
97
|
+
export type Token = {
|
|
98
|
+
/**
|
|
99
|
+
* Attention, if this is one of its sequences.
|
|
100
|
+
*/
|
|
101
|
+
attention: AttentionResult | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Value.
|
|
104
|
+
*/
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
16
107
|
import type { PhrasingParents } from '../types.js';
|
|
17
108
|
import type { State } from 'mdast-util-to-markdown';
|
|
18
109
|
import type { Info } from 'mdast-util-to-markdown';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-phrasing.d.ts","sourceRoot":"","sources":["container-phrasing.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"container-phrasing.d.ts","sourceRoot":"","sources":["container-phrasing.js"],"names":[],"mappings":"AA+NA;;;;;;;;;;;GAWG;AACH,0CATW,eAAe,SAEf,KAAK,QAEL,IAAI,GAEF,MAAM,CAKlB;;;;;;;;cA5Ma,KAAK,CAAC,IAAI,CAAC;;;;eAEX,KAAK,CAAC,MAAM,CAAC;;;;;;;;;YAOb,GAAG,CAAC,eAAe,EAAE,MAAM,CAAC;;;;YAE5B,KAAK,CAAC,KAAK,CAAC;;;;aAEZ,OAAO,GAAG,SAAS;;;;;mBAKpB,eAAe,GAAG,MAAM;;;;;;;;eAOvB,KAAK,CAAC,eAAe,CAAC;;;;WAEtB,MAAM;;;;;;;;;WAON,OAAO;;;;SAEP,MAAM;;;;aAEN,KAAK,CAAC,KAAK,CAAC;;;;UAEZ,OAAO;;;;WAEP,OAAO;;;;WAEP,MAAM;;;;YAEN,KAAK,CAAC,KAAK,CAAC;;;;;;;;;eAOZ,eAAe,GAAG,SAAS;;;;WAE3B,MAAM;;qCAtFc,aAAa;2BADE,wBAAwB;0BAAxB,wBAAwB"}
|