@infomaximum/package-cli 2.2.1 → 2.4.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.
- package/CHANGELOG.md +19 -0
- package/dist/package/templates/packageManifest.js +1 -0
- package/dist/widget/templates/src/definition/definition.js +2 -2
- package/dist/widget/templates/src/definition/panel.js +1 -1
- package/dist/widget/templates/src/widgetIndex.js +4 -4
- package/dist/widget/templates/widgetConfigs.js +0 -1
- package/package.json +1 -1
- package/schemas/packageManifestSchema.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.4.0](https://github.com/Infomaximum/package-cli/compare/v2.3.0...v2.4.0) (2024-07-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* добавлено поле min_version_platform в манифест пакета ([ff562f3](https://github.com/Infomaximum/package-cli/commit/ff562f35d94345e1a80e4ee86adebbf79b38eb00))
|
|
11
|
+
|
|
12
|
+
## [2.3.0](https://github.com/Infomaximum/package-cli/compare/v2.2.1...v2.3.0) (2024-03-25)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* передача манифеста при регистрации виджета ([f24a231](https://github.com/Infomaximum/package-cli/commit/f24a23144b061d5627b69919575d5de7fb138940))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* убран baseUrl ([2448a1a](https://github.com/Infomaximum/package-cli/commit/2448a1ad7ec69af8369576b544364dc519df5060))
|
|
23
|
+
|
|
5
24
|
### [2.2.1](https://github.com/Infomaximum/package-cli/compare/v2.2.0...v2.2.1) (2024-03-22)
|
|
6
25
|
|
|
7
26
|
|
|
@@ -5,6 +5,7 @@ export const PACKAGE_MANIFEST_TEMPLATE = `\
|
|
|
5
5
|
{
|
|
6
6
|
"$schema": "../node_modules/${CUSTOM_PACKAGE_CLI_LIB_NAME}/schemas/packageManifestSchema.json",
|
|
7
7
|
"manifest_version": "1",
|
|
8
|
+
"min_version_platform": "1.0.0.0",
|
|
8
9
|
"author": "{{author}}",
|
|
9
10
|
"guid": "${randomUUID()}",
|
|
10
11
|
"type": "{{packageType}}",
|
|
@@ -9,8 +9,8 @@ import type {
|
|
|
9
9
|
IWidgetDimensionHierarchy,
|
|
10
10
|
IWidgetMeasure,
|
|
11
11
|
} from "${WIDGET_SDK_LIB_NAME}";
|
|
12
|
-
import { fillSettings, type WidgetSettings } from "
|
|
13
|
-
import { createPanelDescription } from "
|
|
12
|
+
import { fillSettings, type WidgetSettings } from "./settings";
|
|
13
|
+
import { createPanelDescription } from "./panel";
|
|
14
14
|
|
|
15
15
|
export class Definition implements IDefinition<WidgetSettings, IGroupSettings> {
|
|
16
16
|
public createPanelDescription: IPanelDescriptionCreator<
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
type IPanelDescriptionCreator,
|
|
5
5
|
type IGroupSettings,
|
|
6
6
|
} from "${WIDGET_SDK_LIB_NAME}";
|
|
7
|
-
import type { WidgetSettings } from "
|
|
7
|
+
import type { WidgetSettings } from "./settings";
|
|
8
8
|
|
|
9
9
|
export const createPanelDescription: IPanelDescriptionCreator<
|
|
10
10
|
WidgetSettings,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
type ICustomWidgetProps,
|
|
11
11
|
} from "${WIDGET_SDK_LIB_NAME}";
|
|
12
12
|
import manifest from "../${MANIFEST_JSON_FILE_NAME}";
|
|
13
|
-
import { type WidgetSettings } from "definition/settings";
|
|
14
|
-
import { Definition } from "definition/definition";
|
|
13
|
+
import { type WidgetSettings } from "./definition/settings";
|
|
14
|
+
import { Definition } from "./definition/definition";
|
|
15
15
|
|
|
16
16
|
class CustomWidget implements IWidget<WidgetSettings> {
|
|
17
17
|
public static definition = new Definition();
|
|
18
18
|
|
|
19
|
-
root: ReactDOM.Root | null = null;
|
|
19
|
+
private root: ReactDOM.Root | null = null;
|
|
20
20
|
|
|
21
21
|
public initialize(container: HTMLElement) {
|
|
22
22
|
this.root = ReactDOM.createRoot(container);
|
|
@@ -49,5 +49,5 @@ class CustomWidget implements IWidget<WidgetSettings> {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
window.im.widget.defineWidget(manifest.uuid, CustomWidget);
|
|
52
|
+
window.im.widget.defineWidget(manifest.uuid, CustomWidget, { manifest });
|
|
53
53
|
`;
|
package/package.json
CHANGED
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"min_version_platform": {
|
|
31
31
|
"type": "string",
|
|
32
|
-
"title": "Минимальная версия платформы (модуля
|
|
32
|
+
"title": "Минимальная версия платформы (модуля subsystems) с которой совместим пакет"
|
|
33
33
|
},
|
|
34
34
|
"max_version_platform": {
|
|
35
35
|
"type": "string",
|
|
36
|
-
"title": "Максимальная версия платформы (модуля
|
|
36
|
+
"title": "Максимальная версия платформы (модуля subsystems) с которой совместим пакет"
|
|
37
37
|
},
|
|
38
38
|
"systems": {
|
|
39
39
|
"type": "array",
|