@sap-ux/preview-middleware 0.16.51 → 0.16.53

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.
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
- sap.ui.define(["../cpe/error-utils"], function (___cpe_error_utils) {
3
+ sap.ui.define(["../utils/error"], function (___utils_error) {
4
4
  "use strict";
5
5
 
6
- const getError = ___cpe_error_utils["getError"];
6
+ const getError = ___utils_error["getError"];
7
7
  var ApiEndpoints = /*#__PURE__*/function (ApiEndpoints) {
8
8
  ApiEndpoints["CHANGES"] = "/preview/api/changes";
9
9
  ApiEndpoints["FRAGMENT"] = "/adp/api/fragment";
@@ -1,5 +1,5 @@
1
1
  import type { Layer } from 'sap/ui/fl';
2
- import { getError } from '../cpe/error-utils';
2
+ import { getError } from '../utils/error';
3
3
 
4
4
  export const enum ApiEndpoints {
5
5
  CHANGES = '/preview/api/changes',
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
- sap.ui.define(["sap/m/MessageToast", "sap/ui/rta/command/CommandFactory", "../cpe/error-utils"], function (MessageToast, CommandFactory, ___cpe_error_utils) {
3
+ sap.ui.define(["sap/m/MessageToast", "sap/ui/rta/command/CommandFactory", "../utils/error"], function (MessageToast, CommandFactory, ___utils_error) {
4
4
  "use strict";
5
5
 
6
- const getError = ___cpe_error_utils["getError"];
6
+ const getError = ___utils_error["getError"];
7
7
  /**
8
8
  * Class responsible for handling rta calls
9
9
  */
@@ -5,7 +5,7 @@ import type RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
5
5
  import type { FlexSettings } from 'sap/ui/rta/RuntimeAuthoring';
6
6
  import type DesignTimeMetadata from 'sap/ui/dt/DesignTimeMetadata';
7
7
  import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
8
- import { getError } from '../cpe/error-utils';
8
+ import { getError } from '../utils/error';
9
9
 
10
10
  type CommandNames = 'addXML';
11
11
 
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- sap.ui.define(["sap/ui/core/library", "sap/ui/core/mvc/Controller", "sap/m/MessageToast", "../utils", "../../cpe/error-utils"], function (sap_ui_core_library, Controller, MessageToast, ___utils, ____cpe_error_utils) {
3
+ sap.ui.define(["sap/ui/core/library", "sap/ui/core/mvc/Controller", "sap/m/MessageToast", "../utils", "../../utils/error"], function (sap_ui_core_library, Controller, MessageToast, ___utils, ____utils_error) {
4
4
  "use strict";
5
5
 
6
6
  const ValueState = sap_ui_core_library["ValueState"];
7
7
  const matchesFragmentName = ___utils["matchesFragmentName"];
8
- const getError = ____cpe_error_utils["getError"];
8
+ const getError = ____utils_error["getError"];
9
9
  /**
10
10
  * @namespace open.ux.preview.client.adp.controllers
11
11
  */
@@ -12,7 +12,7 @@ import MessageToast from 'sap/m/MessageToast';
12
12
  import CommandExecutor from '../command-executor';
13
13
  import { matchesFragmentName } from '../utils';
14
14
  import type { Fragments } from '../api-handler';
15
- import { getError } from '../../cpe/error-utils';
15
+ import { getError } from '../../utils/error';
16
16
 
17
17
  type BaseDialogModel = JSONModel & {
18
18
  getProperty(sPath: '/fragmentList'): Fragments;
@@ -4,9 +4,9 @@ sap.ui.define([
4
4
  '../cpe/init',
5
5
  './init-dialogs',
6
6
  'open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common',
7
- '../cpe/error-utils',
7
+ '../utils/error',
8
8
  '../utils/version'
9
- ], function (log, __init, ___init_dialogs, ___sap_ux_private_control_property_editor_common, ___cpe_error_utils, ___utils_version) {
9
+ ], function (log, __init, ___init_dialogs, ___sap_ux_private_control_property_editor_common, ___utils_error, ___utils_version) {
10
10
  'use strict';
11
11
  function _interopRequireDefault(obj) {
12
12
  return obj && obj.__esModule && typeof obj.default !== 'undefined' ? obj.default : obj;
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  const showMessage = ___sap_ux_private_control_property_editor_common['showMessage'];
30
30
  const startPostMessageCommunication = ___sap_ux_private_control_property_editor_common['startPostMessageCommunication'];
31
31
  const enableTelemetry = ___sap_ux_private_control_property_editor_common['enableTelemetry'];
32
- const getError = ___cpe_error_utils['getError'];
32
+ const getError = ___utils_error['getError'];
33
33
  const getUi5Version = ___utils_version['getUi5Version'];
34
34
  const getUI5VersionValidationMessage = ___utils_version['getUI5VersionValidationMessage'];
35
35
  const isLowerThanMinimalUi5Version = ___utils_version['isLowerThanMinimalUi5Version'];
@@ -10,7 +10,7 @@ import {
10
10
  } from '@sap-ux-private/control-property-editor-common';
11
11
  import { ActionHandler } from '../cpe/types';
12
12
  import UI5Element from 'sap/ui/dt/Element';
13
- import { getError } from '../cpe/error-utils';
13
+ import { getError } from '../utils/error';
14
14
  import {
15
15
  getUi5Version,
16
16
  getUI5VersionValidationMessage,
@@ -4,8 +4,8 @@ sap.ui.define([
4
4
  './flex-change',
5
5
  'sap/base/Log',
6
6
  '../rta-service',
7
- '../error-utils'
8
- ], function (___sap_ux_private_control_property_editor_common, ___flex_change, Log, ___rta_service, ___error_utils) {
7
+ '../../utils/error'
8
+ ], function (___sap_ux_private_control_property_editor_common, ___flex_change, Log, ___rta_service, ____utils_error) {
9
9
  'use strict';
10
10
  const changeProperty = ___sap_ux_private_control_property_editor_common['changeProperty'];
11
11
  const changeStackModified = ___sap_ux_private_control_property_editor_common['changeStackModified'];
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  const reloadApplication = ___sap_ux_private_control_property_editor_common['reloadApplication'];
16
16
  const applyChange = ___flex_change['applyChange'];
17
17
  const modeAndStackChangeHandler = ___rta_service['modeAndStackChangeHandler'];
18
- const getError = ___error_utils['getError'];
18
+ const getError = ____utils_error['getError'];
19
19
  function assertProperties(properties, target) {
20
20
  for (const property of properties) {
21
21
  const value = target[property];
@@ -20,7 +20,7 @@ import type Event from 'sap/ui/base/Event';
20
20
  import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
21
21
  import Log from 'sap/base/Log';
22
22
  import { modeAndStackChangeHandler } from '../rta-service';
23
- import { getError } from '../error-utils';
23
+ import { getError } from '../../utils/error';
24
24
 
25
25
  interface ChangeContent {
26
26
  property: string;
@@ -10,8 +10,8 @@ sap.ui.define([
10
10
  './ui5-utils',
11
11
  './connector-service',
12
12
  './rta-service',
13
- './error-utils'
14
- ], function (___sap_ux_private_control_property_editor_common, ___outline_index, ___selection, ___changes_service, ___documentation, Log, ___logger, ___ui5_utils, ___connector_service, ___rta_service, ___error_utils) {
13
+ '../utils/error'
14
+ ], function (___sap_ux_private_control_property_editor_common, ___outline_index, ___selection, ___changes_service, ___documentation, Log, ___logger, ___ui5_utils, ___connector_service, ___rta_service, ___utils_error) {
15
15
  'use strict';
16
16
  const startPostMessageCommunication = ___sap_ux_private_control_property_editor_common['startPostMessageCommunication'];
17
17
  const iconsLoaded = ___sap_ux_private_control_property_editor_common['iconsLoaded'];
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  const getIcons = ___ui5_utils['getIcons'];
26
26
  const WorkspaceConnectorService = ___connector_service['WorkspaceConnectorService'];
27
27
  const RtaService = ___rta_service['RtaService'];
28
- const getError = ___error_utils['getError'];
28
+ const getError = ___utils_error['getError'];
29
29
  function init(rta) {
30
30
  Log.info('Initializing Control Property Editor');
31
31
  const flexSettings = rta.getFlexSettings();
@@ -17,7 +17,7 @@ import { logger } from './logger';
17
17
  import { getIcons } from './ui5-utils';
18
18
  import { WorkspaceConnectorService } from './connector-service';
19
19
  import { RtaService } from './rta-service';
20
- import { getError } from './error-utils';
20
+ import { getError } from '../utils/error';
21
21
 
22
22
  export default function init(rta: RuntimeAuthoring): Promise<void> {
23
23
  Log.info('Initializing Control Property Editor');
@@ -3,13 +3,13 @@ sap.ui.define([
3
3
  'open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common',
4
4
  './nodes',
5
5
  'sap/base/Log',
6
- '../error-utils'
7
- ], function (___sap_ux_private_control_property_editor_common, ___nodes, Log, ___error_utils) {
6
+ '../../utils/error'
7
+ ], function (___sap_ux_private_control_property_editor_common, ___nodes, Log, ____utils_error) {
8
8
  'use strict';
9
9
  const outlineChanged = ___sap_ux_private_control_property_editor_common['outlineChanged'];
10
10
  const showMessage = ___sap_ux_private_control_property_editor_common['showMessage'];
11
11
  const transformNodes = ___nodes['transformNodes'];
12
- const getError = ___error_utils['getError'];
12
+ const getError = ____utils_error['getError'];
13
13
  async function initOutline(rta, sendAction) {
14
14
  const outline = await rta.getService('outline');
15
15
  const scenario = rta.getFlexSettings().scenario;
@@ -6,7 +6,7 @@ import type OutlineService from 'sap/ui/rta/command/OutlineService';
6
6
 
7
7
  import { transformNodes } from './nodes';
8
8
  import Log from 'sap/base/Log';
9
- import { getError } from '../error-utils';
9
+ import { getError } from '../../utils/error';
10
10
 
11
11
  /**
12
12
  *
@@ -26,8 +26,8 @@ export async function initOutline(rta: RuntimeAuthoring, sendAction: (action: Ex
26
26
  if(reuseComponentsIds.size > 0 && scenario === 'ADAPTATION_PROJECT' && !hasSentWarning) {
27
27
  sendAction(showMessage({ message: 'Have in mind that reuse components are detected for some views in this application and controller extensions and adding fragments are not supported for such views. Controller extension and adding fragment functionality on these views will be disabled.', shouldHideIframe: false}));
28
28
  hasSentWarning = true;
29
- }
30
-
29
+ }
30
+
31
31
  } catch (error) {
32
32
  Log.error('Outline sync failed!', getError(error));
33
33
  }
@@ -8,8 +8,8 @@ sap.ui.define([
8
8
  'sap/ui/dt/OverlayRegistry',
9
9
  'sap/ui/dt/OverlayUtil',
10
10
  './ui5-utils',
11
- './error-utils'
12
- ], function (___sap_ux_private_control_property_editor_common, ___control_data, ___utils, Log, ___documentation, OverlayRegistry, OverlayUtil, ___ui5_utils, ___error_utils) {
11
+ '../utils/error'
12
+ ], function (___sap_ux_private_control_property_editor_common, ___control_data, ___utils, Log, ___documentation, OverlayRegistry, OverlayUtil, ___ui5_utils, ___utils_error) {
13
13
  'use strict';
14
14
  const controlSelected = ___sap_ux_private_control_property_editor_common['controlSelected'];
15
15
  const propertyChanged = ___sap_ux_private_control_property_editor_common['propertyChanged'];
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  const getRuntimeControl = ___utils['getRuntimeControl'];
20
20
  const getDocumentation = ___documentation['getDocumentation'];
21
21
  const getComponent = ___ui5_utils['getComponent'];
22
- const getError = ___error_utils['getError'];
22
+ const getError = ___utils_error['getError'];
23
23
  function propertyChangeId(controlId, propertyName) {
24
24
  return [
25
25
  controlId,
@@ -20,7 +20,7 @@ import { getDocumentation } from './documentation';
20
20
  import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
21
21
  import OverlayUtil from 'sap/ui/dt/OverlayUtil';
22
22
  import { getComponent } from './ui5-utils';
23
- import { getError } from './error-utils';
23
+ import { getError } from '../utils/error';
24
24
 
25
25
  export interface PropertyChangeParams {
26
26
  name: string;
@@ -5,17 +5,17 @@ sap.ui.define([
5
5
  'sap/ui/core/IconPool',
6
6
  'sap/base/i18n/ResourceBundle',
7
7
  '../adp/api-handler',
8
- '../cpe/error-utils',
8
+ '../utils/error',
9
9
  './initConnectors',
10
10
  '../utils/version'
11
- ], function (Log, ___sap_ux_private_control_property_editor_common, IconPool, ResourceBundle, ___adp_api_handler, ___cpe_error_utils, __initConnectors, ___utils_version) {
11
+ ], function (Log, ___sap_ux_private_control_property_editor_common, IconPool, ResourceBundle, ___adp_api_handler, ___utils_error, __initConnectors, ___utils_version) {
12
12
  'use strict';
13
13
  function _interopRequireDefault(obj) {
14
14
  return obj && obj.__esModule && typeof obj.default !== 'undefined' ? obj.default : obj;
15
15
  }
16
16
  const SCENARIO = ___sap_ux_private_control_property_editor_common['SCENARIO'];
17
17
  const getManifestAppdescr = ___adp_api_handler['getManifestAppdescr'];
18
- const getError = ___cpe_error_utils['getError'];
18
+ const getError = ___utils_error['getError'];
19
19
  const initConnectors = _interopRequireDefault(__initConnectors);
20
20
  const getUi5Version = ___utils_version['getUi5Version'];
21
21
  const isLowerThanMinimalUi5Version = ___utils_version['isLowerThanMinimalUi5Version'];
@@ -7,7 +7,7 @@ import IconPool from 'sap/ui/core/IconPool';
7
7
  import ResourceBundle from 'sap/base/i18n/ResourceBundle';
8
8
  import AppState from 'sap/ushell/services/AppState';
9
9
  import { getManifestAppdescr } from '../adp/api-handler';
10
- import { getError } from '../cpe/error-utils';
10
+ import { getError } from '../utils/error';
11
11
  import initConnectors from './initConnectors';
12
12
  import { getUi5Version, isLowerThanMinimalUi5Version } from '../utils/version';
13
13
 
@@ -18,4 +18,4 @@ sap.ui.define([], function () {
18
18
  __exports.getError = getError;
19
19
  return __exports;
20
20
  });
21
- //# sourceMappingURL=error-utils.js.map
21
+ //# sourceMappingURL=error.js.map
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
11
11
  },
12
- "version": "0.16.51",
12
+ "version": "0.16.53",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -27,8 +27,8 @@
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "@sap-ux/logger": "0.6.0",
29
29
  "@sap-ux/btp-utils": "0.15.1",
30
- "@sap-ux/adp-tooling": "0.12.39",
31
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.27",
30
+ "@sap-ux/adp-tooling": "0.12.40",
31
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.28",
32
32
  "@sap-ux/project-access": "1.26.8"
33
33
  },
34
34
  "devDependencies": {
@@ -45,7 +45,7 @@
45
45
  "supertest": "6.3.3",
46
46
  "@sap-ux-private/playwright": "0.1.0",
47
47
  "dotenv": "16.3.1",
48
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.10.8",
48
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.10.9",
49
49
  "@sap-ux/axios-extension": "1.16.4",
50
50
  "@sap-ux/store": "0.9.1",
51
51
  "@sap-ux/ui5-info": "0.8.1",