@marimo-team/islands 0.23.10-dev24 → 0.23.10-dev25

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 (75) hide show
  1. package/dist/{any-language-editor-QDDrgvfh.js → any-language-editor-DNmoSiWL.js} +18 -18
  2. package/dist/{chat-ui-BrKSZ7Yu.js → chat-ui-D6oraHT2.js} +11 -11
  3. package/dist/{code-visibility-CVmFerQM.js → code-visibility-CXkMXcdB.js} +5 -5
  4. package/dist/dist-7QfXoMdB.js +5 -0
  5. package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
  6. package/dist/dist-BEXXyZig.js +5 -0
  7. package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
  8. package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
  9. package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
  10. package/dist/dist-BYj57OV4.js +5 -0
  11. package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
  12. package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
  13. package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
  14. package/dist/dist-BlSvQzNr.js +5 -0
  15. package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
  16. package/dist/dist-CCBlxAgS.js +8 -0
  17. package/dist/dist-CIDTVIUf.js +5 -0
  18. package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
  19. package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
  20. package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
  21. package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
  22. package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
  23. package/dist/dist-CqQyhAM8.js +8 -0
  24. package/dist/dist-CwRu2Xzh.js +5 -0
  25. package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
  26. package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
  27. package/dist/dist-D8CDTVgf.js +6 -0
  28. package/dist/dist-D8DNB0nO.js +8 -0
  29. package/dist/dist-DL6N_q-A.js +5 -0
  30. package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
  31. package/dist/dist-DOFbNV_b.js +8 -0
  32. package/dist/dist-DPrYzMY0.js +6 -0
  33. package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
  34. package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
  35. package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
  36. package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
  37. package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
  38. package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
  39. package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
  40. package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
  41. package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
  42. package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
  43. package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
  44. package/dist/dist-cdmMjgsn.js +5 -0
  45. package/dist/dist-hT4QzYX-.js +1247 -0
  46. package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
  47. package/dist/esm-BaH2eg5-.js +1171 -0
  48. package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
  49. package/dist/{extends-C3j0Pbh9.js → extends-D_hDsj6R.js} +1 -1
  50. package/dist/{html-to-image-D5fIgQg_.js → html-to-image-UEH5lFDZ.js} +2162 -2139
  51. package/dist/main.js +24 -24
  52. package/dist/{process-output-B59yoBQx.js → process-output-CyMLTogj.js} +1 -1
  53. package/dist/{reveal-component-bghJ00sb.js → reveal-component-dIolR_34.js} +8 -8
  54. package/dist/style.css +1 -1
  55. package/package.json +1 -1
  56. package/src/components/editor/documentation.css +19 -0
  57. package/src/core/codemirror/language/languages/python.ts +2 -0
  58. package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
  59. package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
  60. package/dist/dist-0Fif7jnk.js +0 -5
  61. package/dist/dist-B5h_9sHB.js +0 -6
  62. package/dist/dist-B9M6R5ye.js +0 -5
  63. package/dist/dist-BCt3tnck.js +0 -8
  64. package/dist/dist-BUIJwMwn.js +0 -8
  65. package/dist/dist-BpquMd3k.js +0 -5
  66. package/dist/dist-BzJsqYfz.js +0 -5
  67. package/dist/dist-CA5ELXAf.js +0 -6
  68. package/dist/dist-CLBRs6Uv.js +0 -5
  69. package/dist/dist-CStVCMbq.js +0 -5
  70. package/dist/dist-CZRIEY3Y.js +0 -8
  71. package/dist/dist-CuUHbFD0.js +0 -5
  72. package/dist/dist-DV7Iabxb.js +0 -8
  73. package/dist/dist-DhHh0jLg.js +0 -1247
  74. package/dist/dist-DuEeHMvL.js +0 -5
  75. package/dist/esm-DzhtSSSq.js +0 -1171
