@cortezaproject/corteza-vue 2024.9.1 → 2024.9.2-dev.2

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.
Files changed (85) hide show
  1. package/dist/components/c3/Controls/index.d.ts +22 -22
  2. package/dist/components/c3/helpers.d.ts +28 -28
  3. package/dist/components/c3/index.d.ts +7 -7
  4. package/dist/components/chart/index.d.ts +1 -1
  5. package/dist/components/corredor/index.d.ts +1 -1
  6. package/dist/components/filePreview/index.d.ts +3 -3
  7. package/dist/components/hint/index.d.ts +1 -1
  8. package/dist/components/index.d.ts +22 -22
  9. package/dist/components/input/CInputDateTime/lib/index.d.ts +4 -4
  10. package/dist/components/input/button/index.d.ts +1 -1
  11. package/dist/components/input/index.d.ts +13 -14
  12. package/dist/components/itemPicker/index.d.ts +2 -2
  13. package/dist/components/lightbox/index.d.ts +1 -1
  14. package/dist/components/loader/index.d.ts +1 -1
  15. package/dist/components/map/index.d.ts +1 -1
  16. package/dist/components/navigation/index.d.ts +3 -3
  17. package/dist/components/permissions/def.d.ts +14 -14
  18. package/dist/components/permissions/index.d.ts +2 -2
  19. package/dist/components/privacy/index.d.ts +1 -1
  20. package/dist/components/progress/index.d.ts +1 -1
  21. package/dist/components/prompts/definitions.d.ts +2 -2
  22. package/dist/components/prompts/index.d.ts +4 -4
  23. package/dist/components/prompts/kinds/index.d.ts +22 -22
  24. package/dist/components/prompts/utils.d.ts +3 -3
  25. package/dist/components/reminders/index.d.ts +1 -1
  26. package/dist/components/reporter/index.d.ts +4 -4
  27. package/dist/components/resourceList/index.d.ts +1 -1
  28. package/dist/components/toaster/index.d.ts +2 -2
  29. package/dist/components/toolbar/index.d.ts +1 -1
  30. package/dist/components/webcam/index.d.ts +1 -1
  31. package/dist/components/wrapper/index.d.ts +1 -1
  32. package/dist/corredor/compose-ctx.d.ts +32 -32
  33. package/dist/corredor/compose-ui.d.ts +105 -105
  34. package/dist/corredor/index.d.ts +3 -3
  35. package/dist/corredor/webapp-ctx.d.ts +11 -11
  36. package/dist/filters/date.d.ts +2 -2
  37. package/dist/filters/index.d.ts +2 -2
  38. package/dist/filters/url.d.ts +1 -1
  39. package/dist/i18n.d.ts +40 -40
  40. package/dist/index.d.ts +12 -12
  41. package/dist/index.es.js +26148 -92742
  42. package/dist/index.es.js.map +1 -1
  43. package/dist/index.js +26224 -92803
  44. package/dist/index.js.map +1 -1
  45. package/dist/libs/filter.d.ts +3 -3
  46. package/dist/libs/handle.d.ts +4 -4
  47. package/dist/libs/url.d.ts +12 -12
  48. package/dist/libs/websocket.d.ts +23 -23
  49. package/dist/mixins/index.d.ts +3 -3
  50. package/dist/plugins/auth.d.ts +214 -214
  51. package/dist/plugins/corteza-api.d.ts +15 -15
  52. package/dist/plugins/eventbus.d.ts +3 -3
  53. package/dist/plugins/index.d.ts +7 -7
  54. package/dist/plugins/ui-hooks.d.ts +74 -74
  55. package/dist/store/RBAC.d.ts +15 -15
  56. package/dist/store/index.d.ts +2 -2
  57. package/dist/store/wf-prompts/index.d.ts +21 -21
  58. package/package.json +80 -112
  59. package/dist/components/Tour/index.d.ts +0 -2
  60. package/dist/components/c3/C3.d.ts +0 -5
  61. package/dist/components/filePreview/common/index.d.ts +0 -2
  62. package/dist/components/filePreview/common/types/PDF/helpers.d.ts +0 -53
  63. package/dist/components/filePreview/common/types/index.d.ts +0 -3
  64. package/dist/components/input/CRichTextInput/RToolbar/TMark/loader.d.ts +0 -10
  65. package/dist/components/input/CRichTextInput/RToolbar/TNode/loader.d.ts +0 -6
  66. package/dist/components/input/CRichTextInput/RToolbar/TNodeAttr/loader.d.ts +0 -8
  67. package/dist/components/input/CRichTextInput/RToolbar/loader.d.ts +0 -9
  68. package/dist/components/input/CRichTextInput/extensions/heading.d.ts +0 -12
  69. package/dist/components/input/CRichTextInput/extensions/htmlPaster.d.ts +0 -4
  70. package/dist/components/input/CRichTextInput/extensions/index.d.ts +0 -6
  71. package/dist/components/input/CRichTextInput/extensions/link.d.ts +0 -6
  72. package/dist/components/input/CRichTextInput/extensions/paragraph.d.ts +0 -9
  73. package/dist/components/input/CRichTextInput/extensions/textBackground.d.ts +0 -23
  74. package/dist/components/input/CRichTextInput/extensions/textColor.d.ts +0 -23
  75. package/dist/components/input/CRichTextInput/extensions/utils.d.ts +0 -15
  76. package/dist/components/input/CRichTextInput/lib/formats.d.ts +0 -107
  77. package/dist/components/input/CRichTextInput/lib/index.d.ts +0 -1
  78. package/dist/components/itemPicker/C3.d.ts +0 -1
  79. package/dist/components/itemPicker/CItemPicker.c3.d.ts +0 -32
  80. package/dist/components/toaster/actions/index.d.ts +0 -3
  81. package/dist/mixins/corredor.d.ts +0 -49
  82. package/dist/mixins/files.d.ts +0 -19
  83. package/dist/mixins/vue-select-position.d.ts +0 -11
  84. package/dist/plugins/reminder.d.ts +0 -66
  85. package/dist/plugins/settings.d.ts +0 -27
