ember-repl 7.0.1 → 7.1.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 (37) hide show
  1. package/declarations/services/known-modules.d.ts.map +1 -1
  2. package/dist/{babel-8wMrbxkT.js → babel-DbH-RlNa.js} +62593 -66125
  3. package/dist/babel-DbH-RlNa.js.map +1 -0
  4. package/dist/compile/state.js.map +1 -1
  5. package/dist/{index-C4AyeeIa.js → index-Bm1Y84Cu.js} +2 -2
  6. package/dist/{index-C4AyeeIa.js.map → index-Bm1Y84Cu.js.map} +1 -1
  7. package/dist/{index-CCcIVEUK.js → index-Bo3xsMqx.js} +8 -7
  8. package/dist/index-Bo3xsMqx.js.map +1 -0
  9. package/dist/{index-DejgrVqh.js → index-C-twRw93.js} +16 -1327
  10. package/dist/index-C-twRw93.js.map +1 -0
  11. package/dist/{index-C8S2G0FH.js → index-CGDqu098.js} +111 -139
  12. package/dist/index-CGDqu098.js.map +1 -0
  13. package/dist/index-DIRpUv6Z.js +2 -0
  14. package/dist/index-DIRpUv6Z.js.map +1 -0
  15. package/dist/{index-DBBNT106.js → index-DMSCybEq.js} +7 -11
  16. package/dist/index-DMSCybEq.js.map +1 -0
  17. package/dist/{index-BTx1k6gT.js → index-DNPwtadt.js} +2 -2
  18. package/dist/{index-BTx1k6gT.js.map → index-DNPwtadt.js.map} +1 -1
  19. package/dist/{index-DxolpiGq.js → index-F3Sr0JFE.js} +57 -54
  20. package/dist/index-F3Sr0JFE.js.map +1 -0
  21. package/dist/plugin-DATxmrFU.js +9110 -0
  22. package/dist/plugin-DATxmrFU.js.map +1 -0
  23. package/dist/services/compiler.js +2 -3
  24. package/dist/services/compiler.js.map +1 -1
  25. package/dist/services/known-modules.js +11 -13
  26. package/dist/services/known-modules.js.map +1 -1
  27. package/package.json +40 -41
  28. package/src/services/compiler.ts +1 -1
  29. package/src/services/known-modules.ts +5 -4
  30. package/dist/babel-8wMrbxkT.js.map +0 -1
  31. package/dist/index-C8S2G0FH.js.map +0 -1
  32. package/dist/index-CCcIVEUK.js.map +0 -1
  33. package/dist/index-D8szzCn3.js +0 -2
  34. package/dist/index-D8szzCn3.js.map +0 -1
  35. package/dist/index-DBBNT106.js.map +0 -1
  36. package/dist/index-DejgrVqh.js.map +0 -1
  37. package/dist/index-DxolpiGq.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { p as pointStart, a as pointEnd, s as structuredClone, b as position } from './index-DP_Su7Zc.js';
2
2
  import { b as asciiAlphanumeric } from './index-ZyJlPFQY.js';
3
- import { v as visit } from './index-CCcIVEUK.js';
3
+ import { v as visit } from './index-Bo3xsMqx.js';
4
4
 
5
5
  /**
6
6
  * Normalize a URL.
@@ -66,12 +66,11 @@ function normalizeUri(value) {
66
66
  }
67
67
 
68
68
  /**
69
- * @typedef {import('hast').Element} Element
70
- * @typedef {import('mdast').Blockquote} Blockquote
71
- * @typedef {import('../state.js').State} State
69
+ * @import {Element} from 'hast'
70
+ * @import {Blockquote} from 'mdast'
71
+ * @import {State} from '../state.js'
72
72
  */
73
73
 
74
-
75
74
  /**
76
75
  * Turn an mdast `blockquote` node into hast.
77
76
  *
@@ -95,13 +94,11 @@ function blockquote(state, node) {
95
94
  }
96
95
 
97
96
  /**
98
- * @typedef {import('hast').Element} Element
99
- * @typedef {import('hast').Text} Text
100
- * @typedef {import('mdast').Break} Break
101
- * @typedef {import('../state.js').State} State
97
+ * @import {Element, Text} from 'hast'
98
+ * @import {Break} from 'mdast'
99
+ * @import {State} from '../state.js'
102
100
  */
103
101
 
