@sap-ux/control-property-editor 0.8.0 → 1.0.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.
Files changed (84) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/app.css +1 -1
  3. package/dist/app.css.map +3 -3
  4. package/dist/app.js +54 -85
  5. package/dist/app.js.map +4 -4
  6. package/dist/tsconfig.tsbuildinfo +1 -1
  7. package/{esbuild.js → esbuild.mjs} +7 -10
  8. package/{eslint.config.js → eslint.config.mjs} +4 -2
  9. package/jest.config.mjs +39 -0
  10. package/package.json +8 -6
  11. package/src/App.tsx +8 -8
  12. package/src/actions.ts +1 -1
  13. package/src/components/ChangeIndicator.tsx +1 -1
  14. package/src/components/ThemeSelectorCallout.tsx +3 -3
  15. package/src/components/index.ts +3 -3
  16. package/src/i18n.ts +1 -1
  17. package/src/index.tsx +5 -5
  18. package/src/middleware.ts +2 -2
  19. package/src/panels/LeftPanel.tsx +2 -2
  20. package/src/panels/RightPanel.tsx +4 -4
  21. package/src/panels/changes/ChangeStack.tsx +10 -10
  22. package/src/panels/changes/ChangeStackHeader.tsx +1 -1
  23. package/src/panels/changes/ChangesPanel.module.scss +2 -1
  24. package/src/panels/changes/ChangesPanel.tsx +16 -15
  25. package/src/panels/changes/ControlChange.tsx +1 -1
  26. package/src/panels/changes/DisplayAsIcon.tsx +2 -2
  27. package/src/panels/changes/GenericChange.tsx +3 -3
  28. package/src/panels/changes/GenericGroup.tsx +1 -1
  29. package/src/panels/changes/UnknownChange.tsx +1 -1
  30. package/src/panels/changes/index.tsx +2 -2
  31. package/src/panels/changes/utils.ts +1 -1
  32. package/src/panels/index.ts +2 -2
  33. package/src/panels/info-center/InfoCenter.scss +2 -1
  34. package/src/panels/info-center/InfoCenter.tsx +4 -4
  35. package/src/panels/info-center/InfoMessageItem.tsx +2 -2
  36. package/src/panels/info-center/index.ts +1 -1
  37. package/src/panels/outline/Funnel.tsx +4 -4
  38. package/src/panels/outline/OutlinePanel.scss +2 -1
  39. package/src/panels/outline/OutlinePanel.tsx +3 -3
  40. package/src/panels/outline/Tree.tsx +6 -6
  41. package/src/panels/outline/index.ts +1 -1
  42. package/src/panels/outline/utils.ts +2 -2
  43. package/src/panels/properties/Clipboard.tsx +1 -1
  44. package/src/panels/properties/DropdownEditor.tsx +4 -4
  45. package/src/panels/properties/Funnel.tsx +4 -4
  46. package/src/panels/properties/HeaderField.tsx +3 -3
  47. package/src/panels/properties/IconValueHelp.tsx +3 -3
  48. package/src/panels/properties/InputTypeSelector.tsx +2 -2
  49. package/src/panels/properties/InputTypeToggle.tsx +5 -5
  50. package/src/panels/properties/InputTypeWrapper.tsx +8 -8
  51. package/src/panels/properties/Properties.scss +2 -1
  52. package/src/panels/properties/PropertiesList.tsx +15 -16
  53. package/src/panels/properties/PropertyDocumentation.tsx +2 -2
  54. package/src/panels/properties/StringEditor.tsx +6 -6
  55. package/src/panels/properties/index.ts +1 -1
  56. package/src/panels/properties/propertyValuesCache.ts +1 -1
  57. package/src/panels/properties/types.ts +1 -1
  58. package/src/panels/quick-actions/NestedQuickAction.tsx +2 -2
  59. package/src/panels/quick-actions/QuickActionList.tsx +4 -4
  60. package/src/panels/quick-actions/SimpleQuickAction.tsx +1 -1
  61. package/src/panels/quick-actions/index.ts +1 -1
  62. package/src/slice.ts +1 -1
  63. package/src/store.ts +3 -3
  64. package/src/toolbar/DeviceSelector.tsx +3 -3
  65. package/src/toolbar/DeviceToggle.tsx +3 -3
  66. package/src/toolbar/ModeSwitcher.tsx +1 -1
  67. package/src/toolbar/ToolBar.tsx +6 -6
  68. package/src/toolbar/UndoRedoSaveActions.tsx +4 -4
  69. package/src/toolbar/ViewChanger.tsx +2 -2
  70. package/src/toolbar/index.ts +1 -1
  71. package/src/use-theme.ts +1 -1
  72. package/src/ws-middleware.ts +3 -3
  73. package/test/unit/App.test.tsx +3 -1
  74. package/test/unit/appIndex.test.ts +37 -19
  75. package/test/unit/middleware.test.ts +39 -73
  76. package/test/unit/panels/changes/ChangesPanel.test.tsx +3 -15
  77. package/test/unit/panels/changes/FileChange.test.tsx +2 -10
  78. package/test/unit/panels/properties/DropdownEditor.test.tsx +0 -2
  79. package/test/unit/panels/properties/InputTypeToggle.test.tsx +8 -9
  80. package/test/unit/setup.ts +18 -2
  81. package/test/utils/utils.tsx +2 -0
  82. package/tsconfig.eslint.json +2 -1
  83. package/tsconfig.json +4 -5
  84. package/jest.config.js +0 -21
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @sap-ux/control-property-editor
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 509e833: fix: bump version to 1.0.1 to avoid npm publish conflict with previously unpublished 1.0.0
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 32609a7: # Migration to ECMAScript Modules (ESM)
14
+
15
+ Packages in the SAP Open UX Tools monorepo have been migrated from CommonJS (CJS) to ECMAScript Modules (ESM) with NodeNext module resolution.
16
+
17
+ '@sap-ux/backend-proxy-middleware-cf' is experimental and will remain at major version 0.
18
+ '@sap-ux/generator-odata-downloader' is a top level yeoman generator and will remain as CJS until validation as ESM is done.
19
+
20
+ ## What Changed
21
+ - **Module System**: Most packages now use native ESM (`"type": "module"` in package.json)
22
+ - **TypeScript Configuration**: Updated to `module: "NodeNext"` and `moduleResolution: "NodeNext"`
23
+ - **Import Statements**: All relative imports now include explicit `.js` extensions (per ESM spec)
24
+ - **Build Output**: Generated JavaScript files are now ESM modules
25
+ - **Node.js Requirement**: Minimum Node.js version remains >=22.x
26
+
27
+ ### Jest Configuration (for Testing)
28
+
29
+ If your project tests code that imports these packages, update your Jest configuration:
30
+
31
+ ```js
32
+ export default {
33
+ extensionsToTreatAsEsm: ['.ts'],
34
+ transform: {
35
+ '^.+\\.ts$': ['ts-jest', { useESM: true }]
36
+ }
37
+ };
38
+ ```
39
+
40
+ And run Jest with: `NODE_OPTIONS='--experimental-vm-modules' jest`
41
+
42
+ ## 0.8.1
43
+
44
+ ### Patch Changes
45
+
46
+ - 676cbe6: Add margins to panel horizontal borders to distinguish them from splitter borders
47
+
3
48
  ## 0.8.0
4
49
 
5
50
  ### Minor Changes