@difizen/libro-sql-cell 0.3.3 → 1.0.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.
@@ -9,7 +9,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
9
9
 
10
10
  import { concatMultilineString } from '@difizen/libro-common';
11
11
  import { FormatterContribution } from '@difizen/libro-jupyter';
12
- import { singleton } from '@difizen/mana-app';
12
+ import { singleton } from '@difizen/libro-common/app';
13
13
  export var FormatterSqlMagicContribution = (_dec = singleton({
14
14
  contrib: FormatterContribution
15
15
  }), _dec(_class = /*#__PURE__*/_createClass(function FormatterSqlMagicContribution() {
@@ -10,7 +10,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
10
10
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
11
  /* eslint-disable @typescript-eslint/no-unused-vars */
12
12
  import { FormatterTransContribution } from '@difizen/libro-jupyter';
13
- import { singleton } from '@difizen/mana-app';
13
+ import { singleton } from '@difizen/libro-common/app';
14
14
  export var FormatterStringTransSqlContribution = (_dec = singleton({
15
15
  contrib: FormatterTransContribution
16
16
  }), _dec(_class = /*#__PURE__*/_createClass(function FormatterStringTransSqlContribution() {
@@ -1,5 +1,5 @@
1
- import type { ColorRegistry } from '@difizen/mana-app';
2
- import { ColorContribution } from '@difizen/mana-app';
1
+ import type { ColorRegistry } from '@difizen/libro-common/app';
2
+ import { ColorContribution } from '@difizen/libro-common/app';
3
3
  export declare class LibroSQLCellColorRegistry implements ColorContribution {
4
4
  registerColors(colors: ColorRegistry): void;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"libro-sql-cell-color-registry.d.ts","sourceRoot":"","sources":["../src/libro-sql-cell-color-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAS,iBAAiB,EAAa,MAAM,mBAAmB,CAAC;AAExE,qBACa,yBAA0B,YAAW,iBAAiB;IACjE,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CA6B5C"}
1
+ {"version":3,"file":"libro-sql-cell-color-registry.d.ts","sourceRoot":"","sources":["../src/libro-sql-cell-color-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAS,iBAAiB,EAAa,MAAM,2BAA2B,CAAC;AAEhF,qBACa,yBAA0B,YAAW,iBAAiB;IACjE,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CA6B5C"}
@@ -5,7 +5,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5
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
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
7
  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); }
8
- import { Color, ColorContribution, singleton } from '@difizen/mana-app';
8
+ import { Color, ColorContribution, singleton } from '@difizen/libro-common/app';
9
9
  export var LibroSQLCellColorRegistry = (_dec = singleton({
10
10
  contrib: ColorContribution
11
11
  }), _dec(_class = /*#__PURE__*/function () {
@@ -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 { CellModelContribution, CellViewContribution } from '@difizen/libro-jupyter';
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 { LibroSqlCellModelFactory } from "./libro-sql-cell-protocol.js";
19
19
  import { LibroSqlCellView } from "./libro-sql-cell-view.js";
20
20
  export var SqlCellContribution = (_dec = singleton({
@@ -2,8 +2,8 @@ import type { ICellMetadata, ICodeCell, ICodeCellMetadata } from '@difizen/libro
2
2
  import type { ExecutionCount } from '@difizen/libro-common';
3
3
  import { CellOptions, LibroCellModel } from '@difizen/libro-jupyter';
4
4
  import type { ExecutableCellModel } from '@difizen/libro-jupyter';
5
- import type { Event as ManaEvent } from '@difizen/mana-app';
6
- import { Emitter, ViewManager } from '@difizen/mana-app';
5
+ import type { Event as ManaEvent } from '@difizen/libro-common/app';
6
+ import { Emitter, ViewManager } from '@difizen/libro-common/app';
7
7
  import type { SqlDecodedFormatter } from './libro-formatter-sql-magic-contribution.js';
8
8
  export interface SqlCellMetadata extends ICodeCellMetadata {
9
9
  resultVariable: string;
@@ -1 +1 @@
1
- {"version":3,"file":"libro-sql-cell-model.d.ts","sourceRoot":"","sources":["../src/libro-sql-cell-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAA2B,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,KAAK,EAAE,mBAAmB,EAAE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AM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,OAAO,EAIP,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,qBACa,iBAAkB,SAAQ,cAAe,YAAW,mBAAmB;IAElF,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAEzB,YAAY,EAAE,cAAc,CAAC;IAE7B,SAAS,EAAE,OAAO,CAAC;IAEnB,eAAe,EAAE,OAAO,CAAC;IAEzB,kBAAkB,EAAE,OAAO,CAAC;IAG5B,eAAe,UAAS;IAGxB,kBAAkB,UAAS;IAE3B,gBAAgB,UAAS;IAEhB,QAAQ,EAAE,OAAO,CAAC,eAAe,GAAG,aAAa,CAAC,CAAC;IAEpD,aAAa,EAAE,mBAAmB,CAAC;IAG3C,gBAAgB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAE/B,IAAI,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,CAE9B;IAED,WAAW,EAAE,WAAW,CAAC;gBAGF,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,WAAW;IAiBtC,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IAY7C,IAAa,YAAY,CAAC,IAAI,EAAE,mBAAmB,EAKlD;IAED,IAAa,YAAY,IAPO,mBAAmB,CAclD;IAED,cAAc,aAKZ;IAEO,OAAO;IAKhB,SAAS;CAGV"}
@@ -21,7 +21,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
21
21
  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; }
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 { CellOptions, LibroCellModel } from '@difizen/libro-jupyter';
24
- import { Emitter, inject, prop, transient, ViewManager } from '@difizen/mana-app';
24
+ import { Emitter, inject, prop, transient, ViewManager } from '@difizen/libro-common/app';
25
25
  export var LibroSqlCellModel = (_dec = transient(), _dec2 = prop(), _dec3 = prop(), _dec4 = prop(), _dec5 = prop(), _dec6 = prop(), _dec7 = prop(), _dec8 = prop(), _dec9 = prop(), _dec10 = prop(), _dec11 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function (_LibroCellModel) {
26
26
  _inherits(LibroSqlCellModel, _LibroCellModel);
27
27
  var _super = _createSuper(LibroSqlCellModel);
@@ -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 SqlScript = (_dec = singleton(), _dec(_class = /*#__PURE__*/_createClass(function SqlScript() {
10
10
  _classCallCheck(this, SqlScript);
11
11
  this.getDbConfig = "from libro_sql.database import db\nimport json\njson.dumps(db.to_dbs_array())";
@@ -2,8 +2,8 @@ import { CodeEditorManager } from '@difizen/libro-code-editor';
2
2
  import type { IOutput } from '@difizen/libro-common';
3
3
  import type { CellViewOptions, LibroCell, KernelMessage } from '@difizen/libro-jupyter';
4
4
  import { CellService, EditorStatus, LibroEditableExecutableCellView, LibroViewTracker, LibroOutputArea } from '@difizen/libro-jupyter';
5
- import type { ViewSize } from '@difizen/mana-app';
6
- import { Deferred, ViewManager } from '@difizen/mana-app';
5
+ import type { ViewSize } from '@difizen/libro-common/app';
6
+ import { Deferred, ViewManager } from '@difizen/libro-common/app';
7
7
  import React from 'react';
8
8
  import './index.less';
9
9
  import { LibroSqlCellModel } from './libro-sql-cell-model.js';
@@ -1 +1 @@
1
- {"version":3,"file":"libro-sql-cell-view.d.ts","sourceRoot":"","sources":["../src/libro-sql-cell-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAa,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,KAAK,EACV,eAAe,EAGf,SAAS,EACT,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,WAAW,EACX,YAAY,EAEZ,+BAA+B,EAC/B,gBAAgB,EAIhB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EACL,QAAQ,EAQR,WAAW,EAGZ,MAAM,mBAAmB,CAAC;AAK3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8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ACvB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACnB,gBAAgB,EAAE,gBAAgB,EACjC,iBAAiB,EAAE,iBAAiB;IAkDxD,WAAW,sBAElB;IAEF,aAAa,CAAC,GAAG,EAAE,GAAG;IAKb,YAAY,SAAU,QAAQ,KAAG,IAAI,CAK5C;IAEF,cAAc,CAAC,KAAK,EAAE,MAAM;IAInB,MAAM,IAAI,SAAS;IASnB,KAAK,WAAY,OAAO,UAU/B;IAEO,cAAc,aAGrB;IAEa,GAAG;IAqElB,KAAK,YACM,cAAc,kBAAkB,CAAC,SAAS,CAAC,oBAClC,cAAc,aAAa,KAAK,GAAG,6CAUrD;IAEF,mBAAmB,aACP,cAAc,aAAa,eACxB,MAAM,KAAK,IAAI,UA6B5B;IAEF,iBAAiB,gDAef;CACH"}
@@ -33,8 +33,8 @@ import { EditFilled, DatabaseOutlined } from '@ant-design/icons';
33
33
  import { CodeEditorManager } from '@difizen/libro-code-editor';
34
34
  import { isOutput } from '@difizen/libro-common';
35
35
  import { CellService, EditorStatus, LibroContextKey, LibroEditableExecutableCellView, LibroViewTracker, VirtualizedManagerHelper, KernelError, LibroJupyterModel, LibroOutputArea } from '@difizen/libro-jupyter';
36
- import { Deferred, getOrigin, inject, prop, transient, useInject, view, ViewInstance, ViewManager, ViewOption, ViewRender } from '@difizen/mana-app';
37
- import { l10n } from '@difizen/mana-l10n';
36
+ import { Deferred, getOrigin, inject, prop, transient, useInject, view, ViewInstance, ViewManager, ViewOption, ViewRender } from '@difizen/libro-common/app';
37
+ import { l10n } from '@difizen/libro-common/l10n';
38
38
  import { Select } from 'antd';
39
39
  import { Input } from 'antd';
40
40
  import React from 'react';
package/es/module.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { ManaModule } from '@difizen/mana-app';
1
+ import { ManaModule } from '@difizen/libro-common/app';
2
2
  export declare const LibroSqlCellModule: ManaModule;
3
3
  //# 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,kBAAkB,YAwBgB,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAWvD,eAAO,MAAM,kBAAkB,YAwBgB,CAAC"}
package/es/module.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CellOptions, LibroModule } from '@difizen/libro-jupyter';
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 { FormatterSqlMagicContribution } from "./libro-formatter-sql-magic-contribution.js";
5
5
  import { FormatterStringTransSqlContribution } from "./libro-formatter-sql-trans-contribution.js";
6
6
  import { LibroSQLCellColorRegistry } from "./libro-sql-cell-color-registry.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-sql-cell",
3
- "version": "0.3.3",
3
+ "version": "1.0.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -32,13 +32,11 @@
32
32
  "src"
33
33
  ],
34
34
  "dependencies": {
35
- "@difizen/libro-code-editor": "^0.3.3",
36
- "@difizen/libro-jupyter": "^0.3.3",
37
- "@difizen/libro-rendermime": "^0.3.3",
38
- "@difizen/libro-common": "^0.3.3",
39
- "@ant-design/icons": "^5.1.0",
40
- "@difizen/mana-app": "latest",
41
- "@difizen/mana-l10n": "latest"
35
+ "@difizen/libro-code-editor": "^1.0.0",
36
+ "@difizen/libro-jupyter": "^1.0.0",
37
+ "@difizen/libro-rendermime": "^1.0.0",
38
+ "@difizen/libro-common": "^1.0.0",
39
+ "@ant-design/icons": "^5.1.0"
42
40
  },
43
41
  "peerDependencies": {
44
42
  "react": ">=16",
@@ -6,7 +6,7 @@ import type {
6
6
  DefaultEncodedFormatter,
7
7
  DefaultDecodedFormatter,
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 SqlDecodedFormatter extends DefaultDecodedFormatter {
12
12
  result_variable?: string;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import { FormatterTransContribution } from '@difizen/libro-jupyter';
3
3
  import type { DefaultDecodedFormatter } from '@difizen/libro-jupyter';
4
- import { singleton } from '@difizen/mana-app';
4
+ import { singleton } from '@difizen/libro-common/app';
5
5
 
6
6
  import type { SqlDecodedFormatter } from './libro-formatter-sql-magic-contribution.js';
7
7
 
@@ -1,5 +1,5 @@
1
- import type { ColorRegistry } from '@difizen/mana-app';
2
- import { Color, ColorContribution, singleton } from '@difizen/mana-app';
1
+ import type { ColorRegistry } from '@difizen/libro-common/app';
2
+ import { Color, ColorContribution, singleton } from '@difizen/libro-common/app';
3
3
 
4
4
  @singleton({ contrib: ColorContribution })
5
5
  export class LibroSQLCellColorRegistry implements ColorContribution {
@@ -2,8 +2,8 @@ import type { LanguageSpecRegistry } from '@difizen/libro-code-editor';
2
2
  import { LanguageSpecContribution } from '@difizen/libro-code-editor';
3
3
  import type { CellMeta, CellModel, CellOptions } from '@difizen/libro-jupyter';
4
4
  import { CellModelContribution, CellViewContribution } from '@difizen/libro-jupyter';
5
- import { inject } from '@difizen/mana-app';
6
- import { singleton } from '@difizen/mana-app';
5
+ import { inject } from '@difizen/libro-common/app';
6
+ import { singleton } from '@difizen/libro-common/app';
7
7
 
8
8
  import { LibroSqlCellModelFactory } from './libro-sql-cell-protocol.js';
9
9
  import { LibroSqlCellView } from './libro-sql-cell-view.js';
@@ -6,8 +6,14 @@ import type {
6
6
  import type { ExecutionCount } from '@difizen/libro-common';
7
7
  import { CellOptions, LibroCellModel } from '@difizen/libro-jupyter';
8
8
  import type { ExecutableCellModel } from '@difizen/libro-jupyter';
9
- import type { Event as ManaEvent } from '@difizen/mana-app';
10
- import { Emitter, inject, prop, transient, ViewManager } from '@difizen/mana-app';
9
+ import type { Event as ManaEvent } from '@difizen/libro-common/app';
10
+ import {
11
+ Emitter,
12
+ inject,
13
+ prop,
14
+ transient,
15
+ ViewManager,
16
+ } from '@difizen/libro-common/app';
11
17
 
12
18
  import type { SqlDecodedFormatter } from './libro-formatter-sql-magic-contribution.js';
13
19
 
@@ -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 SqlScript {
@@ -20,7 +20,7 @@ import {
20
20
  LibroJupyterModel,
21
21
  LibroOutputArea,
22
22
  } from '@difizen/libro-jupyter';
23
- import type { ViewSize } from '@difizen/mana-app';
23
+ import type { ViewSize } from '@difizen/libro-common/app';
24
24
  import {
25
25
  Deferred,
26
26
  getOrigin,
@@ -33,8 +33,8 @@ import {
33
33
  ViewManager,
34
34
  ViewOption,
35
35
  ViewRender,
36
- } from '@difizen/mana-app';
37
- import { l10n } from '@difizen/mana-l10n';
36
+ } from '@difizen/libro-common/app';
37
+ import { l10n } from '@difizen/libro-common/l10n';
38
38
  import type { InputRef } from 'antd';
39
39
  import { Select } from 'antd';
40
40
  import { Input } from 'antd';
package/src/module.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CellOptions, LibroModule } from '@difizen/libro-jupyter';
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 { FormatterSqlMagicContribution } from './libro-formatter-sql-magic-contribution.js';
6
6
  import { FormatterStringTransSqlContribution } from './libro-formatter-sql-trans-contribution.js';