@difizen/libro-jupyter 0.0.0-snapshot-20241017072317

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 (401) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/es/add-between-cell/add-between-cell-command-contribution.d.ts +14 -0
  4. package/es/add-between-cell/add-between-cell-command-contribution.d.ts.map +1 -0
  5. package/es/add-between-cell/add-between-cell-command-contribution.js +97 -0
  6. package/es/add-between-cell/add-between-cell.d.ts +5 -0
  7. package/es/add-between-cell/add-between-cell.d.ts.map +1 -0
  8. package/es/add-between-cell/add-between-cell.js +241 -0
  9. package/es/add-between-cell/index.d.ts +3 -0
  10. package/es/add-between-cell/index.d.ts.map +1 -0
  11. package/es/add-between-cell/index.js +2 -0
  12. package/es/add-between-cell/index.less +109 -0
  13. package/es/add-between-cell/module.d.ts +3 -0
  14. package/es/add-between-cell/module.d.ts.map +1 -0
  15. package/es/add-between-cell/module.js +8 -0
  16. package/es/cell/index.d.ts +3 -0
  17. package/es/cell/index.d.ts.map +1 -0
  18. package/es/cell/index.js +2 -0
  19. package/es/cell/jupyter-code-cell-model.d.ts +12 -0
  20. package/es/cell/jupyter-code-cell-model.d.ts.map +1 -0
  21. package/es/cell/jupyter-code-cell-model.js +60 -0
  22. package/es/cell/jupyter-code-cell-view.d.ts +19 -0
  23. package/es/cell/jupyter-code-cell-view.d.ts.map +1 -0
  24. package/es/cell/jupyter-code-cell-view.js +305 -0
  25. package/es/command/command-contribution.d.ts +10 -0
  26. package/es/command/command-contribution.d.ts.map +1 -0
  27. package/es/command/command-contribution.js +158 -0
  28. package/es/command/index.d.ts +3 -0
  29. package/es/command/index.d.ts.map +1 -0
  30. package/es/command/index.js +2 -0
  31. package/es/command/keybinding-contribution.d.ts +8 -0
  32. package/es/command/keybinding-contribution.d.ts.map +1 -0
  33. package/es/command/keybinding-contribution.js +37 -0
  34. package/es/components/cell-execution-tip.d.ts +6 -0
  35. package/es/components/cell-execution-tip.d.ts.map +1 -0
  36. package/es/components/cell-execution-tip.js +82 -0
  37. package/es/components/cell-input-bottom-blank.d.ts +5 -0
  38. package/es/components/cell-input-bottom-blank.d.ts.map +1 -0
  39. package/es/components/cell-input-bottom-blank.js +21 -0
  40. package/es/components/icons.d.ts +5 -0
  41. package/es/components/icons.d.ts.map +1 -0
  42. package/es/components/icons.js +155 -0
  43. package/es/components/index.d.ts +4 -0
  44. package/es/components/index.d.ts.map +1 -0
  45. package/es/components/index.js +3 -0
  46. package/es/components/index.less +83 -0
  47. package/es/config/config-contribution.d.ts +10 -0
  48. package/es/config/config-contribution.d.ts.map +1 -0
  49. package/es/config/config-contribution.js +50 -0
  50. package/es/config/config.d.ts +18 -0
  51. package/es/config/config.d.ts.map +1 -0
  52. package/es/config/config.js +80 -0
  53. package/es/config/index.d.ts +3 -0
  54. package/es/config/index.d.ts.map +1 -0
  55. package/es/config/index.js +2 -0
  56. package/es/contents/content-contribution.d.ts +7 -0
  57. package/es/contents/content-contribution.d.ts.map +1 -0
  58. package/es/contents/content-contribution.js +60 -0
  59. package/es/contents/index.d.ts +2 -0
  60. package/es/contents/index.d.ts.map +1 -0
  61. package/es/contents/index.js +1 -0
  62. package/es/contents/save-content-contribution.d.ts +10 -0
  63. package/es/contents/save-content-contribution.d.ts.map +1 -0
  64. package/es/contents/save-content-contribution.js +110 -0
  65. package/es/file/file-color-registry.d.ts +6 -0
  66. package/es/file/file-color-registry.d.ts.map +1 -0
  67. package/es/file/file-color-registry.js +47 -0
  68. package/es/file/file-command.d.ts +81 -0
  69. package/es/file/file-command.d.ts.map +1 -0
  70. package/es/file/file-command.js +578 -0
  71. package/es/file/file-create-modal-contribution.d.ts +5 -0
  72. package/es/file/file-create-modal-contribution.d.ts.map +1 -0
  73. package/es/file/file-create-modal-contribution.js +23 -0
  74. package/es/file/file-create-modal.d.ts +12 -0
  75. package/es/file/file-create-modal.d.ts.map +1 -0
  76. package/es/file/file-create-modal.js +250 -0
  77. package/es/file/file-createdir-modal-contribution.d.ts +5 -0
  78. package/es/file/file-createdir-modal-contribution.d.ts.map +1 -0
  79. package/es/file/file-createdir-modal-contribution.js +23 -0
  80. package/es/file/file-createdir-modal.d.ts +9 -0
  81. package/es/file/file-createdir-modal.d.ts.map +1 -0
  82. package/es/file/file-createdir-modal.js +175 -0
  83. package/es/file/file-icon.d.ts +12 -0
  84. package/es/file/file-icon.d.ts.map +1 -0
  85. package/es/file/file-icon.js +475 -0
  86. package/es/file/file-name-alias.d.ts +7 -0
  87. package/es/file/file-name-alias.d.ts.map +1 -0
  88. package/es/file/file-name-alias.js +26 -0
  89. package/es/file/file-protocol.d.ts +14 -0
  90. package/es/file/file-protocol.d.ts.map +1 -0
  91. package/es/file/file-protocol.js +13 -0
  92. package/es/file/file-rename-modal-contribution.d.ts +5 -0
  93. package/es/file/file-rename-modal-contribution.d.ts.map +1 -0
  94. package/es/file/file-rename-modal-contribution.js +23 -0
  95. package/es/file/file-rename-modal.d.ts +10 -0
  96. package/es/file/file-rename-modal.d.ts.map +1 -0
  97. package/es/file/file-rename-modal.js +161 -0
  98. package/es/file/file-service.d.ts +38 -0
  99. package/es/file/file-service.d.ts.map +1 -0
  100. package/es/file/file-service.js +453 -0
  101. package/es/file/file-tree-label-provider.d.ts +13 -0
  102. package/es/file/file-tree-label-provider.d.ts.map +1 -0
  103. package/es/file/file-tree-label-provider.js +62 -0
  104. package/es/file/file-view/index.d.ts +26 -0
  105. package/es/file/file-view/index.d.ts.map +1 -0
  106. package/es/file/file-view/index.js +283 -0
  107. package/es/file/file-view/index.less +5 -0
  108. package/es/file/index.d.ts +11 -0
  109. package/es/file/index.d.ts.map +1 -0
  110. package/es/file/index.js +10 -0
  111. package/es/file/index.less +96 -0
  112. package/es/file/module.d.ts +3 -0
  113. package/es/file/module.d.ts.map +1 -0
  114. package/es/file/module.js +13 -0
  115. package/es/file/navigatable-view.d.ts +35 -0
  116. package/es/file/navigatable-view.d.ts.map +1 -0
  117. package/es/file/navigatable-view.js +221 -0
  118. package/es/file/open-handler-contribution.d.ts +11 -0
  119. package/es/file/open-handler-contribution.d.ts.map +1 -0
  120. package/es/file/open-handler-contribution.js +102 -0
  121. package/es/file/utils.d.ts +2 -0
  122. package/es/file/utils.d.ts.map +1 -0
  123. package/es/file/utils.js +43 -0
  124. package/es/index.d.ts +36 -0
  125. package/es/index.d.ts.map +1 -0
  126. package/es/index.js +35 -0
  127. package/es/keybind-instructions/index.d.ts +6 -0
  128. package/es/keybind-instructions/index.d.ts.map +1 -0
  129. package/es/keybind-instructions/index.js +5 -0
  130. package/es/keybind-instructions/index.less +199 -0
  131. package/es/keybind-instructions/keybind-instructions-contribution.d.ts +11 -0
  132. package/es/keybind-instructions/keybind-instructions-contribution.d.ts.map +1 -0
  133. package/es/keybind-instructions/keybind-instructions-contribution.js +84 -0
  134. package/es/keybind-instructions/keybind-instructions-icon.d.ts +3 -0
  135. package/es/keybind-instructions/keybind-instructions-icon.d.ts.map +1 -0
  136. package/es/keybind-instructions/keybind-instructions-icon.js +23 -0
  137. package/es/keybind-instructions/keybind-instructions-items.d.ts +14 -0
  138. package/es/keybind-instructions/keybind-instructions-items.d.ts.map +1 -0
  139. package/es/keybind-instructions/keybind-instructions-items.js +589 -0
  140. package/es/keybind-instructions/keybind-instructions-view.d.ts +16 -0
  141. package/es/keybind-instructions/keybind-instructions-view.d.ts.map +1 -0
  142. package/es/keybind-instructions/keybind-instructions-view.js +230 -0
  143. package/es/keybind-instructions/module.d.ts +3 -0
  144. package/es/keybind-instructions/module.d.ts.map +1 -0
  145. package/es/keybind-instructions/module.js +5 -0
  146. package/es/libro-jupyter-file-service.d.ts +106 -0
  147. package/es/libro-jupyter-file-service.d.ts.map +1 -0
  148. package/es/libro-jupyter-file-service.js +127 -0
  149. package/es/libro-jupyter-model.d.ts +53 -0
  150. package/es/libro-jupyter-model.d.ts.map +1 -0
  151. package/es/libro-jupyter-model.js +467 -0
  152. package/es/libro-jupyter-protocol.d.ts +53 -0
  153. package/es/libro-jupyter-protocol.d.ts.map +1 -0
  154. package/es/libro-jupyter-protocol.js +94 -0
  155. package/es/libro-jupyter-server-launch-manager.d.ts +9 -0
  156. package/es/libro-jupyter-server-launch-manager.d.ts.map +1 -0
  157. package/es/libro-jupyter-server-launch-manager.js +30 -0
  158. package/es/libro-jupyter-view.d.ts +13 -0
  159. package/es/libro-jupyter-view.d.ts.map +1 -0
  160. package/es/libro-jupyter-view.js +44 -0
  161. package/es/libro-jupyter-workspace.d.ts +18 -0
  162. package/es/libro-jupyter-workspace.d.ts.map +1 -0
  163. package/es/libro-jupyter-workspace.js +108 -0
  164. package/es/module.d.ts +7 -0
  165. package/es/module.d.ts.map +1 -0
  166. package/es/module.js +58 -0
  167. package/es/output/index.d.ts +2 -0
  168. package/es/output/index.d.ts.map +1 -0
  169. package/es/output/index.js +1 -0
  170. package/es/output/libro-jupyter-outputarea.d.ts +11 -0
  171. package/es/output/libro-jupyter-outputarea.d.ts.map +1 -0
  172. package/es/output/libro-jupyter-outputarea.js +126 -0
  173. package/es/rendermime/assets/plotly.svg +31 -0
  174. package/es/rendermime/index.d.ts +5 -0
  175. package/es/rendermime/index.d.ts.map +1 -0
  176. package/es/rendermime/index.js +4 -0
  177. package/es/rendermime/index.less +24 -0
  178. package/es/rendermime/module.d.ts +3 -0
  179. package/es/rendermime/module.d.ts.map +1 -0
  180. package/es/rendermime/module.js +3 -0
  181. package/es/rendermime/plotly-render.d.ts +7 -0
  182. package/es/rendermime/plotly-render.d.ts.map +1 -0
  183. package/es/rendermime/plotly-render.js +30 -0
  184. package/es/rendermime/plotly-renderers.d.ts +59 -0
  185. package/es/rendermime/plotly-renderers.d.ts.map +1 -0
  186. package/es/rendermime/plotly-renderers.js +209 -0
  187. package/es/rendermime/plotly-rendermime-contribution.d.ts +12 -0
  188. package/es/rendermime/plotly-rendermime-contribution.d.ts.map +1 -0
  189. package/es/rendermime/plotly-rendermime-contribution.js +22 -0
  190. package/es/theme/color-registry.d.ts +6 -0
  191. package/es/theme/color-registry.d.ts.map +1 -0
  192. package/es/theme/color-registry.js +421 -0
  193. package/es/theme/index.d.ts +2 -0
  194. package/es/theme/index.d.ts.map +1 -0
  195. package/es/theme/index.js +1 -0
  196. package/es/toolbar/index.d.ts +6 -0
  197. package/es/toolbar/index.d.ts.map +1 -0
  198. package/es/toolbar/index.js +5 -0
  199. package/es/toolbar/index.less +199 -0
  200. package/es/toolbar/kernel-selector-dropdown.d.ts +13 -0
  201. package/es/toolbar/kernel-selector-dropdown.d.ts.map +1 -0
  202. package/es/toolbar/kernel-selector-dropdown.js +198 -0
  203. package/es/toolbar/kernel-status-and-selector.d.ts +4 -0
  204. package/es/toolbar/kernel-status-and-selector.d.ts.map +1 -0
  205. package/es/toolbar/kernel-status-and-selector.js +65 -0
  206. package/es/toolbar/run-selector.d.ts +3 -0
  207. package/es/toolbar/run-selector.d.ts.map +1 -0
  208. package/es/toolbar/run-selector.js +119 -0
  209. package/es/toolbar/save-file-error-contribution.d.ts +5 -0
  210. package/es/toolbar/save-file-error-contribution.d.ts.map +1 -0
  211. package/es/toolbar/save-file-error-contribution.js +23 -0
  212. package/es/toolbar/save-file-error.d.ts +5 -0
  213. package/es/toolbar/save-file-error.d.ts.map +1 -0
  214. package/es/toolbar/save-file-error.js +34 -0
  215. package/es/toolbar/side-toolbar-run-selector.d.ts +3 -0
  216. package/es/toolbar/side-toolbar-run-selector.d.ts.map +1 -0
  217. package/es/toolbar/side-toolbar-run-selector.js +91 -0
  218. package/es/toolbar/toolbar-contribution.d.ts +9 -0
  219. package/es/toolbar/toolbar-contribution.d.ts.map +1 -0
  220. package/es/toolbar/toolbar-contribution.js +67 -0
  221. package/es/typings/index.d.ts +36 -0
  222. package/es/utils/index.d.ts +15 -0
  223. package/es/utils/index.d.ts.map +1 -0
  224. package/es/utils/index.js +73 -0
  225. package/es/widget/box/contribution.d.ts +10 -0
  226. package/es/widget/box/contribution.d.ts.map +1 -0
  227. package/es/widget/box/contribution.js +48 -0
  228. package/es/widget/box/index.d.ts +3 -0
  229. package/es/widget/box/index.d.ts.map +1 -0
  230. package/es/widget/box/index.js +2 -0
  231. package/es/widget/box/index.less +3 -0
  232. package/es/widget/box/view.d.ts +19 -0
  233. package/es/widget/box/view.d.ts.map +1 -0
  234. package/es/widget/box/view.js +114 -0
  235. package/es/widget/comm.d.ts +65 -0
  236. package/es/widget/comm.d.ts.map +1 -0
  237. package/es/widget/comm.js +153 -0
  238. package/es/widget/index.d.ts +10 -0
  239. package/es/widget/index.d.ts.map +1 -0
  240. package/es/widget/index.js +9 -0
  241. package/es/widget/index.less +7 -0
  242. package/es/widget/instance-progress/contribution.d.ts +10 -0
  243. package/es/widget/instance-progress/contribution.d.ts.map +1 -0
  244. package/es/widget/instance-progress/contribution.js +39 -0
  245. package/es/widget/instance-progress/index.d.ts +3 -0
  246. package/es/widget/instance-progress/index.d.ts.map +1 -0
  247. package/es/widget/instance-progress/index.js +2 -0
  248. package/es/widget/instance-progress/view.d.ts +30 -0
  249. package/es/widget/instance-progress/view.d.ts.map +1 -0
  250. package/es/widget/instance-progress/view.js +180 -0
  251. package/es/widget/libro-widgets.d.ts +84 -0
  252. package/es/widget/libro-widgets.d.ts.map +1 -0
  253. package/es/widget/libro-widgets.js +307 -0
  254. package/es/widget/module.d.ts +4 -0
  255. package/es/widget/module.d.ts.map +1 -0
  256. package/es/widget/module.js +38 -0
  257. package/es/widget/progress/contribution.d.ts +10 -0
  258. package/es/widget/progress/contribution.d.ts.map +1 -0
  259. package/es/widget/progress/contribution.js +39 -0
  260. package/es/widget/progress/index.d.ts +3 -0
  261. package/es/widget/progress/index.d.ts.map +1 -0
  262. package/es/widget/progress/index.js +2 -0
  263. package/es/widget/progress/progressBar.d.ts +15 -0
  264. package/es/widget/progress/progressBar.d.ts.map +1 -0
  265. package/es/widget/progress/progressBar.js +20 -0
  266. package/es/widget/progress/view.d.ts +19 -0
  267. package/es/widget/progress/view.d.ts.map +1 -0
  268. package/es/widget/progress/view.js +74 -0
  269. package/es/widget/protocol.d.ts +193 -0
  270. package/es/widget/protocol.d.ts.map +1 -0
  271. package/es/widget/protocol.js +33 -0
  272. package/es/widget/utils.d.ts +27 -0
  273. package/es/widget/utils.d.ts.map +1 -0
  274. package/es/widget/utils.js +59 -0
  275. package/es/widget/version.d.ts +3 -0
  276. package/es/widget/version.d.ts.map +1 -0
  277. package/es/widget/version.js +2 -0
  278. package/es/widget/widget-manager.d.ts +19 -0
  279. package/es/widget/widget-manager.d.ts.map +1 -0
  280. package/es/widget/widget-manager.js +77 -0
  281. package/es/widget/widget-render.d.ts +7 -0
  282. package/es/widget/widget-render.d.ts.map +1 -0
  283. package/es/widget/widget-render.js +46 -0
  284. package/es/widget/widget-rendermime-contribution.d.ts +16 -0
  285. package/es/widget/widget-rendermime-contribution.d.ts.map +1 -0
  286. package/es/widget/widget-rendermime-contribution.js +50 -0
  287. package/es/widget/widget-view-contribution.d.ts +10 -0
  288. package/es/widget/widget-view-contribution.d.ts.map +1 -0
  289. package/es/widget/widget-view-contribution.js +36 -0
  290. package/es/widget/widget-view.d.ts +71 -0
  291. package/es/widget/widget-view.d.ts.map +1 -0
  292. package/es/widget/widget-view.js +273 -0
  293. package/package.json +82 -0
  294. package/src/add-between-cell/add-between-cell-command-contribution.ts +63 -0
  295. package/src/add-between-cell/add-between-cell.tsx +213 -0
  296. package/src/add-between-cell/index.less +110 -0
  297. package/src/add-between-cell/index.ts +2 -0
  298. package/src/add-between-cell/module.ts +13 -0
  299. package/src/cell/index.ts +2 -0
  300. package/src/cell/jupyter-code-cell-model.ts +38 -0
  301. package/src/cell/jupyter-code-cell-view.tsx +226 -0
  302. package/src/command/command-contribution.ts +160 -0
  303. package/src/command/index.ts +2 -0
  304. package/src/command/keybinding-contribution.ts +25 -0
  305. package/src/components/cell-execution-tip.tsx +113 -0
  306. package/src/components/cell-input-bottom-blank.tsx +29 -0
  307. package/src/components/cell-output-bottom-blank.tsx +29 -0
  308. package/src/components/icons.tsx +117 -0
  309. package/src/components/index.less +79 -0
  310. package/src/components/index.ts +3 -0
  311. package/src/config/config-contribution.ts +29 -0
  312. package/src/config/config.ts +89 -0
  313. package/src/config/index.ts +2 -0
  314. package/src/contents/content-contribution.ts +28 -0
  315. package/src/contents/index.ts +1 -0
  316. package/src/contents/save-content-contribution.ts +67 -0
  317. package/src/file/file-color-registry.ts +28 -0
  318. package/src/file/file-command.tsx +444 -0
  319. package/src/file/file-create-modal-contribution.ts +10 -0
  320. package/src/file/file-create-modal.tsx +206 -0
  321. package/src/file/file-createdir-modal-contribution.ts +10 -0
  322. package/src/file/file-createdir-modal.tsx +120 -0
  323. package/src/file/file-icon.tsx +501 -0
  324. package/src/file/file-name-alias.ts +15 -0
  325. package/src/file/file-protocol.ts +24 -0
  326. package/src/file/file-rename-modal-contribution.ts +10 -0
  327. package/src/file/file-rename-modal.tsx +115 -0
  328. package/src/file/file-service.ts +225 -0
  329. package/src/file/file-tree-label-provider.ts +42 -0
  330. package/src/file/file-view/index.less +5 -0
  331. package/src/file/file-view/index.tsx +215 -0
  332. package/src/file/index.less +96 -0
  333. package/src/file/index.ts +10 -0
  334. package/src/file/module.ts +29 -0
  335. package/src/file/navigatable-view.tsx +169 -0
  336. package/src/file/open-handler-contribution.ts +44 -0
  337. package/src/file/utils.ts +52 -0
  338. package/src/index-noeditor.ts +33 -0
  339. package/src/index.spec.ts +7 -0
  340. package/src/index.ts +35 -0
  341. package/src/keybind-instructions/index.less +198 -0
  342. package/src/keybind-instructions/index.ts +5 -0
  343. package/src/keybind-instructions/keybind-instructions-contribution.tsx +47 -0
  344. package/src/keybind-instructions/keybind-instructions-icon.tsx +28 -0
  345. package/src/keybind-instructions/keybind-instructions-items.tsx +597 -0
  346. package/src/keybind-instructions/keybind-instructions-view.tsx +251 -0
  347. package/src/keybind-instructions/module.ts +11 -0
  348. package/src/libro-jupyter-file-service.ts +158 -0
  349. package/src/libro-jupyter-model.ts +258 -0
  350. package/src/libro-jupyter-protocol.ts +154 -0
  351. package/src/libro-jupyter-server-launch-manager.ts +24 -0
  352. package/src/libro-jupyter-view.tsx +30 -0
  353. package/src/libro-jupyter-workspace.ts +49 -0
  354. package/src/module-noeditor.ts +116 -0
  355. package/src/module.ts +129 -0
  356. package/src/output/index.ts +1 -0
  357. package/src/output/libro-jupyter-outputarea.tsx +106 -0
  358. package/src/rendermime/assets/plotly.svg +31 -0
  359. package/src/rendermime/index.less +24 -0
  360. package/src/rendermime/index.ts +4 -0
  361. package/src/rendermime/module.ts +7 -0
  362. package/src/rendermime/plotly-render.tsx +35 -0
  363. package/src/rendermime/plotly-renderers.ts +189 -0
  364. package/src/rendermime/plotly-rendermime-contribution.ts +15 -0
  365. package/src/theme/color-registry.ts +321 -0
  366. package/src/theme/index.ts +1 -0
  367. package/src/toolbar/index.less +199 -0
  368. package/src/toolbar/index.ts +5 -0
  369. package/src/toolbar/kernel-selector-dropdown.tsx +246 -0
  370. package/src/toolbar/kernel-status-and-selector.tsx +74 -0
  371. package/src/toolbar/run-selector.tsx +136 -0
  372. package/src/toolbar/save-file-error-contribution.ts +10 -0
  373. package/src/toolbar/save-file-error.tsx +45 -0
  374. package/src/toolbar/side-toolbar-run-selector.tsx +97 -0
  375. package/src/toolbar/toolbar-contribution.tsx +62 -0
  376. package/src/typings/index.d.ts +36 -0
  377. package/src/utils/index.ts +120 -0
  378. package/src/widget/box/contribution.ts +29 -0
  379. package/src/widget/box/index.less +3 -0
  380. package/src/widget/box/index.ts +2 -0
  381. package/src/widget/box/view.tsx +112 -0
  382. package/src/widget/comm.ts +152 -0
  383. package/src/widget/index.less +7 -0
  384. package/src/widget/index.ts +9 -0
  385. package/src/widget/instance-progress/contribution.ts +20 -0
  386. package/src/widget/instance-progress/index.ts +2 -0
  387. package/src/widget/instance-progress/view.tsx +155 -0
  388. package/src/widget/libro-widgets.ts +223 -0
  389. package/src/widget/module.ts +73 -0
  390. package/src/widget/progress/contribution.ts +24 -0
  391. package/src/widget/progress/index.ts +2 -0
  392. package/src/widget/progress/progressBar.tsx +29 -0
  393. package/src/widget/progress/view.tsx +70 -0
  394. package/src/widget/protocol.ts +255 -0
  395. package/src/widget/utils.ts +67 -0
  396. package/src/widget/version.ts +2 -0
  397. package/src/widget/widget-manager.ts +45 -0
  398. package/src/widget/widget-render.tsx +52 -0
  399. package/src/widget/widget-rendermime-contribution.ts +36 -0
  400. package/src/widget/widget-view-contribution.ts +14 -0
  401. package/src/widget/widget-view.tsx +259 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Difizen Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # libro-jupyter