@@ -1,74 +1,74 @@
1
- import { PluginFunction } from 'vue';
2
- import { eventbus } from '@cortezaproject/corteza-js';
3
- interface UIProp {
4
- name: string;
5
- value: string;
6
- }
7
- interface Trigger {
8
- resourceTypes: string[];
9
- eventTypes: string[];
10
- uiProps: UIProp[];
11
- constraints: object[];
12
- weight?: number;
13
- }
14
- interface Script {
15
- name: string;
16
- label: string;
17
- description?: string;
18
- errors?: string[];
19
- triggers: Trigger[];
20
- }
21
- export declare class Button {
22
- readonly label: string;
23
- readonly description?: string;
24
- readonly script: string;
25
- readonly resourceType: string;
26
- readonly weight: number;
27
- readonly variant?: string;
28
- readonly page?: string;
29
- readonly slot?: string;
30
- readonly constraints: eventbus.ConstraintMatcher[];
31
- constructor(s: Script, t: Trigger);
32
- }
33
- /**
34
- * Consumes scripts that can be triggered manually and converts it to list of buttons
35
- *
36
- * These buttons can put manually to various compose page block or
37
- * positioned automatically on designated pages & slots
38
- */
39
- export declare class UIHooks {
40
- readonly app: string;
41
- readonly verbose = false;
42
- protected set: Button[];
43
- constructor(opt: string | Partial<UIHooks>);
44
- /**
45
- * Takes one or more scripts and converts them to buttons
46
- *
47
- * With every script added it removes ALL
48
- * buttons that use the same script
49
- */
50
- Register(...scripts: Script[]): void;
51
- /**
52
- * Remove all buttons that match a script
53
- * @param name
54
- * @constructor
55
- */
56
- Unregister({ name }: Script): void;
57
- /**
58
- * Searches for buttons that match the requirements
59
- *
60
- * This is used in 2 kinds of places:
61
- * - currated list of buttons in compose blocks where admin can
62
- * picks, reorder, name and style scripts by hand
63
- * - different slots on pages where scripts are automatically placed
64
- *
65
- * @param resourceType
66
- * @param page
67
- * @param slot
68
- * @constructor
69
- */
70
- Find(resourceType: string | string[], page?: string, slot?: string): Button[];
71
- FindByScript(script: string): Button | undefined;
72
- }
73
- export default function (): PluginFunction<Partial<UIHooks>>;
74
- export {};
1
+ import { PluginFunction } from 'vue';
2
+ import { eventbus } from '@cortezaproject/corteza-js';
3
+ interface UIProp {
4
+ name: string;
5
+ value: string;
6
+ }
7
+ interface Trigger {
8
+ resourceTypes: string[];
9
+ eventTypes: string[];
10
+ uiProps: UIProp[];
11
+ constraints: object[];
12
+ weight?: number;
13
+ }
14
+ interface Script {
15
+ name: string;
16
+ label: string;
17
+ description?: string;
18
+ errors?: string[];
19
+ triggers: Trigger[];
20
+ }
21
+ export declare class Button {
22
+ readonly label: string;
23
+ readonly description?: string;
24
+ readonly script: string;
25
+ readonly resourceType: string;
26
+ readonly weight: number;
27
+ readonly variant?: string;
28
+ readonly page?: string;
29
+ readonly slot?: string;
30
+ readonly constraints: eventbus.ConstraintMatcher[];
31
+ constructor(s: Script, t: Trigger);
32
+ }
33
+ /**
34
+ * Consumes scripts that can be triggered manually and converts it to list of buttons
35
+ *
36
+ * These buttons can put manually to various compose page block or
37
+ * positioned automatically on designated pages & slots
38
+ */
39
+ export declare class UIHooks {
40
+ readonly app: string;
41
+ readonly verbose = false;
42
+ protected set: Button[];
43
+ constructor(opt: string | Partial<UIHooks>);
44
+ /**
45
+ * Takes one or more scripts and converts them to buttons
46
+ *
47
+ * With every script added it removes ALL
48
+ * buttons that use the same script
49
+ */
50
+ Register(...scripts: Script[]): void;
51
+ /**
52
+ * Remove all buttons that match a script
53
+ * @param name
54
+ * @constructor
55
+ */
56
+ Unregister({ name }: Script): void;
57
+ /**
58
+ * Searches for buttons that match the requirements
59
+ *
60
+ * This is used in 2 kinds of places:
61
+ * - currated list of buttons in compose blocks where admin can
62
+ * picks, reorder, name and style scripts by hand
63
+ * - different slots on pages where scripts are automatically placed
64
+ *
65
+ * @param resourceType
66
+ * @param page
67
+ * @param slot
68
+ * @constructor
69
+ */
70
+ Find(resourceType: string | string[], page?: string, slot?: string): Button[];
71
+ FindByScript(script: string): Button | undefined;
72
+ }
73
+ export default function (): PluginFunction<Partial<UIHooks>>;
74
+ export {};
@@ -1,15 +1,15 @@
1
- import { StoreOptions } from 'vuex';
2
- interface Rule {
3
- resource: string;
4
- operation: string;
5
- allow: boolean;
6
- }
7
- interface State {
8
- loaded: boolean;
9
- rules: Array<Rule>;
10
- }
11
- interface Fetcher {
12
- permissionsEffective: () => Promise<Array<Rule>>;
13
- }
14
- export default function (...apis: Array<Fetcher>): StoreOptions<State>;
15
- export {};
1
+ import { StoreOptions } from 'vuex';
2
+ interface Rule {
3
+ resource: string;
4
+ operation: string;
5
+ allow: boolean;
6
+ }
7
+ interface State {
8
+ loaded: boolean;
9
+ rules: Array<Rule>;
10
+ }
11
+ interface Fetcher {
12
+ permissionsEffective: () => Promise<Array<Rule>>;
13
+ }
14
+ export default function (...apis: Array<Fetcher>): StoreOptions<State>;
15
+ export {};
@@ -1,2 +1,2 @@
1
- export { default as wfPrompts } from './wf-prompts';
2
- export { default as RBAC } from './RBAC';
1
+ export { default as wfPrompts } from './wf-prompts';
2
+ export { default as RBAC } from './RBAC';
@@ -1,21 +1,21 @@
1
- import { apiClients, automation } from '@cortezaproject/corteza-js';
2
- import { StoreOptions } from 'vuex';
3
- interface Options {
4
- api: apiClients.Automation;
5
- ws: WebSocket;
6
- watchInterval: number;
7
- webapp: string;
8
- }
9
- interface State {
10
- loading: boolean;
11
- prompts: Array<automation.Prompt>;
12
- /**
13
- * Is prompt component active (modal open)?
14
- * prompt = modal is open, show this/current prompt
15
- * true = modal is open, show list of pending prompts
16
- * false = modal is closed
17
- */
18
- active: automation.Prompt | boolean;
19
- }
20
- export default function ({ api, webapp }: Options): StoreOptions<State>;
21
- export {};
1
+ import { apiClients, automation } from '@cortezaproject/corteza-js';
2
+ import { StoreOptions } from 'vuex';
3
+ interface Options {
4
+ api: apiClients.Automation;
5
+ ws: WebSocket;
6
+ watchInterval: number;
7
+ webapp: string;
8
+ }
9
+ interface State {
10
+ loading: boolean;
11
+ prompts: Array<automation.Prompt>;
12
+ /**
13
+ * Is prompt component active (modal open)?
14
+ * prompt = modal is open, show this/current prompt
15
+ * true = modal is open, show list of pending prompts
16
+ * false = modal is closed
17
+ */
18
+ active: automation.Prompt | boolean;
19
+ }
20
+ export default function ({ api, webapp }: Options): StoreOptions<State>;
21
+ export {};
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@cortezaproject/corteza-vue",
3
3
  "description": "Corteza Vue.js JavaScript/TypeScript libs",
