@cortezaproject/corteza-vue 2021.9.6-dev.3 → 2021.9.6-dev.4

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.
@@ -11,6 +11,28 @@ declare namespace _default {
11
11
  export function makeAutomationScriptsRegistrator(serverScriptHandler: any): ({ set }: {
12
12
  set: any;
13
13
  }) => void;
14
+ /**
15
+ * Creates a function for registering server automation scripts to UIHooks and EventBus plugins
16
+ *
17
+ * API should be corteza API Client class that is passed as a first arg to serverScriptHandler
18
+ * See:
19
+ * - TriggerComposeServerScriptOnManual
20
+ * - TriggerSystemServerScriptOnManual
21
+ */
22
+ export function makeAutomationScriptsRegistrator(serverScriptHandler: any): ({ set }: {
23
+ set: any;
24
+ }) => void;
25
+ /**
26
+ * Loads bundle from system API and registers
27
+ * @return {Promise<T>}
28
+ */
29
+ export function loadBundle({ bundle, type, ext, verbose, ctx }?: {
30
+ bundle: any;
31
+ type?: string | undefined;
32
+ ext?: string | undefined;
33
+ verbose?: boolean | undefined;
34
+ ctx?: any;
35
+ }): Promise<any>;
14
36
  /**
15
37
  * Loads bundle from system API and registers
16
38
  * @return {Promise<T>}
@@ -7,6 +7,13 @@ declare namespace _default {
7
7
  * @returns {Boolean} If this file is acceptable
8
8
  */
9
9
  export function validateFileType(fileName?: string, accepted?: string[]): boolean;
10
+ /**
11
+ * Checks if given file
12
+ * @param {String} fileName File in question
13
+ * @param {Array<String>} accepted Array of accepted mime types
14
+ * @returns {Boolean} If this file is acceptable
15
+ */
16
+ export function validateFileType(fileName?: string, accepted?: string[]): boolean;
10
17
  }
11
18
  }
12
19
  export default _default;
@@ -9,7 +9,7 @@ export class ReminderService {
9
9
  api: any;
10
10
  fetchOffset: number;
11
11
  resource: any;
12
- set: any;
12
+ set: any[];
13
13
  nextRemindAt: Object | null;
14
14
  tHandle: number | null;
15
15
  init(emitter: any, { filter }: {
@@ -30,7 +30,7 @@ export class ReminderService {
30
30
  * Enqueue a given set of reminders
31
31
  * @param {Array<Reminder>} set Set of reminderIDs to enqueue
32
32
  */
33
- enqueue(...set: any[]): void;
33
+ enqueue(...set: Array<any>): void;
34
34
  /**
35
35
  * Dequeue a given set of reminders
36
36
  * @param {Array} set Set of reminderIDs to remove
@@ -42,27 +42,25 @@ export class ReminderService {
42
42
  * @param {Object|null} time Reference point
43
43
  * @private
44
44
  */
45
- findNextProcessTime(set?: any[], time?: Object | null): {
46
- changed: boolean;
47
- time: Object | null;
48
- };
45
+ private findNextProcessTime;
49
46
  /**
50
47
  * Schedules processor ro run at the given time
51
48
  * @param {Moment} at When it should be ran
52
49
  * @param {Moment} now Ref to now; used for tests
53
50
  * @private
54
51
  */
55
- scheduleReminderProcess(at: any, now?: any): void;
52
+ private scheduleReminderProcess;
56
53
  /**
57
54
  * Processes the reminder queue. Emits due reminders &
58
55
  * removes them from state
59
56
  * @param {Moment} now Ref to now; used for tests
60
57
  * @private
61
58
  */
62
- processQueue(now?: any): void;
59
+ private processQueue;
63
60
  }
64
61
  declare namespace _default {
65
62
  export function install(Vue: any, opts: any): void;
63
+ export function install(Vue: any, opts: any): void;
66
64
  }
67
65
  export default _default;
68
66
  import { system } from "@cortezaproject/corteza-js";
@@ -15,5 +15,6 @@ export class Settings {
15
15
  }
16
16
  declare namespace _default {
17
17
  export function install(Vue: any): void;
18
+ export function install(Vue: any): void;
18
19
  }
19
20
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cortezaproject/corteza-vue",
3
3
  "description": "Corteza Vue.js JavaScript/TypeScript libs",
4
- "version": "2021.9.6-dev.3",
4
+ "version": "2021.9.6-dev.4",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Denis Arh <denis.arh@crust.tech>",
7
7
  "main": "dist/index.js",
@@ -22,13 +22,14 @@
22
22
  "pre-commit": "yarn lint"
23
23
  },
24
24
  "dependencies": {
25
- "@cortezaproject/corteza-js": "^2021.9.6-dev.2",
25
+ "@cortezaproject/corteza-js": "^2021.9.6-dev.3",
26
26
  "@fortawesome/fontawesome-svg-core": "^1.2.26",
27
27
  "@fortawesome/free-solid-svg-icons": "^5.12.0",
28
28
  "@fortawesome/vue-fontawesome": "^0.1.9",
29
29
  "@panter/vue-i18next": "^0.15.0",
30
30
  "acorn": "^7.3.1",
31
31
  "bootstrap-vue": "^2.21.2",
32
+ "highlight.js": "^10.4.1",
32
33
  "html-parse-stringify": "^3.0.1",
33
34
  "i18next": "^20.0.0",
34
35
  "i18next-browser-languagedetector": "^3.0.2",
@@ -47,7 +48,8 @@
47
48
  "vue-swatches": "^1.0.4",
48
49
  "vuedraggable": "^2.23.0",
49
50
  "vuex": "^3.6.2",
50
- "websocket-extensions": "^0.1.4"
51
+ "websocket-extensions": "^0.1.4",
52
+ "y18n": "^4.0.1"
51
53
  },
52
54
  "devDependencies": {
53
55
  "@istanbuljs/nyc-config-typescript": "1.0.1",
@@ -85,7 +87,7 @@
85
87
  "node-watch": "^0.6.3",
86
88
  "nodemon": "2.0.2",
87
89
  "nyc": "15.0.0",
88
- "postcss": "^7.0.26",
90
+ "postcss": "^8.2.13",
89
91
  "rollup": "^1.29.0",
90
92
  "rollup-plugin-babel": "^4.3.3",
91
93
  "rollup-plugin-import-css": "^3.0.0",
@@ -94,8 +96,8 @@
94
96
  "rollup-plugin-vue": "^5.1.5",
95
97
  "sinon": "8.1.0",
96
98
  "source-map-support": "^0.5.16",
97
- "ts-node": "^8.6.2",
98
- "ts-node-dev": "^1.0.0",
99
+ "ts-node": "^9.0.0",
100
+ "ts-node-dev": "^1.1.0",
99
101
  "typescript": "^3.7.4",
100
102
  "vue-property-decorator": "^8.3.0",
101
103
  "vue-select": "^3.4.0",