@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
@@ -1,25 +1,25 @@
1
- import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, R as Tag, S as foldInside, Z as EditorView, f as StreamLanguage, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-DhHh0jLg.js";
3
- import { a as PLSQL, f as sql, l as StandardSQL, t as Cassandra } from "./dist-BTfv03uy.js";
4
- import { a as markdown } from "./dist-fQ0ViXGs.js";
5
- import { n as html, r as htmlCompletionSource } from "./dist-CcXxepx6.js";
6
- import { r as cssLanguage, t as css } from "./dist-DxvORzUR.js";
7
- import { c as typescriptLanguage, n as javascript, r as javascriptLanguage, u as parser$1 } from "./dist-DqAWR3CS.js";
8
- import { r as python } from "./dist-BotSqB48.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, R as Tag, S as foldInside, V as styleTags, X as parseMixed, f as StreamLanguage, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
3
+ import { a as PLSQL, f as sql, l as StandardSQL, t as Cassandra } from "./dist-CcWX6tmx.js";
4
+ import { a as markdown } from "./dist-Dv_Y15yk.js";
5
+ import { n as html, r as htmlCompletionSource } from "./dist-BSAt6RhH.js";
6
+ import { r as cssLanguage, t as css } from "./dist-D-W5ny5a.js";
7
+ import { c as typescriptLanguage, n as javascript, r as javascriptLanguage, u as parser$1 } from "./dist-M9Vag9Y0.js";
8
+ import { r as python } from "./dist-C_Y3oV3C.js";
9
9
  import { t as stex } from "./stex-BIsgBmK4.js";
10
- import { t as cpp } from "./dist-CLUtPrdy.js";
11
- import { t as go } from "./dist-RqXTaiir.js";
12
- import { t as java } from "./dist-DgnE8F-r.js";
13
- import { n as jinja } from "./dist-B3pZ0Ab6.js";
14
- import { t as json } from "./dist-h2c8sZvT.js";
15
- import { t as less } from "./dist-luvabDEB.js";
16
- import { n as liquid } from "./dist-4j4c7bjm.js";
17
- import { t as php } from "./dist-Bde4a2kU.js";
18
- import { t as rust } from "./dist-D4CewLk6.js";
19
- import { t as sass } from "./dist-Bfwsv11D.js";
20
- import { t as wast } from "./dist-BbbIBDiQ.js";
21
- import { r as xml } from "./dist-B3P2fFpz.js";
22
- import { t as yaml } from "./dist-C5VC_yzu.js";
10
+ import { t as cpp } from "./dist-CIYBwstr.js";
11
+ import { t as go } from "./dist-abid3KgM.js";
12
+ import { t as java } from "./dist-A2846XWO.js";
13
+ import { n as jinja } from "./dist-BR_gyG9L.js";
14
+ import { t as json } from "./dist-DZORgqKY.js";
15
+ import { t as less } from "./dist-t9Kf7xqC.js";
16
+ import { n as liquid } from "./dist-CpxNdDkw.js";
17
+ import { t as php } from "./dist-BY018Paw.js";
18
+ import { t as rust } from "./dist-Dax--nl9.js";
19
+ import { t as sass } from "./dist-DyyjKEYf.js";
20
+ import { t as wast } from "./dist-DMjWuVs8.js";
21
+ import { r as xml } from "./dist-DZo4nSS0.js";
22
+ import { t as yaml } from "./dist-BzEzfugY.js";
23
23
  import { t as apl } from "./apl-BCgCq9iM.js";
24
24
  import { t as asciiArmor } from "./asciiarmor-BtqU-KJQ.js";
25
25
  import { t as asn1 } from "./asn1-Dmb-dTMx.js";
@@ -102,7 +102,7 @@ import { t as xQuery } from "./xquery-Ba_NB5bD.js";
102
102
  import { t as yacas } from "./yacas-HKQU6hyk.js";
103
103
  import { t as z80 } from "./z80-CXkHXLdj.js";
104
104
  import { n as msgenny, r as xu, t as mscgen } from "./mscgen-DJfqD3bN.js";