@@ -0,0 +1,14 @@
1
+ import type { CommandRegistry } from '@difizen/mana-app';
2
+ import { CommandContribution } from '@difizen/mana-app';
3
+ export declare const LibroAddBetweenCellCommand: {
4
+ AddBetweenCell: {
5
+ id: string;
6
+ };
7
+ AddBetweenCellWithContext: {
8
+ id: string;
9
+ };
10
+ };
11
+ export declare class LibroAddBetweenCellCommandContribution implements CommandContribution {
12
+ registerCommands(command: CommandRegistry): void;
13
+ }
14
+ //# sourceMappingURL=add-between-cell-command-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-between-cell-command-contribution.d.ts","sourceRoot":"","sources":["../../src/add-between-cell/add-between-cell-command-contribution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAa,MAAM,mBAAmB,CAAC;AAEnE,eAAO,MAAM,0BAA0B;;;;;;;CAOtC,CAAC;AAEF,qBACa,sCAAuC,YAAW,mBAAmB;IAChF,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;CA+CjD"}
@@ -0,0 +1,97 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _dec, _class;
3
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
5
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
6
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
8
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
+ import { CommandContribution, singleton } from '@difizen/mana-app';
12
+ export var LibroAddBetweenCellCommand = {
13
+ AddBetweenCell: {
14
+ id: 'notebook:libro-add-between-cell'
15
+ },
16
+ AddBetweenCellWithContext: {
17
+ id: 'notebook:libro-add-between-cell-with-context'
18
+ }
19
+ };
20
+ export var LibroAddBetweenCellCommandContribution = (_dec = singleton({
21
+ contrib: CommandContribution
22
+ }), _dec(_class = /*#__PURE__*/function () {
23
+ function LibroAddBetweenCellCommandContribution() {
24
+ _classCallCheck(this, LibroAddBetweenCellCommandContribution);
25
+ }
26
+ _createClass(LibroAddBetweenCellCommandContribution, [{
27
+ key: "registerCommands",
28
+ value: function registerCommands(command) {
29
+ command.registerCommand(LibroAddBetweenCellCommand.AddBetweenCell, {
30
+ execute: function () {
31
+ var _execute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(type, addCell, index) {
32
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33
+ while (1) switch (_context.prev = _context.next) {
34
+ case 0:
35
+ if (!(!type || typeof addCell !== 'function')) {
36
+ _context.next = 2;
37
+ break;
38
+ }
39
+ return _context.abrupt("return");
40
+ case 2:
41
+ _context.next = 4;
42
+ return addCell({
43
+ cell: {
44
+ cell_type: type,
45
+ metadata: {},
46
+ source: ''
47
+ }
48
+ }, index);
49
+ case 4:
50
+ case "end":
51
+ return _context.stop();
52
+ }
53
+ }, _callee);
54
+ }));
55
+ function execute(_x, _x2, _x3) {
56
+ return _execute.apply(this, arguments);
57
+ }
58
+ return execute;
59
+ }()
60
+ });
61
+ command.registerCommand(LibroAddBetweenCellCommand.AddBetweenCellWithContext, {
62
+ execute: function () {
63
+ var _execute2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(type, addCell, index, context) {
64
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
65
+ while (1) switch (_context2.prev = _context2.next) {
66
+ case 0:
67
+ if (!(!type || typeof addCell !== 'function')) {
68
+ _context2.next = 2;
69
+ break;
70
+ }
71
+ return _context2.abrupt("return");
72
+ case 2:
73
+ _context2.next = 4;
74
+ return addCell({
75
+ cell: {
76
+ cell_type: type,
77
+ metadata: {},
78
+ source: ''
79
+ },
80
+ context: context
81
+ }, index);
82
+ case 4:
83
+ case "end":
84
+ return _context2.stop();
85
+ }
86
+ }, _callee2);
87
+ }));
88
+ function execute(_x4, _x5, _x6, _x7) {
89
+ return _execute2.apply(this, arguments);
90
+ }
91
+ return execute;
92
+ }()
93
+ });
94
+ }
95
+ }]);
96
+ return LibroAddBetweenCellCommandContribution;
97
+ }()) || _class);
@@ -0,0 +1,5 @@
1
+ import type { BetweenCellProvider } from '@difizen/libro-core';
2
+ import './index.less';
3
+ export declare const LibroCommonBetweenCellContent: BetweenCellProvider;
4
+ export declare const LibroWrappedBetweenCellContent: BetweenCellProvider;
5
+ //# sourceMappingURL=add-between-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-between-cell.d.ts","sourceRoot":"","sources":["../../src/add-between-cell/add-between-cell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAA0B,MAAM,qBAAqB,CAAC;AAUvF,OAAO,cAAc,CAAC;AA0BtB,eAAO,MAAM,6BAA6B,EAAE,mBA8J3C,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,mBAW5C,CAAC"}
@@ -0,0 +1,241 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import { DisplayWrapComponent } from '@difizen/libro-common';
12
+ import { CellService } from '@difizen/libro-core';
13
+ import { CommandRegistry, useInject, ViewInstance } from '@difizen/mana-app';
14
+ import { l10n } from '@difizen/mana-l10n';
15
+ import { Tooltip, Popover, Menu } from 'antd';
16
+ import { useEffect, useRef, useState, forwardRef } from 'react';
17
+ import { LibroAddBetweenCellCommand } from "./add-between-cell-command-contribution.js";
18
+ import "./index.less";
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { Fragment as _Fragment } from "react/jsx-runtime";
21
+ import { jsxs as _jsxs } from "react/jsx-runtime";
22
+ var AddCellOutlined = function AddCellOutlined() {
23
+ return /*#__PURE__*/_jsx("svg", {
24
+ width: "18px",
25
+ height: "18px",
26
+ viewBox: "0 0 18 18",
27
+ version: "1.1",
28
+ xmlns: "http://www.w3.org/2000/svg",
29
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
30
+ children: /*#__PURE__*/_jsx("g", {
31
+ id: "\u9875\u9762-1",
32
+ stroke: "none",
33
+ strokeWidth: "1",
34
+ fill: "#6982A9",
35
+ fillRule: "evenodd",
36
+ children: /*#__PURE__*/_jsx("g", {
37
+ id: "2.0-\u6DFB\u52A0-cell",
38
+ transform: "translate(-1539.000000, -240.000000)",
39
+ children: /*#__PURE__*/_jsx("g", {
40
+ id: "Icon/01-Line/add\u5907\u4EFD-3",
41
+ transform: "translate(1539.937500, 240.562500)",
42
+ children: /*#__PURE__*/_jsx("path", {
43
+ d: "M15.9375,7.546875 C16.040625,7.546875 16.125,7.63125 16.125,7.734375 L16.125,9.140625 C16.125,9.24375 16.040625,9.328125 15.9375,9.328125 L8.953125,9.328125 L8.953125,16.6875 C8.953125,16.7910534 8.86917839,16.875 8.765625,16.875 L7.359375,16.875 C7.25582161,16.875 7.171875,16.7910534 7.171875,16.6875 L7.171875,9.328125 L0.1875,9.328125 C0.084375,9.328125 0,9.24375 0,9.140625 L0,7.734375 C0,7.63125 0.084375,7.546875 0.1875,7.546875 L7.171875,7.546875 L7.171875,0.1875 C7.171875,0.0839466094 7.25582161,0 7.359375,0 L8.765625,0 C8.86917839,0 8.953125,0.0839466094 8.953125,0.1875 L8.953125,7.546875 L15.9375,7.546875 Z",
44
+ id: "path-1",
45
+ fill: "currentColor"
46
+ })
47
+ })
48
+ })
49
+ })
50
+ });
51
+ };
52
+
53
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
54
+ export var LibroCommonBetweenCellContent = /*#__PURE__*/forwardRef(function LibroCommonBetweenCellContent(props, ref) {
55
+ var addCell = props.addCell,
56
+ index = props.index;
57
+ var _useInject = useInject(CellService),
58
+ cellsMeta = _useInject.cellsMeta;
59
+ var anchorRef = useRef(null);
60
+ var gutterRef = useRef(null);
61
+ var _useState = useState({
62
+ top: 0,
63
+ left: 0
64
+ }),
65
+ _useState2 = _slicedToArray(_useState, 2),
66
+ position = _useState2[0],
67
+ setPosition = _useState2[1];
68
+ var _useState3 = useState(false),
69
+ _useState4 = _slicedToArray(_useState3, 2),
70
+ GutterVisible = _useState4[0],
71
+ setGutterVisible = _useState4[1];
72
+ var _useState5 = useState(false),
73
+ _useState6 = _slicedToArray(_useState5, 2),
74
+ tooltipVisible = _useState6[0],
75
+ setTooltipVisible = _useState6[1];
76
+ var _useState7 = useState(false),
77
+ _useState8 = _slicedToArray(_useState7, 2),
78
+ menuVisible = _useState8[0],
79
+ setMenuVisible = _useState8[1];
80
+ var command = useInject(CommandRegistry);
81
+ var innerOpenTooltip = function innerOpenTooltip() {
82
+ if (menuVisible) {
83
+ return;
84
+ }
85
+ setTooltipVisible(true);
86
+ };
87
+
88
+ //====== delay ========
89
+ var delayRef = useRef();
90
+ var clearDelay = function clearDelay() {
91
+ clearTimeout(delayRef.current);
92
+ };
93
+ var openTooltip = function openTooltip(nextOpen) {
94
+ var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.5;
95
+ clearDelay();
96
+ if (delay === 0) {
97
+ innerOpenTooltip();
98
+ } else {
99
+ delayRef.current = setTimeout(function () {
100
+ innerOpenTooltip();
101
+ }, delay * 1000);
102
+ }
103
+ };
104
+ var closeTooltip = function closeTooltip() {
105
+ clearDelay();
106
+ setTooltipVisible(false);
107
+ };
108
+
109
+ // eslint-disable-next-line react-hooks/exhaustive-deps
110
+ useEffect(function () {
111
+ return closeTooltip;
112
+ }, []);
113
+ var items = cellsMeta.filter(function (item) {
114
+ return item.type !== 'raw';
115
+ }).map(function (item) {
116
+ return {
117
+ label: item.name,
118
+ key: item.type,
119
+ onClick: function () {
120
+ var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
121
+ var _anchorRef$current;
122
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
123
+ while (1) switch (_context.prev = _context.next) {
124
+ case 0:
125
+ command.executeCommand(LibroAddBetweenCellCommand.AddBetweenCell.id, item.type, addCell, index);
126
+ (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 || _anchorRef$current.blur();
127
+ setMenuVisible(false);
128
+ case 3:
129
+ case "end":
130
+ return _context.stop();
131
+ }
132
+ }, _callee);
133
+ }));
134
+ function onClick() {
135
+ return _onClick.apply(this, arguments);
136
+ }
137
+ return onClick;
138
+ }()
139
+ };
140
+ });
141
+ return /*#__PURE__*/_jsxs("div", {
142
+ className: "libro-add-between-cell",
143
+ children: [/*#__PURE__*/_jsx(Popover, {
144
+ content: /*#__PURE__*/_jsx(Menu, {
145
+ items: items
146
+ }),
147
+ trigger: "click",
148
+ getPopupContainer: function getPopupContainer(trigger) {
149
+ var _anchorRef$current2;
150
+ return (_anchorRef$current2 = anchorRef.current) !== null && _anchorRef$current2 !== void 0 ? _anchorRef$current2 : trigger;
151
+ },
152
+ placement: "bottomLeft",
153
+ overlayClassName: "libro-add-cell-menu",
154
+ destroyTooltipOnHide: true,
155
+ open: menuVisible,
156
+ children: /*#__PURE__*/_jsx("div", {
157
+ tabIndex: 10,
158
+ className: "libro-add-between-cell-anchor",
159
+ style: {
160
+ position: 'absolute',
161
+ top: position.top + 5,
162
+ left: position.left + 5,
163
+ width: 1,
164
+ height: 1,
165
+ zIndex: 1000
166
+ },
167
+ ref: anchorRef,
168
+ onBlur: function onBlur(e) {
169
+ var _anchorRef$current3;
170
+ if (!((_anchorRef$current3 = anchorRef.current) !== null && _anchorRef$current3 !== void 0 && _anchorRef$current3.contains(e.relatedTarget))) {
171
+ setMenuVisible(false);
172
+ }
173
+ setGutterVisible(false);
174
+ closeTooltip();
175
+ }
176
+ })
177
+ }), /*#__PURE__*/_jsx("div", {
178
+ ref: gutterRef,
179
+ className: "libro-add-between-cell-area",
180
+ onMouseEnter: function onMouseEnter() {
181
+ setGutterVisible(true);
182
+ },
183
+ onMouseLeave: function onMouseLeave() {
184
+ closeTooltip();
185
+ if (menuVisible) {
186
+ setGutterVisible(true);
187
+ return;
188
+ }
189
+ setGutterVisible(false);
190
+ },
191
+ onMouseUp: function onMouseUp(e) {
192
+ var _anchorRef$current4;
193
+ closeTooltip();
194
+ setGutterVisible(true);
195
+ setMenuVisible(true);
196
+
197
+ // TODO: 位置不准确
198
+ setPosition({
199
+ top: e.nativeEvent.offsetY,
200
+ left: e.nativeEvent.offsetX
201
+ });
202
+ (_anchorRef$current4 = anchorRef.current) === null || _anchorRef$current4 === void 0 || _anchorRef$current4.focus();
203
+ },
204
+ children: GutterVisible && /*#__PURE__*/_jsxs(_Fragment, {
205
+ children: [/*#__PURE__*/_jsx(Tooltip, {
206
+ title: l10n.t('添加 Cell'),
207
+ open: tooltipVisible,
208
+ overlayClassName: "libro-add-between-cell-tooltip",
209
+ destroyTooltipOnHide: true,
210
+ children: /*#__PURE__*/_jsx("span", {
211
+ className: "libro-add-between-cell-icon",
212
+ onMouseEnter: function onMouseEnter() {
213
+ openTooltip(true);
214
+ },
215
+ onMouseLeave: function onMouseLeave() {
216
+ closeTooltip();
217
+ if (menuVisible) {
218
+ setGutterVisible(true);
219
+ }
220
+ },
221
+ children: /*#__PURE__*/_jsx(AddCellOutlined, {})
222
+ })
223
+ }), /*#__PURE__*/_jsx("div", {
224
+ className: "libro-cell-divider"
225
+ })]
226
+ })
227
+ })]
228
+ });
229
+ });
230
+ export var LibroWrappedBetweenCellContent = function LibroWrappedBetweenCellContent(props) {
231
+ var index = props.index,
232
+ addCell = props.addCell;
233
+ var instance = useInject(ViewInstance);
234
+ return /*#__PURE__*/_jsx(DisplayWrapComponent, {
235
+ mode: !instance.model.cellsEditable,
236
+ children: /*#__PURE__*/_jsx(LibroCommonBetweenCellContent, {
237
+ index: index,
238
+ addCell: addCell
239
+ })
240
+ });
241
+ };
@@ -0,0 +1,3 @@
1
+ export * from './module.js';
2
+ export * from './add-between-cell-command-contribution.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/add-between-cell/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,4CAA4C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./module.js";
2
+ export * from "./add-between-cell-command-contribution.js";
@@ -0,0 +1,109 @@
1
+ @ant-prefix: ant;
2
+
3
+ .libro-add-between-cell {
4
+ position: relative;
5
+ .@{ant-prefix}-popover-arrow {
6
+ display: none;
7
+ }
8
+ .@{ant-prefix}-popover {
9
+ padding: 0;
10
+ max-width: unset;
11
+ }
12
+
13
+ .@{ant-prefix}-popover-inner {
14
+ border-radius: 8px;
15
+ background-color: var(--mana-libro-add-between-popover-background-color);
16
+ padding: 0;
17
+ }
18
+
19
+ .@{ant-prefix}-popover-inner-content {
20
+ padding: 0;
21
+ width: unset;
22
+ max-width: unset;
23
+ }
24
+
25
+ .libro-add-cell-menu {
26
+ z-index: 1000;
27
+ }
28
+
29
+ .@{ant-prefix}-menu {
30
+ border-radius: 8px !important;
31
+ background-color: var(--mana-libro-add-between-popover-background-color) !important;
32
+ }
33
+
34
+ .@{ant-prefix}-menu-vertical {
35
+ border-right: unset !important;
36
+ }
37
+
38
+ .@{ant-prefix}-menu-item {
39
+ height: 32px !important;
40
+ line-height: 32px !important;
41
+ }
42
+ .@{ant-prefix}-menu-item:hover {
43
+ background-color: var(--mana-libro-add-between-hover-color) !important;
44
+ }
45
+
46
+ .@{ant-prefix}-menu-title-content {
47
+ color: var(--mana-libro-add-between-menu-label-color);
48
+ }
49
+
50
+ .@{ant-prefix}-menu-item-selected {
51
+ background-color: var(--mana-libro-add-between-hover-color) !important;
52
+ }
53
+ }
54
+
55
+ .libro-cell-divider {
56
+ width: 100%;
57
+ height: 4px;
58
+ background-color: var(--mana-libro-add-between-divider-color);
59
+ border-radius: 2px;
60
+ }
61
+
62
+ .libro-add-between-cell-icon {
63
+ z-index: 20;
64
+ margin-right: 10px;
65
+ margin-left: 30px;
66
+ height: 18px;
67
+ line-height: 18px;
68
+ text-align: center;
69
+
70
+ svg {
71
+ color: var(--mana-libro-add-between-icon-color);
72
+
73
+ &:hover {
74
+ color: var(--mana-libro-add-between-icon-hover-color);
75
+ }
76
+ }
77
+ }
78
+
79
+ .libro-add-between-cell-area {
80
+ position: absolute;
81
+ top: -16px;
82
+ z-index: 10;
83
+ display: flex;
84
+ align-items: center;
85
+ width: 100%;
86
+ height: 16px;
87
+ cursor: pointer;
88
+ }
89
+
90
+ .libro-add-between-cell-tooltip {
91
+ .@{ant-prefix}-tooltip-inner {
92
+ font-weight: 400;
93
+ font-size: 14px;
94
+ line-height: 22px;
95
+ text-align: center;
96
+ border-radius: 6px;
97
+ }
98
+ }
99
+
100
+ .libro-add-between-cell-anchor:focus {
101
+ outline: none;
102
+ cursor: pointer;
103
+ }
104
+
105
+ .ReactVirtualized__List {
106
+ .libro-add-between-cell-area {
107
+ width: calc(100% - 45px);
108
+ }
109
+ }
@@ -0,0 +1,3 @@
1
+ import { ManaModule } from '@difizen/mana-app';
2
+ export declare const LibroBetweenCellModule: ManaModule;
3
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/add-between-cell/module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,eAAO,MAAM,sBAAsB,YAMlC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { BetweenCellProvider } from '@difizen/libro-core';
2
+ import { ManaModule } from '@difizen/mana-app';
3
+ import { LibroAddBetweenCellCommandContribution } from "./add-between-cell-command-contribution.js";
4
+ import { LibroWrappedBetweenCellContent } from "./add-between-cell.js";
5
+ export var LibroBetweenCellModule = ManaModule.create().register({
6
+ token: BetweenCellProvider,
7
+ useValue: LibroWrappedBetweenCellContent
8
+ }, LibroAddBetweenCellCommandContribution);
@@ -0,0 +1,3 @@
1
+ export * from './jupyter-code-cell-model.js';
2
+ export * from './jupyter-code-cell-view.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cell/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./jupyter-code-cell-model.js";
2
+ export * from "./jupyter-code-cell-view.js";
@@ -0,0 +1,12 @@
1
+ import { LibroCodeCellModel } from '@difizen/libro-code-cell';
2
+ import type { ICellMetadata } from '@difizen/libro-common';
3
+ import { CellOptions } from '@difizen/libro-core';
4
+ import { ViewManager } from '@difizen/mana-app';
5
+ import type { CodeCellMetadata, ExecutedWithKernelCellModel } from '../libro-jupyter-protocol.js';
6
+ export declare class JupyterCodeCellModel extends LibroCodeCellModel implements ExecutedWithKernelCellModel {
7
+ metadata: Partial<CodeCellMetadata | ICellMetadata>;
8
+ kernelExecuting: boolean;
9
+ constructor(options: CellOptions, viewManager: ViewManager);
10
+ clearExecution: () => void;
11
+ }
12
+ //# sourceMappingURL=jupyter-code-cell-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jupyter-code-cell-model.d.ts","sourceRoot":"","sources":["../../src/cell/jupyter-code-cell-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAQ,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC5B,MAAM,8BAA8B,CAAC;AAEtC,qBACa,oBACX,SAAQ,kBACR,YAAW,2BAA2B;IAG7B,QAAQ,EAAE,OAAO,CAAC,gBAAgB,GAAG,aAAa,CAAC,CAAC;IAE7D,eAAe,UAAS;gBAGD,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,WAAW;IAStC,cAAc,aAIrB;CACH"}