@trackunit/iris-app-api 1.3.36 → 1.3.38
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 +8 -0
- package/package.json +1 -1
- package/src/types/extensions/fleetExtensionManifest.d.ts +1 -1
- package/src/types/extensions/fleetExtensionManifest.js.map +1 -1
- package/src/types/extensions/widgetExtensionManifest.d.ts +17 -2
- package/src/types/extensions/widgetExtensionManifest.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 1.3.38 (2025-03-19)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.3.37 (2025-03-18)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 1.3.36 (2025-03-17)
|
|
2
10
|
|
|
3
11
|
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export interface FleetExtensionManifest extends AbstractExtensionManifest {
|
|
|
30
30
|
*
|
|
31
31
|
* @deprecated please use image instead.
|
|
32
32
|
*/
|
|
33
|
-
icon
|
|
33
|
+
icon?: string;
|
|
34
34
|
image?: IconByName | IconByPath;
|
|
35
35
|
/**
|
|
36
36
|
* Description of the menu item, used in the 'Applications' menu.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fleetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/fleetExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { IconByName, IconByPath } from \"../iconImage\";\nimport { AbstractExtensionManifest, RegExpType, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface FleetExtensionManifest extends AbstractExtensionManifest {\n type: \"FLEET_EXTENSION\";\n\n /**\n * Conditions for the fleet extension to be shown.\n * It is case insensitive so does not matter how you write the brand.\n * brand: \"trackunit\" and brand: \"Trackunit\" will be the same.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If both model and brand are used/filled out then asset needs to match both model and brand.\n * - If only brand or model is used/filled out then the asset needs to match the filled out property.\n * - If only scopes is used/filled out then the fleet extension will be shown if the user has the required scope.\n * - If more scopes are used/filled out then the fleet extension will be shown if the user has one of the required scopes.\n * - If no conditions are used/filled out then the asset home extension will be shown for all assets.\n */\n conditions?: {\n model?: (string | RegExpType)[] | string | RegExpType;\n brand?: (string | RegExpType)[] | string | RegExpType;\n scopes?: AccountScope | AccountScope[];\n };\n\n menuItem: {\n /**\n * The name used in the menu item.\n */\n name: string | Translations | TranslationKey;\n /**\n * The icon used in the menu item.\n *\n * @deprecated please use image instead.\n */\n icon
|
|
1
|
+
{"version":3,"file":"fleetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/fleetExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { IconByName, IconByPath } from \"../iconImage\";\nimport { AbstractExtensionManifest, RegExpType, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface FleetExtensionManifest extends AbstractExtensionManifest {\n type: \"FLEET_EXTENSION\";\n\n /**\n * Conditions for the fleet extension to be shown.\n * It is case insensitive so does not matter how you write the brand.\n * brand: \"trackunit\" and brand: \"Trackunit\" will be the same.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If both model and brand are used/filled out then asset needs to match both model and brand.\n * - If only brand or model is used/filled out then the asset needs to match the filled out property.\n * - If only scopes is used/filled out then the fleet extension will be shown if the user has the required scope.\n * - If more scopes are used/filled out then the fleet extension will be shown if the user has one of the required scopes.\n * - If no conditions are used/filled out then the asset home extension will be shown for all assets.\n */\n conditions?: {\n model?: (string | RegExpType)[] | string | RegExpType;\n brand?: (string | RegExpType)[] | string | RegExpType;\n scopes?: AccountScope | AccountScope[];\n };\n\n menuItem: {\n /**\n * The name used in the menu item.\n */\n name: string | Translations | TranslationKey;\n /**\n * The icon used in the menu item.\n *\n * @deprecated please use image instead.\n */\n icon?: string;\n image?: IconByName | IconByPath;\n\n /**\n * Description of the menu item, used in the 'Applications' menu.\n */\n description?: string | Translations | TranslationKey;\n };\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconByName, IconByPath } from "../iconImage";
|
|
1
2
|
import { AbstractExtensionManifest, TranslationKey, Translations } from "../irisAppExtensionManifest";
|
|
2
3
|
export type WidgetBreakpointTypes = "sm" | "lg";
|
|
3
4
|
export declare const widgetBreakpointTypes: WidgetBreakpointTypes[];
|
|
@@ -31,14 +32,28 @@ export interface WidgetExtensionManifest extends AbstractExtensionManifest {
|
|
|
31
32
|
*/
|
|
32
33
|
name: string | Translations | TranslationKey;
|
|
33
34
|
/**
|
|
34
|
-
* The
|
|
35
|
+
* The image of the widget to display in the header, if not it will default to the icon of the manifest.
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
image?: IconByName | IconByPath;
|
|
37
38
|
/**
|
|
38
39
|
* If true a button will be on the header and an editDialog from the src folder of this extension will be loaded
|
|
39
40
|
*/
|
|
40
41
|
hasEditDialog?: boolean;
|
|
41
42
|
};
|
|
43
|
+
footer?: {
|
|
44
|
+
/**
|
|
45
|
+
* The link description to display in the footer, if not it will default to localized version of 'See full details'.
|
|
46
|
+
*/
|
|
47
|
+
linkDescription?: string | Translations | TranslationKey;
|
|
48
|
+
/**
|
|
49
|
+
* The link to display in the footer, the absolute path to the route of the extension you want to link to.
|
|
50
|
+
*/
|
|
51
|
+
link: string;
|
|
52
|
+
/**
|
|
53
|
+
* The powered by image to display in the footer.
|
|
54
|
+
*/
|
|
55
|
+
poweredByImage?: IconByPath;
|
|
56
|
+
};
|
|
42
57
|
supportedLocations: WidgetSupportedLocations[];
|
|
43
58
|
gridOptions?: WidgetGridOptions;
|
|
44
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/widgetExtensionManifest.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"widgetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/widgetExtensionManifest.ts"],"names":[],"mappings":";;;AAIa,QAAA,qBAAqB,GAA4B,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import { IconByName, IconByPath } from \"../iconImage\";\nimport { AbstractExtensionManifest, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\n\nexport type WidgetBreakpointTypes = \"sm\" | \"lg\";\nexport const widgetBreakpointTypes: WidgetBreakpointTypes[] = [\"sm\", \"lg\"];\n\nexport interface WidgetGridOptions {\n /**\n * Minimum width in grid units.\n */\n minW?: number | undefined;\n\n /**\n * Maximum width in grid units.\n */\n maxW?: number | undefined;\n\n /**\n * Minimum height in grid units.\n */\n minH?: number | undefined;\n\n /**\n * Maximum height in grid units.\n */\n maxH?: number | undefined;\n}\n\nexport type WidgetSupportedLocations = \"MY_HOME\" | \"SITE_HOME\";\n\n/**\n * BETA! DONT USE THIS YET - its under development\n */\nexport interface WidgetExtensionManifest extends AbstractExtensionManifest {\n type: \"WIDGET_EXTENSION\";\n\n header: {\n /**\n * The name of the widget to display in the header\n */\n name: string | Translations | TranslationKey;\n\n /**\n * The image of the widget to display in the header, if not it will default to the icon of the manifest.\n */\n image?: IconByName | IconByPath;\n\n /**\n * If true a button will be on the header and an editDialog from the src folder of this extension will be loaded\n */\n hasEditDialog?: boolean;\n };\n\n footer?: {\n /**\n * The link description to display in the footer, if not it will default to localized version of 'See full details'.\n */\n linkDescription?: string | Translations | TranslationKey;\n\n /**\n * The link to display in the footer, the absolute path to the route of the extension you want to link to.\n */\n link: string;\n\n /**\n * The powered by image to display in the footer.\n */\n poweredByImage?: IconByPath;\n };\n supportedLocations: WidgetSupportedLocations[];\n gridOptions?: WidgetGridOptions;\n}\n"]}
|