@difizen/libro-jupyter 0.1.32 → 0.1.34

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 (114) hide show
  1. package/es/cell/jupyter-code-cell-view.d.ts +3 -1
  2. package/es/cell/jupyter-code-cell-view.d.ts.map +1 -1
  3. package/es/cell/jupyter-code-cell-view.js +9 -0
  4. package/es/components/icons.js +1 -1
  5. package/es/index.d.ts +1 -0
  6. package/es/index.d.ts.map +1 -1
  7. package/es/index.js +2 -1
  8. package/es/keybind-instructions/index.less +0 -5
  9. package/es/keybind-instructions/keybind-instructions-view.d.ts.map +1 -1
  10. package/es/keybind-instructions/keybind-instructions-view.js +67 -61
  11. package/es/module.d.ts.map +1 -1
  12. package/es/module.js +2 -3
  13. package/es/output/libro-jupyter-outputarea.d.ts.map +1 -1
  14. package/es/output/libro-jupyter-outputarea.js +60 -56
  15. package/es/toolbar/save-file-error.d.ts.map +1 -1
  16. package/es/toolbar/save-file-error.js +20 -13
  17. package/es/widget/box/contribution.d.ts +10 -0
  18. package/es/widget/box/contribution.d.ts.map +1 -0
  19. package/es/widget/box/contribution.js +48 -0
  20. package/es/widget/box/index.d.ts +3 -0
  21. package/es/widget/box/index.d.ts.map +1 -0
  22. package/es/widget/box/index.js +2 -0
  23. package/es/widget/box/index.less +3 -0
  24. package/es/widget/box/view.d.ts +19 -0
  25. package/es/widget/box/view.d.ts.map +1 -0
  26. package/es/widget/box/view.js +114 -0
  27. package/es/widget/comm.d.ts +65 -0
  28. package/es/widget/comm.d.ts.map +1 -0
  29. package/es/widget/comm.js +153 -0
  30. package/es/widget/index.d.ts +7 -0
  31. package/es/widget/index.d.ts.map +1 -1
  32. package/es/widget/index.js +8 -1
  33. package/es/widget/instance-progress/contribution.d.ts +10 -0
  34. package/es/widget/instance-progress/contribution.d.ts.map +1 -0
  35. package/es/widget/instance-progress/contribution.js +39 -0
  36. package/es/widget/instance-progress/index.d.ts +3 -0
  37. package/es/widget/instance-progress/index.d.ts.map +1 -0
  38. package/es/widget/instance-progress/index.js +2 -0
  39. package/es/widget/instance-progress/view.d.ts +30 -0
  40. package/es/widget/instance-progress/view.d.ts.map +1 -0
  41. package/es/widget/instance-progress/view.js +180 -0
  42. package/es/widget/libro-widgets.d.ts +84 -0
  43. package/es/widget/libro-widgets.d.ts.map +1 -0
  44. package/es/widget/libro-widgets.js +307 -0
  45. package/es/widget/module.d.ts +4 -0
  46. package/es/widget/module.d.ts.map +1 -0
  47. package/es/widget/module.js +38 -0
  48. package/es/widget/progress/contribution.d.ts +10 -0
  49. package/es/widget/progress/contribution.d.ts.map +1 -0
  50. package/es/widget/progress/contribution.js +39 -0
  51. package/es/widget/progress/index.d.ts +3 -0
  52. package/es/widget/progress/index.d.ts.map +1 -0
  53. package/es/widget/progress/index.js +2 -0
  54. package/es/widget/progress/progressBar.d.ts +15 -0
  55. package/es/widget/progress/progressBar.d.ts.map +1 -0
  56. package/es/widget/progress/progressBar.js +20 -0
  57. package/es/widget/progress/view.d.ts +19 -0
  58. package/es/widget/progress/view.d.ts.map +1 -0
  59. package/es/widget/progress/view.js +74 -0
  60. package/es/widget/protocol.d.ts +193 -0
  61. package/es/widget/protocol.d.ts.map +1 -0
  62. package/es/widget/protocol.js +33 -0
  63. package/es/widget/utils.d.ts +27 -0
  64. package/es/widget/utils.d.ts.map +1 -0
  65. package/es/widget/utils.js +59 -0
  66. package/es/widget/version.d.ts +3 -0
  67. package/es/widget/version.d.ts.map +1 -0
  68. package/es/widget/version.js +2 -0
  69. package/es/widget/widget-manager.d.ts +19 -0
  70. package/es/widget/widget-manager.d.ts.map +1 -0
  71. package/es/widget/widget-manager.js +77 -0
  72. package/es/widget/widget-render.d.ts.map +1 -1
  73. package/es/widget/widget-render.js +7 -3
  74. package/es/widget/widget-rendermime-contribution.d.ts +2 -1
  75. package/es/widget/widget-rendermime-contribution.d.ts.map +1 -1
  76. package/es/widget/widget-rendermime-contribution.js +2 -1
  77. package/es/widget/widget-view-contribution.d.ts +10 -0
  78. package/es/widget/widget-view-contribution.d.ts.map +1 -0
  79. package/es/widget/widget-view-contribution.js +36 -0
  80. package/es/widget/widget-view.d.ts +71 -0
  81. package/es/widget/widget-view.d.ts.map +1 -0
  82. package/es/widget/widget-view.js +273 -0
  83. package/package.json +17 -18
  84. package/src/cell/jupyter-code-cell-view.tsx +10 -1
  85. package/src/components/icons.tsx +1 -1
  86. package/src/index.ts +1 -0
  87. package/src/keybind-instructions/index.less +0 -5
  88. package/src/keybind-instructions/keybind-instructions-view.tsx +70 -60
  89. package/src/module.ts +1 -3
  90. package/src/output/libro-jupyter-outputarea.tsx +56 -49
  91. package/src/toolbar/save-file-error.tsx +25 -15
  92. package/src/widget/box/contribution.ts +29 -0
  93. package/src/widget/box/index.less +3 -0
  94. package/src/widget/box/index.ts +2 -0
  95. package/src/widget/box/view.tsx +112 -0
  96. package/src/widget/comm.ts +152 -0
  97. package/src/widget/index.ts +7 -0
  98. package/src/widget/instance-progress/contribution.ts +20 -0
  99. package/src/widget/instance-progress/index.ts +2 -0
  100. package/src/widget/instance-progress/view.tsx +155 -0
  101. package/src/widget/libro-widgets.ts +223 -0
  102. package/src/widget/module.ts +73 -0
  103. package/src/widget/progress/contribution.ts +24 -0
  104. package/src/widget/progress/index.ts +2 -0
  105. package/src/widget/progress/progressBar.tsx +29 -0
  106. package/src/widget/progress/view.tsx +70 -0
  107. package/src/widget/protocol.ts +255 -0
  108. package/src/widget/utils.ts +67 -0
  109. package/src/widget/version.ts +2 -0
  110. package/src/widget/widget-manager.ts +45 -0
  111. package/src/widget/widget-render.tsx +10 -5
  112. package/src/widget/widget-rendermime-contribution.ts +2 -1
  113. package/src/widget/widget-view-contribution.ts +14 -0
  114. package/src/widget/widget-view.tsx +259 -0