@@ -9494,6 +9494,22 @@ function highlightTree(e64, w, T, E = 0, D = e64.length) {
9494
9494
  let O = new HighlightBuilder(E, Array.isArray(w) ? w : [w], T);
9495
9495
  O.highlightRange(e64.cursor(), E, D, "", O.highlighters), O.flush(D);
9496
9496
  }
9497
+ function highlightCode(e64, w, T, E, D, O = 0, k = e64.length) {
9498
+ let A = O;
9499
+ function j(w2, T2) {
9500
+ if (!(w2 <= A)) {
9501
+ for (let O2 = e64.slice(A, w2), k2 = 0; ; ) {
9502
+ let e65 = O2.indexOf("\n", k2), w3 = e65 < 0 ? O2.length : e65;
9503
+ if (w3 > k2 && E(O2.slice(k2, w3), T2), e65 < 0) break;
9504
+ D(), k2 = e65 + 1;
9505
+ }
9506
+ A = w2;
9507
+ }
9508
+ }
9509
+ highlightTree(w, T, (e65, w2, T2) => {
9510
+ j(e65, ""), j(w2, T2);
9511
+ }, O, k), j(k, "");
9512
+ }
9497
9513
  var HighlightBuilder = class {
9498
9514
  constructor(e64, w, T) {
9499
9515
  this.at = e64, this.highlighters = w, this.span = T, this.class = "";
@@ -9626,7 +9642,7 @@ for (let e64 in tags) {
9626
9642
  let w = tags[e64];
9627
9643
  w instanceof Tag && (w.name = e64);
9628
9644
  }
9629
- tagHighlighter([
9645
+ var classHighlighter = tagHighlighter([
9630
9646
  {
9631
9647
  tag: tags.link,
9632
9648
  class: "tok-link"
@@ -9751,8 +9767,7 @@ tagHighlighter([
9751
9767
  tag: tags.punctuation,
9752
9768
  class: "tok-punctuation"
9753
9769
  }
9754
- ]);
9755
- var languageDataProp = /* @__PURE__ */ new NodeProp();
9770
+ ]), languageDataProp = /* @__PURE__ */ new NodeProp();
9756
9771
  function defineLanguageFacet(e64) {
9757
9772
  return Facet.define({ combine: e64 ? (w) => w.concat(e64) : void 0 });
9758
9773
  }
@@ -11987,101 +12002,103 @@ function getSpecializer(e64) {
11987
12002
  return e64.get;
11988
12003
  }
11989
12004
  export {
11990
- ViewPlugin as $,
12005
+ EditorView as $,
11991
12006
  indentString as A,
11992
- Prec as At,
11993
- tags as B,
11994
- combineConfig as Bt,
12007
+ Facet as At,
12008
+ highlightCode as B,
12009
+ codePointAt as Bt,
11995
12010
  foldKeymap as C,
11996
- ChangeSet as Ct,
12011
+ Annotation as Ct,
11997
12012
  getIndentation as D,
11998
- EditorState as Dt,
12013
+ Compartment as Dt,
11999
12014
  getIndentUnit as E,
12000
- EditorSelection as Et,
12015
+ CharCategory as Et,
12001
12016
  syntaxHighlighting as F,
12002
- StateField as Ft,
12003
- NodeWeakMap as G,
12004
- NodeProp as H,
12005
- findClusterBreak as Ht,
12017
+ RangeValue as Ft,
12018
+ NodeSet as G,
12019
+ fromCodePoint as Gt,
12020
+ tags as H,
12021
+ combineConfig as Ht,
12006
12022
  syntaxTree as I,
12007
- Text as It,
12008
- parseMixed as J,
12009
- Parser as K,
12023
+ StateEffect as It,
12024
+ Parser as J,
12025
+ NodeType as K,
12010
12026
  unfoldAll as L,
12011
- Transaction as Lt,
12027
+ StateField as Lt,
12012
12028
  languageDataProp as M,
12013
- RangeSetBuilder as Mt,
12029
+ Prec as Mt,
12014
12030
  matchBrackets as N,
12015
- RangeValue as Nt,
12031
+ RangeSet as Nt,
12016
12032
  indentNodeProp as O,
12017
- Facet as Ot,
12033
+ EditorSelection as Ot,
12018
12034
  sublanguageProp as P,
12019
- StateEffect as Pt,
12020
- GutterMarker as Q,
12035
+ RangeSetBuilder as Pt,
12036
+ Direction as Q,
12021
12037
  Tag as R,
12022
- codePointAt as Rt,
12038
+ Text as Rt,
12023
12039
  foldInside as S,
12024
- ChangeDesc as St,
12040
+ crelt as St,
12025
12041
  foldService as T,
12026
- Compartment as Tt,
12027
- NodeSet as U,
12028
- fromCodePoint as Ut,
12029
- IterMode as V,
12030
- countColumn as Vt,
12031
- NodeType as W,
12032
- Direction as X,
12033
- Decoration as Y,
12034
- EditorView as Z,
12042
+ ChangeSet as Tt,
12043
+ IterMode as U,
12044
+ countColumn as Ut,
12045
+ styleTags as V,
12046
+ codePointSize as Vt,
12047
+ NodeProp as W,
12048
+ findClusterBreak as Wt,
12049
+ parseMixed as X,
12050
+ Tree as Y,
12051
+ Decoration as Z,
12035
12052
  defineLanguageFacet as _,
12036
- showDialog as _t,
12053
+ rectangularSelection as _t,
12037
12054
  HighlightStyle as a,
12038
- getTooltip as at,
12055
+ dropCursor as at,
12039
12056
  foldAll as b,
12040
- crelt as bt,
12057
+ showPanel as bt,
12041
12058
  Language as c,
12042
- highlightActiveLineGutter as ct,
12059
+ gutter as ct,
12043
12060
  ParseContext as d,
12044
- keymap as dt,
12045
- WidgetType as et,
12061
+ highlightSpecialChars as dt,
12062
+ GutterMarker as et,
12046
12063
  StreamLanguage as f,
12047
- lineNumbers as ft,
12064
+ hoverTooltip as ft,
12048
12065
  defaultHighlightStyle as g,
12049
- runScopeHandlers as gt,
12066
+ placeholder as gt,
12050
12067
  continuedIndent as h,
12051
- rectangularSelection as ht,
12068
+ logException as ht,
12052
12069
  LocalTokenGroup as i,
12053
- getPanel as it,
12070
+ drawSelection as it,
12054
12071
  indentUnit as j,
12055
- RangeSet as jt,
12072
+ MapMode as jt,
12056
12073
  indentOnInput as k,
12057
- MapMode as kt,
12074
+ EditorState as kt,
12058
12075
  LanguageDescription as l,
12059
- highlightSpecialChars as lt,
12076
+ highlightActiveLine as lt,
12060
12077
  bracketMatchingHandle as m,
12061
- placeholder as mt,
12078
+ lineNumbers as mt,
12062
12079
  ExternalTokenizer as n,
12063
- drawSelection as nt,
12080
+ WidgetType as nt,
12064
12081
  IndentContext as o,
12065
- gutter as ot,
12082
+ getPanel as ot,
12066
12083
  bracketMatching as p,
12067
- logException as pt,
12068
- Tree as q,
12084
+ keymap as pt,
12085
+ NodeWeakMap as q,
12069
12086
  LRParser as r,
12070
- dropCursor as rt,
12087
+ crosshairCursor as rt,
12071
12088
  LRLanguage as s,
12072
- highlightActiveLine as st,
12089
+ getTooltip as st,
12073
12090
  ContextTracker as t,
12074
- crosshairCursor as tt,
12091
+ ViewPlugin as tt,
12075
12092
  LanguageSupport as u,
12076
- hoverTooltip as ut,
12093
+ highlightActiveLineGutter as ut,
12077
12094
  delimitedIndent as v,
12078
- showPanel as vt,
12095
+ runScopeHandlers as vt,
12079
12096
  foldNodeProp as w,
12080
- CharCategory as wt,
12097
+ ChangeDesc as wt,
12081
12098
  foldGutter as x,
12082
- Annotation as xt,
12099
+ showTooltip as xt,
12083
12100
  flatIndent as y,
12084
- showTooltip as yt,
12085
- styleTags as z,
12086
- codePointSize as zt
12101
+ showDialog as yt,
12102
+ classHighlighter as z,
12103
+ Transaction as zt
12087
12104
  };
@@ -1,5 +1,5 @@
1
- import { B as tags, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-DhHh0jLg.js";
1
+ import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
2
+ import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
3
3
  var insertedSemi = 177, space$1 = 179, identifier = 184, String = 12, closeParen$1 = 13, Number = 17, Rune = 20, closeBrace$1 = 25, closeBracket = 53, IncDecOp = 95, _return = 142, _break = 144, _continue = 145, fallthrough = 148, newline = 10, carriageReturn = 13, space = 32, tab = 9, slash = 47, closeParen = 41, closeBrace = 125, semicolon = new ExternalTokenizer((y, J) => {
4
4
  for (let Y = 0, X = y.next; (J.context && (X < 0 || X == newline || X == carriageReturn || X == slash && y.peek(Y + 1) == slash) || X == closeParen || X == closeBrace) && y.acceptToken(insertedSemi), !(X != space && X != tab); ) X = y.peek(++Y);
5
5
  }, { contextual: true }), trackedTokens = /* @__PURE__ */ new Set([
@@ -317,16 +317,16 @@ var gatherCompletions = {
317
317
  function getScope(y, J) {
318
318
  let Y = cache.get(J);
319
319
  if (Y) return Y;
320
- let X = [], Z = true;
320
+ let X = [], Q = true;
321
321
  function $(J2, Y2) {
322
- let Z2 = y.sliceString(J2.from, J2.to);
322
+ let Z = y.sliceString(J2.from, J2.to);
323
323
  X.push({
324
- label: Z2,
324
+ label: Z,
325
325
  type: Y2
326
326
  });
327
327
  }
328
328
  return J.cursor(IterMode.IncludeAnonymous).iterate((J2) => {
329
- if (Z) Z = false;
329
+ if (Q) Q = false;
330
330
  else if (J2.name) {
331
331
  let y2 = gatherCompletions[J2.name];
332
332
  if (y2 && y2(J2, $) || ScopeNodes.has(J2.name)) return false;
@@ -346,15 +346,15 @@ var Identifier = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, dontComplete = [
346
346
  ".",
347
347
  "?."
348
348
  ], localCompletionSource = (y) => {
349
- let J = syntaxTree(y.state).resolveInner(y.pos, -1);
350
- if (dontComplete.indexOf(J.name) > -1) return null;
351
- let X = J.name == "VariableName" || J.to - J.from < 20 && Identifier.test(y.state.sliceDoc(J.from, J.to));
349
+ let Y = syntaxTree(y.state).resolveInner(y.pos, -1);
350
+ if (dontComplete.indexOf(Y.name) > -1) return null;
351
+ let X = Y.name == "VariableName" || Y.to - Y.from < 20 && Identifier.test(y.state.sliceDoc(Y.from, Y.to));
352
352
  if (!X && !y.explicit) return null;
353
353
  let Z = [];
354
- for (let Y = J; Y; Y = Y.parent) ScopeNodes.has(Y.name) && (Z = Z.concat(getScope(y.state.doc, Y)));
354
+ for (let J = Y; J; J = J.parent) ScopeNodes.has(J.name) && (Z = Z.concat(getScope(y.state.doc, J)));
355
355
  return {
356
356
  options: Z,
357
- from: X ? J.from : y.pos,
357
+ from: X ? Y.from : y.pos,
358
358
  validFor: Identifier
359
359
  };
360
360
  }, goLanguage = /* @__PURE__ */ LRLanguage.define({
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as wastLanguage, t as wast } from "./dist-DMjWuVs8.js";
3
+ export {
4
+ wast
5
+ };