4
- "version": "2024.9.1",
4
+ "version": "2024.9.2-dev.2",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Denis Arh <denis.arh@crust.tech>",
7
+ "type": "module",
7
8
  "main": "dist/index.js",
8
9
  "module": "dist/index.es.js",
9
10
  "types": "dist/index.d.ts",
@@ -13,119 +14,103 @@
13
14
  "scripts": {
14
15
  "build": "rollup -c --environment BUILD:production",
15
16
  "build:dev": "rollup -c",
16
- "lint": "eslint src/** --ext .js,.ts --no-fix",
17
+ "lint": "eslint src --ext .js,.ts,.vue",
17
18
  "test:unit": "mocha",
18
- "test:unit:cc": "nyc mocha",
19
- "cdeps": "yarn upgrade @cortezaproject/corteza-js"
19
+ "test": "yarn test:unit",
20
+ "cdeps": "yarn link @cortezaproject/corteza-js"
20
21
  },
21
22
  "gitHooks": {
22
23
  "pre-commit": "yarn lint"
23
24
  },
24
25
  "dependencies": {
25
- "@cortezaproject/corteza-js": "^2024.9.1",
26
- "@fortawesome/fontawesome-svg-core": "^1.2.26",
27
- "@fortawesome/free-solid-svg-icons": "^5.12.0",
28
- "@fortawesome/vue-fontawesome": "^0.1.9",
26
+ "@cortezaproject/corteza-js": "^2024.9.2-dev.2",
27
+ "@fortawesome/fontawesome-svg-core": "^6.7.2",
28
+ "@fortawesome/free-solid-svg-icons": "^6.7.2",
29
+ "@fortawesome/vue-fontawesome": "^2.0.10",
29
30
  "@panter/vue-i18next": "^0.15.0",
30
- "@popperjs/core": "^2.11.2",
31
- "acorn": "^7.3.1",
31
+ "@popperjs/core": "^2.11.8",
32
32
  "bootstrap-vue": "2.23.1",
33
- "echarts": "5.5.0",
34
- "fuzzysort": "^1.2.1",
35
- "highlight.js": "^10.4.1",
33
+ "echarts": "5.6.0",
34
+ "fuzzysort": "^3.1.0",
36
35
  "html-parse-stringify": "^3.0.1",
37
- "i18next": "^20.0.0",
38
- "i18next-browser-languagedetector": "^3.0.2",
39
- "i18next-http-backend": "^1.3.0",
40
- "i18next-multiload-backend-adapter": "^1.0.0",
41
- "kind-of": "^6.0.3",
42
- "leaflet": "^1.7.1",
43
- "leaflet-geosearch": "^3.7.0",
36
+ "i18next": "^23.16.8",
37
+ "i18next-browser-languagedetector": "^8.0.4",
38
+ "i18next-http-backend": "^3.0.2",
39
+ "i18next-multiload-backend-adapter": "^2.3.0",
40
+ "leaflet": "^1.9.4",
41
+ "leaflet-geosearch": "^4.1.0",
44
42
  "lodash": "^4.17.21",
43
+ "mime": "^4.0.6",
45
44
  "moment": "2.30.1",
46
45
  "numeral": "^2.0.6",
47
- "pdfjs-dist": "2.2.228",
48
- "pino": "^5.16.0",
49
- "portal-vue": "^2.1.7",
50
- "qs": "^6.9.1",
51
- "tiptap": "^1.26.0",
52
- "tiptap-extensions": "^1.28.4",
46
+ "pdfjs-dist": "^4.10.38",
47
+ "pino": "^9.6.0",
48
+ "portal-vue": "^3.0.0",
49
+ "qs": "^6.14.0",
50
+ "tiptap": "^1.32.2",
51
+ "tiptap-extensions": "^1.35.2",
53
52
  "v-photoswipe": "^1.0.3-1",
54
- "vue": "2.6.14",
53
+ "vue": "2.7.16",
55
54
  "vue-color": "^2.8.1",
56
- "vue-echarts": "6.7.3",
57
- "vue-select": "3.20.2",
58
- "vue-swatches": "^1.0.4",
55
+ "vue-echarts": "7.0.3",
56
+ "vue-select": "3.20.3",
57
+ "vue-swatches": "^2.1.1",
59
58
  "vue2-ace-editor": "^0.0.15",
60
59
  "vue2-leaflet": "^2.7.1",
61
- "vuedraggable": "^2.23.0",
60
+ "vuedraggable": "^2.24.3",
62
61
  "vuex": "^3.6.2",
63
- "websocket-extensions": "^0.1.4",
64
- "y18n": "^4.0.1"
62
+ "websocket-extensions": "^0.1.4"
65
63
  },