@@ -4,7 +4,9 @@ import type { CodeEditorViewOptions, CompletionProvider, TooltipProvider } from
4
4
  import type { LibroJupyterView } from '../libro-jupyter-view.js';
5
5
  import type { JupyterCodeCellModel } from './jupyter-code-cell-model.js';
6
6
  export declare class JupyterCodeCellView extends LibroCodeCellView {
7
- parent: LibroJupyterView;
7
+ protected _parent: LibroJupyterView;
8
+ get parent(): LibroJupyterView;
9
+ set parent(value: LibroJupyterView);
8
10
  view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
9
11
  model: JupyterCodeCellModel;
10
12
  clearExecution: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"jupyter-code-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/jupyter-code-cell-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EAElB,eAAe,EAEhB,MAAM,4BAA4B,CAAC;AAWpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAkBzE,qBAEa,mBAAoB,SAAQ,iBAAiB;IAChD,MAAM,EAAE,gBAAgB,CAAC;IACxB,IAAI,2FAA4B;IACjC,KAAK,EAAE,oBAAoB,CAAC;IAE3B,cAAc,aAQrB;cAEiB,eAAe,IAAI,qBAAqB;IAe3D,eAAe,EAAE,eAAe,CAqB9B;IAEF,kBAAkB,EAAE,kBAAkB,CA8BpC;IAEa,GAAG;CA8EnB"}
