@difizen/libro-jupyter 0.0.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) 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 +243 -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 +103 -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 +56 -0
  22. package/es/cell/jupyter-code-cell-view.d.ts +18 -0
  23. package/es/cell/jupyter-code-cell-view.d.ts.map +1 -0
  24. package/es/cell/jupyter-code-cell-view.js +280 -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 +161 -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 +69 -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 +154 -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 +82 -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 +3 -0
  51. package/es/config/config.d.ts.map +1 -0
  52. package/es/config/config.js +11 -0
  53. package/es/config/index.d.ts +2 -0
  54. package/es/config/index.d.ts.map +1 -0
  55. package/es/config/index.js +1 -0
  56. package/es/configuration/index.d.ts +3 -0
  57. package/es/configuration/index.d.ts.map +1 -0
  58. package/es/configuration/index.js +2 -0
  59. package/es/configuration/libro-configuration-contribution.d.ts +5 -0
  60. package/es/configuration/libro-configuration-contribution.d.ts.map +1 -0
  61. package/es/configuration/libro-configuration-contribution.js +24 -0
  62. package/es/configuration/libro-configuration.d.ts +3 -0
  63. package/es/configuration/libro-configuration.d.ts.map +1 -0
  64. package/es/configuration/libro-configuration.js +12 -0
  65. package/es/contents/content-contribution.d.ts +7 -0
  66. package/es/contents/content-contribution.d.ts.map +1 -0
  67. package/es/contents/content-contribution.js +63 -0
  68. package/es/contents/index.d.ts +2 -0
  69. package/es/contents/index.d.ts.map +1 -0
  70. package/es/contents/index.js +1 -0
  71. package/es/file/file-name-alias.d.ts +7 -0
  72. package/es/file/file-name-alias.d.ts.map +1 -0
  73. package/es/file/file-name-alias.js +26 -0
  74. package/es/file/file-protocol.d.ts +8 -0
  75. package/es/file/file-protocol.d.ts.map +1 -0
  76. package/es/file/file-protocol.js +7 -0
  77. package/es/file/file-service.d.ts +31 -0
  78. package/es/file/file-service.d.ts.map +1 -0
  79. package/es/file/file-service.js +329 -0
  80. package/es/file/file-tree-label-provider.d.ts +13 -0
  81. package/es/file/file-tree-label-provider.d.ts.map +1 -0
  82. package/es/file/file-tree-label-provider.js +62 -0
  83. package/es/file/file-view/index.d.ts +14 -0
  84. package/es/file/file-view/index.d.ts.map +1 -0
  85. package/es/file/file-view/index.js +101 -0
  86. package/es/file/file-view/index.less +5 -0
  87. package/es/file/index.d.ts +7 -0
  88. package/es/file/index.d.ts.map +1 -0
  89. package/es/file/index.js +6 -0
  90. package/es/file/module.d.ts +3 -0
  91. package/es/file/module.d.ts.map +1 -0
  92. package/es/file/module.js +8 -0
  93. package/es/file/navigatable-view.d.ts +24 -0
  94. package/es/file/navigatable-view.d.ts.map +1 -0
  95. package/es/file/navigatable-view.js +151 -0
  96. package/es/file/open-handler-contribution.d.ts +11 -0
  97. package/es/file/open-handler-contribution.d.ts.map +1 -0
  98. package/es/file/open-handler-contribution.js +102 -0
  99. package/es/index.d.ts +32 -0
  100. package/es/index.d.ts.map +1 -0
  101. package/es/index.js +31 -0
  102. package/es/keybind-instructions/index.d.ts +6 -0
  103. package/es/keybind-instructions/index.d.ts.map +1 -0
  104. package/es/keybind-instructions/index.js +5 -0
  105. package/es/keybind-instructions/index.less +177 -0
  106. package/es/keybind-instructions/keybind-instructions-contribution.d.ts +11 -0
  107. package/es/keybind-instructions/keybind-instructions-contribution.d.ts.map +1 -0
  108. package/es/keybind-instructions/keybind-instructions-contribution.js +84 -0
  109. package/es/keybind-instructions/keybind-instructions-icon.d.ts +3 -0
  110. package/es/keybind-instructions/keybind-instructions-icon.d.ts.map +1 -0
  111. package/es/keybind-instructions/keybind-instructions-icon.js +23 -0
  112. package/es/keybind-instructions/keybind-instructions-items.d.ts +14 -0
  113. package/es/keybind-instructions/keybind-instructions-items.d.ts.map +1 -0
  114. package/es/keybind-instructions/keybind-instructions-items.js +589 -0
  115. package/es/keybind-instructions/keybind-instructions-view.d.ts +16 -0
  116. package/es/keybind-instructions/keybind-instructions-view.d.ts.map +1 -0
  117. package/es/keybind-instructions/keybind-instructions-view.js +224 -0
  118. package/es/keybind-instructions/module.d.ts +3 -0
  119. package/es/keybind-instructions/module.d.ts.map +1 -0
  120. package/es/keybind-instructions/module.js +5 -0
  121. package/es/libro-jupyter-file-service.d.ts +106 -0
  122. package/es/libro-jupyter-file-service.d.ts.map +1 -0
  123. package/es/libro-jupyter-file-service.js +127 -0
  124. package/es/libro-jupyter-model.d.ts +49 -0
  125. package/es/libro-jupyter-model.d.ts.map +1 -0
  126. package/es/libro-jupyter-model.js +505 -0
  127. package/es/libro-jupyter-protocol.d.ts +38 -0
  128. package/es/libro-jupyter-protocol.d.ts.map +1 -0
  129. package/es/libro-jupyter-protocol.js +9 -0
  130. package/es/libro-jupyter-server-launch-manager.d.ts +11 -0
  131. package/es/libro-jupyter-server-launch-manager.d.ts.map +1 -0
  132. package/es/libro-jupyter-server-launch-manager.js +59 -0
  133. package/es/libro-jupyter-view.d.ts +10 -0
  134. package/es/libro-jupyter-view.d.ts.map +1 -0
  135. package/es/libro-jupyter-view.js +42 -0
  136. package/es/module.d.ts +3 -0
  137. package/es/module.d.ts.map +1 -0
  138. package/es/module.js +48 -0
  139. package/es/output/index.d.ts +2 -0
  140. package/es/output/index.d.ts.map +1 -0
  141. package/es/output/index.js +1 -0
  142. package/es/output/libro-jupyter-outputarea.d.ts +8 -0
  143. package/es/output/libro-jupyter-outputarea.d.ts.map +1 -0
  144. package/es/output/libro-jupyter-outputarea.js +77 -0
  145. package/es/rendermime/assets/plotly.svg +31 -0
  146. package/es/rendermime/index.d.ts +5 -0
  147. package/es/rendermime/index.d.ts.map +1 -0
  148. package/es/rendermime/index.js +4 -0
  149. package/es/rendermime/index.less +22 -0
  150. package/es/rendermime/module.d.ts +3 -0
  151. package/es/rendermime/module.d.ts.map +1 -0
  152. package/es/rendermime/module.js +3 -0
  153. package/es/rendermime/plotly-render.d.ts +7 -0
  154. package/es/rendermime/plotly-render.d.ts.map +1 -0
  155. package/es/rendermime/plotly-render.js +30 -0
  156. package/es/rendermime/plotly-renderers.d.ts +58 -0
  157. package/es/rendermime/plotly-renderers.d.ts.map +1 -0
  158. package/es/rendermime/plotly-renderers.js +211 -0
  159. package/es/rendermime/plotly-rendermime-contribution.d.ts +12 -0
  160. package/es/rendermime/plotly-rendermime-contribution.d.ts.map +1 -0
  161. package/es/rendermime/plotly-rendermime-contribution.js +22 -0
  162. package/es/theme/color-registry.d.ts +6 -0
  163. package/es/theme/color-registry.d.ts.map +1 -0
  164. package/es/theme/color-registry.js +393 -0
  165. package/es/theme/index.d.ts +2 -0
  166. package/es/theme/index.d.ts.map +1 -0
  167. package/es/theme/index.js +1 -0
  168. package/es/toolbar/index.d.ts +6 -0
  169. package/es/toolbar/index.d.ts.map +1 -0
  170. package/es/toolbar/index.js +5 -0
  171. package/es/toolbar/index.less +194 -0
  172. package/es/toolbar/kernel-selector-dropdown.d.ts +13 -0
  173. package/es/toolbar/kernel-selector-dropdown.d.ts.map +1 -0
  174. package/es/toolbar/kernel-selector-dropdown.js +165 -0
  175. package/es/toolbar/kernel-status-and-selector.d.ts +18 -0
  176. package/es/toolbar/kernel-status-and-selector.d.ts.map +1 -0
  177. package/es/toolbar/kernel-status-and-selector.js +164 -0
  178. package/es/toolbar/run-selector.d.ts +3 -0
  179. package/es/toolbar/run-selector.d.ts.map +1 -0
  180. package/es/toolbar/run-selector.js +98 -0
  181. package/es/toolbar/save-file-error-contribution.d.ts +5 -0
  182. package/es/toolbar/save-file-error-contribution.d.ts.map +1 -0
  183. package/es/toolbar/save-file-error-contribution.js +23 -0
  184. package/es/toolbar/save-file-error.d.ts +5 -0
  185. package/es/toolbar/save-file-error.d.ts.map +1 -0
  186. package/es/toolbar/save-file-error.js +27 -0
  187. package/es/toolbar/side-toolbar-run-selector.d.ts +3 -0
  188. package/es/toolbar/side-toolbar-run-selector.d.ts.map +1 -0
  189. package/es/toolbar/side-toolbar-run-selector.js +67 -0
  190. package/es/toolbar/toolbar-contribution.d.ts +9 -0
  191. package/es/toolbar/toolbar-contribution.d.ts.map +1 -0
  192. package/es/toolbar/toolbar-contribution.js +67 -0
  193. package/es/typings/index.d.ts +31 -0
  194. package/es/utils/index.d.ts +11 -0
  195. package/es/utils/index.d.ts.map +1 -0
  196. package/es/utils/index.js +47 -0
  197. package/package.json +75 -0
  198. package/src/add-between-cell/add-between-cell-command-contribution.ts +63 -0
  199. package/src/add-between-cell/add-between-cell.tsx +201 -0
  200. package/src/add-between-cell/index.less +103 -0
  201. package/src/add-between-cell/index.ts +2 -0
  202. package/src/add-between-cell/module.ts +13 -0
  203. package/src/cell/index.ts +2 -0
  204. package/src/cell/jupyter-code-cell-model.ts +36 -0
  205. package/src/cell/jupyter-code-cell-view.tsx +221 -0
  206. package/src/command/command-contribution.ts +163 -0
  207. package/src/command/index.ts +2 -0
  208. package/src/command/keybinding-contribution.ts +25 -0
  209. package/src/components/cell-execution-tip.tsx +107 -0
  210. package/src/components/cell-input-bottom-blank.tsx +24 -0
  211. package/src/components/icons.tsx +117 -0
  212. package/src/components/index.less +82 -0
  213. package/src/components/index.ts +3 -0
  214. package/src/config/config-contribution.ts +21 -0
  215. package/src/config/config.ts +14 -0
  216. package/src/config/index.ts +1 -0
  217. package/src/configuration/index.ts +2 -0
  218. package/src/configuration/libro-configuration-contribution.ts +11 -0
  219. package/src/configuration/libro-configuration.ts +14 -0
  220. package/src/contents/content-contribution.ts +32 -0
  221. package/src/contents/index.ts +1 -0
  222. package/src/file/file-name-alias.ts +15 -0
  223. package/src/file/file-protocol.ts +7 -0
  224. package/src/file/file-service.ts +179 -0
  225. package/src/file/file-tree-label-provider.ts +42 -0
  226. package/src/file/file-view/index.less +5 -0
  227. package/src/file/file-view/index.tsx +90 -0
  228. package/src/file/index.ts +6 -0
  229. package/src/file/module.ts +19 -0
  230. package/src/file/navigatable-view.tsx +93 -0
  231. package/src/file/open-handler-contribution.ts +44 -0
  232. package/src/index.ts +32 -0
  233. package/src/keybind-instructions/index.less +177 -0
  234. package/src/keybind-instructions/index.ts +5 -0
  235. package/src/keybind-instructions/keybind-instructions-contribution.ts +47 -0
  236. package/src/keybind-instructions/keybind-instructions-icon.tsx +28 -0
  237. package/src/keybind-instructions/keybind-instructions-items.tsx +597 -0
  238. package/src/keybind-instructions/keybind-instructions-view.tsx +239 -0
  239. package/src/keybind-instructions/module.ts +11 -0
  240. package/src/libro-jupyter-file-service.ts +158 -0
  241. package/src/libro-jupyter-model.ts +289 -0
  242. package/src/libro-jupyter-protocol.ts +59 -0
  243. package/src/libro-jupyter-server-launch-manager.ts +36 -0
  244. package/src/libro-jupyter-view.tsx +24 -0
  245. package/src/module.ts +105 -0
  246. package/src/output/index.ts +1 -0
  247. package/src/output/libro-jupyter-outputarea.tsx +71 -0
  248. package/src/rendermime/assets/plotly.svg +31 -0
  249. package/src/rendermime/index.less +13 -0
  250. package/src/rendermime/index.ts +4 -0
  251. package/src/rendermime/module.ts +7 -0
  252. package/src/rendermime/plotly-render.tsx +35 -0
  253. package/src/rendermime/plotly-renderers.ts +191 -0
  254. package/src/rendermime/plotly-rendermime-contribution.ts +15 -0
  255. package/src/theme/color-registry.ts +301 -0
  256. package/src/theme/index.ts +1 -0
  257. package/src/toolbar/index.less +194 -0
  258. package/src/toolbar/index.ts +5 -0
  259. package/src/toolbar/kernel-selector-dropdown.tsx +204 -0
  260. package/src/toolbar/kernel-status-and-selector.tsx +195 -0
  261. package/src/toolbar/run-selector.tsx +110 -0
  262. package/src/toolbar/save-file-error-contribution.ts +10 -0
  263. package/src/toolbar/save-file-error.tsx +35 -0
  264. package/src/toolbar/side-toolbar-run-selector.tsx +77 -0
  265. package/src/toolbar/toolbar-contribution.tsx +62 -0
  266. package/src/typings/index.d.ts +31 -0
  267. package/src/utils/index.ts +65 -0
