@fluid-topics/ft-reader-context 1.4.5 → 2.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.
package/build/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import { customElement } from "@fluid-topics/ft-wc-utils";
2
- import { FtReaderContext } from "./ft-reader-context";
3
1
  export * from "./ft-reader-context.styles";
4
2
  export * from "./ft-reader-context.properties";
5
3
  export * from "./ft-reader-context";
@@ -8,4 +6,3 @@ export * from "./store/model";
8
6
  export * from "./store/utils/FtReaderConverter";
9
7
  export * from "./store/utils/FtReaderService";
10
8
  export * from "./store/utils/FtOfficialReaderService";
11
- customElement("ft-reader-context")(FtReaderContext);
@@ -0,0 +1,8 @@
1
+ declare global {
2
+ interface Window {
3
+ FluidTopicsReaderService: FluidTopicsReaderService;
4
+ }
5
+ }
6
+ export interface FluidTopicsReaderService {
7
+ searchInDocument(query?: string): void;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
- import { FtUserRole, userHasRole } from "@fluid-topics/public-api";
2
- import { FtReaderFeatures } from "../model";
3
- import { ftAppInfoStore, FtServiceWithCache } from "@fluid-topics/ft-app-context";
1
+ import { FtUserRole, userHasRole, } from "@fluid-topics/public-api";
2
+ import { FtReaderFeatures, } from "../model";
3
+ import { ftAppInfoStore, FtServiceWithCache, } from "@fluid-topics/ft-app-context";
4
4
  export class FtReaderService extends FtServiceWithCache {
5
5
  get mapId() {
6
6
  return this._mapId;
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
- "name": "@fluid-topics/ft-reader-context",
3
- "version": "1.4.5",
4
- "description": "Context block for integrated reader components",
5
- "keywords": [
6
- "Lit"
7
- ],
8
- "author": "Fluid Topics <devtopics@antidot.net>",
9
- "license": "ISC",
10
- "main": "build/index.js",
11
- "web": "build/ft-reader-context.min.js",
12
- "typings": "build/index",
13
- "files": [
14
- "build/**/*.js",
15
- "build/**/*.ts"
16
- ],
17
- "repository": {
18
- "type": "git",
19
- "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
- },
21
- "dependencies": {
22
- "@fluid-topics/ft-app-context": "1.4.5",
23
- "@fluid-topics/ft-wc-utils": "1.4.5",
24
- "@reduxjs/toolkit": "^1.6.2",
25
- "lit": "3.1.0"
26
- },
27
- "devDependencies": {
28
- "@fluid-topics/public-api": "1.0.114"
29
- },
30
- "gitHead": "efdc859657751cd9e7af2736f3783341ffd6aae4"
2
+ "name": "@fluid-topics/ft-reader-context",
3
+ "version": "2.0.1",
4
+ "description": "Context block for integrated reader components",
5
+ "keywords": [
6
+ "Lit"
7
+ ],
8
+ "author": "Fluid Topics <devtopics@antidot.net>",
9
+ "license": "ISC",
10
+ "main": "build/index.js",
11
+ "web": "build/ft-reader-context.min.js",
12
+ "typings": "build/index",
13
+ "files": [
14
+ "build/**/*.js",
15
+ "build/**/*.ts"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
+ },
21
+ "dependencies": {
22
+ "@fluid-topics/ft-app-context": "2.0.1",
23
+ "@fluid-topics/ft-wc-utils": "2.0.1",
24
+ "@reduxjs/toolkit": "^1.6.2",
25
+ "lit": "3.1.0"
26
+ },
27
+ "devDependencies": {
28
+ "@fluid-topics/public-api": "1.0.114"
29
+ },
30
+ "gitHead": "26bf1bd750f8272124b045d597e18b1eff63c518"
31
31
  }
@@ -1,11 +0,0 @@
1
- import { FtReaderStateManager } from "../registration";
2
- declare global {
3
- interface Window {
4
- FluidTopicsReaderService: ReaderService;
5
- }
6
- }
7
- export declare class ReaderService {
8
- private stateManager;
9
- constructor(stateManager: FtReaderStateManager);
10
- searchInDocument(query?: string): void;
11
- }
@@ -1,8 +0,0 @@
1
- export class ReaderService {
2
- constructor(stateManager) {
3
- this.stateManager = stateManager;
4
- }
5
- searchInDocument(query) {
6
- this.stateManager.setSearchInDocumentQuery(query !== null && query !== void 0 ? query : "");
7
- }
8
- }