1
+ {"version":3,"file":"jupyter-code-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/jupyter-code-cell-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EAElB,eAAe,EAEhB,MAAM,4BAA4B,CAAC;AAWpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAkBzE,qBAEa,mBAAoB,SAAQ,iBAAiB;IACxD,UAAkB,OAAO,EAAE,gBAAgB,CAAC;IAE5C,IAAa,MAAM,IAGQ,gBAAgB,CAD1C;IACD,IAAa,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAG1C;IAEQ,IAAI,2FAA4B;IACjC,KAAK,EAAE,oBAAoB,CAAC;IAE3B,cAAc,aAQrB;cAEiB,eAAe,IAAI,qBAAqB;IAe3D,eAAe,EAAE,eAAe,CAqB9B;IAEF,kBAAkB,EAAE,kBAAkB,CA8BpC;IAEa,GAAG;CA8EnB"}
@@ -153,6 +153,15 @@ export var JupyterCodeCellView = (_dec = transient(), _dec2 = view('jupyter-code
153
153
  return _this;
154
154
  }
155
155
  _createClass(JupyterCodeCellView, [{
156
+ key: "parent",
157
+ get: function get() {
158
+ return this._parent;
159
+ },
160
+ set: function set(value) {
161
+ this._parent = value;
162
+ this.parentDefer.resolve(this.parent);
163
+ }
164
+ }, {
156
165
  key: "getEditorOption",
157
166
  value: function getEditorOption() {
158
167
  var options = _get(_getPrototypeOf(JupyterCodeCellView.prototype), "getEditorOption", this).call(this);
@@ -134,7 +134,7 @@ export var Location = function Location() {
134
134
  children: /*#__PURE__*/_jsx("g", {
135
135
  id: "2.0-kernel-\u542F\u52A8\u524D",
136
136
  transform: "translate(-738.000000, -80.000000)",
137
- fill: "#7B7B7B"
137
+ fill: "currentColor"
138
138
  // fillRule="nonzero"
139
139
  ,
140
140
  children: /*#__PURE__*/_jsx("g", {
package/es/index.d.ts CHANGED
@@ -32,4 +32,5 @@ export * from './toolbar/index.js';
32
32
  export * from './file/index.js';
33
33
  export * from './libro-jupyter-view.js';
34
34
  export * from './config/index.js';
35
+ export * from './widget/index.js';
35
36
  //# sourceMappingURL=index.d.ts.map
package/es/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0CAA0C,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0CAA0C,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
package/es/index.js CHANGED
@@ -31,4 +31,5 @@ export * from "./theme/index.js";
31
31
  export * from "./toolbar/index.js";
32
32
  export * from "./file/index.js";
33
33
  export * from "./libro-jupyter-view.js";
34
- export * from "./config/index.js";
34
+ export * from "./config/index.js";
35
+ export * from "./widget/index.js";
@@ -42,11 +42,6 @@
42
42
  .@{ant-prefix}-segmented-item-label {
43
43
  color: var(--mana-libro-drawer-title-color);
44
44
  }
45
- .@{ant-prefix}-segmented-item-selected {
46
- .@{ant-prefix}-segmented-item-label {
47
- color: rgba(0, 10, 26, 89%);
48
- }
49
- }
50
45
  .@{ant-prefix}-drawer-mask {
51
46
  opacity: 0;
52
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"keybind-instructions-view.d.ts","sourceRoot":"","sources":["../../src/keybind-instructions/keybind-instructions-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAKpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,cAAc,CAAC;AAsCtB,qBACa,yBAA0B,YAAW,UAAU;IACjC,UAAU,EAAE,eAAe,CAAC;IACrD,yBAAyB,UAAS;IAC1B,qBAAqB,EAAE,QAAQ,EAAE,CAAM;IACvC,kBAAkB,EAAE,QAAQ,EAAE,CAAM;IAE5C,OAAO;CAIR;AAiED,eAAO,MAAM,2BAA2B,iHA4GtC,CAAC;AAEH,eAAO,MAAM,sBAAsB,EAAE,SAGpC,CAAC"}
1
+ {"version":3,"file":"keybind-instructions-view.d.ts","sourceRoot":"","sources":["../../src/keybind-instructions/keybind-instructions-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAKpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,cAAc,CAAC;AAsCtB,qBACa,yBAA0B,YAAW,UAAU;IACjC,UAAU,EAAE,eAAe,CAAC;IACrD,yBAAyB,UAAS;IAC1B,qBAAqB,EAAE,QAAQ,EAAE,CAAM;IACvC,kBAAkB,EAAE,QAAQ,EAAE,CAAM;IAE5C,OAAO;CAIR;AAiED,eAAO,MAAM,2BAA2B,iHAsHtC,CAAC;AAEH,eAAO,MAAM,sBAAsB,EAAE,SAGpC,CAAC"}
@@ -15,10 +15,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
16
16
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
17
17
  import { LibroContextKey } from '@difizen/libro-core';
18
- import { inject, singleton } from '@difizen/mana-app';
18
+ import { inject, singleton, ThemeService } from '@difizen/mana-app';
19
19
  import { getOrigin, prop, useInject } from '@difizen/mana-app';
20
20
  import { l10n } from '@difizen/mana-l10n';
21
- import { Input, Drawer, Table, Segmented } from 'antd';
21
+ import { Input, Drawer, Table, Segmented, ConfigProvider, theme } from 'antd';
22
22
  import { forwardRef, useCallback, useState } from 'react';
23
23
  import { LibroKeybindItems } from "./keybind-instructions-items.js";
24
24
  import "./index.less";
@@ -137,6 +137,7 @@ export var KeybindInstrutionsComponent = /*#__PURE__*/forwardRef(function Keybin
137
137
  segment = _useState2[0],
138
138
  setSegment = _useState2[1];
139
139
  var keybindInstrutionsService = useInject(KeybindInstrutionsService);
140
+ var themeService = useInject(ThemeService);
140
141
  var libroKeybindItems = useInject(LibroKeybindItems);
141
142
  var handleClose = useCallback(function () {
142
143
  close();
@@ -151,70 +152,75 @@ export var KeybindInstrutionsComponent = /*#__PURE__*/forwardRef(function Keybin
151
152
  };
152
153
  var commandModeDataSource = getOrigin(keybindInstrutionsService.searchCommandModeData.length > 0 ? keybindInstrutionsService.searchCommandModeData : libroKeybindItems.commandModeData);
153
154
  var editModeDataSource = getOrigin(keybindInstrutionsService.searchEditModeData.length > 0 ? keybindInstrutionsService.searchEditModeData : libroKeybindItems.editModeData);
154
- return /*#__PURE__*/_jsx("div", {
155
- className: "libro-keybind-instructions-command",
156
- ref: ref,
157
- children: /*#__PURE__*/_jsxs(Drawer, {
158
- title: /*#__PURE__*/_jsx(Segmented, {
159
- value: segment,
160
- onChange: function onChange(value) {
161
- return setSegment(value);
162
- },
163
- options: [{
164
- label: l10n.t('快捷键'),
165
- value: 'keybind'
166
- }, {
167
- label: 'Magic 命令',
168
- value: 'magic'
169
- }]
170
- }),
171
- placement: "right",
172
- onClose: handleClose,
173
- width: "360px",
174
- open: visible,
175
- mask: true,
176
- className: "libro-keybind-instructions-drawer",
177
- maskClosable: true,
178
- children: [segment === 'magic' && /*#__PURE__*/_jsx("div", {
179
- className: "libro-magic-table",
180
- children: /*#__PURE__*/_jsx(Table, {
181
- size: "small",
182
- columns: magicColumns,
183
- dataSource: magics,
184
- pagination: false,
185
- rowKey: "key"
186
- })
187
- }), segment === 'keybind' && /*#__PURE__*/_jsxs(_Fragment, {
188
- children: [/*#__PURE__*/_jsx("div", {
189
- className: "libro-keybind-instructions-command-search",
190
- children: /*#__PURE__*/_jsx(Search, {
191
- placeholder: l10n.t('搜索功能关键字'),
192
- allowClear: true,
193
- bordered: false,
194
- size: "middle",
195
- onSearch: handleSearch
155
+ return /*#__PURE__*/_jsx(ConfigProvider, {
156
+ theme: {
157
+ algorithm: themeService.getCurrentTheme().type === 'dark' ? theme.darkAlgorithm : theme.defaultAlgorithm
158
+ },
159
+ children: /*#__PURE__*/_jsx("div", {
160
+ className: "libro-keybind-instructions-command",
161
+ ref: ref,
162
+ children: /*#__PURE__*/_jsxs(Drawer, {
163
+ title: /*#__PURE__*/_jsx(Segmented, {
164
+ value: segment,
165
+ onChange: function onChange(value) {
166
+ return setSegment(value);
167
+ },
168
+ options: [{
169
+ label: l10n.t('快捷键'),
170
+ value: 'keybind'
171
+ }, {
172
+ label: 'Magic 命令',
173
+ value: 'magic'
174
+ }]
175
+ }),
176
+ placement: "right",
177
+ onClose: handleClose,
178
+ width: "360px",
179
+ open: visible,
180
+ mask: true,
181
+ className: "libro-keybind-instructions-drawer",
182
+ maskClosable: true,
183
+ children: [segment === 'magic' && /*#__PURE__*/_jsx("div", {
184
+ className: "libro-magic-table",
185
+ children: /*#__PURE__*/_jsx(Table, {
186
+ size: "small",
187
+ columns: magicColumns,
188
+ dataSource: magics,
189
+ pagination: false,
190
+ rowKey: "key"
196
191
  })
197
- }), /*#__PURE__*/_jsxs("div", {
198
- className: "libro-keybind-instructions-table",
192
+ }), segment === 'keybind' && /*#__PURE__*/_jsxs(_Fragment, {
199
193
  children: [/*#__PURE__*/_jsx("div", {
200
- className: "libro-command-mode-keybind-instructions-table",
201
- children: /*#__PURE__*/_jsx(Table, {
202
- rowKey: "key",
203
- columns: libroKeybindItems.commandModeActionColumns,
204
- dataSource: commandModeDataSource,
205
- pagination: false
206
- })
207
- }), /*#__PURE__*/_jsx("div", {
208
- className: "libro-edit-mode-keybind-instructions-table",
209
- children: /*#__PURE__*/_jsx(Table, {
210
- rowKey: "key",
211
- columns: libroKeybindItems.editModeActionColumns,
212
- dataSource: editModeDataSource,
213
- pagination: false
194
+ className: "libro-keybind-instructions-command-search",
195
+ children: /*#__PURE__*/_jsx(Search, {
196
+ placeholder: l10n.t('搜索功能关键字'),
197
+ allowClear: true,
198
+ bordered: false,
199
+ size: "middle",
200
+ onSearch: handleSearch
214
201
  })
202
+ }), /*#__PURE__*/_jsxs("div", {
203
+ className: "libro-keybind-instructions-table",
204
+ children: [/*#__PURE__*/_jsx("div", {
205
+ className: "libro-command-mode-keybind-instructions-table",
206
+ children: /*#__PURE__*/_jsx(Table, {
207
+ rowKey: "key",
208
+ columns: libroKeybindItems.commandModeActionColumns,
209
+ dataSource: commandModeDataSource,
210
+ pagination: false
211
+ })
212
+ }), /*#__PURE__*/_jsx("div", {
213
+ className: "libro-edit-mode-keybind-instructions-table",
214
+ children: /*#__PURE__*/_jsx(Table, {
215
+ rowKey: "key",
216
+ columns: libroKeybindItems.editModeActionColumns,
217
+ dataSource: editModeDataSource,
218
+ pagination: false
219
+ })
220
+ })]
215
221
  })]
216
222
  })]
217
- })]
223
+ })
218
224
  })
219
225
  });
220
226
  });
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAiC/C,eAAO,MAAM,kBAAkB,YA2D5B,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAiC/C,eAAO,MAAM,kBAAkB,YA0D5B,CAAC"}
package/es/module.js CHANGED
@@ -9,7 +9,6 @@ import { DisplayDataOutputModule, ErrorOutputModule, StreamOutputModule } from '
9
9
  import { RawCellModule } from '@difizen/libro-raw-cell';
10
10
  import { LibroSearchModule } from '@difizen/libro-search';
11
11
  import { SearchCodeCellModule } from '@difizen/libro-search-code-cell';
12
- import { WidgetModule } from '@difizen/libro-widget';
13
12
  import { ManaModule } from '@difizen/mana-app';
14
13
  import { LibroBetweenCellModule } from "./add-between-cell/index.js";
15
14
  import { JupyterCodeCellModel, JupyterCodeCellView } from "./cell/index.js";
@@ -30,8 +29,8 @@ import { LibroJupyterOutputArea } from "./output/index.js";
30
29
  import { PlotlyModule } from "./rendermime/index.js";
31
30
  import { LibroJupyterColorContribution } from "./theme/index.js";
32
31
  import { KernelStatusSelector, LibroJupyterToolbarContribution, SaveFileErrorContribution } from "./toolbar/index.js";
33
- import { LibroWidgetMimeContribution } from "./widget/index.js";
34
- export var LibroJupyterModule = ManaModule.create().register(JupyterWorkspaceService, LibroJupyterFileService, LibroJupyterCommandContribution, LibroJupyterKeybindingContribution, LibroJupyterToolbarContribution, ConfigAppContribution, SaveFileErrorContribution, LibroKeybindRegistry, LibroJupyterContentContribution, LibroJupyterContentSaveContribution, LibroJupyterOutputArea, LibroJupyterColorContribution, LibroJupyterSettingContribution, JupyterServerLaunchManager, LibroJupyterView, LibroWidgetMimeContribution, {
32
+ import { WidgetModule } from "./widget/index.js";
33
+ export var LibroJupyterModule = ManaModule.create().register(JupyterWorkspaceService, LibroJupyterFileService, LibroJupyterCommandContribution, LibroJupyterKeybindingContribution, LibroJupyterToolbarContribution, ConfigAppContribution, SaveFileErrorContribution, LibroKeybindRegistry, LibroJupyterContentContribution, LibroJupyterContentSaveContribution, LibroJupyterOutputArea, LibroJupyterColorContribution, LibroJupyterSettingContribution, JupyterServerLaunchManager, LibroJupyterView, {
35
34
  token: CellExecutionTimeProvider,
36
35
  useValue: CellExecutionTip
37
36
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"libro-jupyter-outputarea.d.ts","sourceRoot":"","sources":["../../src/output/libro-jupyter-outputarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,uBAAuB,EAEvB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAWtD,qBAEa,sBAAuB,SAAQ,eAAe;IACjD,IAAI,EAAE,uBAAuB,CAAC;IACtC,SAAS,CAAC,YAAY,wBAA+B;gBAErB,MAAM,EAAE,iBAAiB;IAKzD,SAAS;IA6DA,OAAO,IAAI,IAAI;IAKf,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;CAIjD"}
1
+ {"version":3,"file":"libro-jupyter-outputarea.d.ts","sourceRoot":"","sources":["../../src/output/libro-jupyter-outputarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,uBAAuB,EAEvB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAatD,qBAEa,sBAAuB,SAAQ,eAAe;IACjD,IAAI,EAAE,uBAAuB,CAAC;IACtC,SAAS,CAAC,YAAY,wBAA+B;gBAErB,MAAM,EAAE,iBAAiB;IAKzD,SAAS;IAgEA,OAAO,IAAI,IAAI;IAKf,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;CAMjD"}
@@ -21,7 +21,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
21
21
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
22
22
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
23
  import { LibroOutputArea } from '@difizen/libro-core';
24
- import { isDisplayDataMsg, isErrorMsg, isExecuteReplyMsg, isExecuteResultMsg, isStreamMsg, isUpdateDisplayDataMsg } from '@difizen/libro-kernel';
24
+ import { isClearOutputMsg, isDisplayDataMsg, isErrorMsg, isExecuteInputMsg, isExecuteReplyMsg, isExecuteResultMsg, isStreamMsg, isUpdateDisplayDataMsg } from '@difizen/libro-kernel';
25
25
  import { inject, transient, view, ViewOption } from '@difizen/mana-app';
26
26
  export var LibroJupyterOutputArea = (_dec = transient(), _dec2 = view('libro-output-area'), _dec(_class = _dec2(_class = /*#__PURE__*/function (_LibroOutputArea) {
27
27
  _inherits(LibroJupyterOutputArea, _LibroOutputArea);
@@ -43,65 +43,67 @@ export var LibroJupyterOutputArea = (_dec = transient(), _dec2 = view('libro-out
43
43
  cellModel.msgChangeEmitter.event(function (msg) {
44
44
  var transientMsg = msg.content.transient || {};
45
45
  var displayId = transientMsg['display_id'];
46
- if (msg.header.msg_type !== 'status') {
47
- if (msg.header.msg_type === 'execute_input') {
48
- cellModel.executeCount = msg.content.execution_count;
49
- }
50
- if (isDisplayDataMsg(msg) || isStreamMsg(msg) || isErrorMsg(msg) || isExecuteResultMsg(msg)) {
51
- var output = _objectSpread(_objectSpread({}, msg.content), {}, {
52
- output_type: msg.header.msg_type
53
- });
54
- _this2.add(output);
55
- }
56
- if (isUpdateDisplayDataMsg(msg)) {
57
- var _output = _objectSpread(_objectSpread({}, msg.content), {}, {
58
- output_type: 'display_data'
59
- });
60
- var targets = _this2.displayIdMap.get(displayId);
61
- if (targets) {
62
- var _iterator = _createForOfIteratorHelper(targets),
63
- _step;
64
- try {
65
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
66
- var index = _step.value;
67
- _this2.set(index, _output);
68
- }
69
- } catch (err) {
70
- _iterator.e(err);
71
- } finally {
72
- _iterator.f();
46
+ if (isExecuteInputMsg(msg)) {
47
+ cellModel.executeCount = msg.content.execution_count;
48
+ }
49
+ if (isDisplayDataMsg(msg) || isStreamMsg(msg) || isErrorMsg(msg) || isExecuteResultMsg(msg)) {
50
+ var output = _objectSpread(_objectSpread({}, msg.content), {}, {
51
+ output_type: msg.header.msg_type
52
+ });
53
+ _this2.add(output);
54
+ }
55
+ if (isUpdateDisplayDataMsg(msg)) {
56
+ var _output = _objectSpread(_objectSpread({}, msg.content), {}, {
57
+ output_type: 'display_data'
58
+ });
59
+ var targets = _this2.displayIdMap.get(displayId);
60
+ if (targets) {
61
+ var _iterator = _createForOfIteratorHelper(targets),
62
+ _step;
63
+ try {
64
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
65
+ var index = _step.value;
66
+ _this2.set(index, _output);
73
67
  }
68
+ } catch (err) {
69
+ _iterator.e(err);
70
+ } finally {
71
+ _iterator.f();
74
72
  }
75
73
  }
76
- if (displayId && isDisplayDataMsg(msg)) {
77
- var _targets = _this2.displayIdMap.get(displayId) || [];
78
- _targets.push(_this2.outputs.length);
79
- _this2.displayIdMap.set(displayId, _targets);
74
+ }
75
+ if (displayId && isDisplayDataMsg(msg)) {
76
+ var _targets = _this2.displayIdMap.get(displayId) || [];
77
+ _targets.push(_this2.outputs.length);
78
+ _this2.displayIdMap.set(displayId, _targets);
79
+ }
80
+ //Handle an execute reply message.
81
+ if (isExecuteReplyMsg(msg)) {
82
+ var content = msg.content;
83
+ if (content.status !== 'ok') {
84
+ return;
85
+ }
86
+ var payload = content && content.payload;
87
+ if (!payload || !payload.length) {
88
+ return;
80
89
  }
81
- //Handle an execute reply message.
82
- if (isExecuteReplyMsg(msg)) {
83
- var content = msg.content;
84
- if (content.status !== 'ok') {
85
- return;
86
- }
87
- var payload = content && content.payload;
88
- if (!payload || !payload.length) {
89
- return;
90
- }
91
- var pages = payload.filter(function (i) {
92
- return i.source === 'page';
93
- });
94
- if (!pages.length) {
95
- return;
96
- }
97
- var page = JSON.parse(JSON.stringify(pages[0]));
98
- var _output2 = {
99
- output_type: 'display_data',
100
- data: page.data,
101
- metadata: {}
102
- };
103
- _this2.add(_output2);
90
+ var pages = payload.filter(function (i) {
91
+ return i.source === 'page';
92
+ });
93
+ if (!pages.length) {
94
+ return;
104
95
  }
96
+ var page = JSON.parse(JSON.stringify(pages[0]));
97
+ var _output2 = {
98
+ output_type: 'display_data',
99
+ data: page.data,
100
+ metadata: {}
101
+ };
102
+ _this2.add(_output2);
103
+ }
104
+ if (isClearOutputMsg(msg)) {
105
+ var wait = msg.content.wait;
106
+ _this2.clear(wait);
105
107
  }
106
108
  });
107
109
  }
@@ -115,7 +117,9 @@ export var LibroJupyterOutputArea = (_dec = transient(), _dec2 = view('libro-out
115
117
  key: "clear",
116
118
  value: function clear(wait) {
117
119
  _get(_getPrototypeOf(LibroJupyterOutputArea.prototype), "clear", this).call(this, wait);
118
- this.displayIdMap.clear();
120
+ if (!wait) {
121
+ this.displayIdMap.clear();
122
+ }
119
123
  }
120
124
  }]);
121
125
  return LibroJupyterOutputArea;
@@ -1 +1 @@
1
- {"version":3,"file":"save-file-error.d.ts","sourceRoot":"","sources":["../../src/toolbar/save-file-error.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAMnE,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAsBjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,SAGhC,CAAC"}
1
+ {"version":3,"file":"save-file-error.d.ts","sourceRoot":"","sources":["../../src/toolbar/save-file-error.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAOnE,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CA+BjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,SAGhC,CAAC"}
@@ -1,23 +1,30 @@
1
+ import { ThemeService } from '@difizen/mana-app';
1
2
  import { useInject, ViewInstance } from '@difizen/mana-app';
2
- import { Modal } from 'antd';
3
+ import { ConfigProvider, Modal, theme } from 'antd';
3
4
  import { jsx as _jsx } from "react/jsx-runtime";
4
5
  export var SaveFileModalComponent = function SaveFileModalComponent(_ref) {
5
6
  var visible = _ref.visible,
6
7
  close = _ref.close;
7
8
  var libroView = useInject(ViewInstance);
8
- return /*#__PURE__*/_jsx(Modal, {
9
- title: "File Save Error",
10
- open: visible,
11
- onOk: function onOk() {
12
- return close();
9
+ var themeService = useInject(ThemeService);
10
+ return /*#__PURE__*/_jsx(ConfigProvider, {
11
+ theme: {
12
+ algorithm: themeService.getCurrentTheme().type === 'dark' ? theme.darkAlgorithm : theme.defaultAlgorithm
13
13
  },
14
- onCancel: function onCancel() {
15
- return close();
16
- },
17
- width: '400px',
18
- centered: true,
19
- children: /*#__PURE__*/_jsx("p", {
20
- children: "File Save Error for: \"".concat(libroView && libroView.model ? libroView.model.currentFileContents.name : '', "\"")
14
+ children: /*#__PURE__*/_jsx(Modal, {
15
+ title: "File Save Error",
16
+ open: visible,
17
+ onOk: function onOk() {
18
+ return close();
19
+ },
20
+ onCancel: function onCancel() {
21
+ return close();
22
+ },
23
+ width: '400px',
24
+ centered: true,
25
+ children: /*#__PURE__*/_jsx("p", {
26
+ children: "File Save Error for: \"".concat(libroView && libroView.model ? libroView.model.currentFileContents.name : '', "\"")
27
+ })
21
28
  })
22
29
  });
23
30
  };
@@ -0,0 +1,10 @@
1
+ import { ViewManager } from '@difizen/mana-app';
2
+ import type { IWidgetViewProps } from '../protocol.js';
3
+ import { WidgetViewContribution } from '../protocol.js';
4
+ import { VBoxWidget } from './view.js';
5
+ export declare class VBoxWidgetContribution implements WidgetViewContribution {
6
+ viewManager: ViewManager;
7
+ canHandle: (attributes: any) => 1 | 100;
8
+ factory(props: IWidgetViewProps): Promise<VBoxWidget>;
9
+ }
10
+ //# sourceMappingURL=contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contribution.d.ts","sourceRoot":"","sources":["../../../src/widget/box/contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,mBAAmB,CAAC;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,qBACa,sBAAuB,YAAW,sBAAsB;IAC9C,WAAW,EAAE,WAAW,CAAC;IAC9C,SAAS,eAAgB,GAAG,aAc1B;IACF,OAAO,CAAC,KAAK,EAAE,gBAAgB;CAGhC"}
@@ -0,0 +1,48 @@
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, _dec2, _class, _class2, _descriptor;
3
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ 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); } }
6
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
9
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
10
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
11
+ import { ViewManager, inject, singleton } from '@difizen/mana-app';
12
+ import { WidgetViewContribution } from "../protocol.js";
13
+ import { VBoxWidget } from "./view.js";
14
+ export var VBoxWidgetContribution = (_dec = singleton({
15
+ contrib: WidgetViewContribution
16
+ }), _dec2 = inject(ViewManager), _dec(_class = (_class2 = /*#__PURE__*/function () {
17
+ function VBoxWidgetContribution() {
18
+ _classCallCheck(this, VBoxWidgetContribution);
19
+ _initializerDefineProperty(this, "viewManager", _descriptor, this);
20
+ this.canHandle = function (attributes) {
21
+ if (attributes._model_name === 'VBoxModel') {
22
+ return 100;
23
+ }
24
+ if (attributes.__view_name === 'VBoxView') {
25
+ return 100;
26
+ }
27
+ if (attributes._model_name === 'HBoxModel') {
28
+ return 100;
29
+ }
30
+ if (attributes.__view_name === 'HBoxView') {
31
+ return 100;
32
+ }
33
+ return 1;
34
+ };
35
+ }
36
+ _createClass(VBoxWidgetContribution, [{
37
+ key: "factory",
38
+ value: function factory(props) {
39
+ return this.viewManager.getOrCreateView(VBoxWidget, props);
40
+ }
41
+ }]);
42
+ return VBoxWidgetContribution;
43
+ }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "viewManager", [_dec2], {
44
+ configurable: true,
45
+ enumerable: true,
46
+ writable: true,
47
+ initializer: null
48
+ })), _class2)) || _class);
@@ -0,0 +1,3 @@
1
+ export * from './contribution.js';
2
+ export * from './view.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widget/box/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./contribution.js";
2
+ export * from "./view.js";
@@ -0,0 +1,3 @@
1
+ .libro-widget-hbox {
2
+ display: flex;
3
+ }
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" resolution-mode="require"/>
2
+ import { LibroContextKey } from '@difizen/libro-core';
3
+ import type { IWidgetViewProps, WidgetState } from '../protocol.js';
4
+ import { WidgetView } from '../widget-view.js';
5
+ import './index.less';
6
+ export declare const LibroWidgetBoxComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
7
+ interface BoxState extends WidgetState {
8
+ children: string[];
9
+ box_style?: string;
10
+ }
11
+ export declare class VBoxWidget extends WidgetView {
12
+ view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
13
+ state: BoxState;
14
+ constructor(props: IWidgetViewProps, libroContextKey: LibroContextKey);
15
+ protected initialize(props: IWidgetViewProps): void;
16
+ getCls: () => "" | "libro-widget-hbox" | "libro-widget-vbox";
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/widget/box/view.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AActD,OAAO,KAAK,EAAY,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,cAAc,CAAC;AAmCtB,eAAO,MAAM,uBAAuB,0FAiBnC,CAAC;AAEF,UAAU,QAAS,SAAQ,WAAW;IACpC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAEa,UAAW,SAAQ,UAAU;IAC/B,IAAI,2FAA2B;IAG/B,KAAK,EAAE,QAAQ,CAGtB;gBAGoB,KAAK,EAAE,gBAAgB,EAClB,eAAe,EAAE,eAAe;IAM3D,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAKnD,MAAM,uDAQJ;CACH"}