@likec4/core 1.46.4 → 1.47.0

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 (39) hide show
  1. package/dist/builder/index.d.mts +7 -5
  2. package/dist/builder/index.mjs +75 -31
  3. package/dist/compute-view/index.d.mts +45 -11
  4. package/dist/compute-view/index.mjs +149 -12
  5. package/dist/compute-view/relationships-view/index.d.mts +5 -5
  6. package/dist/index.d.mts +5 -5
  7. package/dist/index.mjs +4 -4
  8. package/dist/model/connection/deployment/index.d.mts +7 -7
  9. package/dist/model/connection/deployment/index.mjs +1 -1
  10. package/dist/model/connection/index.d.mts +8 -8
  11. package/dist/model/connection/index.mjs +1 -1
  12. package/dist/model/connection/model/index.d.mts +7 -7
  13. package/dist/model/index.d.mts +9 -9
  14. package/dist/model/index.mjs +2 -2
  15. package/dist/shared/{core.BYdtmqY5.mjs → core.BNN-3vPH.mjs} +1 -1
  16. package/dist/shared/{core.CRhT4Iio.mjs → core.BP_QHEXs.mjs} +1 -1
  17. package/dist/shared/{core.CBLX4mT8.mjs → core.Bdy3hhTc.mjs} +108 -137
  18. package/dist/shared/{core.C-Jdx7xo.d.mts → core.BfCKSW-g.d.mts} +10 -7
  19. package/dist/shared/{core.DeDCYTDR.d.mts → core.CAgYpDtM.d.mts} +2 -2
  20. package/dist/shared/{core.DEK-BO3_.mjs → core.CHf8VEa3.mjs} +1 -1
  21. package/dist/shared/{core.BvPm_-u3.d.mts → core.DC5IAaDT.d.mts} +1 -1
  22. package/dist/shared/{core.BZCgljZd.d.mts → core.DE9qzhn8.d.mts} +2 -2
  23. package/dist/shared/{core.BspBF3SJ.mjs → core.DGcIbsj4.mjs} +3 -1
  24. package/dist/shared/{core.Dt0v3djy.d.mts → core.DKhRkHRN.d.mts} +1 -1
  25. package/dist/shared/{core.DVfPJPJj.mjs → core.DU5SRqNF.mjs} +13 -4
  26. package/dist/shared/{core.xgoPk2RG.mjs → core.Dh119QSP.mjs} +18 -12
  27. package/dist/shared/{core.DSalPD6v.mjs → core.DjcWextK.mjs} +26 -7
  28. package/dist/shared/{core.DpKY_3NF.d.mts → core.Dojz4bvg.d.mts} +4 -4
  29. package/dist/shared/{core.xeuDd__E.mjs → core.btEq3i3f.mjs} +1 -1
  30. package/dist/shared/{core.Ctj2S3bD.d.mts → core.osFs8tU7.d.mts} +6 -6
  31. package/dist/shared/{core.ClTP6-TN.d.mts → core.tpvDGvdC.d.mts} +2 -2
  32. package/dist/styles/index.d.mts +4 -4
  33. package/dist/styles/index.mjs +1 -1
  34. package/dist/types/expression-model.d.mts +1 -1
  35. package/dist/types/expression.d.mts +1 -1
  36. package/dist/types/index.d.mts +6 -6
  37. package/dist/types/index.mjs +2 -2
  38. package/dist/utils/index.mjs +3 -3
  39. package/package.json +5 -4
@@ -1,19 +1,19 @@
1
- import { C as Connection } from '../../shared/core.Dt0v3djy.mjs';
2
- export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.ClTP6-TN.mjs';
3
- export { C as ConnectionModel, f as model } from '../../shared/core.BZCgljZd.mjs';
1
+ import { C as Connection } from '../../shared/core.DKhRkHRN.mjs';
2
+ export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.tpvDGvdC.mjs';
3
+ export { C as ConnectionModel, f as model } from '../../shared/core.DE9qzhn8.mjs';
4
4
  import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DB0Ue5Wx.mjs';
