@fiduswriter/image-manager 0.1.5 → 0.1.7

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/package.json CHANGED
@@ -1,87 +1,100 @@
1
1
  {
2
- "name": "@fiduswriter/image-manager",
3
- "version": "0.1.5",
4
- "description": "Fidus Writer image/media manager",
5
- "repository": {
6
- "type": "git",
7
- "url": "ssh://git@codeberg.org/fiduswriter/fiduswriter-image-manager-js.git"
2
+ "name": "@fiduswriter/image-manager",
3
+ "version": "0.1.7",
4
+ "description": "Fidus Writer image/media manager",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "ssh://git@codeberg.org/fiduswriter/fiduswriter-image-manager-js.git"
8
+ },
9
+ "license": "AGPL-3.0",
10
+ "author": "Johannes Wilm",
11
+ "type": "module",
12
+ "main": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
8
18
  },
9
- "license": "AGPL-3.0",
10
- "author": "Johannes Wilm",
11
- "type": "module",
12
- "main": "./dist/index.js",
13
- "types": "./dist/index.d.ts",
14
- "exports": {
15
- ".": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.js"
18
- },
19
- "./*": {
20
- "types": "./dist/*.d.ts",
21
- "default": "./dist/*.js"
22
- },
23
- "./copyright_dialog": {
24
- "types": "./dist/copyright_dialog/index.d.ts",
25
- "default": "./dist/copyright_dialog/index.js"
26
- },
27
- "./copyright_dialog/*": {
28
- "types": "./dist/copyright_dialog/*.d.ts",
29
- "default": "./dist/copyright_dialog/*.js"
30
- },
31
- "./edit_dialog": {
32
- "types": "./dist/edit_dialog/index.d.ts",
33
- "default": "./dist/edit_dialog/index.js"
34
- },
35
- "./edit_dialog/*": {
36
- "types": "./dist/edit_dialog/*.d.ts",
37
- "default": "./dist/edit_dialog/*.js"
38
- },
39
- "./overview": {
40
- "types": "./dist/overview/index.d.ts",
41
- "default": "./dist/overview/index.js"
42
- },
43
- "./overview/*": {
44
- "types": "./dist/overview/*.d.ts",
45
- "default": "./dist/overview/*.js"
46
- },
47
- "./selection_dialog": {
48
- "types": "./dist/selection_dialog/index.d.ts",
49
- "default": "./dist/selection_dialog/index.js"
50
- },
51
- "./selection_dialog/*": {
52
- "types": "./dist/selection_dialog/*.d.ts",
53
- "default": "./dist/selection_dialog/*.js"
54
- }
19
+ "./*": {
20
+ "types": "./dist/*.d.ts",
21
+ "default": "./dist/*.js"
55
22
  },