66
64
  "devDependencies": {
67
- "@istanbuljs/nyc-config-typescript": "1.0.1",
68
- "@rollup/plugin-commonjs": "^11.0.1",
69
- "@rollup/plugin-node-resolve": "^7.0.0",
70
- "@types/chai": "^4.2.6",
71
- "@types/chai-as-promised": "^7.1.2",
72
- "@types/lodash": "^4.14.149",
73
- "@types/mime-types": "^2.1.0",
74
- "@types/mocha": "^5.2.7",
75
- "@types/pino": "^5.15.3",
65
+ "@babel/core": "^7.26.7",
66
+ "@babel/eslint-parser": "^7.26.5",
67
+ "@babel/plugin-transform-class-properties": "^7.25.9",
68
+ "@babel/plugin-transform-private-methods": "^7.25.9",
69
+ "@babel/plugin-transform-private-property-in-object": "^7.25.9",
70
+ "@babel/preset-env": "^7.26.7",
71
+ "@rollup/plugin-babel": "^6.0.4",
72
+ "@rollup/plugin-commonjs": "^25.0.0",
73
+ "@rollup/plugin-json": "^6.1.0",
74
+ "@rollup/plugin-node-resolve": "^16.0.0",
75
+ "@types/chai": "^5.0.1",
76
+ "@types/chai-as-promised": "^8.0.1",
77
+ "@types/leaflet": "^1.9.16",
78
+ "@types/lodash": "^4.17.15",
79
+ "@types/mocha": "^10.0.10",
80
+ "@types/node": "^22.13.10",
76
81
  "@types/qs": "^6.9.0",
77
- "@typescript-eslint/eslint-plugin": "^7.0.1",
78
- "@typescript-eslint/parser": "^2.11.0",
79
- "@vue/cli-plugin-babel": "4.1.2",
80
- "@vue/cli-plugin-eslint": "4.1.2",
81
- "@vue/cli-service": "^4.1.2",
82
- "@vue/eslint-config-standard": "5.1.0",
83
- "@vue/test-utils": "^1.0.0-beta.25",
84
- "babel-eslint": "^10.0.3",
85
- "chai": "^4.2.0",
86
- "chai-as-promised": "^7.1.1",
82
+ "@typescript-eslint/eslint-plugin": "^8.22.0",
83
+ "@typescript-eslint/parser": "^8.22.0",
84
+ "@vue/eslint-config-standard": "^8.0.1",
85
+ "chai": "^5.1.2",
86
+ "chai-as-promised": "^8.0.1",
87
87
  "eslint": "^8.7.2",
88
- "eslint-config-corteza-lib": "file:../eslint-lib",
89
- "eslint-config-standard": "^14.1.0",
90
- "eslint-import-resolver-typescript": "^2.0.0",
91
- "eslint-plugin-import": "^2.19.1",
92
- "eslint-plugin-json": "^2.0.1",
93
- "eslint-plugin-node": "11.0.0",
94
- "eslint-plugin-promise": "^4.2.1",
95
- "eslint-plugin-standard": "^4.0.1",
96
- "eslint-plugin-vue": "^9.21.1",
88
+ "eslint-config-standard": "^17.1.0",
89
+ "eslint-import-resolver-typescript": "^3.7.0",
90
+ "eslint-plugin-import": "^2.31.0",
91
+ "eslint-plugin-json": "^4.0.1",
92
+ "eslint-plugin-node": "^11.1.0",
93
+ "eslint-plugin-promise": "^7.2.1",
94
+ "eslint-plugin-standard": "^5.0.0",
95
+ "eslint-plugin-vue": "^9.32.0",
97
96
  "esm": "^3.2.25",
98
97
  "i18next-pseudo": "^2.2.1",
99
- "mocha": "7.0.0",
100
- "node-watch": "^0.6.3",
101
- "nodemon": "2.0.2",
102
- "nyc": "15.0.0",
103
- "rollup": "^1.29.0",
104
- "rollup-plugin-babel": "^4.3.3",
98
+ "mocha": "^11.1.0",
99
+ "node-watch": "^0.7.4",
100
+ "nodemon": "^3.1.9",
101
+ "rollup": "^4.32.1",
105
102
  "rollup-plugin-import-css": "^3.0.0",
106
- "rollup-plugin-json": "^4.0.0",
107
103
  "rollup-plugin-styles": "^4.0.0",
108
- "rollup-plugin-typescript2": "^0.25.3",
109
- "rollup-plugin-vue": "^5.1.5",
110
- "sass": "^1.49.9",
111
- "sinon": "8.1.0",
112
- "source-map-support": "^0.5.16",
113
- "ts-node": "^9.0.0",
114
- "ts-node-dev": "^1.1.0",
115
- "typescript": "^3.7.4",
116
- "vue-eslint-parser": "^9.3.2",
104
+ "rollup-plugin-typescript2": "^0.36.0",
105
+ "rollup-plugin-vue": "^5.1.9",
106
+ "sass": "^1.85.1",
107
+ "sinon": "^9.2.4",
108
+ "source-map-support": "^0.5.21",
109
+ "tsx": "^4.19.2",
110
+ "typescript": "^5.0.0",
111
+ "vue-eslint-parser": "^9.4.3",
117
112
  "vue-property-decorator": "^8.3.0",
118
- "vue-template-compiler": "^2.6.14"
119
- },
120
- "resolutions": {
121
- "**/**/yargs-parser": "^13.1.2",
122
- "**/**/minimist": "^0.2.1",
123
- "**/**/highlight.js": "^10.4.1",
124
- "**/**/moment": "2.30.1",
125
- "**/**/serialize-javascript": "^3.1.0",
126
- "**/**/node-forge": "^0.10.0",
127
- "**/**/y18n": "^4.0.1",
128
- "bootstrap-vue/**/node-fetch": "^2.6.7"
113
+ "vue-template-compiler": "2.7.16"
129
114
  },
