@difizen/libro-prompt-cell 0.2.44 → 0.3.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.
package/es/module.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  import { ManaModule } from '@difizen/mana-app';
2
+ export declare const LibroPromptCellModuleSetting: {
3
+ loadable: boolean;
4
+ };
2
5
  export declare const LibroPromptCellModule: ManaModule;
3
6
  //# sourceMappingURL=module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAW/C,eAAO,MAAM,qBAAqB,YAwB2B,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAW/C,eAAO,MAAM,4BAA4B;;CAExC,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAyB2B,CAAC"}
package/es/module.js CHANGED
@@ -9,6 +9,9 @@ import { LibroPromptCellModelFactory } from "./prompt-cell-protocol.js";
9
9
  import { PromptScript } from "./prompt-cell-script.js";
10
10
  import { LibroPromptCellView } from "./prompt-cell-view.js";
11
11
  import { LibroPromptOutputMimeTypeContribution } from "./prompt-output-rendermime-contribution.js";
12
+ export var LibroPromptCellModuleSetting = {
13
+ loadable: true
14
+ };
12
15
  export var LibroPromptCellModule = ManaModule.create().register(PromptCellContribution, PromptScript, LibroPromptCellView, LibroPromptCellModel, LibroPromptOutputMimeTypeContribution, LibroPromptCellCommandContribution, FormatterPromptMagicContribution, {
13
16
  token: LibroPromptCellModelFactory,
14
17
  useFactory: function useFactory(ctx) {
@@ -22,4 +25,6 @@ export var LibroPromptCellModule = ManaModule.create().register(PromptCellContri
22
25
  return model;
23
26
  };
24
27
  }
28
+ }).canload(function () {
29
+ return Promise.resolve(LibroPromptCellModuleSetting.loadable);
25
30
  }).dependOn(LibroModule, OutputModule, LibroRenderMimeModule);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-prompt-cell",
3
- "version": "0.2.44",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -32,11 +32,11 @@
32
32
  "src"
33
33
  ],
34
34
  "dependencies": {
35
- "@difizen/libro-code-editor": "^0.2.44",
36
- "@difizen/libro-jupyter": "^0.2.44",
37
- "@difizen/libro-rendermime": "^0.2.44",
38
- "@difizen/libro-common": "^0.2.44",
39
- "@difizen/libro-core": "^0.2.44",
35
+ "@difizen/libro-code-editor": "^0.3.0",
36
+ "@difizen/libro-jupyter": "^0.3.0",
37
+ "@difizen/libro-rendermime": "^0.3.0",
38
+ "@difizen/libro-common": "^0.3.0",
39
+ "@difizen/libro-core": "^0.3.0",
40
40
  "@ant-design/icons": "^5.1.0",
41
41
  "@difizen/mana-l10n": "latest",
42
42
  "@difizen/mana-app": "latest",
package/src/module.ts CHANGED
@@ -11,6 +11,10 @@ import { PromptScript } from './prompt-cell-script.js';
11
11
  import { LibroPromptCellView } from './prompt-cell-view.js';
12
12
  import { LibroPromptOutputMimeTypeContribution } from './prompt-output-rendermime-contribution.js';
13
13
 
14
+ export const LibroPromptCellModuleSetting = {
15
+ loadable: true,
16
+ };
17
+
14
18
  export const LibroPromptCellModule = ManaModule.create()
15
19
  .register(
16
20
  PromptCellContribution,
@@ -35,4 +39,5 @@ export const LibroPromptCellModule = ManaModule.create()
35
39
  },
36
40
  },
37
41
  )
42
+ .canload(() => Promise.resolve(LibroPromptCellModuleSetting.loadable))
38
43
  .dependOn(LibroModule, OutputModule, LibroRenderMimeModule);