@sap-ux/control-property-editor 0.8.1 → 1.0.2

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