130
115
  "stylelint": {
131
116
  "plugins": [
@@ -133,37 +118,20 @@
133
118
  ],
134
119
  "extends": "stylelint-config-standard",
135
120
  "rules": {
136
- "color-hex-case": null,
137
121
  "color-hex-length": null,
138
- "no-empty-source": null,
139
- "selector-list-comma-newline-after": null
122
+ "no-empty-source": null
140
123
  }
141
124
  },
142
- "nyc": {
143
- "extends": "@istanbuljs/nyc-config-typescript",
144
- "require": [
145
- "ts-node/register"
146
- ],
147
- "all": true,
148
- "check-coverage": true,
149
- "per-file": true,
150
- "lines": 90,
151
- "functions": 90,
152
- "statements": 90,
153
- "reporter": [
154
- "text",
155
- "lcov"
156
- ],
157
- "include": [
158
- "src/**/*.ts"
159
- ]
160
- },
161
125
  "engines": {
162
- "node": ">=12.14.0"
126
+ "node": ">=20.18.2"
163
127
  },
164
128
  "browserslist": [
165
129
  "> 1%",
166
130
  "last 2 versions",
167
131
  "not ie <= 8"
168
- ]
132
+ ],
133
+ "browser": {
134
+ "fs": false,
135
+ "path": false
136
+ }
169
137
  }