@@ -0,0 +1,211 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _class;
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ 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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
7
+ 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); } }
8
+ 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); }); }; }
9
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
+ 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); } }
11
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ /**
15
+ * The options used to create a renderer.
16
+ */
17
+
18
+ /**
19
+ * The MIME type for Plotly.
20
+ * The version of this follows the major version of Plotly.
21
+ */
22
+ export var MIME_TYPE = 'application/vnd.plotly.v1+json';
23
+ export var RenderedPlotly = /*#__PURE__*/function () {
24
+ /**
25
+ * Create a new widget for rendering Plotly.
26
+ */
27
+ function RenderedPlotly(options) {
28
+ var _this = this;
29
+ _classCallCheck(this, RenderedPlotly);
30
+ this._mimeType = void 0;
31
+ this._img_el = void 0;
32
+ this._model = void 0;
33
+ this.node = void 0;
34
+ this._mimeType = options.mimeType;
35
+ this.node = options.host;
36
+ // Create image element
37
+ this._img_el = document.createElement('img');
38
+ this._img_el.className = 'plot-img';
39
+ this.node.appendChild(this._img_el);
40
+
41
+ // Install image hover callback
42
+ this._img_el.addEventListener('mouseenter', function () {
43
+ _this.createGraph(_this._model);
44
+ });
45
+ }
46
+
47
+ /**
48
+ * Render Plotly into this widget's node.
49
+ */
50
+ _createClass(RenderedPlotly, [{
51
+ key: "renderModel",
52
+ value: function renderModel(model) {
53
+ if (this.hasGraphElement()) {
54
+ // We already have a graph, don't overwrite it
55
+ return Promise.resolve();
56
+ }
57
+
58
+ // Save off reference to model so that we can regenerate the plot later
59
+ this._model = model;
60
+
61
+ // Check for PNG data in mime bundle
62
+ var png_data = model.data['image/png'];
63
+ if (png_data !== undefined && png_data !== null) {
64
+ // We have PNG data, use it
65
+ this.updateImage(png_data);
66
+ return Promise.resolve();
67
+ } else {
68
+ // Create a new graph
69
+ return this.createGraph(model);
70
+ }
71
+ }
72
+ }, {
73
+ key: "hasGraphElement",
74
+ value: function hasGraphElement() {
75
+ // Check for the presence of the .plot-container element that plotly.js
76
+ // places at the top of the figure structure
77
+ return this.node.querySelector('.plot-container') !== null;
78
+ }
79
+ }, {
80
+ key: "updateImage",
81
+ value: function updateImage(png_data) {
82
+ this.hideGraph();
83
+ this._img_el.src = 'data:image/png;base64,' + png_data;
84
+ this.showImage();
85
+ }
86
+ }, {
87
+ key: "hideGraph",
88
+ value: function hideGraph() {
89
+ // Hide the graph if there is one
90
+ var el = this.node.querySelector('.plot-container');
91
+ if (el !== null && el !== undefined) {
92
+ el.style.display = 'none';
93
+ }
94
+ }
95
+ }, {
96
+ key: "showGraph",
97
+ value: function showGraph() {
98
+ // Show the graph if there is one
99
+ var el = this.node.querySelector('.plot-container');
100
+ if (el !== null && el !== undefined) {
101
+ el.style.display = 'block';
102
+ }
103
+ }
104
+ }, {
105
+ key: "hideImage",
106
+ value: function hideImage() {
107
+ // Hide the image element
108
+ var el = this.node.querySelector('.plot-img');
109
+ if (el !== null && el !== undefined) {
110
+ el.style.display = 'none';
111
+ }
112
+ }
113
+ }, {
114
+ key: "showImage",
115
+ value: function showImage() {
116
+ // Show the image element
117
+ var el = this.node.querySelector('.plot-img');
118
+ if (el !== null && el !== undefined) {
119
+ el.style.display = 'block';
120
+ }
121
+ }
122
+ }, {
123
+ key: "createGraph",
124
+ value: function createGraph(model) {
125
+ var _this2 = this;
126
+ var _ref = model.data[this._mimeType],
127
+ data = _ref.data,
128
+ layout = _ref.layout,
129
+ frames = _ref.frames,
130
+ config = _ref.config;
131
+
132
+ // Load plotly asynchronously
133
+ var loadPlotly = /*#__PURE__*/function () {
134
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
135
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
136
+ while (1) switch (_context.prev = _context.next) {
137
+ case 0:
138
+ if (!(RenderedPlotly.Plotly === null)) {
139
+ _context.next = 5;
140
+ break;
141
+ }
142
+ _context.next = 3;
143
+ return import('plotly.js');
144
+ case 3:
145
+ RenderedPlotly.Plotly = _context.sent;
146
+ RenderedPlotly._resolveLoadingPlotly();
147
+ case 5:
148
+ return _context.abrupt("return", RenderedPlotly.loadingPlotly);
149
+ case 6:
150
+ case "end":
151
+ return _context.stop();
152
+ }
153
+ }, _callee);
154
+ }));
155
+ return function loadPlotly() {
156
+ return _ref2.apply(this, arguments);
157
+ };
158
+ }();
159
+ return loadPlotly().then(function () {
160
+ return RenderedPlotly.Plotly.react(_this2.node, data, layout, config);
161
+ }).then(function (plot) {
162
+ _this2.showGraph();
163
+ _this2.hideImage();
164
+ // this.update();
165
+ if (frames) {
166
+ RenderedPlotly.Plotly.addFrames(_this2.node, frames);
167
+ }
168
+ if (_this2.node.offsetWidth > 0 && _this2.node.offsetHeight > 0) {
169
+ RenderedPlotly.Plotly.toImage(plot, {
170
+ format: 'png',
171
+ width: _this2.node.offsetWidth,
172
+ height: _this2.node.offsetHeight
173
+ }).then(function (url) {
174
+ var imageData = url.split(',')[1];
175
+ if (model.data['image/png'] !== imageData) {
176
+ model.setData({
177
+ data: _objectSpread(_objectSpread({}, model.data), {}, {
178
+ 'image/png': imageData
179
+ })
180
+ });
181
+ }
182
+ return;
183
+ }).catch(function () {
184
+ //
185
+ });
186
+ }
187
+ return;
188
+ });
189
+ }
190
+ }]);
191
+ return RenderedPlotly;
192
+ }();
193
+
194
+ /**
195
+ * Render an plotly into a host node.
196
+ *
197
+ * @param options - The options for rendering.
198
+ *
199
+ * @returns A promise which resolves when rendering is complete.
200
+ */
201
+ _class = RenderedPlotly;
202
+ RenderedPlotly.Plotly = null;
203
+ RenderedPlotly._resolveLoadingPlotly = void 0;
204
+ RenderedPlotly.loadingPlotly = new Promise(function (resolve) {
205
+ _class._resolveLoadingPlotly = resolve;
206
+ });
207
+ export function renderPlotly(options) {
208
+ var plotlyRender = new RenderedPlotly(options);
209
+ plotlyRender.renderModel(options.model); // Return the rendered promise.
210
+ return Promise.resolve(undefined);
211
+ }
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" resolution-mode="require"/>
2
+ import { RenderMimeContribution } from '@difizen/libro-rendermime';
3
+ export declare class LibroPlotlyMimeTypeContribution implements RenderMimeContribution {
4
+ canHandle: () => number;
5
+ renderType: string;
6
+ safe: boolean;
7
+ mimeTypes: string[];
8
+ render: import("react").FC<{
9
+ model: import("@difizen/libro-core").BaseOutputView;
10
+ }>;
11
+ }
12
+ //# sourceMappingURL=plotly-rendermime-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plotly-rendermime-contribution.d.ts","sourceRoot":"","sources":["../../src/rendermime/plotly-rendermime-contribution.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAKnE,qBACa,+BAAgC,YAAW,sBAAsB;IAC5E,SAAS,eAEP;IACF,UAAU,SAAkB;IAC5B,IAAI,UAAQ;IACZ,SAAS,WAAsC;IAC/C,MAAM;;OAAgB;CACvB"}
@@ -0,0 +1,22 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _dec, _class;
3
+ 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); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
+ import { RenderMimeContribution } from '@difizen/libro-rendermime';
9
+ import { singleton } from '@difizen/mana-app';
10
+ import { PlotlyRender } from "./plotly-render.js";
11
+ export var LibroPlotlyMimeTypeContribution = (_dec = singleton({
12
+ contrib: RenderMimeContribution
13
+ }), _dec(_class = /*#__PURE__*/_createClass(function LibroPlotlyMimeTypeContribution() {
14
+ _classCallCheck(this, LibroPlotlyMimeTypeContribution);
15
+ this.canHandle = function () {
16
+ return 100;
17
+ };
18
+ this.renderType = 'plotlyRender';
19
+ this.safe = true;
20
+ this.mimeTypes = ['application/vnd.plotly.v1+json'];
21
+ this.render = PlotlyRender;
22
+ })) || _class);
@@ -0,0 +1,6 @@
1
+ import type { ColorRegistry } from '@difizen/mana-app';
2
+ import { ColorContribution } from '@difizen/mana-app';
3
+ export declare class LibroJupyterColorContribution implements ColorContribution {
4
+ registerColors(colors: ColorRegistry): void;
5
+ }
6
+ //# sourceMappingURL=color-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-registry.d.ts","sourceRoot":"","sources":["../../src/theme/color-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAS,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,qBACa,6BAA8B,YAAW,iBAAiB;IACrE,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CAsS5C"}
@@ -0,0 +1,393 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _dec, _class;
3
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
+ 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); } }
5
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import { Color, ColorContribution } from '@difizen/mana-app';
9
+ import { singleton } from '@difizen/mana-app';
10
+ export var LibroJupyterColorContribution = (_dec = singleton({
11
+ contrib: ColorContribution
12
+ }), _dec(_class = /*#__PURE__*/function () {
13
+ function LibroJupyterColorContribution() {
14
+ _classCallCheck(this, LibroJupyterColorContribution);
15
+ }
16
+ _createClass(LibroJupyterColorContribution, [{
17
+ key: "registerColors",
18
+ value: function registerColors(colors) {
19
+ // common
20
+ colors.register(
21
+ // #region antd variable
22
+ {
23
+ id: 'libro.add.between.divider.color',
24
+ defaults: {
25
+ dark: '#467DB0',
26
+ light: '#BFE0FF'
27
+ },
28
+ description: ''
29
+ }, {
30
+ id: 'libro.add.between.icon.color',
31
+ defaults: {
32
+ dark: '#467DB0',
33
+ light: '#6982A9'
34
+ },
35
+ description: ''
36
+ }, {
37
+ id: 'libro.add.between.icon.hover.color',
38
+ defaults: {
39
+ dark: '#588DBE',
40
+ light: '#1890ff'
41
+ },
42
+ description: ''
43
+ }, {
44
+ id: 'libro.add.between.popover.background.color',
45
+ defaults: {
46
+ dark: '#2f3032',
47
+ light: '#ffffff'
48
+ },
49
+ description: ''
50
+ }, {
51
+ id: 'libro.add.between.menu.label.color',
52
+ defaults: {
53
+ dark: '#BDC0C4',
54
+ light: Color.rgba(0, 0, 0, 0.65)
55
+ },
56
+ description: ''
57
+ }, {
58
+ id: 'libro.add.between.hover.color',
59
+ defaults: {
60
+ dark: '#515359',
61
+ light: '#EBF6FF'
62
+ },
63
+ description: ''
64
+ }, {
65
+ id: 'libro.drawer.close.color',
66
+ defaults: {
67
+ dark: Color.rgba(255, 255, 255, 0.45),
68
+ light: Color.rgba(0, 0, 0, 0.45)
69
+ },
70
+ description: ''
71
+ }, {
72
+ id: 'libro.drawer.title.color',
73
+ defaults: {
74
+ dark: '#EDEEEF',
75
+ light: Color.rgba(0, 0, 0, 0.85)
76
+ },
77
+ description: ''
78
+ }, {
79
+ id: 'libro.table.title.color',
80
+ defaults: {
81
+ dark: '#E3E4E6',
82
+ light: Color.rgba(0, 10, 26, 0.89)
83
+ },
84
+ description: ''
85
+ }, {
86
+ id: 'libro.filtered.background.color',
87
+ defaults: {
88
+ dark: Color.rgba(255, 255, 255, 0.1),
89
+ light: Color.rgba(0, 10, 26, 0.04)
90
+ },
91
+ description: ''
92
+ }, {
93
+ id: 'libro.filtered.text.color',
94
+ defaults: {
95
+ dark: '#878C93',
96
+ light: Color.rgba(0, 10, 26, 0.26)
97
+ },
98
+ description: ''
99
+ }, {
100
+ id: 'libro.filtered.border.color',
101
+ defaults: {
102
+ dark: '#2F3032',
103
+ light: '#f0f0f0'
104
+ },
105
+ description: ''
106
+ }, {
107
+ id: 'libro.table.border.color',
108
+ defaults: {
109
+ dark: Color.rgba(255, 255, 255, 0.04),
110
+ light: '#f0f0f0'
111
+ },
112
+ description: ''
113
+ }, {
114
+ id: 'libro.btn.hover.color',
115
+ defaults: {
116
+ dark: '#515359',
117
+ light: '#fff'
118
+ },
119
+ description: ''
120
+ }, {
121
+ id: 'libro.keybind.tag.background.color',
122
+ defaults: {
123
+ dark: Color.rgba(245, 245, 245, 0.2),
124
+ light: '#f5f5f5'
125
+ },
126
+ description: ''
127
+ }, {
128
+ id: 'libro.keybind.tag.text.color',
129
+ defaults: {
130
+ dark: '#BDC0C4',
131
+ light: Color.rgba(0, 0, 0, 0.65)
132
+ },
133
+ description: ''
134
+ }, {
135
+ id: 'libro.search.match.background.color',
136
+ defaults: {
137
+ dark: '#BCCEFF',
138
+ light: '#B9D1FF'
139
+ },
140
+ description: ''
141
+ }, {
142
+ id: 'libro.vis.button.border',
143
+ defaults: {
144
+ dark: '#505559',
145
+ light: Color.rgba(0, 10, 26, 0.1)
146
+ },
147
+ description: ''
148
+ }, {
149
+ id: 'libro.vis.button.background',
150
+ defaults: {
151
+ dark: '#2F3032',
152
+ light: '#FFFFFF'
153
+ },
154
+ description: ''
155
+ }, {
156
+ id: 'libro.vis.button.text.color',
157
+ defaults: {
158
+ dark: '#BDC0C4',
159
+ light: Color.rgba(0, 10, 26, 0.68)
160
+ },
161
+ description: ''
162
+ }, {
163
+ id: 'libro.llm.response.output.text.color',
164
+ defaults: {
165
+ dark: '#878C93',
166
+ light: Color.rgba(0, 10, 26, 0.68)
167
+ },
168
+ description: ''
169
+ });
170
+
171
+ //
172
+ colors.register({
173
+ id: 'libro.kernel.text',
174
+ defaults: {
175
+ dark: '#BDC0C4',
176
+ light: Color.rgba(0, 10, 26, 0.89)
177
+ },
178
+ description: ''
179
+ }, {
180
+ id: 'libro.kernel.select.text',
181
+ defaults: {
182
+ dark: '#E3E4E6',
183
+ light: Color.rgba(0, 10, 26, 0.68)
184
+ },
185
+ description: ''
186
+ }, {
187
+ id: 'libro.kernel.status.text',
188
+ defaults: {
189
+ dark: '#BDC0C4',
190
+ light: Color.rgba(0, 10, 26, 0.47)
191
+ },
192
+ description: ''
193
+ }, {
194
+ id: 'libro.kernel.badge.border.color',
195
+ defaults: {
196
+ dark: '#E3E4E6',
197
+ light: '#ffffff'
198
+ },
199
+ description: ''
200
+ }, {
201
+ id: 'libro.jupyter.kernel.status.background.color',
202
+ defaults: {
203
+ dark: '#2F3032',
204
+ light: '#ffffff'
205
+ },
206
+ description: ''
207
+ }, {
208
+ id: 'libro.jupyter.kernel.status.active.step.title.color',
209
+ defaults: {
210
+ dark: '#E3E4E6',
211
+ light: Color.rgba(0, 0, 0, 0.85)
212
+ },
213
+ description: ''
214
+ }, {
215
+ id: 'libro.jupyter.kernel.status.title.color',
216
+ defaults: {
217
+ dark: '#878C93',
218
+ light: Color.rgba(0, 0, 0, 0.45)
219
+ },
220
+ description: ''
221
+ }, {
222
+ id: 'libro.jupyter.kernel.status.menu.color',
223
+ defaults: {
224
+ dark: '#e3e4e6',
225
+ light: Color.rgba(0, 0, 0, 0.65)
226
+ },
227
+ description: ''
228
+ }, {
229
+ id: 'libro.jupyter.kernel.status.step.description.color',
230
+ defaults: {
231
+ dark: '#D6D8DA',
232
+ light: Color.rgba(0, 10, 26, 0.68)
233
+ },
234
+ description: ''
235
+ }, {
236
+ id: 'libro.jupyter.kernel.status.step.active.background.color',
237
+ defaults: {
238
+ dark: '#2A97FD',
239
+ light: '#1890FF'
240
+ },
241
+ description: ''
242
+ }, {
243
+ id: 'libro.jupyter.kernel.status.step.active.secondary.color',
244
+ defaults: {
245
+ dark: '#FFFFFF',
246
+ light: '#ffffff'
247
+ },
248
+ description: ''
249
+ }, {
250
+ id: 'libro.diff.cell.header.execution.color',
251
+ defaults: {
252
+ dark: '#6A83AA',
253
+ light: '#6A83AA'
254
+ },
255
+ description: ''
256
+ }, {
257
+ id: 'libro.diff.unchanged.cell.header.color',
258
+ defaults: {
259
+ dark: Color.rgba(255, 255, 255, 0.06),
260
+ light: '#EAECF2'
261
+ },
262
+ description: ''
263
+ }, {
264
+ id: 'libro.diff.container.color',
265
+ defaults: {
266
+ dark: '#1f2022',
267
+ light: '#ffffff'
268
+ },
269
+ description: ''
270
+ }, {
271
+ id: 'libro.diff.input.background.color',
272
+ defaults: {
273
+ dark: '#19191B',
274
+ light: '#F4F6FB'
275
+ },
276
+ description: ''
277
+ }, {
278
+ id: 'libro.diff.editor.background.color',
279
+ defaults: {
280
+ dark: '#1F2022',
281
+ light: '#ffffff'
282
+ },
283
+ description: ''
284
+ }, {
285
+ id: 'libro.diff.cell.border.color',
286
+ defaults: {
287
+ dark: '#3B3C42',
288
+ light: '#D7DBE7'
289
+ },
290
+ description: ''
291
+ }, {
292
+ id: 'libro.diff.editor.removed.color',
293
+ defaults: {
294
+ dark: '#4F2726',
295
+ light: '#FAF0F0'
296
+ },
297
+ description: ''
298
+ }, {
299
+ id: 'libro.diff.editor.added.color',
300
+ defaults: {
301
+ dark: '#334126',
302
+ light: '#ECF4E3'
303
+ },
304
+ description: ''
305
+ }, {
306
+ id: 'libro.diff.editor.line.insert.color',
307
+ defaults: {
308
+ dark: Color.rgba(83, 104, 48, 0.45),
309
+ light: Color.rgba(189, 214, 151, 0.25)
310
+ },
311
+ description: ''
312
+ }, {
313
+ id: 'libro.diff.editor.line.delete.color',
314
+ defaults: {
315
+ dark: Color.rgba(126, 50, 45, 0.45),
316
+ light: Color.rgba(241, 212, 216, 0.35)
317
+ },
318
+ description: ''
319
+ }, {
320
+ id: 'libro.diff.editor.char.insert.color',
321
+ defaults: {
322
+ dark: Color.rgba(16, 22, 3, 0.7),
323
+ light: Color.rgba(67, 151, 36, 0.25)
324
+ },
325
+ description: ''
326
+ }, {
327
+ id: 'libro.diff.editor.char.delete.color',
328
+ defaults: {
329
+ dark: Color.rgba(53, 15, 14, 0.7),
330
+ light: Color.rgba(255, 0, 0, 0.2)
331
+ },
332
+ description: ''
333
+ }, {
334
+ id: 'libro.diff.fold.background.color',
335
+ defaults: {
336
+ dark: Color.rgba(255, 255, 255, 0.08),
337
+ light: Color.rgba(0, 10, 26, 0.02)
338
+ },
339
+ description: ''
340
+ }, {
341
+ id: 'libro.diff.fold.hover.background.color',
342
+ defaults: {
343
+ dark: Color.rgba(255, 255, 255, 0.1),
344
+ light: Color.rgba(0, 10, 26, 0.04)
345
+ },
346
+ description: ''
347
+ }, {
348
+ id: 'libro.diff.fold.text.color',
349
+ defaults: {
350
+ dark: '#BDC0C4',
351
+ light: Color.rgba(0, 10, 26, 0.47)
352
+ },
353
+ description: ''
354
+ }, {
355
+ id: 'libro.diff.content.same.text.color',
356
+ defaults: {
357
+ dark: '#E3E4E6',
358
+ light: Color.rgba(0, 10, 26, 0.68)
359
+ },
360
+ description: ''
361
+ }, {
362
+ id: 'libro.diff.select.background.color',
363
+ defaults: {
364
+ dark: '#BCCEFF',
365
+ light: '#e5ebf1'
366
+ },
367
+ description: ''
368
+ }, {
369
+ id: 'libro.diff.select.highlight.background.color',
370
+ defaults: {
371
+ dark: '#C8D1E7',
372
+ light: '#DDE6FF'
373
+ },
374
+ description: ''
375
+ }, {
376
+ id: 'libro.diff.editor.gutter.number.color',
377
+ defaults: {
378
+ dark: '#a8aebf',
379
+ light: '#A4AECB'
380
+ },
381
+ description: ''
382
+ }, {
383
+ id: 'libro.copilot.editor.placeholder.color',
384
+ defaults: {
385
+ dark: '#878C93',
386
+ light: Color.rgba(0, 10, 26, 0.26)
387
+ },
388
+ description: ''
389
+ });
390
+ }
391
+ }]);
392
+ return LibroJupyterColorContribution;
393
+ }()) || _class);