56
- "files": [
57
- "dist/",
58
- "src/",
59
- "README.md",
60
- "LICENSE"
61
- ],
62
- "scripts": {
63
- "build": "tsc",
64
- "prepare": "npm run build",
65
- "prepublishOnly": "npm run build",
66
- "typecheck": "tsc --noEmit",
67
- "lint": "eslint src",
68
- "lint:fix": "eslint src --fix",
69
- "format": "prettier --write .",
70
- "format:check": "prettier --check ."
23
+ "./copyright_dialog": {
24
+ "types": "./dist/copyright_dialog/index.d.ts",
25
+ "default": "./dist/copyright_dialog/index.js"
26
+ },
27
+ "./copyright_dialog/*": {
28
+ "types": "./dist/copyright_dialog/*.d.ts",
29
+ "default": "./dist/copyright_dialog/*.js"
30
+ },
31
+ "./edit_dialog": {
32
+ "types": "./dist/edit_dialog/index.d.ts",
33
+ "default": "./dist/edit_dialog/index.js"
34
+ },
35
+ "./edit_dialog/*": {
36
+ "types": "./dist/edit_dialog/*.d.ts",
37
+ "default": "./dist/edit_dialog/*.js"
71
38
  },
72
- "dependencies": {
73
- "@fiduswriter/common": "^0.1.4",
74
- "bibliojson": "^4.0.3",
75
- "cropperjs": "^1.6.2",
76
- "fast-deep-equal": "^3.1.3",
77
- "fwtoolkit": "^0.1.9"
39
+ "./overview": {
40
+ "types": "./dist/overview/index.d.ts",
41
+ "default": "./dist/overview/index.js"
78
42
  },
79
- "devDependencies": {
80
- "@eslint/js": "^10.0.1",
81
- "eslint": "^10.6.0",
82
- "globals": "^15.15.0",
83
- "prettier": "^3.5.3",
84
- "typescript": "^6.0.3",
85
- "typescript-eslint": "^8.62.0"
43
+ "./overview/*": {
44
+ "types": "./dist/overview/*.d.ts",
45
+ "default": "./dist/overview/*.js"
46
+ },
47
+ "./selection_dialog": {
48
+ "types": "./dist/selection_dialog/index.d.ts",
49
+ "default": "./dist/selection_dialog/index.js"
50
+ },
51
+ "./selection_dialog/*": {
52
+ "types": "./dist/selection_dialog/*.d.ts",
53
+ "default": "./dist/selection_dialog/*.js"
86
54
  }
55
+ },
56
+ "files": [
57
+ "dist/",
58
+ "src/",
59
+ "README.md",
60
+ "LICENSE"
61
+ ],
62
+ "scripts": {
63
+ "build": "tsc",
64
+ "prepare": "npm run build",
65
+ "prepublishOnly": "npm run build",
66
+ "typecheck": "tsc --noEmit",
67
+ "lint": "eslint src",
68
+ "lint:fix": "eslint src --fix",
69
+ "format": "prettier --write .",
70
+ "format:check": "prettier --check .",
71
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.js"
72
+ },
73
+ "dependencies": {
74
+ "bibliojson": "^4.0.3",
75
+ "cropperjs": "^1.6.2",
76
+ "fast-deep-equal": "^3.1.3",
77
+ "fwtoolkit": "^0.1.9"
78
+ },
79
+ "devDependencies": {
80
+ "@eslint/js": "^10.0.1",
81
+ "@types/jest": "^30.0.0",
82
+ "eslint": "^10.6.0",
83
+ "globals": "^15.15.0",
84
+ "happy-dom": "^20.10.6",
85
+ "jest": "^30.4.2",
86
+ "prettier": "^3.5.3",
87
+ "ts-jest": "^29.4.11",
88
+ "ts-jest-resolver": "^2.0.1",
89
+ "typescript": "^6.0.3",
90
+ "typescript-eslint": "^8.62.0"
91
+ },
92
+ "lint-staged": {
93
+ "*.{ts,js,mjs,css,md,json,html}": [
94
+ "prettier --write"
95
+ ],
96
+ "*.{ts,js,mjs}": [
97
+ "eslint --fix"
98
+ ]
99
+ }
87
100
  }
package/src/global.d.ts CHANGED
@@ -1,37 +1,18 @@
1
- // Ambient declarations for dependencies without bundled types.
2
-
3
- declare module "@fiduswriter/common/common" {
4
- export function baseBodyTemplate(...args: unknown[]): string
5
- }
6
-
7
- declare module "@fiduswriter/common/feedback" {
8
- export class FeedbackTab {
9
- init(): void
10
- }
11
- }
12
-
13
- declare module "@fiduswriter/common/menu" {
14
- export class SiteMenu {
15
- constructor(app: unknown, section: string)
16
- init(): void
17
- }
18
- }
19
-
20
1
  // Globals provided by the Fidus Writer host page.
21
2
 
22
- declare function gettext(msgid: string): string
3
+ declare function gettext(msgid: string): string;
23
4
 
24
5
  declare function interpolate(
25
- fmt: string,
26
- args: unknown[],
27
- named?: boolean
28
- ): string
6
+ fmt: string,
7
+ args: unknown[],
8
+ named?: boolean,
9
+ ): string;
29
10
 
30
- declare function staticUrl(path: string): string
11
+ declare function staticUrl(path: string): string;
31
12
 
32
- declare const settings: Record<string, unknown>
13
+ declare const settings: Record<string, unknown>;
33
14
 
34
15
  interface Window {
35
- settings?: Record<string, unknown>
36
- csrfToken?: string
16
+ settings?: Record<string, unknown>;
17
+ csrfToken?: string;
37
18
  }