@@ -1,2 +0,0 @@
1
- export { default as Tour } from './Tour.vue';
2
- export { default as TourStart } from './TourStart.vue';
@@ -1,5 +0,0 @@
1
- declare namespace _default {
2
- export { itemPicker };
3
- }
4
- export default _default;
5
- import * as itemPicker from "../itemPicker/C3";
@@ -1,2 +0,0 @@
1
- export function getComponent({ type, src, name }: string | undefined): string | undefined;
2
- export function canPreview({ type, src, name }: string | undefined): boolean;
@@ -1,53 +0,0 @@
1
- /**
2
- * Helper to generate a placeholder page node
3
- * @param {Object} labels Available labels
4
- * @returns {Node}
5
- */
6
- export function makePlaceholder(labels: Object): Node;
7
- /**
8
- * Helper to generate a failed page node
9
- * @param {Object} labels Available labels
10
- */
11
- export function makeFailedPage(labels: Object): HTMLDivElement;
12
- /**
13
- * Represents a PDF's page + system metadata
14
- */
15
- export class Page {
16
- constructor(params: any);
17
- merge({ index, page, loading, loaded, rendered, failed, node }: {
18
- index: any;
19
- page: any;
20
- loading: any;
21
- loaded: any;
22
- rendered: any;
23
- failed: any;
24
- node: any;
25
- }): void;
26
- index: any;
27
- page: any;
28
- loading: any;
29
- loaded: any;
30
- rendered: any;
31
- failed: any;
32
- node: any;
33
- }
34
- /**
35
- * Represents the document source
36
- */
37
- export class Document {
38
- constructor(params: any);
39
- merge({ src, pdf, loading, loaded, failed, scale }: {
40
- src: any;
41
- pdf: any;
42
- loading: any;
43
- loaded: any;
44
- failed: any;
45
- scale: any;
46
- }): void;
47
- src: any;
48
- pdf: any;
49
- loading: any;
50
- loaded: any;
51
- failed: any;
52
- scale: any;
53
- }
@@ -1,3 +0,0 @@
1
- export { default as InlineIMG } from "./IMG/InlineIMG.vue";
2
- export { default as LightboxIMG } from "./IMG/LightboxIMG.vue";
3
- export { default as PDF } from "./PDF/PDF.vue";
@@ -1,10 +0,0 @@
1
- /// <reference path="../../../../../src/vue.shims.d.ts" />
2
- declare namespace _default {
3
- export { Color };
4
- export { Item };
5
- export { Link };
6
- }
7
- export default _default;
8
- import Color from "*.vue";
9
- import Item from "*.vue";
10
- import Link from "*.vue";
@@ -1,6 +0,0 @@
1
- /// <reference path="../../../../../src/vue.shims.d.ts" />
2
- declare namespace _default {
3
- export { Item };
4
- }
5
- export default _default;
6
- import Item from "*.vue";
@@ -1,8 +0,0 @@
1
- /// <reference path="../../../../../src/vue.shims.d.ts" />
2
- declare namespace _default {
3
- export { Alignment };
4
- export { Table };
5
- }
6
- export default _default;
7
- import Alignment from "*.vue";
8
- import Table from "*.vue";
@@ -1,9 +0,0 @@
1
- declare namespace _default {
2
- export { mark };
3
- export { node };
4
- export { nodeAttr };
5
- }
6
- export default _default;
7
- import mark from "./TMark/loader";
8
- import node from "./TNode/loader";
9
- import nodeAttr from "./TNodeAttr/loader";
@@ -1,12 +0,0 @@
1
- /**
2
- * Extends original heading node to allow content alignment
3
- */
4
- export default class Heading {
5
- get defaultOptions(): any;
6
- get baseP(): any;
7
- get schema(): any;
8
- commands({ type, schema }: {
9
- type: any;
10
- schema: any;
11
- }): (attrs: any) => any;
12
- }
@@ -1,4 +0,0 @@
1
- export default class HtmlPaster {
2
- get name(): string;
3
- get plugins(): any[];
4
- }
@@ -1,6 +0,0 @@
1
- export { default as Paragraph } from "./paragraph";
2
- export { default as Heading } from "./heading";
3
- export { default as TextColor } from "./textColor";
4
- export { default as TextBackground } from "./textBackground";
5
- export { default as Link } from "./link";
6
- export { default as HtmlPaster } from "./htmlPaster";
@@ -1,6 +0,0 @@
1
- /**
2
- * Extends original Link node to allow custom target attr
3
- */
4
- export default class Link {
5
- get schema(): any;
6
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Extends original paragraph node to allow content alignment
3
- */
4
- export default class Paragraph {
5
- get schema(): any;
6
- commands({ type }: {
7
- type: any;
8
- }): (attrs: any) => any;
9
- }