105
- import { t as vue } from "./dist-CLJWPTX2.js";
105
+ import { t as vue } from "./dist-LTU8Hdvn.js";
106
106
  var strContent = 63, strDollarBrace = 64, strEnd = 65, escapeSequence = 66, indStrContent = 67, indStrDollarBrace = 68, indStrEnd = 69, indEscapeSequence = 70, quote = 34, backslack = 92, braceL = 123, dollar = 36, apostrophe = 39, scanString = /* @__PURE__ */ new ExternalTokenizer((y) => {
107
107
  for (let G = false, K = 0; ; K++) {
108
108
  let { next: J } = y;
@@ -883,15 +883,15 @@ function maybeNest(y, G, K) {
883
883
  }
884
884
  var expressionParser = /* @__PURE__ */ parser$1.configure({ top: "SingleExpression" });
885
885
  function configureNesting(y) {
886
- let G = [], K = [], Y = [];
887
- for (let J of y) {
888
- let y2 = J.tag == "script" ? G : J.tag == "style" ? K : J.tag == "textarea" ? Y : null;
886
+ let G = [], K = [], J = [];
887
+ for (let Y of y) {
888
+ let y2 = Y.tag == "script" ? G : Y.tag == "style" ? K : Y.tag == "textarea" ? J : null;
889
889
  if (!y2) throw RangeError("Only script, style, and textarea tags can host nested parsers");
890
- y2.push(J);
890
+ y2.push(Y);
891
891
  }
892
- return parseMixed((y2, J) => {
892
+ return parseMixed((y2, Y) => {
893
893
  let X = y2.type.id;
894
- return X === LongExpression || X === ShortExpression ? { parser: expressionParser } : X === ScriptText ? maybeNest(y2, J, G) : X === StyleText ? maybeNest(y2, J, K) : X === TextareaText ? maybeNest(y2, J, Y) : null;
894
+ return X === LongExpression || X === ShortExpression ? { parser: expressionParser } : X === ScriptText ? maybeNest(y2, Y, G) : X === StyleText ? maybeNest(y2, Y, K) : X === TextareaText ? maybeNest(y2, Y, J) : null;
895
895
  });
896
896
  }
897
897
  var defaultNesting = [
@@ -985,36 +985,36 @@ function elementName(y, G, K = y.length) {
985
985
  let J = G.firstChild, Y = J && (J.getChild("TagName") || J.getChild("ComponentName") || J.getChild("SvelteElementName"));
986
986
  return Y ? y.sliceString(Y.from, Math.min(Y.to, K)) : "";
987
987
  }
988
- var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((y, J, Y, X) => {
989
- if (y.composing || y.state.readOnly || J != Y || X != ">" && X != "/" || !svelteLanguage.isActiveAt(y.state, J, -1)) return false;
990
- let { state: Z } = y, Q = Z.changeByRange((J2) => {
988
+ var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((y, G, J, X) => {
989
+ if (y.composing || y.state.readOnly || G != J || X != ">" && X != "/" || !svelteLanguage.isActiveAt(y.state, G, -1)) return false;
990
+ let { state: Z } = y, Q = Z.changeByRange((G2) => {
991
991
  var _a, _b, _c;
992
- let { head: Y2 } = J2, Q2 = syntaxTree(Z).resolveInner(Y2, -1), $;
992
+ let { head: J2 } = G2, Q2 = syntaxTree(Z).resolveInner(J2, -1), $;
993
993
  if ((Q2.name === "TagName" || Q2.name === "ComponentName" || Q2.name === "SvelteElementName" || Q2.name === "StartTag") && (Q2 = Q2.parent), X === ">" && Q2.name === "OpenTag") {
994
- if (((_b = (_a = Q2.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && ($ = elementName(Z.doc, Q2.parent, Y2))) {
995
- let K = y.state.doc.sliceString(Y2, Y2 + 1) === ">", J3 = `${K ? "" : ">"}</${$}>`;
994
+ if (((_b = (_a = Q2.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && ($ = elementName(Z.doc, Q2.parent, J2))) {
995
+ let G3 = y.state.doc.sliceString(J2, J2 + 1) === ">", K = `${G3 ? "" : ">"}</${$}>`;
996
996
  return {
997
- range: EditorSelection.cursor(Y2 + 1),
997
+ range: EditorSelection.cursor(J2 + 1),
998
998
  changes: {
999
- from: Y2 + (K ? 1 : 0),
1000
- insert: J3
999
+ from: J2 + (G3 ? 1 : 0),
1000
+ insert: K
1001
1001
  }
1002
1002
  };
1003
1003
  }
1004
1004
  } else if (X === "/" && Q2.name === "OpenTag") {
1005
- let K = Q2.parent, J3 = K == null ? void 0 : K.parent;
1006
- if (K.from == Y2 - 1 && ((_c = J3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && ($ = elementName(Z.doc, J3, Y2))) {
1007
- let K2 = y.state.doc.sliceString(Y2, Y2 + 1) === ">", J4 = `/${$}${K2 ? "" : ">"}`, X2 = Y2 + J4.length + (K2 ? 1 : 0);
1005
+ let G3 = Q2.parent, K = G3 == null ? void 0 : G3.parent;
1006
+ if (G3.from == J2 - 1 && ((_c = K.lastChild) == null ? void 0 : _c.name) != "CloseTag" && ($ = elementName(Z.doc, K, J2))) {
1007
+ let G4 = y.state.doc.sliceString(J2, J2 + 1) === ">", K2 = `/${$}${G4 ? "" : ">"}`, X2 = J2 + K2.length + (G4 ? 1 : 0);
1008
1008
  return {
1009
1009
  range: EditorSelection.cursor(X2),
1010
1010
  changes: {
1011
- from: Y2,
1012
- insert: J4
1011
+ from: J2,
1012
+ insert: K2
1013
1013
  }
1014
1014
  };
1015
1015
  }
1016
1016
  }
1017
- return { range: J2 };
1017
+ return { range: G2 };
1018
1018
  });
1019
1019
  return Q.changes.empty ? false : (y.dispatch(Q, {
1020
1020
  userEvent: "input.type",
@@ -6,7 +6,7 @@ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-UqRYxiOg.js"
6
6
  import { t as Check } from "./check-BCaJeT-J.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
8
8
  import { t as Tooltip } from "./tooltip-DpcyNkQ2.js";
9
- import { $ as ViewPlugin, A as indentString, Bt as combineConfig, Ct as ChangeSet, D as getIndentation, E as getIndentUnit, Et as EditorSelection, Ft as StateField, H as NodeProp, Ht as findClusterBreak, I as syntaxTree, It as Text, Lt as Transaction, Mt as RangeSetBuilder, N as matchBrackets, Ot as Facet, Pt as StateEffect, St as ChangeDesc, Vt as countColumn, X as Direction, Y as Decoration, Z as EditorView, bt as crelt, et as WidgetType, it as getPanel, j as indentUnit, jt as RangeSet, o as IndentContext, pt as logException, ut as hoverTooltip, vt as showPanel, xt as Annotation } from "./dist-DNdhYsgW.js";
9
+ import { $ as EditorView, A as indentString, At as Facet, Ct as Annotation, D as getIndentation, E as getIndentUnit, Ht as combineConfig, I as syntaxTree, It as StateEffect, Lt as StateField, N as matchBrackets, Nt as RangeSet, Ot as EditorSelection, Pt as RangeSetBuilder, Q as Direction, Rt as Text, St as crelt, Tt as ChangeSet, Ut as countColumn, W as NodeProp, Wt as findClusterBreak, Z as Decoration, bt as showPanel, ft as hoverTooltip, ht as logException, j as indentUnit, nt as WidgetType, o as IndentContext, ot as getPanel, tt as ViewPlugin, wt as ChangeDesc, zt as Transaction } from "./dist-U4F-tbMs.js";
10
10
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
11
11
  const CopyClipboardIcon = (e5) => {
12
12
  let M = (0, import_compiler_runtime.c)(14), { value: N, className: R, buttonClassName: B, tooltip: V, toastTitle: H, ariaLabel: U } = e5, [W, G] = (0, import_react.useState)(false), K;