@sitevision/api 2024.1.2 → 2024.2.1
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/package.json +2 -2
- package/server/NodeTypeUtil/index.d.ts +18 -0
- package/server/PermissionUtil.Permission/index.d.ts +1 -0
- package/server/PermissionUtil.Permission/index.js +2 -1
- package/server/PortletContextUtil/index.d.ts +7 -0
- package/server/PortletContextUtil/index.js +1 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +21 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitevision/api",
|
|
3
|
-
"version": "2024.1
|
|
3
|
+
"version": "2024.2.1",
|
|
4
4
|
"author": "Sitevision AB",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"access": "public",
|
|
31
31
|
"directory": "dist"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "ecc0cf7bfd6da83e4fd08c03614bb676c40cb66f"
|
|
34
34
|
}
|
|
@@ -1086,6 +1086,12 @@ export interface NodeTypeUtil extends NodeTypeUtilConstants {
|
|
|
1086
1086
|
*/
|
|
1087
1087
|
MARKETPLACE_HEADLESS_CUSTOM_MODULE_TYPE: "sv:marketplaceHeadlessCustomModule";
|
|
1088
1088
|
|
|
1089
|
+
/**
|
|
1090
|
+
* The primary node type name for the Marketplace widget custom module type.
|
|
1091
|
+
* @since Sitevision 2024.02.1
|
|
1092
|
+
*/
|
|
1093
|
+
MARKETPLACE_WIDGET_CUSTOM_MODULE_TYPE: "sv:marketplaceWidgetCustomModule";
|
|
1094
|
+
|
|
1089
1095
|
/**
|
|
1090
1096
|
* The primary node type name for the responsive breakpoint repository type.
|
|
1091
1097
|
* @since Sitevision 6.2
|
|
@@ -1176,6 +1182,18 @@ export interface NodeTypeUtil extends NodeTypeUtilConstants {
|
|
|
1176
1182
|
*/
|
|
1177
1183
|
WORK_STATUS_TEMPLATE_REPOSITORY_TYPE: "sv:workStatusTemplateRepository";
|
|
1178
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* The primary node type name for the dashboard type.
|
|
1187
|
+
* @since Sitevision 2024.02.1
|
|
1188
|
+
*/
|
|
1189
|
+
DASHBOARD_TYPE: "sv:dashboard";
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* The primary node type name for the widget custom module type.
|
|
1193
|
+
* @since Sitevision 2024.02.1
|
|
1194
|
+
*/
|
|
1195
|
+
WIDGET_CUSTOM_MODULE_TYPE: "sv:widgetCustomModule";
|
|
1196
|
+
|
|
1179
1197
|
/**
|
|
1180
1198
|
* Checks if a node is a layout.
|
|
1181
1199
|
* @param aNode the node to be checked
|
|
@@ -37,6 +37,7 @@ var _default = {
|
|
|
37
37
|
MANAGE_PINNING: "MANAGE_PINNING",
|
|
38
38
|
MANAGE_TYPES_IDENTIFIERS: "MANAGE_TYPES_IDENTIFIERS",
|
|
39
39
|
MANAGE_CUSTOM_SEARCH_INDEX: "MANAGE_CUSTOM_SEARCH_INDEX",
|
|
40
|
-
MANAGE_PUBLISHING_LOCK: "MANAGE_PUBLISHING_LOCK"
|
|
40
|
+
MANAGE_PUBLISHING_LOCK: "MANAGE_PUBLISHING_LOCK",
|
|
41
|
+
MANAGE_DASHBOARDS: "MANAGE_DASHBOARDS"
|
|
41
42
|
};
|
|
42
43
|
exports["default"] = _default;
|
|
@@ -50,6 +50,13 @@ export interface PortletContextUtil extends PortletContextUtilConstants {
|
|
|
50
50
|
*/
|
|
51
51
|
getCurrentModuleElement(): Node;
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Gets current dashboard node (applicable during render of a sv:widgetCustomModule).
|
|
55
|
+
* @return current dashboard as <code>Node</code>, or <code>null</code> if indeterminable
 (i.e. this method is not called from within a sv:widgetCustomModule)
|
|
56
|
+
* @since Sitevision 2024.02.1
|
|
57
|
+
*/
|
|
58
|
+
getCurrentDashboard(): Node;
|
|
59
|
+
|
|
53
60
|
/**
|
|
54
61
|
* Gets current Locale.
|
|
55
62
|
* @return current <code>Locale</code>, or default <code>Locale</code> if indeterminable
|
|
@@ -8,6 +8,7 @@ var _default = {
|
|
|
8
8
|
getCurrentPage: function getCurrentPage() {},
|
|
9
9
|
getCurrentPortlet: function getCurrentPortlet() {},
|
|
10
10
|
getCurrentModuleElement: function getCurrentModuleElement() {},
|
|
11
|
+
getCurrentDashboard: function getCurrentDashboard() {},
|
|
11
12
|
getCurrentLocale: function getCurrentLocale() {},
|
|
12
13
|
getCurrentUser: function getCurrentUser() {},
|
|
13
14
|
getCurrentUserIdentity: function getCurrentUserIdentity() {},
|
|
@@ -1199,6 +1199,13 @@ export type NodeTypeUtilConstants = {
|
|
|
1199
1199
|
*/
|
|
1200
1200
|
getMARKETPLACE_HEADLESS_CUSTOM_MODULE_TYPE(): string;
|
|
1201
1201
|
|
|
1202
|
+
/**
|
|
1203
|
+
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#MARKETPLACE_WIDGET_CUSTOM_MODULE_TYPE}.
|
|
1204
|
+
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#MARKETPLACE_WIDGET_CUSTOM_MODULE_TYPE}
|
|
1205
|
+
* @since Sitevision 2024.02.1
|
|
1206
|
+
*/
|
|
1207
|
+
getMARKETPLACE_WIDGET_CUSTOM_MODULE_TYPE(): string;
|
|
1208
|
+
|
|
1202
1209
|
/**
|
|
1203
1210
|
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#RESPONSIVE_BREAKPOINT_REPOSITORY_TYPE}.
|
|
1204
1211
|
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#RESPONSIVE_BREAKPOINT_REPOSITORY_TYPE}
|
|
@@ -1303,4 +1310,18 @@ export type NodeTypeUtilConstants = {
|
|
|
1303
1310
|
* @since Sitevision 2023.09.2
|
|
1304
1311
|
*/
|
|
1305
1312
|
getWORK_STATUS_TEMPLATE_REPOSITORY_TYPE(): string;
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#DASHBOARD_TYPE}.
|
|
1316
|
+
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#DASHBOARD_TYPE}
|
|
1317
|
+
* @since Sitevision 2024.02.1
|
|
1318
|
+
*/
|
|
1319
|
+
getDASHBOARD_TYPE(): string;
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#WIDGET_CUSTOM_MODULE_TYPE}.
|
|
1323
|
+
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#WIDGET_CUSTOM_MODULE_TYPE}
|
|
1324
|
+
* @since Sitevision 2024.02.1
|
|
1325
|
+
*/
|
|
1326
|
+
getWIDGET_CUSTOM_MODULE_TYPE(): string;
|
|
1306
1327
|
};
|
|
@@ -179,6 +179,7 @@ var _default = {
|
|
|
179
179
|
getUSER_FIELD_REPOSITORY_TYPE: function getUSER_FIELD_REPOSITORY_TYPE() {},
|
|
180
180
|
getMARKETPLACE_CUSTOM_MODULE_TYPE: function getMARKETPLACE_CUSTOM_MODULE_TYPE() {},
|
|
181
181
|
getMARKETPLACE_HEADLESS_CUSTOM_MODULE_TYPE: function getMARKETPLACE_HEADLESS_CUSTOM_MODULE_TYPE() {},
|
|
182
|
+
getMARKETPLACE_WIDGET_CUSTOM_MODULE_TYPE: function getMARKETPLACE_WIDGET_CUSTOM_MODULE_TYPE() {},
|
|
182
183
|
getRESPONSIVE_BREAKPOINT_REPOSITORY_TYPE: function getRESPONSIVE_BREAKPOINT_REPOSITORY_TYPE() {},
|
|
183
184
|
getTOPIC_REPOSITORY_TYPE: function getTOPIC_REPOSITORY_TYPE() {},
|
|
184
185
|
getTOPIC_TYPE: function getTOPIC_TYPE() {},
|
|
@@ -193,6 +194,8 @@ var _default = {
|
|
|
193
194
|
getOAUTH2_CONFIGURATION_TYPE: function getOAUTH2_CONFIGURATION_TYPE() {},
|
|
194
195
|
getWORK_STATUS_TYPE: function getWORK_STATUS_TYPE() {},
|
|
195
196
|
getWORK_STATUS_TEMPLATE_TYPE: function getWORK_STATUS_TEMPLATE_TYPE() {},
|
|
196
|
-
getWORK_STATUS_TEMPLATE_REPOSITORY_TYPE: function getWORK_STATUS_TEMPLATE_REPOSITORY_TYPE() {}
|
|
197
|
+
getWORK_STATUS_TEMPLATE_REPOSITORY_TYPE: function getWORK_STATUS_TEMPLATE_REPOSITORY_TYPE() {},
|
|
198
|
+
getDASHBOARD_TYPE: function getDASHBOARD_TYPE() {},
|
|
199
|
+
getWIDGET_CUSTOM_MODULE_TYPE: function getWIDGET_CUSTOM_MODULE_TYPE() {}
|
|
197
200
|
};
|
|
198
201
|
exports["default"] = _default;
|