104
-
105
102
  /**
106
103
  * Turn an mdast `break` node into hast.
107
104
  *
@@ -128,13 +125,11 @@ function hardBreak(state, node) {
128
125
  }
129
126
 
130
127
  /**
131
- * @typedef {import('hast').Element} Element
132
- * @typedef {import('hast').Properties} Properties
133
- * @typedef {import('mdast').Code} Code
134
- * @typedef {import('../state.js').State} State
128
+ * @import {Element, Properties} from 'hast'
129
+ * @import {Code} from 'mdast'
130
+ * @import {State} from '../state.js'
135
131
  */
136
132
 
137
-
138
133
  /**
139
134
  * Turn an mdast `code` node into hast.
140
135
  *
@@ -149,8 +144,12 @@ function code(state, node) {
149
144
  const value = node.value ? node.value + '\n' : '';
150
145
  /** @type {Properties} */
151
146
  const properties = {};
152
- if (node.lang) {
153
- properties.className = ['language-' + node.lang];
147
+ // Someone can write `js python	ruby`.
148
+ const language = node.lang ? node.lang.split(/\s+/) : [];
149
+
150
+ // GH/CM still drop the non-first languages.
151
+ if (language.length > 0) {
152
+ properties.className = ['language-' + language[0]];
154
153
  }
155
154
 
156
155
  // Create `<code>`.
@@ -184,12 +183,11 @@ function code(state, node) {
184
183
  }
185
184
 
186
185
  /**
187
- * @typedef {import('hast').Element} Element
188
- * @typedef {import('mdast').Delete} Delete
189
- * @typedef {import('../state.js').State} State
186
+ * @import {Element} from 'hast'
187
+ * @import {Delete} from 'mdast'
188
+ * @import {State} from '../state.js'
190
189
  */
191
190
 
192
-
193
191
  /**
194
192
  * Turn an mdast `delete` node into hast.
195
193
  *
@@ -213,12 +211,11 @@ function strikethrough(state, node) {
213
211
  }
214
212
 
215
213
  /**
216
- * @typedef {import('hast').Element} Element
217
- * @typedef {import('mdast').Emphasis} Emphasis
218
- * @typedef {import('../state.js').State} State
214
+ * @import {Element} from 'hast'
215
+ * @import {Emphasis} from 'mdast'
216
+ * @import {State} from '../state.js'
219
217
  */
220
218
 
221
-
222
219
  /**
223
220
  * Turn an mdast `emphasis` node into hast.
224
221
  *
@@ -242,9 +239,9 @@ function emphasis(state, node) {
242
239
  }
243
240
 
244
241
  /**
245
- * @typedef {import('hast').Element} Element
246
- * @typedef {import('mdast').FootnoteReference} FootnoteReference
247
- * @typedef {import('../state.js').State} State
242
+ * @import {Element} from 'hast'
243
+ * @import {FootnoteReference} from 'mdast'
244
+ * @import {State} from '../state.js'
248
245
  */
249
246
 
250
247
 
@@ -305,12 +302,11 @@ function footnoteReference(state, node) {
305
302
  }
306
303
 
307
304
  /**
308
- * @typedef {import('hast').Element} Element
309
- * @typedef {import('mdast').Heading} Heading
310
- * @typedef {import('../state.js').State} State
305
+ * @import {Element} from 'hast'
306
+ * @import {Heading} from 'mdast'
307
+ * @import {State} from '../state.js'
311
308
  */
312
309
 
313
-
314
310
  /**
315
311
  * Turn an mdast `heading` node into hast.
316
312
  *
@@ -334,13 +330,12 @@ function heading(state, node) {
334
330
  }
335
331
 
336
332
  /**
337
- * @typedef {import('hast').Element} Element
338
- * @typedef {import('mdast').Html} Html
339
- * @typedef {import('../state.js').State} State
340
- * @typedef {import('../../index.js').Raw} Raw
333
+ * @import {Element} from 'hast'
334
+ * @import {Html} from 'mdast'
335
+ * @import {State} from '../state.js'
336
+ * @import {Raw} from '../../index.js'
341
337
  */
342
338
 
343
-
344
339
  /**
345
340
  * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
346
341
  * nothing).
@@ -366,15 +361,11 @@ function html(state, node) {
366
361
  }
367
362
 
368
363
  /**
369
- * @typedef {import('hast').ElementContent} ElementContent
370
- *
371
- * @typedef {import('mdast').Nodes} Nodes
372
- * @typedef {import('mdast').Reference} Reference
373
- *
374
- * @typedef {import('./state.js').State} State
364
+ * @import {ElementContent} from 'hast'
365
+ * @import {Reference, Nodes} from 'mdast'
366
+ * @import {State} from './state.js'
375
367
  */
376
368
 
377
-
378
369
  /**
379
370
  * Return the content of a reference without definition as plain text.
380
371
  *
@@ -422,11 +413,9 @@ function revert(state, node) {
422
413
  }
423
414
 
424
415
  /**
425
- * @typedef {import('hast').Element} Element
426
- * @typedef {import('hast').ElementContent} ElementContent
427
- * @typedef {import('hast').Properties} Properties
428
- * @typedef {import('mdast').ImageReference} ImageReference
429
- * @typedef {import('../state.js').State} State
416
+ * @import {ElementContent, Element, Properties} from 'hast'
417
+ * @import {ImageReference} from 'mdast'
418
+ * @import {State} from '../state.js'
430
419
  */
431
420
 
432
421
 
@@ -468,10 +457,9 @@ function imageReference(state, node) {
468
457
  }
469
458
 
470
459
  /**
471
- * @typedef {import('hast').Element} Element
472
- * @typedef {import('hast').Properties} Properties
473
- * @typedef {import('mdast').Image} Image
474
- * @typedef {import('../state.js').State} State
460
+ * @import {Element, Properties} from 'hast'
461
+ * @import {Image} from 'mdast'
462
+ * @import {State} from '../state.js'
475
463
  */
476
464
 
477
465
 
@@ -509,13 +497,11 @@ function image(state, node) {
509
497
  }
510
498
 
511
499
  /**
512
- * @typedef {import('hast').Element} Element
513
- * @typedef {import('hast').Text} Text
514
- * @typedef {import('mdast').InlineCode} InlineCode
515
- * @typedef {import('../state.js').State} State
500
+ * @import {Element, Text} from 'hast'
501
+ * @import {InlineCode} from 'mdast'
502
+ * @import {State} from '../state.js'
516
503
  */
517
504
 
518
-
519
505
  /**
520
506
  * Turn an mdast `inlineCode` node into hast.
521
507
  *
@@ -546,11 +532,9 @@ function inlineCode(state, node) {
546
532
  }
547
533
 
548
534
  /**
549
- * @typedef {import('hast').Element} Element
550
- * @typedef {import('hast').ElementContent} ElementContent
551
- * @typedef {import('hast').Properties} Properties
552
- * @typedef {import('mdast').LinkReference} LinkReference
553
- * @typedef {import('../state.js').State} State
535
+ * @import {ElementContent, Element, Properties} from 'hast'
536
+ * @import {LinkReference} from 'mdast'
537
+ * @import {State} from '../state.js'
554
538
  */
555
539
 
556
540
 
@@ -591,10 +575,9 @@ function linkReference(state, node) {
591
575
  }
592
576
 
593
577
  /**
594
- * @typedef {import('hast').Element} Element
595
- * @typedef {import('hast').Properties} Properties
596
- * @typedef {import('mdast').Link} Link
597
- * @typedef {import('../state.js').State} State
578
+ * @import {Element, Properties} from 'hast'
579
+ * @import {Link} from 'mdast'
580
+ * @import {State} from '../state.js'
598
581
  */
599
582
 
600
583
 
@@ -629,15 +612,11 @@ function link(state, node) {
629
612
  }
630
613
 
631
614
  /**
632
- * @typedef {import('hast').Element} Element
633
- * @typedef {import('hast').ElementContent} ElementContent
634
- * @typedef {import('hast').Properties} Properties
635
- * @typedef {import('mdast').ListItem} ListItem
636
- * @typedef {import('mdast').Parents} Parents
637
- * @typedef {import('../state.js').State} State
615
+ * @import {ElementContent, Element, Properties} from 'hast'
616
+ * @import {ListItem, Parents} from 'mdast'
617
+ * @import {State} from '../state.js'
638
618
  */
639
619
 
640
-
641
620
  /**
642
621
  * Turn an mdast `listItem` node into hast.
643
622
  *
@@ -758,13 +737,11 @@ function listItemLoose(node) {
758
737
  }
759
738
 
760
739
  /**
761
- * @typedef {import('hast').Element} Element
762
- * @typedef {import('hast').Properties} Properties
763
- * @typedef {import('mdast').List} List
764
- * @typedef {import('../state.js').State} State
740
+ * @import {Element, Properties} from 'hast'
741
+ * @import {List} from 'mdast'
742
+ * @import {State} from '../state.js'
765
743
  */
766
744
 
767
-
768
745
  /**
769
746
  * Turn an mdast `list` node into hast.
770
747
  *
@@ -805,12 +782,11 @@ function list(state, node) {
805
782
  }
806
783
 
807
784
  /**
808
- * @typedef {import('hast').Element} Element
809
- * @typedef {import('mdast').Paragraph} Paragraph
810
- * @typedef {import('../state.js').State} State
785
+ * @import {Element} from 'hast'
786
+ * @import {Paragraph} from 'mdast'
787
+ * @import {State} from '../state.js'
811
788
  */
812
789
 
813
-
814
790
  /**
815
791
  * Turn an mdast `paragraph` node into hast.
816
792
  *
@@ -834,13 +810,11 @@ function paragraph(state, node) {
834
810
  }
835
811
 
836
812
  /**
837
- * @typedef {import('hast').Parents} HastParents
838
- * @typedef {import('hast').Root} HastRoot
839
- * @typedef {import('mdast').Root} MdastRoot
840
- * @typedef {import('../state.js').State} State
813
+ * @import {Parents as HastParents, Root as HastRoot} from 'hast'
814
+ * @import {Root as MdastRoot} from 'mdast'
815
+ * @import {State} from '../state.js'
841
816
  */
842
817
 
843
-
844
818
  /**
845
819
  * Turn an mdast `root` node into hast.
846
820
  *
@@ -862,12 +836,11 @@ function root(state, node) {
862
836
  }
863
837
 
864
838
  /**
865
- * @typedef {import('hast').Element} Element
866
- * @typedef {import('mdast').Strong} Strong
867
- * @typedef {import('../state.js').State} State
839
+ * @import {Element} from 'hast'
840
+ * @import {Strong} from 'mdast'
841
+ * @import {State} from '../state.js'
868
842
  */
869
843
 
870
-
871
844
  /**
872
845
  * Turn an mdast `strong` node into hast.
873
846
  *
@@ -891,9 +864,9 @@ function strong(state, node) {
891
864
  }
892
865
 
893
866
  /**
894
- * @typedef {import('hast').Element} Element
895
- * @typedef {import('mdast').Table} Table
896
- * @typedef {import('../state.js').State} State
867
+ * @import {Table} from 'mdast'
868
+ * @import {Element} from 'hast'
869
+ * @import {State} from '../state.js'
897
870
  */
898
871
 
899
872
 
@@ -952,15 +925,11 @@ function table(state, node) {
952
925
  }
953
926
 
954
927
  /**
955
- * @typedef {import('hast').Element} Element
956
- * @typedef {import('hast').ElementContent} ElementContent
957
- * @typedef {import('hast').Properties} Properties
958
- * @typedef {import('mdast').Parents} Parents
959
- * @typedef {import('mdast').TableRow} TableRow
960
- * @typedef {import('../state.js').State} State
928
+ * @import {Element, ElementContent, Properties} from 'hast'
929
+ * @import {Parents, TableRow} from 'mdast'
930
+ * @import {State} from '../state.js'
961
931
  */
962
932
 
963
-
964
933
  /**
965
934
  * Turn an mdast `tableRow` node into hast.
966
935
  *
@@ -1021,12 +990,11 @@ function tableRow(state, node, parent) {
1021
990
  }
1022
991
 
1023
992
  /**
1024
- * @typedef {import('hast').Element} Element
1025
- * @typedef {import('mdast').TableCell} TableCell
1026
- * @typedef {import('../state.js').State} State
993
+ * @import {Element} from 'hast'
994
+ * @import {TableCell} from 'mdast'
995
+ * @import {State} from '../state.js'
1027
996
  */
1028
997
 
1029
-
1030
998
  /**
1031
999
  * Turn an mdast `tableCell` node into hast.
1032
1000
  *
@@ -1111,10 +1079,9 @@ function trimLine(value, start, end) {
1111
1079
  }
1112
1080
 
1113
1081
  /**
1114
- * @typedef {import('hast').Element} HastElement
1115
- * @typedef {import('hast').Text} HastText
1116
- * @typedef {import('mdast').Text} MdastText
1117
- * @typedef {import('../state.js').State} State
1082
+ * @import {Element as HastElement, Text as HastText} from 'hast'
1083
+ * @import {Text as MdastText} from 'mdast'
1084
+ * @import {State} from '../state.js'
1118
1085
  */
1119
1086
 
1120
1087
 
@@ -1139,12 +1106,11 @@ function text(state, node) {
1139
1106
  }
1140
1107
 
1141
1108
  /**
1142
- * @typedef {import('hast').Element} Element
1143
- * @typedef {import('mdast').ThematicBreak} ThematicBreak
1144
- * @typedef {import('../state.js').State} State
1109
+ * @import {Element} from 'hast'
1110
+ * @import {ThematicBreak} from 'mdast'
1111
+ * @import {State} from '../state.js'
1145
1112
  */
1146
1113
 
1147
-
1148
1114
  /**
1149
1115
  * Turn an mdast `thematicBreak` node into hast.
1150
1116
  *
@@ -1167,10 +1133,15 @@ function thematicBreak(state, node) {
1167
1133
  return state.applyData(node, result);
1168
1134
  }
1169
1135
 
1136
+ /**
1137
+ * @import {Handlers} from '../state.js'
1138
+ */
1139
+
1140
+
1170
1141
  /**
1171
1142
  * Default handlers for nodes.
1172
1143
  *
1173
- * @satisfies {import('../state.js').Handlers}
1144
+ * @satisfies {Handlers}
1174
1145
  */
1175
1146
  const handlers = {
1176
1147
  blockquote,
@@ -1209,10 +1180,8 @@ function ignore() {
1209
1180
  }
1210
1181
 
1211
1182
  /**
1212
- * @typedef {import('hast').Element} Element
1213
- * @typedef {import('hast').ElementContent} ElementContent
1214
- *
1215
- * @typedef {import('./state.js').State} State
1183
+ * @import {ElementContent, Element} from 'hast'
1184
+ * @import {State} from './state.js'
1216
1185
  */
1217
1186
 
1218
1187
 
@@ -1388,22 +1357,25 @@ function footer(state) {
1388
1357
  }
1389
1358
 
1390
1359
  /**
1391
- * @typedef {import('hast').Element} HastElement
1392
- * @typedef {import('hast').ElementContent} HastElementContent
1393
- * @typedef {import('hast').Nodes} HastNodes
1394
- * @typedef {import('hast').Properties} HastProperties
1395
- * @typedef {import('hast').RootContent} HastRootContent
1396
- * @typedef {import('hast').Text} HastText
1397
- *
1398
- * @typedef {import('mdast').Definition} MdastDefinition
1399
- * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
1400
- * @typedef {import('mdast').Nodes} MdastNodes
1401
- * @typedef {import('mdast').Parents} MdastParents
1402
- *
1403
- * @typedef {import('vfile').VFile} VFile
1404
- *
1405
- * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate
1406
- * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate
1360
+ * @import {
1361
+ * ElementContent as HastElementContent,
1362
+ * Element as HastElement,
1363
+ * Nodes as HastNodes,
1364
+ * Properties as HastProperties,
1365
+ * RootContent as HastRootContent,
1366
+ * Text as HastText
1367
+ * } from 'hast'
1368
+ * @import {
1369
+ * Definition as MdastDefinition,
1370
+ * FootnoteDefinition as MdastFootnoteDefinition,
1371
+ * Nodes as MdastNodes,
1372
+ * Parents as MdastParents
1373
+ * } from 'mdast'
1374
+ * @import {VFile} from 'vfile'
1375
+ * @import {
1376
+ * FootnoteBackContentTemplate,
1377
+ * FootnoteBackLabelTemplate
1378
+ * } from './footer.js'
1407
1379
  */
1408
1380
 
1409
1381
  const own = {}.hasOwnProperty;
@@ -1694,9 +1666,9 @@ function trimMarkdownSpaceStart(value) {
1694
1666
  }
1695
1667
 
1696
1668
  /**
1697
- * @typedef {import('hast').Nodes} HastNodes
1698
- * @typedef {import('mdast').Nodes} MdastNodes
1699
- * @typedef {import('./state.js').Options} Options
1669
+ * @import {Nodes as HastNodes} from 'hast'
1670
+ * @import {Nodes as MdastNodes} from 'mdast'
1671
+ * @import {Options} from './state.js'
1700
1672
  */
1701
1673
 
1702
1674
 
@@ -1950,4 +1922,4 @@ function remarkRehype(destination, options) {
1950
1922
  }
1951
1923
 
1952
1924
  export { remarkRehype as default, defaultFootnoteBackContent, defaultFootnoteBackLabel, handlers as defaultHandlers };
1953
- //# sourceMappingURL=index-C8S2G0FH.js.map
1925
+ //# sourceMappingURL=index-CGDqu098.js.map