5
- import '../../shared/core.C-Jdx7xo.mjs';
5
+ import '../../shared/core.BfCKSW-g.mjs';
6
6
  import 'type-fest';
7
- import '../../shared/core.DeDCYTDR.mjs';
8
- import '../../shared/core.BvPm_-u3.mjs';
7
+ import '../../shared/core.CAgYpDtM.mjs';
8
+ import '../../shared/core.DC5IAaDT.mjs';
9
9
  import '../../shared/core.D00YbOhQ.mjs';
10
10
  import '../../shared/core.C_3y3eqV.mjs';
11
11
  import '../../types/fqnRef.mjs';
12
- import '../../shared/core.DpKY_3NF.mjs';
12
+ import '../../shared/core.Dojz4bvg.mjs';
13
13
  import '../../types/expression-model.mjs';
14
14
  import '../../shared/core.BPGOjone.mjs';
15
15
  import '../../shared/core.CywrQs86.mjs';
16
- import '../../shared/core.Ctj2S3bD.mjs';
16
+ import '../../shared/core.osFs8tU7.mjs';
17
17
 
18
18
  /**
19
19
  * Check if connection is nested inside another connection
@@ -1,3 +1,3 @@
1
1
  export { C as Connection } from '../../shared/core.BFd1lU9R.mjs';
2
- export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.CRhT4Iio.mjs';
2
+ export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.BP_QHEXs.mjs';
3
3
  export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.78IWAHAE.mjs';
@@ -1,15 +1,15 @@
1
- export { C as Connection } from '../../../shared/core.Dt0v3djy.mjs';
2
- export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.BZCgljZd.mjs';
3
- import '../../../shared/core.C-Jdx7xo.mjs';
1
+ export { C as Connection } from '../../../shared/core.DKhRkHRN.mjs';
2
+ export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.DE9qzhn8.mjs';
3
+ import '../../../shared/core.BfCKSW-g.mjs';
4
4
  import 'type-fest';
5
- import '../../../shared/core.DeDCYTDR.mjs';
6
- import '../../../shared/core.BvPm_-u3.mjs';
5
+ import '../../../shared/core.CAgYpDtM.mjs';
6
+ import '../../../shared/core.DC5IAaDT.mjs';
7
7
  import '../../../shared/core.D00YbOhQ.mjs';
8
8
  import '../../../shared/core.DB0Ue5Wx.mjs';
9
9
  import '../../../shared/core.C_3y3eqV.mjs';
10
10
  import '../../../types/fqnRef.mjs';
11
- import '../../../shared/core.DpKY_3NF.mjs';
11
+ import '../../../shared/core.Dojz4bvg.mjs';
12
12
  import '../../../types/expression-model.mjs';
13
13
  import '../../../shared/core.BPGOjone.mjs';
14
14
  import '../../../shared/core.CywrQs86.mjs';
15
- import '../../../shared/core.Ctj2S3bD.mjs';
15
+ import '../../../shared/core.osFs8tU7.mjs';
@@ -1,21 +1,21 @@
1
- import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.C-Jdx7xo.mjs';
2
- export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, f as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, h as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.C-Jdx7xo.mjs';
1
+ import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.BfCKSW-g.mjs';
2
+ export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, f as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, h as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.BfCKSW-g.mjs';
3
3
  import { A as Any } from '../shared/core.D00YbOhQ.mjs';
4
- export { C as Connection } from '../shared/core.Dt0v3djy.mjs';
5
- export { C as ConnectionModel, f as modelConnection } from '../shared/core.BZCgljZd.mjs';
6
- export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.ClTP6-TN.mjs';
4
+ export { C as Connection } from '../shared/core.DKhRkHRN.mjs';
5
+ export { C as ConnectionModel, f as modelConnection } from '../shared/core.DE9qzhn8.mjs';
6
+ export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.tpvDGvdC.mjs';
7
7
  export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
8
8
  import 'type-fest';
9
- import '../shared/core.DeDCYTDR.mjs';
10
- import '../shared/core.BvPm_-u3.mjs';
9
+ import '../shared/core.CAgYpDtM.mjs';
10
+ import '../shared/core.DC5IAaDT.mjs';
11
11
  import '../shared/core.DB0Ue5Wx.mjs';
12
12
  import '../types/fqnRef.mjs';
13
13
  import '../shared/core.C_3y3eqV.mjs';
14
- import '../shared/core.DpKY_3NF.mjs';
14
+ import '../shared/core.Dojz4bvg.mjs';
15
15
  import '../types/expression-model.mjs';
16
16
  import '../shared/core.BPGOjone.mjs';
17
17
  import '../shared/core.CywrQs86.mjs';
18
- import '../shared/core.Ctj2S3bD.mjs';
18
+ import '../shared/core.osFs8tU7.mjs';
19
19
 
20
20
  type AnyModel<A extends Any> = DeploymentNodeModel<A> | DeployedInstanceModel<A> | DeploymentRelationModel<A> | AnyRelationshipModel<A> | NestedElementOfDeployedInstanceModel<A> | ElementModel<A> | RelationshipModel<A> | LikeC4ViewModel<A> | NodeModel<A> | EdgeModel<A>;
21
21
  declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
@@ -1,4 +1,4 @@
1
- export { g as EdgeModel, E as ElementModel, f as LikeC4DeploymentModel, L as LikeC4Model, h as LikeC4ViewModel, j as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, k as extractViewTitleFromPath, l as getViewFolderPath, c as isDeployedInstanceModel, e as isDeploymentElementModel, d as isDeploymentNodeModel, m as isDeploymentRelationModel, r as isEdgeModel, i as isElementModel, p as isLikeC4ViewModel, o as isModelRelation, b as isNestedElementOfDeployedInstanceModel, q as isNodeModel, o as isRelationModel, o as isRelationshipModel, n as normalizeViewPath } from '../shared/core.DVfPJPJj.mjs';
2
- export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.CRhT4Iio.mjs';
1
+ export { g as EdgeModel, E as ElementModel, f as LikeC4DeploymentModel, L as LikeC4Model, h as LikeC4ViewModel, j as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, k as extractViewTitleFromPath, l as getViewFolderPath, c as isDeployedInstanceModel, e as isDeploymentElementModel, d as isDeploymentNodeModel, m as isDeploymentRelationModel, r as isEdgeModel, i as isElementModel, p as isLikeC4ViewModel, o as isModelRelation, b as isNestedElementOfDeployedInstanceModel, q as isNodeModel, o as isRelationModel, o as isRelationshipModel, n as normalizeViewPath } from '../shared/core.DU5SRqNF.mjs';
2
+ export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.BP_QHEXs.mjs';
3
3
  export { C as Connection } from '../shared/core.BFd1lU9R.mjs';
4
4
  export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.78IWAHAE.mjs';
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
2
- import { r as requireForeach, b as requireIterator } from './core.CBLX4mT8.mjs';
2
+ import { r as requireForeach, b as requireIterator } from './core.Bdy3hhTc.mjs';
3
3
 
4
4
  /**
5
5
  * Mnemonist BiMap
@@ -6,7 +6,7 @@ import { n as n$1 } from './core.BhNcrwzK.mjs';
6
6
  import { m as hierarchyLevel, g as commonAncestor, n as nameFromFqn, d as isSameHierarchy } from './core.CdNCAwq7.mjs';
7
7
  import { a as nonNullable, i as invariant } from './core.D4npX2q8.mjs';
8
8
  import { m as memoizeProp } from './core.CLSZtnFh.mjs';
9
- import { e as exact, R as RichText } from './core.DEK-BO3_.mjs';
9
+ import { e as exact, R as RichText } from './core.CHf8VEa3.mjs';
10
10
  import { preferSummary, preferDescription } from '../types/_aux.mjs';
11
11
  import { i as ihead } from './core.uFk_o9X6.mjs';
12
12
  import { s as stringHash } from './core.oSV6SRfk.mjs';
@@ -23641,12 +23641,11 @@ function remarkParse(options) {
23641
23641
  }
23642
23642
 
23643
23643
  /**
23644
- * @typedef {import('hast').Element} Element
23645
- * @typedef {import('mdast').Blockquote} Blockquote
23646
- * @typedef {import('../state.js').State} State
23644
+ * @import {Element} from 'hast'
23645
+ * @import {Blockquote} from 'mdast'
23646
+ * @import {State} from '../state.js'
23647
23647
  */
