@difizen/libro-prompt-cell 0.3.16 → 1.0.1

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 (35) hide show
  1. package/es/code-block.js +1 -1
  2. package/es/input-handler/chat-record-input.js +2 -2
  3. package/es/input-handler/variable-name-input.js +2 -2
  4. package/es/interpreter-code-output-rendermime-contribution.js +1 -1
  5. package/es/libro-formatter-prompt-magic-contribution.js +1 -1
  6. package/es/module.d.ts +1 -1
  7. package/es/module.d.ts.map +1 -1
  8. package/es/module.js +1 -1
  9. package/es/prompt-cell-command-contribution.d.ts +2 -2
  10. package/es/prompt-cell-command-contribution.d.ts.map +1 -1
  11. package/es/prompt-cell-command-contribution.js +1 -1
  12. package/es/prompt-cell-contribution.js +2 -2
  13. package/es/prompt-cell-model.d.ts +3 -3
  14. package/es/prompt-cell-model.d.ts.map +1 -1
  15. package/es/prompt-cell-model.js +5 -5
  16. package/es/prompt-cell-script.js +1 -1
  17. package/es/prompt-cell-view.d.ts +1 -1
  18. package/es/prompt-cell-view.d.ts.map +1 -1
  19. package/es/prompt-cell-view.js +2 -2
  20. package/es/prompt-output-render.js +2 -2
  21. package/es/prompt-output-rendermime-contribution.js +1 -1
  22. package/package.json +6 -8
  23. package/src/code-block.tsx +1 -1
  24. package/src/input-handler/chat-record-input.tsx +2 -2
  25. package/src/input-handler/variable-name-input.tsx +2 -2
  26. package/src/interpreter-code-output-rendermime-contribution.ts +1 -1
  27. package/src/libro-formatter-prompt-magic-contribution.ts +1 -1
  28. package/src/module.ts +1 -1
  29. package/src/prompt-cell-command-contribution.ts +2 -2
  30. package/src/prompt-cell-contribution.ts +2 -2
  31. package/src/prompt-cell-model.ts +6 -6
  32. package/src/prompt-cell-script.ts +1 -1
  33. package/src/prompt-cell-view.tsx +2 -2
  34. package/src/prompt-output-render.tsx +2 -2
  35. package/src/prompt-output-rendermime-contribution.ts +1 -1
package/es/code-block.js CHANGED
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { CopyOutlined, EditOutlined } from '@ant-design/icons';
8
8
  import { copy2clipboard } from '@difizen/libro-jupyter';
9
- import { useInject, ViewInstance } from '@difizen/mana-app';
9
+ import { useInject, ViewInstance } from '@difizen/libro-common/app';
10
10
  import { Collapse } from 'antd';
11
11
  import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
12
12
  import { LibroPromptCellView } from "./prompt-cell-view.js";
@@ -6,8 +6,8 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { EditFilled } from '@ant-design/icons';
8
8
  import { LibroContextKey } from '@difizen/libro-core';
9
- import { useInject } from '@difizen/mana-app';
10
- import { l10n } from '@difizen/mana-l10n';
9
+ import { useInject } from '@difizen/libro-common/app';
10
+ import { l10n } from '@difizen/libro-common/l10n';
11
11
  import { Select, Tag } from 'antd';
12
12
  import classNames from 'classnames';
13
13
  import { useEffect } from 'react';
@@ -12,8 +12,8 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import { EditFilled } from '@ant-design/icons';
14
14
  import { LibroContextKey } from '@difizen/libro-core';
15
- import { useInject } from '@difizen/mana-app';
16
- import { l10n } from '@difizen/mana-l10n';
15
+ import { useInject } from '@difizen/libro-common/app';
16
+ import { l10n } from '@difizen/libro-common/l10n';
17
17
  import { Input, Popover } from 'antd';
18
18
  import classNames from 'classnames';
19
19
  import { useEffect } from 'react';
@@ -6,7 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
6
6
  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); }
7
7
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
8
  import { RenderMimeContribution } from '@difizen/libro-jupyter';
9
- import { singleton } from '@difizen/mana-app';
9
+ import { singleton } from '@difizen/libro-common/app';
10
10
  import { InterpreterCodeOutputRender } from "./interpreter-code-output-render.js";
