@manuscripts/article-editor 4.13.63 → 4.14.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../../src/components/nav/Dropdown.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;AAEH,0DAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../../src/components/nav/Dropdown.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;AAEH,0DAAuE;AACvE,0EAA2D;AAE9C,QAAA,iBAAiB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;CAI1C,CAAA;AAEY,QAAA,QAAQ,GAAG,2BAAM,CAAC,GAAG,CAIhC;sBACoB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS;mBACjD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK;gBAC3C,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU;gBACxC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO;WACrD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO;;;eAGtC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;iBACrC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;;IAGtD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,IAAI,aAAa,GAAG,KAAK,CAAC,QAAQ,GAAG,KAAK;IACnE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;SAC9D,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;;;CAGvE,CAAA;AAMY,QAAA,cAAc,GAA6C,IAAA,2BAAM,EAC5E,yBAAW,CACZ,CAAA;;;;;;;CAOA,CAAA;AAEY,QAAA,uBAAuB,GAAG,IAAA,2BAAM,EAAC,6BAAe,CAAC,CAAC,KAAK,CAClE,CAAC,KAAoB,EAAE,EAAE,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,MAAM;CACvB,CAAC,CACH,CAAe;;;;;CAKf,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../../src/components/nav/Dropdown.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../../src/components/nav/Dropdown.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AACvE,OAAO,MAA2B,MAAM,mBAAmB,CAAA;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAI1C,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAIhC;sBACoB,CAAC,KAAK,EAA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CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,MAAM;CACvB,CAAC,CACH,CAAe;;;;;CAKf,CAAA"}
|
package/dist/types/api/Api.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export declare class Api {
|
|
|
19
19
|
authInterceptor: (config: InternalAxiosRequestConfig, getToken: () => Promise<string | undefined>) => Promise<InternalAxiosRequestConfig<any>>;
|
|
20
20
|
get: <T>(url: string) => Promise<T | undefined>;
|
|
21
21
|
post: <T>(path: string, data: unknown) => Promise<T>;
|
|
22
|
-
delete: <T>(url: string) => Promise<import("axios").AxiosResponse<T, any>>;
|
|
23
|
-
options: <T>(url: string) => Promise<import("axios").AxiosResponse<T, any>>;
|
|
24
|
-
put: <T>(path: string, data: unknown) => Promise<import("axios").AxiosResponse<T, any>>;
|
|
22
|
+
delete: <T>(url: string) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
23
|
+
options: <T>(url: string) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
24
|
+
put: <T>(path: string, data: unknown) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
25
25
|
getTransformVersion: () => Promise<string>;
|
|
26
26
|
getUser: () => Promise<UserProfile | undefined>;
|
|
27
27
|
getCSLLocale: (lang: string) => Promise<string | undefined> | undefined;
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
*
|
|
10
10
|
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
import { ArrowUpIcon } from '@manuscripts/style-guide';
|
|
13
|
+
import { StyledComponent } from 'styled-components';
|
|
14
|
+
export declare const DropdownContainer: StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
+
export declare const Dropdown: StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
14
16
|
direction?: "left" | "right";
|
|
15
17
|
minWidth?: number;
|
|
16
18
|
top?: number;
|
|
@@ -18,8 +20,8 @@ export declare const Dropdown: import("styled-components").StyledComponent<"div"
|
|
|
18
20
|
interface DropdownProps {
|
|
19
21
|
isOpen: boolean;
|
|
20
22
|
}
|
|
21
|
-
export declare const DropdownToggle:
|
|
22
|
-
export declare const DropdownButtonContainer:
|
|
23
|
+
export declare const DropdownToggle: StyledComponent<typeof ArrowUpIcon, any>;
|
|
24
|
+
export declare const DropdownButtonContainer: StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
23
25
|
type: "button" | "submit" | "reset";
|
|
24
26
|
} & {
|
|
25
27
|
danger?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/article-editor",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"license": "CPAL-1.0",
|
|
5
5
|
"description": "React components for editing and viewing manuscripts",
|
|
6
6
|
"repository": "github:Atypon-OpenSource/manuscripts-article-editor",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"**/lib/fonts.*"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"dev": "npm-run-
|
|
21
|
-
"build": "npm-run-
|
|
20
|
+
"dev": "npm-run-all2 --parallel 'build:* --watch'",
|
|
21
|
+
"build": "npm-run-all2 --parallel build:*",
|
|
22
22
|
"build:cjs": "tsc --outDir dist/cjs --module commonjs",
|
|
23
23
|
"build:es": "tsc --outDir dist/es --declarationDir dist/types --declaration",
|
|
24
24
|
"test": "TZ=UTC vitest run",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"lint:fix": "eslint src types --ext .ts,.tsx --max-warnings 0 --fix",
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
28
|
"prettier": "prettier --write \"{src,stories,tests}/**/*.{js,ts,tsx,css}\"",
|
|
29
|
-
"preversion": "npm-run-
|
|
30
|
-
"prepare": "husky
|
|
29
|
+
"preversion": "npm-run-all2 --parallel typecheck lint build",
|
|
30
|
+
"prepare": "husky",
|
|
31
31
|
"version": "pnpm build",
|
|
32
32
|
"unlink-all": "rm pnpm-workspace.yaml && pnpm install"
|
|
33
33
|
},
|
|
@@ -36,71 +36,70 @@
|
|
|
36
36
|
"@fontsource/pt-sans": "5.2.5",
|
|
37
37
|
"@fontsource/pt-serif": "5.2.5",
|
|
38
38
|
"@headlessui/react": "2.2.3",
|
|
39
|
-
"@manuscripts/body-editor": "3.
|
|
40
|
-
"@manuscripts/style-guide": "3.
|
|
41
|
-
"@manuscripts/track-changes-plugin": "2.
|
|
42
|
-
"@manuscripts/transform": "4.
|
|
39
|
+
"@manuscripts/body-editor": "3.13.0",
|
|
40
|
+
"@manuscripts/style-guide": "3.6.0",
|
|
41
|
+
"@manuscripts/track-changes-plugin": "2.4.0",
|
|
42
|
+
"@manuscripts/transform": "4.4.0",
|
|
43
43
|
"@popperjs/core": "2.11.8",
|
|
44
|
-
"axios": "1.
|
|
44
|
+
"axios": "1.16.0",
|
|
45
45
|
"date-fns": "4.1.0",
|
|
46
|
-
"diff-match-patch": "
|
|
47
|
-
"dompurify": "3.
|
|
46
|
+
"diff-match-patch": "1.0.5",
|
|
47
|
+
"dompurify": "3.4.3",
|
|
48
48
|
"html-react-parser": "5.2.5",
|
|
49
49
|
"jwt-decode": "4.0.0",
|
|
50
|
-
"lodash": "4.
|
|
50
|
+
"lodash": "4.18.1",
|
|
51
51
|
"prosemirror-model": "1.25.0",
|
|
52
52
|
"prosemirror-state": "1.4.3",
|
|
53
53
|
"prosemirror-transform": "1.10.4",
|
|
54
54
|
"prosemirror-utils": "1.2.2",
|
|
55
55
|
"prosemirror-view": "1.41.0",
|
|
56
|
-
"react": "19.2.
|
|
56
|
+
"react": "19.2.6",
|
|
57
57
|
"react-dnd": "16.0.1",
|
|
58
58
|
"react-dnd-html5-backend": "16.0.1",
|
|
59
|
-
"react-dom": "19.2.
|
|
59
|
+
"react-dom": "19.2.6",
|
|
60
60
|
"react-is": "18.3.1",
|
|
61
61
|
"react-popper": "2.3.0",
|
|
62
62
|
"react-router-dom": "6.30.0",
|
|
63
|
-
"react-select": "5.10.
|
|
63
|
+
"react-select": "5.10.2",
|
|
64
64
|
"styled-components": "5.3.11",
|
|
65
|
-
"use-sync-external-store": "1.
|
|
66
|
-
"uuid": "
|
|
65
|
+
"use-sync-external-store": "1.6.0",
|
|
66
|
+
"uuid": "14.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@
|
|
70
|
-
"@eslint/eslintrc": "3.3.1",
|
|
69
|
+
"@eslint/eslintrc": "3.3.5",
|
|
71
70
|
"@eslint/js": "9.39.1",
|
|
72
71
|
"@manuscripts/eslint-config": "0.5.1",
|
|
73
|
-
"@types/diff-match-patch": "^1.0.36",
|
|
74
72
|
"@types/csl": "npm:csl-json@v0.1.0",
|
|
75
|
-
"
|
|
76
|
-
"@types/lodash": "4.17.
|
|
73
|
+
"@types/diff-match-patch": "^1.0.36",
|
|
74
|
+
"@types/lodash": "4.17.24",
|
|
77
75
|
"@types/node": "20.17.46",
|
|
78
|
-
"@types/react": "19.2.
|
|
76
|
+
"@types/react": "19.2.7",
|
|
79
77
|
"@types/react-dom": "19.2.3",
|
|
80
|
-
"@types/styled-components": "5.1.
|
|
78
|
+
"@types/styled-components": "5.1.36",
|
|
81
79
|
"@types/use-sync-external-store": "1.5.0",
|
|
82
|
-
"@
|
|
83
|
-
"@typescript-eslint/
|
|
84
|
-
"@
|
|
85
|
-
"vitest": "4.1.6",
|
|
80
|
+
"@typescript-eslint/eslint-plugin": "8.59.3",
|
|
81
|
+
"@typescript-eslint/parser": "8.59.3",
|
|
82
|
+
"@vitest/coverage-v8": "4.1.6",
|
|
86
83
|
"eslint": "9.39.1",
|
|
87
84
|
"eslint-config-prettier": "10.1.8",
|
|
88
|
-
"eslint-plugin-diff": "2.
|
|
85
|
+
"eslint-plugin-diff": "2.1.7",
|
|
89
86
|
"eslint-plugin-header": "3.1.1",
|
|
90
87
|
"eslint-plugin-import": "2.32.0",
|
|
91
88
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
92
|
-
"eslint-plugin-mdx": "3.
|
|
89
|
+
"eslint-plugin-mdx": "3.7.0",
|
|
93
90
|
"eslint-plugin-node": "11.1.0",
|
|
94
|
-
"eslint-plugin-prettier": "5.5.
|
|
95
|
-
"eslint-plugin-promise": "7.
|
|
91
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
92
|
+
"eslint-plugin-promise": "7.3.0",
|
|
96
93
|
"eslint-plugin-react": "7.37.5",
|
|
97
|
-
"eslint-plugin-react-hooks": "7.
|
|
94
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
98
95
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
99
|
-
"husky": "
|
|
100
|
-
"
|
|
101
|
-
"
|
|
96
|
+
"husky": "9.1.7",
|
|
97
|
+
"jsdom": "29.1.1",
|
|
98
|
+
"npm-run-all2": "^8.0.4",
|
|
99
|
+
"prettier": "3.8.3",
|
|
102
100
|
"react-dnd-test-backend": "16.0.1",
|
|
103
|
-
"typescript": "5.9.2"
|
|
101
|
+
"typescript": "5.9.2",
|
|
102
|
+
"vitest": "4.1.7"
|
|
104
103
|
},
|
|
105
104
|
"engines": {
|
|
106
105
|
"node": ">=22"
|