23648
23648
 
23649
-
23650
23649
  /**
23651
23650
  * Turn an mdast `blockquote` node into hast.
23652
23651
  *
@@ -23670,13 +23669,11 @@ function blockquote(state, node) {
23670
23669
  }
23671
23670
 
23672
23671
  /**
23673
- * @typedef {import('hast').Element} Element
23674
- * @typedef {import('hast').Text} Text
23675
- * @typedef {import('mdast').Break} Break
23676
- * @typedef {import('../state.js').State} State
23672
+ * @import {Element, Text} from 'hast'
23673
+ * @import {Break} from 'mdast'
23674
+ * @import {State} from '../state.js'
23677
23675
  */
23678
23676
 
23679
-
23680
23677
  /**
23681
23678
  * Turn an mdast `break` node into hast.
23682
23679
  *
@@ -23695,13 +23692,11 @@ function hardBreak(state, node) {
23695
23692
  }
23696
23693
 
23697
23694
  /**
23698
- * @typedef {import('hast').Element} Element
23699
- * @typedef {import('hast').Properties} Properties
23700
- * @typedef {import('mdast').Code} Code
23701
- * @typedef {import('../state.js').State} State
23695
+ * @import {Element, Properties} from 'hast'
23696
+ * @import {Code} from 'mdast'
23697
+ * @import {State} from '../state.js'
23702
23698
  */
