@difizen/libro-search 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.
- package/es/abstract-search-provider.d.ts +3 -3
- package/es/abstract-search-provider.d.ts.map +1 -1
- package/es/abstract-search-provider.js +2 -2
- package/es/libro-cell-search-provider.d.ts +1 -1
- package/es/libro-cell-search-provider.d.ts.map +1 -1
- package/es/libro-cell-search-provider.js +2 -2
- package/es/libro-search-generic-provider.d.ts +1 -1
- package/es/libro-search-generic-provider.d.ts.map +1 -1
- package/es/libro-search-generic-provider.js +2 -2
- package/es/libro-search-manager.d.ts +2 -2
- package/es/libro-search-manager.d.ts.map +1 -1
- package/es/libro-search-manager.js +2 -2
- package/es/libro-search-model.d.ts +3 -3
- package/es/libro-search-model.d.ts.map +1 -1
- package/es/libro-search-model.js +2 -2
- package/es/libro-search-protocol.d.ts +3 -3
- package/es/libro-search-protocol.d.ts.map +1 -1
- package/es/libro-search-protocol.js +1 -1
- package/es/libro-search-provider.d.ts +1 -1
- package/es/libro-search-provider.d.ts.map +1 -1
- package/es/libro-search-provider.js +3 -3
- package/es/libro-search-utils.js +1 -1
- package/es/libro-search-view.d.ts +1 -1
- package/es/libro-search-view.d.ts.map +1 -1
- package/es/libro-search-view.js +4 -4
- package/es/module.d.ts +1 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +1 -1
- package/package.json +4 -6
- package/src/abstract-search-provider.ts +4 -4
- package/src/libro-cell-search-provider.ts +3 -3
- package/src/libro-search-generic-provider.ts +3 -3
- package/src/libro-search-manager.ts +4 -4
- package/src/libro-search-model.ts +3 -3
- package/src/libro-search-protocol.ts +3 -3
- package/src/libro-search-provider.ts +3 -3
- package/src/libro-search-utils.ts +1 -1
- package/src/libro-search-view.tsx +10 -4
- package/src/module.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SearchMatch } from '@difizen/libro-code-editor';
|
|
2
|
-
import type { Event } from '@difizen/
|
|
3
|
-
import type { View } from '@difizen/
|
|
4
|
-
import { Emitter } from '@difizen/
|
|
2
|
+
import type { Event } from '@difizen/libro-common/app';
|
|
3
|
+
import type { View } from '@difizen/libro-common/app';
|
|
4
|
+
import { Emitter } from '@difizen/libro-common/app';
|
|
5
5
|
import type { SearchFilter, SearchFilters, SearchProvider } from './libro-search-protocol.js';
|
|
6
6
|
/**
|
|
7
7
|
* Abstract class implementing the search provider interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-search-provider.d.ts","sourceRoot":"","sources":["../src/abstract-search-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"abstract-search-provider.d.ts","sourceRoot":"","sources":["../src/abstract-search-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC;;GAEG;AACH,8BACsB,sBAAuB,YAAW,cAAc;IAEpE,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,CAAiB;IACvD,SAAS,CAAC,SAAS,UAAS;IAC5B,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD;;OAEG;gBACS,MAAM,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;IAIlC;;OAEG;IACH,IAAI,YAAY,IAAI,KAAK,CAAC,IAAI,CAAC,CAE9B;IAED;;OAEG;IACH,IAAI,iBAAiB,IAAI,MAAM,GAAG,SAAS,CAE1C;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,SAAS,CAErC;IAED;;;;OAIG;IACH,QAAQ,KAAK,UAAU,IAAI,OAAO,CAAC;IAEnC;;;;;;;;;;OAUG;IACH,OAAO,IAAI,IAAI;IAOf;;;;;OAKG;IACH,eAAe,IAAI,MAAM;IAIzB;;;;;;;OAOG;IACH,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC;IAI1C;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,CACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,aAAa,EACtB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,IAAI,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAExC;;;;OAIG;IACH,QAAQ,CAAC,aAAa,IAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;IAE1D;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,IAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;IAE9D;;;;;;OAMG;IACH,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAE/D;;;;;;OAMG;IACH,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAC9D"}
|
|
@@ -5,8 +5,8 @@ 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 { Emitter } from '@difizen/
|
|
9
|
-
import { transient } from '@difizen/
|
|
8
|
+
import { Emitter } from '@difizen/libro-common/app';
|
|
9
|
+
import { transient } from '@difizen/libro-common/app';
|
|
10
10
|
/**
|
|
11
11
|
* Abstract class implementing the search provider interface.
|
|
12
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CellView } from '@difizen/libro-core';
|
|
2
|
-
import type { Contribution } from '@difizen/
|
|
2
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
3
3
|
import { CellSearchProviderContribution } from './libro-search-protocol.js';
|
|
4
4
|
export declare class LibroCellSearchProvider {
|
|
5
5
|
protected providerContribution: Contribution.Provider<CellSearchProviderContribution>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-cell-search-provider.d.ts","sourceRoot":"","sources":["../src/libro-cell-search-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-cell-search-provider.d.ts","sourceRoot":"","sources":["../src/libro-cell-search-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAE5E,qBACa,uBAAuB;IAElC,SAAS,CAAC,oBAAoB,EAAE,YAAY,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC;IAEtF,wBAAwB,CAAC,IAAI,EAAE,QAAQ;IAQvC,eAAe,SAAU,QAAQ,KAAG,MAAM,CAMxC;IAEF,SAAS,CAAC,kCAAkC,CAC1C,IAAI,EAAE,QAAQ,GACb,8BAA8B,GAAG,SAAS;CAQ9C"}
|
|
@@ -8,8 +8,8 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
8
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
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
|
-
import { Priority } from '@difizen/
|
|
12
|
-
import { contrib, transient } from '@difizen/
|
|
11
|
+
import { Priority } from '@difizen/libro-common/app';
|
|
12
|
+
import { contrib, transient } from '@difizen/libro-common/app';
|
|
13
13
|
import { CellSearchProviderContribution } from "./libro-search-protocol.js";
|
|
14
14
|
export var LibroCellSearchProvider = (_dec = transient(), _dec2 = contrib(CellSearchProviderContribution), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
15
15
|
function LibroCellSearchProvider() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { View } from '@difizen/
|
|
1
|
+
import type { View } from '@difizen/libro-common/app';
|
|
2
2
|
import { AbstractSearchProvider } from './abstract-search-provider.js';
|
|
3
3
|
import type { HTMLSearchMatch } from './libro-search-protocol.js';
|
|
4
4
|
import { SearchProviderOption } from './libro-search-protocol.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-search-generic-provider.d.ts","sourceRoot":"","sources":["../src/libro-search-generic-provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-search-generic-provider.d.ts","sourceRoot":"","sources":["../src/libro-search-generic-provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAItD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAGL,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,4BAA4B,GAAG,CACzC,MAAM,EAAE,oBAAoB,KACzB,qBAAqB,CAAC;AAC3B,eAAO,MAAM,4BAA4B,eAAyC,CAAC;AACnF;;GAEG;AACH,qBACa,qBAAsB,SAAQ,sBAAsB;IAC/D,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACrC,SAAS,CAAC,QAAQ,EAAE,eAAe,EAAE,CAAM;IACnD,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,CAE3C;IACF,SAAS,CAAC,UAAU,oBAAgC;IACpD;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO;IAI1C;;OAEG;IACH,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gB,iBAAiB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAU1D"}
|
|
@@ -29,8 +29,8 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
29
29
|
/* eslint-disable @typescript-eslint/no-loop-func */
|
|
30
30
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
31
31
|
|
|
32
|
-
import { prop } from '@difizen/
|
|
33
|
-
import { inject, transient } from '@difizen/
|
|
32
|
+
import { prop } from '@difizen/libro-common/app';
|
|
33
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
34
34
|
import { AbstractSearchProvider } from "./abstract-search-provider.js";
|
|
35
35
|
import { searchInHTML } from "./libro-search-engine-html.js";
|
|
36
36
|
import { LIBRO_SEARCH_FOUND_CLASSES, LIBRO_SEARCH_SELECTED_CLASSES, SearchProviderOption } from "./libro-search-protocol.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LibroCommandRegister, LibroExtensionSlotContribution } from '@difizen/libro-core';
|
|
2
2
|
import type { LibroExtensionSlotFactory, LibroSlot, LibroView } from '@difizen/libro-core';
|
|
3
|
-
import type { CommandRegistry, KeybindingRegistry } from '@difizen/
|
|
4
|
-
import { ViewManager, CommandContribution, KeybindingContribution } from '@difizen/
|
|
3
|
+
import type { CommandRegistry, KeybindingRegistry } from '@difizen/libro-common/app';
|
|
4
|
+
import { ViewManager, CommandContribution, KeybindingContribution } from '@difizen/libro-common/app';
|
|
5
5
|
import { LibroSearchView } from './libro-search-view.js';
|
|
6
6
|
export declare const LibroSearchToggleCommand: {
|
|
7
7
|
ShowLibroSearch: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-search-manager.d.ts","sourceRoot":"","sources":["../src/libro-search-manager.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,yBAAyB,EACzB,SAAS,EACT,SAAS,EACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-search-manager.d.ts","sourceRoot":"","sources":["../src/libro-search-manager.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,yBAAyB,EACzB,SAAS,EACT,SAAS,EACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACrF,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,sBAAsB,EAGvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,eAAO,MAAM,wBAAwB;;;;;CASpC,CAAC;AAEF,qBAOa,kBACX,YAAW,mBAAmB,EAAE,sBAAsB,EAAE,8BAA8B;IAEjE,WAAW,EAAE,WAAW,CAAC;IAChB,oBAAoB,EAAE,oBAAoB,CAAC;IACzE,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAa;IAE5D,SAAgB,IAAI,EAAE,SAAS,CAAe;IAC9C,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,GAAG,IAAI;IAQ1D,gBAAgB,CAAC,QAAQ,EAAE,eAAe;IAa1C,OAAO,EAAE,yBAAyB,CAUhC;IAEF,cAAc,UAAW,SAAS,UAEhC;CACH"}
|
|
@@ -13,7 +13,7 @@ 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
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
15
15
|
import { LibroCommandRegister, LibroExtensionSlotContribution } from '@difizen/libro-core';
|
|
16
|
-
import { ViewManager, CommandContribution, KeybindingContribution, inject, singleton } from '@difizen/
|
|
16
|
+
import { ViewManager, CommandContribution, KeybindingContribution, inject, singleton } from '@difizen/libro-common/app';
|
|
17
17
|
import { LibroSearchView } from "./libro-search-view.js";
|
|
18
18
|
export var LibroSearchToggleCommand = {
|
|
19
19
|
ShowLibroSearch: {
|
|
@@ -71,7 +71,7 @@ export var LibroSearchManager = (_dec = singleton({
|
|
|
71
71
|
_createClass(LibroSearchManager, [{
|
|
72
72
|
key: "registerKeybindings",
|
|
73
73
|
value: function registerKeybindings(keybindings) {
|
|
74
|
-
this.libroCommandRegister.registerKeybinds(keybindings, LibroSearchToggleCommand,
|
|
74
|
+
this.libroCommandRegister.registerKeybinds(keybindings, LibroSearchToggleCommand, true, true);
|
|
75
75
|
}
|
|
76
76
|
}, {
|
|
77
77
|
key: "registerCommands",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Disposable } from '@difizen/
|
|
2
|
-
import { DisposableCollection, Emitter } from '@difizen/
|
|
1
|
+
import type { Disposable } from '@difizen/libro-common/app';
|
|
2
|
+
import { DisposableCollection, Emitter } from '@difizen/libro-common/app';
|
|
3
3
|
import type { SearchProvider } from './libro-search-protocol.js';
|
|
4
4
|
import type { SearchFilter, SearchFilters } from './libro-search-protocol.js';
|
|
5
5
|
import { LibroSearchUtils } from './libro-search-utils.js';
|
|
@@ -19,7 +19,7 @@ export declare class LibroSearchModel implements Disposable {
|
|
|
19
19
|
protected disposedEmitter: Emitter<void>;
|
|
20
20
|
protected searchProvider: SearchProvider;
|
|
21
21
|
protected toDispose: DisposableCollection;
|
|
22
|
-
get onDisposed(): import("@difizen/
|
|
22
|
+
get onDisposed(): import("@difizen/libro-common/app").Event<void>;
|
|
23
23
|
get disposed(): boolean | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Search document model
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-search-model.d.ts","sourceRoot":"","sources":["../src/libro-search-model.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-search-model.d.ts","sourceRoot":"","sources":["../src/libro-search-model.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAI1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;GAEG;AACH,qBACa,gBAAiB,YAAW,UAAU;IACvB,KAAK,EAAE,gBAAgB,CAAC;IAClD,SAAS,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAS;IAClD,SAAS,CAAC,cAAc,UAAS;IACjC,SAAS,CAAC,YAAY,SAAM;IAC5B,SAAS,CAAC,QAAQ,EAAE,aAAa,CAG/B;IACF,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,eAAe,EAAE,GAAG,CAAC;IAC/B,SAAS,CAAC,iBAAiB,SAAM;IACjC,SAAS,CAAC,SAAS,UAAS;IAC5B,SAAS,CAAC,eAAe,gBAAuB;IAChD,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IACzC,SAAS,CAAC,SAAS,uBAA8B;IACjD,IAAI,UAAU,oDAEb;IAED,IAAI,QAAQ,wBAEX;IACD;;;;OAIG;gBACS,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM;IAmBtE;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO,EAK3B;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,SAAS,CAErC;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,aAAa,CAE3B;IAED;;OAEG;IACH,IAAI,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAEpD;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAKzB;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,MAAM,CAExB;IACD,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,EAIxB;IAED;;OAEG;IACH,IAAI,gBAAgB,IAAI,MAAM,CAE7B;IACD,IAAI,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAK7B;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,SAAS,CAErC;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,QAAQ,CAAC,CAAC,EAAE,OAAO,EAKtB;IAED;;OAEG;IACH,OAAO,IAAI,IAAI;IAcf;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAIpC;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxC;;OAEG;IACH,OAAO,IAAI,IAAI;IAMf;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAKxC;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C;;;;;OAKG;IACG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;cAexC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAqB9C"}
|
package/es/libro-search-model.js
CHANGED
|
@@ -15,8 +15,8 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
15
15
|
// Copyright (c) Jupyter Development Team.
|
|
16
16
|
// Distributed under the terms of the Modified BSD License.
|
|
17
17
|
|
|
18
|
-
import { DisposableCollection, Emitter } from '@difizen/
|
|
19
|
-
import { inject, singleton } from '@difizen/
|
|
18
|
+
import { DisposableCollection, Emitter } from '@difizen/libro-common/app';
|
|
19
|
+
import { inject, singleton } from '@difizen/libro-common/app';
|
|
20
20
|
import debounce from 'lodash.debounce';
|
|
21
21
|
import { LibroSearchUtils } from "./libro-search-utils.js";
|
|
22
22
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SearchMatch } from '@difizen/libro-code-editor';
|
|
2
2
|
import type { CellView } from '@difizen/libro-core';
|
|
3
|
-
import type { Disposable, Event } from '@difizen/
|
|
4
|
-
import type { View } from '@difizen/
|
|
5
|
-
import { Syringe } from '@difizen/
|
|
3
|
+
import type { Disposable, Event } from '@difizen/libro-common/app';
|
|
4
|
+
import type { View } from '@difizen/libro-common/app';
|
|
5
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
6
6
|
/**
|
|
7
7
|
* HTML search match interface
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-search-protocol.d.ts","sourceRoot":"","sources":["../src/libro-search-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-search-protocol.d.ts","sourceRoot":"","sources":["../src/libro-search-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,IA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} from '@difizen/libro-core';
|
|
3
3
|
import { LibroView, VirtualizedManagerHelper, LibroContextKey } from '@difizen/libro-core';
|
|
4
|
-
import { Deferred, DisposableCollection } from '@difizen/
|
|
4
|
+
import { Deferred, DisposableCollection } from '@difizen/libro-common/app';
|
|
5
5
|
import { AbstractSearchProvider } from './abstract-search-provider.js';
|
|
6
6
|
import { LibroCellSearchProvider } from './libro-cell-search-provider.js';
|
|
7
7
|
import { SearchProviderOption } from './libro-search-protocol.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-search-provider.d.ts","sourceRoot":"","sources":["../src/libro-search-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAEL,SAAS,EACT,wBAAwB,EACxB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-search-provider.d.ts","sourceRoot":"","sources":["../src/libro-search-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAEL,SAAS,EACT,wBAAwB,EACxB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAG3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY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3B;CACH"}
|
|
@@ -21,9 +21,9 @@ 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 { EditorCellView, LibroView, VirtualizedManagerHelper, LibroContextKey } from '@difizen/libro-core';
|
|
24
|
-
import { inject, prop, transient, equals } from '@difizen/
|
|
25
|
-
import { Deferred, DisposableCollection } from '@difizen/
|
|
26
|
-
import { l10n } from '@difizen/
|
|
24
|
+
import { inject, prop, transient, equals } from '@difizen/libro-common/app';
|
|
25
|
+
import { Deferred, DisposableCollection } from '@difizen/libro-common/app';
|
|
26
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
27
27
|
import { AbstractSearchProvider } from "./abstract-search-provider.js";
|
|
28
28
|
import { LibroCellSearchProvider } from "./libro-cell-search-provider.js";
|
|
29
29
|
import { SearchProviderOption } from "./libro-search-protocol.js";
|
package/es/libro-search-utils.js
CHANGED
|
@@ -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 { singleton } from '@difizen/
|
|
8
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Search Utils
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import type { LibroView } from '@difizen/libro-core';
|
|
3
3
|
import { LibroContextKey } from '@difizen/libro-core';
|
|
4
|
-
import { BaseView } from '@difizen/
|
|
4
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
5
5
|
import type { CheckboxChangeEvent } from 'antd/es/checkbox';
|
|
6
6
|
import type { InputRef } from 'antd/es/input';
|
|
7
7
|
import type { LibroSearchProvider } from './libro-search-provider.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-search-view.d.ts","sourceRoot":"","sources":["../src/libro-search-view.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"libro-search-view.d.ts","sourceRoot":"","sources":["../src/libro-search-view.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAQtD,OAAO,EAAE,QAAQ,EAAsB,MAAM,2BAA2B,CAAC;AAIzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK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;IAEF,MAAM,8CAgBJ;IACF,aAAa,aAKX;IAEF,aAAa,aAGX;IAEF,mBAAmB,aAGjB;IAEF,cAAc,aAGZ;IAEF,IAAI,aAEF;IAEF,QAAQ,aAEN;IAEF,sBAAsB,MAAO,mBAAmB,UAI9C;IAEF,OAAO,aAEL;IACF,UAAU,aAER;IACF,YAAY,aAMV;IACF,eAAe,eAUb;IAEF,SAAS,YAAmB,OAAO,mBAMjC;IAEF,aAAa,MAAO,aAAa,UAqB/B;IAEF,gBAAgB,MAAO,MAAM,WAAW,CAAC,gBAAgB,CAAC,UAKxD;IAEF,mBAAmB,MAAO,MAAM,WAAW,CAAC,gBAAgB,CAAC,UAE3D;CACH"}
|
package/es/libro-search-view.js
CHANGED
|
@@ -20,10 +20,10 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
20
20
|
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.'); }
|
|
21
21
|
import { ArrowDownOutlined, ArrowUpOutlined, CloseOutlined, createFromIconfontCN, EllipsisOutlined, RightOutlined } from '@ant-design/icons';
|
|
22
22
|
import { LibroContextKey } from '@difizen/libro-core';
|
|
23
|
-
import { prop, ThemeService, useInject, useObserve, watch } from '@difizen/
|
|
24
|
-
import { BaseView, view, ViewInstance } from '@difizen/
|
|
25
|
-
import { inject, transient } from '@difizen/
|
|
26
|
-
import { l10n } from '@difizen/
|
|
23
|
+
import { prop, ThemeService, useInject, useObserve, watch } from '@difizen/libro-common/app';
|
|
24
|
+
import { BaseView, view, ViewInstance } from '@difizen/libro-common/app';
|
|
25
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
26
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
27
27
|
import { Button, Checkbox, ConfigProvider, Input, Tag, theme } from 'antd';
|
|
28
28
|
import classnames from 'classnames';
|
|
29
29
|
import { forwardRef, memo, useEffect, useRef } from 'react';
|
package/es/module.d.ts
CHANGED
package/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,cAAc,CAAC;AAmBtB,eAAO,MAAM,iBAAiB,YAqCiB,CAAC"}
|
package/es/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManaModule } from '@difizen/
|
|
1
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
2
2
|
import "./index.less";
|
|
3
3
|
import { LibroCellSearchProvider } from "./libro-cell-search-provider.js";
|
|
4
4
|
import { GenericSearchProvider, GenericSearchProviderFactory } from "./libro-search-generic-provider.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-search",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -33,12 +33,10 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@difizen/
|
|
37
|
-
"@difizen/mana-l10n": "latest",
|
|
36
|
+
"@difizen/libro-common": "^1.0.0",
|
|
38
37
|
"@ant-design/icons": "^5.1.0",
|
|
39
|
-
"@difizen/libro-
|
|
40
|
-
"@difizen/libro-
|
|
41
|
-
"@difizen/libro-code-editor": "^0.3.3",
|
|
38
|
+
"@difizen/libro-core": "^1.0.0",
|
|
39
|
+
"@difizen/libro-code-editor": "^1.0.0",
|
|
42
40
|
"@types/lodash.debounce": "^4.0.7",
|
|
43
41
|
"classnames": "^2.3.2",
|
|
44
42
|
"lodash.debounce": "^4.0.8",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SearchMatch } from '@difizen/libro-code-editor';
|
|
2
|
-
import type { Event } from '@difizen/
|
|
3
|
-
import type { View } from '@difizen/
|
|
4
|
-
import { Emitter } from '@difizen/
|
|
5
|
-
import { transient } from '@difizen/
|
|
2
|
+
import type { Event } from '@difizen/libro-common/app';
|
|
3
|
+
import type { View } from '@difizen/libro-common/app';
|
|
4
|
+
import { Emitter } from '@difizen/libro-common/app';
|
|
5
|
+
import { transient } from '@difizen/libro-common/app';
|
|
6
6
|
|
|
7
7
|
import type {
|
|
8
8
|
SearchFilter,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CellView } from '@difizen/libro-core';
|
|
2
|
-
import type { Contribution } from '@difizen/
|
|
3
|
-
import { Priority } from '@difizen/
|
|
4
|
-
import { contrib, transient } from '@difizen/
|
|
2
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
3
|
+
import { Priority } from '@difizen/libro-common/app';
|
|
4
|
+
import { contrib, transient } from '@difizen/libro-common/app';
|
|
5
5
|
|
|
6
6
|
import { CellSearchProviderContribution } from './libro-search-protocol.js';
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-loop-func */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
|
-
import type { View } from '@difizen/
|
|
4
|
-
import { prop } from '@difizen/
|
|
5
|
-
import { inject, transient } from '@difizen/
|
|
3
|
+
import type { View } from '@difizen/libro-common/app';
|
|
4
|
+
import { prop } from '@difizen/libro-common/app';
|
|
5
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
6
6
|
|
|
7
7
|
import { AbstractSearchProvider } from './abstract-search-provider.js';
|
|
8
8
|
import { searchInHTML } from './libro-search-engine-html.js';
|
|
@@ -8,14 +8,14 @@ import type {
|
|
|
8
8
|
LibroSlot,
|
|
9
9
|
LibroView,
|
|
10
10
|
} from '@difizen/libro-core';
|
|
11
|
-
import type { CommandRegistry, KeybindingRegistry } from '@difizen/
|
|
11
|
+
import type { CommandRegistry, KeybindingRegistry } from '@difizen/libro-common/app';
|
|
12
12
|
import {
|
|
13
13
|
ViewManager,
|
|
14
14
|
CommandContribution,
|
|
15
15
|
KeybindingContribution,
|
|
16
16
|
inject,
|
|
17
17
|
singleton,
|
|
18
|
-
} from '@difizen/
|
|
18
|
+
} from '@difizen/libro-common/app';
|
|
19
19
|
|
|
20
20
|
import { LibroSearchView } from './libro-search-view.js';
|
|
21
21
|
|
|
@@ -49,8 +49,8 @@ export class LibroSearchManager
|
|
|
49
49
|
this.libroCommandRegister.registerKeybinds(
|
|
50
50
|
keybindings,
|
|
51
51
|
LibroSearchToggleCommand,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
true,
|
|
53
|
+
true,
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
registerCommands(commands: CommandRegistry) {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// Copyright (c) Jupyter Development Team.
|
|
3
3
|
// Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|
|
5
|
-
import type { Disposable } from '@difizen/
|
|
6
|
-
import { DisposableCollection, Emitter } from '@difizen/
|
|
7
|
-
import { inject, singleton } from '@difizen/
|
|
5
|
+
import type { Disposable } from '@difizen/libro-common/app';
|
|
6
|
+
import { DisposableCollection, Emitter } from '@difizen/libro-common/app';
|
|
7
|
+
import { inject, singleton } from '@difizen/libro-common/app';
|
|
8
8
|
import debounce from 'lodash.debounce';
|
|
9
9
|
|
|
10
10
|
import type { SearchProvider } from './libro-search-protocol.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SearchMatch } from '@difizen/libro-code-editor';
|
|
2
2
|
import type { CellView } from '@difizen/libro-core';
|
|
3
|
-
import type { Disposable, Event } from '@difizen/
|
|
4
|
-
import type { View } from '@difizen/
|
|
5
|
-
import { Syringe } from '@difizen/
|
|
3
|
+
import type { Disposable, Event } from '@difizen/libro-common/app';
|
|
4
|
+
import type { View } from '@difizen/libro-common/app';
|
|
5
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
6
6
|
/**
|
|
7
7
|
* HTML search match interface
|
|
8
8
|
*/
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
VirtualizedManagerHelper,
|
|
7
7
|
LibroContextKey,
|
|
8
8
|
} from '@difizen/libro-core';
|
|
9
|
-
import { inject, prop, transient, equals } from '@difizen/
|
|
10
|
-
import { Deferred, DisposableCollection } from '@difizen/
|
|
11
|
-
import { l10n } from '@difizen/
|
|
9
|
+
import { inject, prop, transient, equals } from '@difizen/libro-common/app';
|
|
10
|
+
import { Deferred, DisposableCollection } from '@difizen/libro-common/app';
|
|
11
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
12
12
|
|
|
13
13
|
import { AbstractSearchProvider } from './abstract-search-provider.js';
|
|
14
14
|
import { LibroCellSearchProvider } from './libro-cell-search-provider.js';
|
|
@@ -8,10 +8,16 @@ import {
|
|
|
8
8
|
} from '@ant-design/icons';
|
|
9
9
|
import type { LibroView } from '@difizen/libro-core';
|
|
10
10
|
import { LibroContextKey } from '@difizen/libro-core';
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import {
|
|
12
|
+
prop,
|
|
13
|
+
ThemeService,
|
|
14
|
+
useInject,
|
|
15
|
+
useObserve,
|
|
16
|
+
watch,
|
|
17
|
+
} from '@difizen/libro-common/app';
|
|
18
|
+
import { BaseView, view, ViewInstance } from '@difizen/libro-common/app';
|
|
19
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
20
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
15
21
|
import { Button, Checkbox, ConfigProvider, Input, Tag, theme } from 'antd';
|
|
16
22
|
import type { CheckboxChangeEvent } from 'antd/es/checkbox';
|
|
17
23
|
import type { InputRef } from 'antd/es/input';
|
package/src/module.ts
CHANGED