@sap-ux/control-property-editor 1.0.2 → 1.0.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.
- package/CHANGELOG.md +12 -0
- package/dist/app.css.map +1 -1
- package/dist/app.js +25 -25
- package/dist/app.js.map +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/test/unit/appIndex.test.ts +7 -7
- package/test/unit/middleware.test.ts +3 -3
- package/test/unit/panels/changes/utils.test.ts +1 -1
- package/test/unit/panels/outline/utils.test.ts +3 -3
- package/test/unit/panels/properties/propertyValuesCache.test.ts +2 -2
- package/test/unit/slice.test.ts +2 -2
- package/test/unit/ws-middleware.test.ts +2 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "Control Property Editor",
|
|
4
4
|
"description": "Control Property Editor",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.4",
|
|
7
7
|
"main": "dist/app.js",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"esbuild-plugin-copy": "2.1.1",
|
|
51
51
|
"@esbuild-plugins/node-modules-polyfill": "0.2.2",
|
|
52
52
|
"uuid": "11.1.1",
|
|
53
|
-
"@sap-ux/ui-components": "3.0.
|
|
54
|
-
"@sap-ux-private/control-property-editor-common": "1.0.
|
|
53
|
+
"@sap-ux/ui-components": "3.0.2",
|
|
54
|
+
"@sap-ux-private/control-property-editor-common": "1.0.2"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=22.x"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jest } from '@jest/globals';
|
|
2
2
|
import * as actualUiComponents from '@sap-ux/ui-components';
|
|
3
3
|
|
|
4
|
-
const mockInitI18n = jest.fn();
|
|
5
|
-
const mockRegisterAppIcons = jest.fn();
|
|
6
|
-
const mockInitIcons = jest.fn();
|
|
7
|
-
const mockInitTheme = jest.fn();
|
|
8
|
-
const mockReactDOMRender = jest.fn();
|
|
4
|
+
const mockInitI18n = jest.fn() as jest.Mock;
|
|
5
|
+
const mockRegisterAppIcons = jest.fn() as jest.Mock;
|
|
6
|
+
const mockInitIcons = jest.fn<typeof actualUiComponents.initIcons>();
|
|
7
|
+
const mockInitTheme = jest.fn<typeof actualUiComponents.initTheme>();
|
|
8
|
+
const mockReactDOMRender = jest.fn() as jest.Mock;
|
|
9
9
|
|
|
10
10
|
jest.unstable_mockModule('../../src/i18n', () => ({
|
|
11
11
|
initI18n: mockInitI18n
|
|
@@ -28,8 +28,8 @@ jest.unstable_mockModule('react-dom', () => ({
|
|
|
28
28
|
}));
|
|
29
29
|
|
|
30
30
|
const { start } = await import('../../src/index');
|
|
31
|
-
const { store } = await import('../../src/store');
|
|
32
|
-
const { initializeLivereload, setFeatureToggles, setProjectScenario } = await import('../../src/slice');
|
|
31
|
+
const { store } = await import('../../src/store.js');
|
|
32
|
+
const { initializeLivereload, setFeatureToggles, setProjectScenario } = await import('../../src/slice.js');
|
|
33
33
|
|
|
34
34
|
describe('index', () => {
|
|
35
35
|
const dispatchSpy = jest.spyOn(store, 'dispatch');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jest } from '@jest/globals';
|
|
2
2
|
import * as actualCommon from '@sap-ux-private/control-property-editor-common';
|
|
3
3
|
|
|
4
|
-
const mockSendAction = jest.fn();
|
|
5
|
-
const mockDispose = jest.fn();
|
|
4
|
+
const mockSendAction = jest.fn() as jest.Mock;
|
|
5
|
+
const mockDispose = jest.fn() as jest.Mock;
|
|
6
6
|
const mockStartPostMessageCommunication = jest.fn().mockReturnValue({
|
|
7
7
|
sendAction: mockSendAction,
|
|
8
8
|
dispose: mockDispose
|
|
@@ -18,7 +18,7 @@ jest.unstable_mockModule('../../src/slice', () => ({
|
|
|
18
18
|
}));
|
|
19
19
|
|
|
20
20
|
const common = await import('@sap-ux-private/control-property-editor-common');
|
|
21
|
-
const { communicationMiddleware } = await import('../../src/middleware');
|
|
21
|
+
const { communicationMiddleware } = await import('../../src/middleware.js');
|
|
22
22
|
|
|
23
23
|
describe('communication middleware', () => {
|
|
24
24
|
let dispatch: jest.Mock;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OutlineNode } from '@sap-ux-private/control-property-editor-common';
|
|
2
|
-
import { getFilteredModel } from '../../../../src/panels/outline/utils';
|
|
3
|
-
import type { FilterOptions } from '../../../../src/slice';
|
|
4
|
-
import { FilterName } from '../../../../src/slice';
|
|
2
|
+
import { getFilteredModel } from '../../../../src/panels/outline/utils.js';
|
|
3
|
+
import type { FilterOptions } from '../../../../src/slice.js';
|
|
4
|
+
import { FilterName } from '../../../../src/slice.js';
|
|
5
5
|
|
|
6
6
|
const getOutlineNodes = (
|
|
7
7
|
editable = true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCachedValue, setCachedValue } from '../../../../src/panels/properties/propertyValuesCache';
|
|
2
|
-
import { InputType } from '../../../../src/panels/properties/types';
|
|
1
|
+
import { getCachedValue, setCachedValue } from '../../../../src/panels/properties/propertyValuesCache.js';
|
|
2
|
+
import { InputType } from '../../../../src/panels/properties/types.js';
|
|
3
3
|
|
|
4
4
|
describe('propertyValuesCache', () => {
|
|
5
5
|
test('read/write', () => {
|
package/test/unit/slice.test.ts
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
updateQuickAction
|
|
16
16
|
} from '@sap-ux-private/control-property-editor-common';
|
|
17
17
|
|
|
18
|
-
import { DeviceType } from '../../src/devices';
|
|
18
|
+
import { DeviceType } from '../../src/devices.js';
|
|
19
19
|
import reducer, {
|
|
20
20
|
changeDeviceType,
|
|
21
21
|
changeProperty,
|
|
@@ -24,7 +24,7 @@ import reducer, {
|
|
|
24
24
|
filterNodes,
|
|
25
25
|
setFeatureToggles,
|
|
26
26
|
setProjectScenario
|
|
27
|
-
} from '../../src/slice';
|
|
27
|
+
} from '../../src/slice.js';
|
|
28
28
|
|
|
29
29
|
describe('main redux slice', () => {
|
|
30
30
|
describe('property changed', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dispatch, AnyAction } from 'redux';
|
|
2
2
|
import type { MiddlewareAPI } from '@reduxjs/toolkit';
|
|
3
|
-
import { webSocketMiddleware } from '../../src/ws-middleware';
|
|
4
|
-
import { fileChanged } from '../../src/slice';
|
|
3
|
+
import { webSocketMiddleware } from '../../src/ws-middleware.js';
|
|
4
|
+
import { fileChanged } from '../../src/slice.js';
|
|
5
5
|
import { externalFileChange } from '@sap-ux-private/control-property-editor-common';
|
|
6
6
|
|
|
7
7
|
const globalWebsocketOriginal = global.WebSocket;
|