23703
23699
 
23704
-
23705
23700
  /**
23706
23701
  * Turn an mdast `code` node into hast.
23707
23702
  *
@@ -23716,9 +23711,12 @@ function code(state, node) {
23716
23711
  const value = node.value ? node.value + '\n' : '';
23717
23712
  /** @type {Properties} */
23718
23713
  const properties = {};
23714
+ // Someone can write `js&#x20;python&#x9;ruby`.
23715
+ const language = node.lang ? node.lang.split(/\s+/) : [];
23719
23716
 
23720
- if (node.lang) {
23721
- properties.className = ['language-' + node.lang];
23717
+ // GH/CM still drop the non-first languages.
23718
+ if (language.length > 0) {
23719
+ properties.className = ['language-' + language[0]];
23722
23720
  }
23723
23721
 
23724
23722
  // Create `<code>`.
@@ -23744,12 +23742,11 @@ function code(state, node) {
23744
23742
  }
23745
23743
 
23746
23744
  /**
23747
- * @typedef {import('hast').Element} Element
23748
- * @typedef {import('mdast').Delete} Delete
23749
- * @typedef {import('../state.js').State} State
23745
+ * @import {Element} from 'hast'
23746
+ * @import {Delete} from 'mdast'
23747
+ * @import {State} from '../state.js'
23750
23748
  */
23751
23749
 
23752
-
23753
23750
  /**
23754
23751
  * Turn an mdast `delete` node into hast.
23755
23752
  *
@@ -23773,12 +23770,11 @@ function strikethrough(state, node) {
23773
23770
  }
23774
23771
 
23775
23772
  /**
23776
- * @typedef {import('hast').Element} Element
23777
- * @typedef {import('mdast').Emphasis} Emphasis
23778
- * @typedef {import('../state.js').State} State
23773
+ * @import {Element} from 'hast'
23774
+ * @import {Emphasis} from 'mdast'
23775
+ * @import {State} from '../state.js'
23779
23776
  */
23780
23777
 
23781
-
23782
23778
  /**
23783
23779
  * Turn an mdast `emphasis` node into hast.
23784
23780
  *
@@ -23802,9 +23798,9 @@ function emphasis(state, node) {
23802
23798
  }
23803
23799
 
23804
23800
  /**
23805
- * @typedef {import('hast').Element} Element
23806
- * @typedef {import('mdast').FootnoteReference} FootnoteReference
23807
- * @typedef {import('../state.js').State} State
23801
+ * @import {Element} from 'hast'
23802
+ * @import {FootnoteReference} from 'mdast'
23803
+ * @import {State} from '../state.js'
23808
23804
  */
23809
23805
 
23810
23806
 
@@ -23872,12 +23868,11 @@ function footnoteReference(state, node) {
23872
23868
  }
23873
23869
 
23874
23870
  /**
23875
- * @typedef {import('hast').Element} Element
23876
- * @typedef {import('mdast').Heading} Heading
23877
- * @typedef {import('../state.js').State} State
23871
+ * @import {Element} from 'hast'
23872
+ * @import {Heading} from 'mdast'
23873
+ * @import {State} from '../state.js'
23878
23874
  */
23879
23875
 
23880
-
23881
23876
  /**
23882
23877
  * Turn an mdast `heading` node into hast.
23883
23878
  *
@@ -23901,13 +23896,12 @@ function heading(state, node) {
23901
23896
  }
23902
23897
 
23903
23898
  /**
23904
- * @typedef {import('hast').Element} Element
23905
- * @typedef {import('mdast').Html} Html
23906
- * @typedef {import('../state.js').State} State
23907
- * @typedef {import('../../index.js').Raw} Raw
23899
+ * @import {Element} from 'hast'
23900
+ * @import {Html} from 'mdast'
23901
+ * @import {State} from '../state.js'
23902
+ * @import {Raw} from '../../index.js'
23908
23903
  */
23909
23904
 
23910
-
23911
23905
  /**
23912
23906
  * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
23913
23907
  * nothing).
@@ -23931,15 +23925,11 @@ function html(state, node) {
23931
23925
  }
23932
23926
 
23933
23927
  /**
23934
- * @typedef {import('hast').ElementContent} ElementContent
23935
- *
23936
- * @typedef {import('mdast').Nodes} Nodes
23937
- * @typedef {import('mdast').Reference} Reference
23938
- *
23939
- * @typedef {import('./state.js').State} State
23928
+ * @import {ElementContent} from 'hast'
23929
+ * @import {Reference, Nodes} from 'mdast'
23930
+ * @import {State} from './state.js'
23940
23931
  */
23941
23932
 
23942
-
23943
23933
  /**
23944
23934
  * Return the content of a reference without definition as plain text.
23945
23935
  *
@@ -23985,11 +23975,9 @@ function revert(state, node) {
23985
23975
  }
23986
23976
 
23987
23977
  /**
23988
- * @typedef {import('hast').Element} Element
23989
- * @typedef {import('hast').ElementContent} ElementContent
23990
- * @typedef {import('hast').Properties} Properties
23991
- * @typedef {import('mdast').ImageReference} ImageReference
23992
- * @typedef {import('../state.js').State} State
23978
+ * @import {ElementContent, Element, Properties} from 'hast'
23979
+ * @import {ImageReference} from 'mdast'
23980
+ * @import {State} from '../state.js'
23993
23981
  */
23994
23982
 
23995
23983
 
@@ -24025,10 +24013,9 @@ function imageReference(state, node) {
24025
24013
  }
24026
24014
 
24027
24015
  /**
24028
- * @typedef {import('hast').Element} Element
24029
- * @typedef {import('hast').Properties} Properties
24030
- * @typedef {import('mdast').Image} Image
24031
- * @typedef {import('../state.js').State} State
24016
+ * @import {Element, Properties} from 'hast'
24017
+ * @import {Image} from 'mdast'
24018
+ * @import {State} from '../state.js'
24032
24019
  */
24033
24020
 
24034
24021
 
@@ -24061,13 +24048,11 @@ function image(state, node) {
24061
24048
  }
24062
24049
 
24063
24050
  /**
24064
- * @typedef {import('hast').Element} Element
24065
- * @typedef {import('hast').Text} Text
24066
- * @typedef {import('mdast').InlineCode} InlineCode
24067
- * @typedef {import('../state.js').State} State
24051
+ * @import {Element, Text} from 'hast'
24052
+ * @import {InlineCode} from 'mdast'
24053
+ * @import {State} from '../state.js'
24068
24054
  */
24069
24055
 
24070
-
24071
24056
  /**
24072
24057
  * Turn an mdast `inlineCode` node into hast.
24073
24058
  *
@@ -24095,11 +24080,9 @@ function inlineCode(state, node) {
24095
24080
  }
24096
24081
 
24097
24082
  /**
24098
- * @typedef {import('hast').Element} Element
24099
- * @typedef {import('hast').ElementContent} ElementContent
24100
- * @typedef {import('hast').Properties} Properties
24101
- * @typedef {import('mdast').LinkReference} LinkReference
24102
- * @typedef {import('../state.js').State} State
24083
+ * @import {ElementContent, Element, Properties} from 'hast'
24084
+ * @import {LinkReference} from 'mdast'
24085
+ * @import {State} from '../state.js'
24103
24086
  */
24104
24087
 
24105
24088
 
@@ -24140,10 +24123,9 @@ function linkReference(state, node) {
24140
24123
  }
24141
24124
 
24142
24125
  /**
24143
- * @typedef {import('hast').Element} Element
24144
- * @typedef {import('hast').Properties} Properties
24145
- * @typedef {import('mdast').Link} Link
24146
- * @typedef {import('../state.js').State} State
24126
+ * @import {Element, Properties} from 'hast'
24127
+ * @import {Link} from 'mdast'
24128
+ * @import {State} from '../state.js'
24147
24129
  */
24148
24130
 
24149
24131
 
@@ -24177,15 +24159,11 @@ function link(state, node) {
24177
24159
  }
24178
24160
 
24179
24161
  /**
24180
- * @typedef {import('hast').Element} Element
24181
- * @typedef {import('hast').ElementContent} ElementContent
24182
- * @typedef {import('hast').Properties} Properties
24183
- * @typedef {import('mdast').ListItem} ListItem
24184
- * @typedef {import('mdast').Parents} Parents
24185
- * @typedef {import('../state.js').State} State
24162
+ * @import {ElementContent, Element, Properties} from 'hast'
24163
+ * @import {ListItem, Parents} from 'mdast'
24164
+ * @import {State} from '../state.js'
24186
24165
  */
24187
24166
 
24188
-
24189
24167
  /**
24190
24168
  * Turn an mdast `listItem` node into hast.
24191
24169
  *
@@ -24301,13 +24279,11 @@ function listItemLoose(node) {
24301
24279
  }
24302
24280
 
24303
24281
  /**
24304
- * @typedef {import('hast').Element} Element
24305
- * @typedef {import('hast').Properties} Properties
24306
- * @typedef {import('mdast').List} List
24307
- * @typedef {import('../state.js').State} State
24282
+ * @import {Element, Properties} from 'hast'
24283
+ * @import {List} from 'mdast'
24284
+ * @import {State} from '../state.js'
24308
24285
  */
24309
24286
 
24310
-
24311
24287
  /**
24312
24288
  * Turn an mdast `list` node into hast.
24313
24289
  *
@@ -24356,12 +24332,11 @@ function list(state, node) {
24356
24332
  }
24357
24333
 
24358
24334
  /**
24359
- * @typedef {import('hast').Element} Element
24360
- * @typedef {import('mdast').Paragraph} Paragraph
24361
- * @typedef {import('../state.js').State} State
24335
+ * @import {Element} from 'hast'
24336
+ * @import {Paragraph} from 'mdast'
24337
+ * @import {State} from '../state.js'
24362
24338
  */
24363
24339
 
24364
-
24365
24340
  /**
24366
24341
  * Turn an mdast `paragraph` node into hast.
24367
24342
  *
@@ -24385,13 +24360,11 @@ function paragraph(state, node) {
24385
24360
  }
24386
24361
 
24387
24362
  /**
24388
- * @typedef {import('hast').Parents} HastParents
24389
- * @typedef {import('hast').Root} HastRoot
24390
- * @typedef {import('mdast').Root} MdastRoot
24391
- * @typedef {import('../state.js').State} State
24363
+ * @import {Parents as HastParents, Root as HastRoot} from 'hast'
24364
+ * @import {Root as MdastRoot} from 'mdast'
24365
+ * @import {State} from '../state.js'
24392
24366
  */
24393
24367
 
24394
-
24395
24368
  /**
24396
24369
  * Turn an mdast `root` node into hast.
24397
24370
  *
@@ -24410,12 +24383,11 @@ function root(state, node) {
24410
24383
  }
24411
24384
 
24412
24385
  /**
24413
- * @typedef {import('hast').Element} Element
24414
- * @typedef {import('mdast').Strong} Strong
24415
- * @typedef {import('../state.js').State} State
24386
+ * @import {Element} from 'hast'
24387
+ * @import {Strong} from 'mdast'
24388
+ * @import {State} from '../state.js'
24416
24389
  */
24417
24390
 
24418
-
24419
24391
  /**
24420
24392
  * Turn an mdast `strong` node into hast.
24421
24393
  *
@@ -24439,9 +24411,9 @@ function strong(state, node) {
24439
24411
  }
24440
24412
 
24441
24413
  /**
24442
- * @typedef {import('hast').Element} Element
24443
- * @typedef {import('mdast').Table} Table
24444
- * @typedef {import('../state.js').State} State
24414
+ * @import {Table} from 'mdast'
24415
+ * @import {Element} from 'hast'
24416
+ * @import {State} from '../state.js'
24445
24417
  */
24446
24418
 
24447
24419
 
@@ -24500,15 +24472,11 @@ function table(state, node) {
24500
24472
  }
24501
24473
 
24502
24474
  /**
24503
- * @typedef {import('hast').Element} Element
24504
- * @typedef {import('hast').ElementContent} ElementContent
24505
- * @typedef {import('hast').Properties} Properties
24506
- * @typedef {import('mdast').Parents} Parents
24507
- * @typedef {import('mdast').TableRow} TableRow
24508
- * @typedef {import('../state.js').State} State
24475
+ * @import {Element, ElementContent, Properties} from 'hast'
24476
+ * @import {Parents, TableRow} from 'mdast'
24477
+ * @import {State} from '../state.js'
24509
24478
  */
24510
24479
 
24511
-
24512
24480
  /**
24513
24481
  * Turn an mdast `tableRow` node into hast.
24514
24482
  *
@@ -24568,12 +24536,11 @@ function tableRow(state, node, parent) {
24568
24536
  }
24569
24537
 
24570
24538
  /**
24571
- * @typedef {import('hast').Element} Element
24572
- * @typedef {import('mdast').TableCell} TableCell
24573
- * @typedef {import('../state.js').State} State
24539
+ * @import {Element} from 'hast'
24540
+ * @import {TableCell} from 'mdast'
24541
+ * @import {State} from '../state.js'
24574
24542
  */
24575
24543
 
24576
-
24577
24544
  /**
24578
24545
  * Turn an mdast `tableCell` node into hast.
24579
24546
  *
@@ -24669,10 +24636,9 @@ function trimLine(value, start, end) {
24669
24636
  }
24670
24637
 
24671
24638
  /**
24672
- * @typedef {import('hast').Element} HastElement
24673
- * @typedef {import('hast').Text} HastText
24674
- * @typedef {import('mdast').Text} MdastText
24675
- * @typedef {import('../state.js').State} State
24639
+ * @import {Element as HastElement, Text as HastText} from 'hast'
24640
+ * @import {Text as MdastText} from 'mdast'
24641
+ * @import {State} from '../state.js'
24676
24642
  */
24677
24643
 
24678
24644
 
@@ -24694,12 +24660,11 @@ function text(state, node) {
24694
24660
  }
24695
24661
 
24696
24662
  /**
24697
- * @typedef {import('hast').Element} Element
24698
- * @typedef {import('mdast').ThematicBreak} ThematicBreak
24699
- * @typedef {import('../state.js').State} State
24663
+ * @import {Element} from 'hast'
24664
+ * @import {ThematicBreak} from 'mdast'
24665
+ * @import {State} from '../state.js'
24700
24666
  */
24701
24667
 
24702
-
24703
24668
  /**
24704
24669
  * Turn an mdast `thematicBreak` node into hast.
24705
24670
  *
@@ -24722,10 +24687,15 @@ function thematicBreak(state, node) {
24722
24687
  return state.applyData(node, result)
24723
24688
  }
24724
24689
 
24690
+ /**
24691
+ * @import {Handlers} from '../state.js'
24692
+ */
24693
+
24694
+
24725
24695
  /**
24726
24696
  * Default handlers for nodes.
24727
24697
  *
24728
- * @satisfies {import('../state.js').Handlers}
24698
+ * @satisfies {Handlers}
24729
24699
  */
24730
24700
  const handlers = {
24731
24701
  blockquote,
@@ -24764,10 +24734,8 @@ function ignore() {
24764
24734
  }
24765
24735
 
24766
24736
  /**
24767
- * @typedef {import('hast').Element} Element
24768
- * @typedef {import('hast').ElementContent} ElementContent
24769
- *
24770
- * @typedef {import('./state.js').State} State
24737
+ * @import {ElementContent, Element} from 'hast'
24738
+ * @import {State} from './state.js'
24771
24739
  */
24772
24740
 
24773
24741
 
@@ -24956,22 +24924,25 @@ function footer(state) {
24956
24924
  }
24957
24925
 
24958
24926
  /**
24959
- * @typedef {import('hast').Element} HastElement
24960
- * @typedef {import('hast').ElementContent} HastElementContent
24961
- * @typedef {import('hast').Nodes} HastNodes
24962
- * @typedef {import('hast').Properties} HastProperties
24963
- * @typedef {import('hast').RootContent} HastRootContent
24964
- * @typedef {import('hast').Text} HastText
24965
- *
24966
- * @typedef {import('mdast').Definition} MdastDefinition
24967
- * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
24968
- * @typedef {import('mdast').Nodes} MdastNodes
24969
- * @typedef {import('mdast').Parents} MdastParents
24970
- *
24971
- * @typedef {import('vfile').VFile} VFile
24972
- *
24973
- * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate
24974
- * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate
24927
+ * @import {
24928
+ * ElementContent as HastElementContent,
24929
+ * Element as HastElement,
24930
+ * Nodes as HastNodes,
24931
+ * Properties as HastProperties,
24932
+ * RootContent as HastRootContent,
24933
+ * Text as HastText
24934
+ * } from 'hast'
24935
+ * @import {
24936
+ * Definition as MdastDefinition,
24937
+ * FootnoteDefinition as MdastFootnoteDefinition,
24938
+ * Nodes as MdastNodes,
24939
+ * Parents as MdastParents
24940
+ * } from 'mdast'
24941
+ * @import {VFile} from 'vfile'
24942
+ * @import {
24943
+ * FootnoteBackContentTemplate,
24944
+ * FootnoteBackLabelTemplate
24945
+ * } from './footer.js'
24975
24946
  */
24976
24947
 
24977
24948
 
@@ -25271,9 +25242,9 @@ function trimMarkdownSpaceStart(value) {
25271
25242
  }
25272
25243
 
25273
25244
  /**
25274
- * @typedef {import('hast').Nodes} HastNodes
25275
- * @typedef {import('mdast').Nodes} MdastNodes
25276
- * @typedef {import('./state.js').Options} Options
25245
+ * @import {Nodes as HastNodes} from 'hast'
25246
+ * @import {Nodes as MdastNodes} from 'mdast'
25247
+ * @import {Options} from './state.js'
25277
25248
  */
25278
25249
 
25279
25250