11
11
  export var LibroInterpreterCodeOutputMimeTypeContribution = (_dec = singleton({
12
12
  contrib: RenderMimeContribution
@@ -8,7 +8,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  /* eslint-disable @typescript-eslint/no-unused-vars */
9
9
 
10
10
  import { concatMultilineString, DefaultDecodedFormatter, FormatterContribution } from '@difizen/libro-jupyter';
11
- import { singleton } from '@difizen/mana-app';
11
+ import { singleton } from '@difizen/libro-common/app';
12
12
  export var FormatterPromptMagicContribution = (_dec = singleton({
13
13
  contrib: FormatterContribution
14
14
  }), _dec(_class = /*#__PURE__*/_createClass(function FormatterPromptMagicContribution() {
package/es/module.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ManaModule } from '@difizen/mana-app';
1
+ import { ManaModule } from '@difizen/libro-common/app';
2
2
  export declare const LibroPromptCellModuleSetting: {
3
3
  loadable: boolean;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAY/C,eAAO,MAAM,4BAA4B;;CAExC,CAAC;AAEF,eAAO,MAAM,qBAAqB,YA0B2B,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAYvD,eAAO,MAAM,4BAA4B;;CAExC,CAAC;AAEF,eAAO,MAAM,qBAAqB,YA0B2B,CAAC"}
package/es/module.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CellOptions, LibroModule, OutputModule } from '@difizen/libro-core';
2
2
  import { LibroRenderMimeModule } from '@difizen/libro-rendermime';
3
- import { ManaModule } from '@difizen/mana-app';
3
+ import { ManaModule } from '@difizen/libro-common/app';
4
4
  import { LibroInterpreterCodeOutputMimeTypeContribution } from "./interpreter-code-output-rendermime-contribution.js";
5
5
  import { FormatterPromptMagicContribution } from "./libro-formatter-prompt-magic-contribution.js";
6
6
  import { LibroPromptCellCommandContribution } from "./prompt-cell-command-contribution.js";
@@ -1,6 +1,6 @@
1
1
  import { LibroCommandRegister } from '@difizen/libro-core';
2
- import type { CommandRegistry } from '@difizen/mana-app';
3
- import { CommandContribution, KeybindingContribution, KeybindingRegistry } from '@difizen/mana-app';
2
+ import type { CommandRegistry } from '@difizen/libro-common/app';
3
+ import { CommandContribution, KeybindingContribution, KeybindingRegistry } from '@difizen/libro-common/app';
4
4
  export declare const LibroPromptCellCommands: {
5
5
  ChangeCellToPrompt: {
6
6
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-cell-command-contribution.d.ts","sourceRoot":"","sources":["../src/prompt-cell-command-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAA4B,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACL,mBAAmB,EAEnB,sBAAsB,EACtB,kBAAkB,EAEnB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,uBAAuB;;;;;;;CAOnC,CAAC;AAEF,qBACa,kCACX,YAAW,mBAAmB,EAAE,sBAAsB;IAGtD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAC;gBACd,eAAe,EAAE,kBAAkB;IAM3E,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IAyBhD,mBAAmB,CAAC,WAAW,EAAE,kBAAkB;CAGpD"}
1
+ {"version":3,"file":"prompt-cell-command-contribution.d.ts","sourceRoot":"","sources":["../src/prompt-cell-command-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAA4B,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,mBAAmB,EAEnB,sBAAsB,EACtB,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,uBAAuB;;;;;;;CAOnC,CAAC;AAEF,qBACa,kCACX,YAAW,mBAAmB,EAAE,sBAAsB;IAGtD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAC;gBACd,eAAe,EAAE,kBAAkB;IAM3E,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IAyBhD,mBAAmB,CAAC,WAAW,EAAE,kBAAkB;CAGpD"}
@@ -9,7 +9,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9
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
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
11
  import { LibroCommandRegister, LibroCellView, LibroView } from '@difizen/libro-core';
12
- import { CommandContribution, inject, KeybindingContribution, KeybindingRegistry, singleton } from '@difizen/mana-app';
12
+ import { CommandContribution, inject, KeybindingContribution, KeybindingRegistry, singleton } from '@difizen/libro-common/app';
13
13
  export var LibroPromptCellCommands = {
14
14
  ChangeCellToPrompt: {
15
15
  id: 'notebook:change-cell-to-prompt',
@@ -13,8 +13,8 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
13
13
  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.'); }
14
14
  import { LanguageSpecContribution } from '@difizen/libro-code-editor';
15
15
  import { CellViewContribution, CellModelContribution } from '@difizen/libro-core';
16
- import { inject } from '@difizen/mana-app';
17
- import { singleton } from '@difizen/mana-app';
16
+ import { inject } from '@difizen/libro-common/app';
17
+ import { singleton } from '@difizen/libro-common/app';
18
18
  import { LibroPromptCellModelFactory } from "./prompt-cell-protocol.js";
19
19
  import { LibroPromptCellView } from "./prompt-cell-view.js";
20
20
  export var PromptCellContribution = (_dec = singleton({
@@ -3,9 +3,9 @@ import type { ExecutableCellModel } from '@difizen/libro-core';
3
3
  import { LibroCellModel } from '@difizen/libro-core';
4
4
  import { CellOptions } from '@difizen/libro-core';
5
5
  import type { ExecutionMeta } from '@difizen/libro-jupyter';
6
- import { Emitter } from '@difizen/mana-app';
7
- import { ViewManager } from '@difizen/mana-app';
8
- import type { Event as ManaEvent } from '@difizen/mana-app';
6
+ import { Emitter } from '@difizen/libro-common/app';
7
+ import { ViewManager } from '@difizen/libro-common/app';
8
+ import type { Event as ManaEvent } from '@difizen/libro-common/app';
9
9
  import type { PromptDecodedFormatter } from './libro-formatter-prompt-magic-contribution.js';
10
10
  import type { InterpreterMeta } from './prompt-cell-protocol.js';
11
11
  export interface PromptCellMetadata extends ICodeCellMetadata {
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-cell-model.d.ts","sourceRoot":"","sources":["../src/prompt-cell-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,iBAAiB,EAClB,MAAM,uBAAu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BACa,oBACX,SAAQ,cACR,YAAW,mBAAmB;IAG9B,YAAY,EAAE,cAAc,CAAC;IAG7B,kBAAkB,UAAS;IAE3B,gBAAgB,UAAS;IAEhB,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE/C,eAAe,UAAS;IAGxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,MAAM,SAAM;IAEZ,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,kBAAkB,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IAGzD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAG7B,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,OAAO,CAAC;IAEnB,eAAe,EAAE,OAAO,CAAC;IAEzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,UAAS;IAG7B,gBAAgB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAE/B,IAAI,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,CAE9B;IAED,IAAa,YAAY,IAcO,sBAAsB,CAFrD;IAED,IAAa,YAAY,CAAC,IAAI,EAAE,sBAAsB,EASrD;IAED,WAAW,EAAE,WAAW,CAAC;gBAGF,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,WAAW;IAkBtC,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IAgB7C,cAAc,IAAI,IAAI;IAKb,OAAO;IAKhB,SAAS;CAGV"}
@@ -22,11 +22,11 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
22
22
  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.'); }
23
23
  import { LibroCellModel } from '@difizen/libro-core';
24
24
  import { CellOptions } from '@difizen/libro-core';
25
- import { Emitter } from '@difizen/mana-app';
26
- import { transient } from '@difizen/mana-app';
27
- import { prop } from '@difizen/mana-app';
28
- import { ViewManager } from '@difizen/mana-app';
29
- import { inject } from '@difizen/mana-app';
25
+ import { Emitter } from '@difizen/libro-common/app';
26
+ import { transient } from '@difizen/libro-common/app';
27
+ import { prop } from '@difizen/libro-common/app';
28
+ import { ViewManager } from '@difizen/libro-common/app';
29
+ import { inject } from '@difizen/libro-common/app';
30
30
  export var LibroPromptCellModel = (_dec = transient(), _dec2 = prop(), _dec3 = prop(), _dec4 = prop(), _dec5 = prop(), _dec6 = prop(), _dec7 = prop(), _dec8 = prop(), _dec9 = prop(), _dec10 = prop(), _dec11 = prop(), _dec12 = prop(), _dec13 = prop(), _dec14 = prop(), _dec15 = prop(), _dec16 = prop(), _dec17 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function (_LibroCellModel) {
31
31
  _inherits(LibroPromptCellModel, _LibroCellModel);
32
32
  var _super = _createSuper(LibroPromptCellModel);
@@ -5,7 +5,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  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); }
7
7
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
- import { singleton } from '@difizen/mana-app';
8
+ import { singleton } from '@difizen/libro-common/app';
9
9
  export var PromptScript = (_dec = singleton(), _dec(_class = /*#__PURE__*/_createClass(function PromptScript() {
10
10
  _classCallCheck(this, PromptScript);
11
11
  this.getChatObjects = "from libro_ai import chat_object_manager\nchat_object_manager.dump_kernel_list_json()";
@@ -2,7 +2,7 @@ import type { IRange } from '@difizen/libro-code-editor';
2
2
  import type { IOutput } from '@difizen/libro-common';
3
3
  import type { KernelMessage, LibroCell, CellViewOptions } from '@difizen/libro-jupyter';
4
4
  import { CellService, LibroEditableExecutableCellView, LibroOutputArea } from '@difizen/libro-jupyter';
5
- import { ViewManager, Deferred } from '@difizen/mana-app';
5
+ import { ViewManager, Deferred } from '@difizen/libro-common/app';
6
6
  import type { DefaultOptionType } from 'antd/es/select/index.js';
7
7
  import React from 'react';
8
8
  import { LibroPromptCellModel } from './prompt-cell-model.js';
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-cell-view.d.ts","sourceRoot":"","sources":["../src/prompt-cell-view.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAa,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAEV,aAAa,EAEb,SAAS,EACT,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAGL,WAAW,EACX,+BAA+B,EAC/B,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAQL,WAAW,EAIX,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,SAAS,GAAG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iBAAiB,SAAU,UAAU;;;;;MAOnC;IAEF,mBAAmB,aACP,cAAc,aAAa,eACxB,MAAM,KAAK,IAAI,UA6B5B;IAEF,0BAA0B,kBAAmB,MAAM,aAQjD;IACF,qBAAqB,UAAW,MAAM,WAAW,iBAAiB,UAKhE;IACF,wBAAwB,WAAY,MAAM,UAExC;IACF,kBAAkB,UAAW,MAAM,GAAG,SAAS,UAE7C;CACH"}
@@ -38,8 +38,8 @@ import { MIME } from '@difizen/libro-common';
38
38
  import { isOutput } from '@difizen/libro-common';
39
39
  import { KernelError, LibroJupyterModel, CellService, LibroEditableExecutableCellView, LibroOutputArea } from '@difizen/libro-jupyter';
40
40
  import { ChatComponents } from '@difizen/magent-chat';
41
- import { getOrigin, inject, prop, transient, useInject, view, ViewInstance, ViewManager, ViewOption, ViewRender, watch, Deferred } from '@difizen/mana-app';
42
- import { l10n } from '@difizen/mana-l10n';
41
+ import { getOrigin, inject, prop, transient, useInject, view, ViewInstance, ViewManager, ViewOption, ViewRender, watch, Deferred } from '@difizen/libro-common/app';
42
+ import { l10n } from '@difizen/libro-common/l10n';
43
43
  import { Select, Tag } from 'antd';
44
44
  import classNames from 'classnames';
45
45
  import React, { useEffect, useState } from 'react';
@@ -12,8 +12,8 @@ import { copy2clipboard } from '@difizen/libro-common';
12
12
  import { concatMultilineString } from '@difizen/libro-common';
13
13
  import { NotebookCommands } from '@difizen/libro-jupyter';
14
14
  import { ChatComponents } from '@difizen/magent-chat';
15
- import { CommandRegistry, useInject } from '@difizen/mana-app';
16
- import { l10n } from '@difizen/mana-l10n';
15
+ import { CommandRegistry, useInject } from '@difizen/libro-common/app';
16
+ import { l10n } from '@difizen/libro-common/l10n';
17
17
  import React, { useState } from 'react';
18
18
  import breaks from 'remark-breaks';
19
19
  import remarkGfm from 'remark-gfm';
@@ -6,7 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
6
6
  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); }
7
7
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
8
  import { RenderMimeContribution } from '@difizen/libro-jupyter';
9
- import { singleton } from '@difizen/mana-app';
9
+ import { singleton } from '@difizen/libro-common/app';
10
10
  import { PromptOutputRender } from "./prompt-output-render.js";
11
11
  export var LibroPromptOutputMimeTypeContribution = (_dec = singleton({
12
12
  contrib: RenderMimeContribution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-prompt-cell",
3
- "version": "0.3.16",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -32,14 +32,12 @@
32
32
  "src"
33
33
  ],
34
34
  "dependencies": {
35
- "@difizen/libro-code-editor": "^0.3.16",
36
- "@difizen/libro-jupyter": "^0.3.16",
37
- "@difizen/libro-rendermime": "^0.3.16",
38
- "@difizen/libro-common": "^0.3.16",
39
- "@difizen/libro-core": "^0.3.16",
35
+ "@difizen/libro-code-editor": "^1.0.1",
36
+ "@difizen/libro-jupyter": "^1.0.1",
37
+ "@difizen/libro-rendermime": "^1.0.1",
38
+ "@difizen/libro-common": "^1.0.1",
39
+ "@difizen/libro-core": "^1.0.1",
40
40
  "@ant-design/icons": "^5.1.0",
41
- "@difizen/mana-l10n": "latest",
42
- "@difizen/mana-app": "latest",
43
41
  "@difizen/magent-chat": "^0.1.27",
44
42
  "react-syntax-highlighter": "^15.5.0",
45
43
  "remark-breaks": "^4.0.0",
@@ -1,7 +1,7 @@
1
1
  import { CopyOutlined, EditOutlined } from '@ant-design/icons';
2
2
  import type { DisplayDataOutputModel } from '@difizen/libro-jupyter';
3
3
  import { copy2clipboard } from '@difizen/libro-jupyter';
4
- import { useInject, ViewInstance } from '@difizen/mana-app';
4
+ import { useInject, ViewInstance } from '@difizen/libro-common/app';
5
5
  import { Collapse } from 'antd';
6
6
  import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { EditFilled } from '@ant-design/icons';
2
2
  import { LibroContextKey } from '@difizen/libro-core';
3
- import { useInject } from '@difizen/mana-app';
4
- import { l10n } from '@difizen/mana-l10n';
3
+ import { useInject } from '@difizen/libro-common/app';
4
+ import { l10n } from '@difizen/libro-common/l10n';
5
5
  import { Select, Tag } from 'antd';
6
6
  import classNames from 'classnames';
7
7
  import type { BaseSelectRef } from 'rc-select';
@@ -1,7 +1,7 @@
1
1
  import { EditFilled } from '@ant-design/icons';
2
2
  import { LibroContextKey } from '@difizen/libro-core';
3
- import { useInject } from '@difizen/mana-app';
4
- import { l10n } from '@difizen/mana-l10n';
3
+ import { useInject } from '@difizen/libro-common/app';
4
+ import { l10n } from '@difizen/libro-common/l10n';
5
5
  import { Input, Popover } from 'antd';
6
6
  import classNames from 'classnames';
7
7
  import type { FC } from 'react';
@@ -1,6 +1,6 @@
1
1
  import type { BaseOutputView } from '@difizen/libro-jupyter';
2
2
  import { RenderMimeContribution } from '@difizen/libro-jupyter';
3
- import { singleton } from '@difizen/mana-app';
3
+ import { singleton } from '@difizen/libro-common/app';
4
4
 
5
5
  import { InterpreterCodeOutputRender } from './interpreter-code-output-render.js';
6
6
 
@@ -6,7 +6,7 @@ import {
6
6
  DefaultDecodedFormatter,
7
7
  FormatterContribution,
8
8
  } from '@difizen/libro-jupyter';
9
- import { singleton } from '@difizen/mana-app';
9
+ import { singleton } from '@difizen/libro-common/app';
10
10
 
11
11
  export interface PromptDecodedFormatter extends DefaultDecodedFormatter {
12
12
  modelType?: string;
package/src/module.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CellOptions, LibroModule, OutputModule } from '@difizen/libro-core';
2
2
  import { LibroRenderMimeModule } from '@difizen/libro-rendermime';
3
- import { ManaModule } from '@difizen/mana-app';
3
+ import { ManaModule } from '@difizen/libro-common/app';
4
4
 
5
5
  import { LibroInterpreterCodeOutputMimeTypeContribution } from './interpreter-code-output-rendermime-contribution.js';
6
6
  import { FormatterPromptMagicContribution } from './libro-formatter-prompt-magic-contribution.js';
@@ -1,13 +1,13 @@
1
1
  import type { CellView, NotebookView } from '@difizen/libro-core';
2
2
  import { LibroCommandRegister, LibroCellView, LibroView } from '@difizen/libro-core';
3
- import type { CommandRegistry } from '@difizen/mana-app';
3
+ import type { CommandRegistry } from '@difizen/libro-common/app';
4
4
  import {
5
5
  CommandContribution,
6
6
  inject,
7
7
  KeybindingContribution,
8
8
  KeybindingRegistry,
9
9
  singleton,
10
- } from '@difizen/mana-app';
10
+ } from '@difizen/libro-common/app';
11
11
 
12
12
  export const LibroPromptCellCommands = {
13
13
  ChangeCellToPrompt: {
@@ -3,8 +3,8 @@ import { LanguageSpecContribution } from '@difizen/libro-code-editor';
3
3
  import type { CellModel } from '@difizen/libro-core';
4
4
  import type { CellMeta, CellOptions } from '@difizen/libro-core';
5
5
  import { CellViewContribution, CellModelContribution } from '@difizen/libro-core';
6
- import { inject } from '@difizen/mana-app';
7
- import { singleton } from '@difizen/mana-app';
6
+ import { inject } from '@difizen/libro-common/app';
7
+ import { singleton } from '@difizen/libro-common/app';
8
8
 
9
9
  import { LibroPromptCellModelFactory } from './prompt-cell-protocol.js';
10
10
  import { LibroPromptCellView } from './prompt-cell-view.js';
@@ -7,12 +7,12 @@ import type { ExecutableCellModel } from '@difizen/libro-core';
7
7
  import { LibroCellModel } from '@difizen/libro-core';
8
8
  import { CellOptions } from '@difizen/libro-core';
9
9
  import type { ExecutionMeta } from '@difizen/libro-jupyter';
10
- import { Emitter } from '@difizen/mana-app';
11
- import { transient } from '@difizen/mana-app';
12
- import { prop } from '@difizen/mana-app';
13
- import { ViewManager } from '@difizen/mana-app';
14
- import { inject } from '@difizen/mana-app';
15
- import type { Event as ManaEvent } from '@difizen/mana-app';
10
+ import { Emitter } from '@difizen/libro-common/app';
11
+ import { transient } from '@difizen/libro-common/app';
12
+ import { prop } from '@difizen/libro-common/app';
13
+ import { ViewManager } from '@difizen/libro-common/app';
14
+ import { inject } from '@difizen/libro-common/app';
15
+ import type { Event as ManaEvent } from '@difizen/libro-common/app';
16
16
 
17
17
  import type { PromptDecodedFormatter } from './libro-formatter-prompt-magic-contribution.js';
18
18
  import type { InterpreterMeta } from './prompt-cell-protocol.js';
@@ -1,4 +1,4 @@
1
- import { singleton } from '@difizen/mana-app';
1
+ import { singleton } from '@difizen/libro-common/app';
2
2
 
3
3
  @singleton()
4
4
  export class PromptScript {
@@ -31,8 +31,8 @@ import {
31
31
  ViewRender,
32
32
  watch,
33
33
  Deferred,
34
- } from '@difizen/mana-app';
35
- import { l10n } from '@difizen/mana-l10n';
34
+ } from '@difizen/libro-common/app';
35
+ import { l10n } from '@difizen/libro-common/l10n';
36
36
  import { Select, Tag } from 'antd';
37
37
  import type { DefaultOptionType } from 'antd/es/select/index.js';
38
38
  import classNames from 'classnames';
@@ -4,8 +4,8 @@ import { concatMultilineString } from '@difizen/libro-common';
4
4
  import type { BaseOutputView } from '@difizen/libro-jupyter';
5
5
  import { NotebookCommands } from '@difizen/libro-jupyter';
6
6
  import { ChatComponents } from '@difizen/magent-chat';
7
- import { CommandRegistry, useInject } from '@difizen/mana-app';
8
- import { l10n } from '@difizen/mana-l10n';
7
+ import { CommandRegistry, useInject } from '@difizen/libro-common/app';
8
+ import { l10n } from '@difizen/libro-common/l10n';
9
9
  import React, { useState } from 'react';
10
10
  import breaks from 'remark-breaks';
11
11
  import remarkGfm from 'remark-gfm';
@@ -1,6 +1,6 @@
1
1
  import type { BaseOutputView } from '@difizen/libro-jupyter';
2
2
  import { RenderMimeContribution } from '@difizen/libro-jupyter';
3
- import { singleton } from '@difizen/mana-app';
3
+ import { singleton } from '@difizen/libro-common/app';
4
4
 
5
5
  import { PromptOutputRender } from './prompt-output-render.js';
6
6