@splunk/dynamic-editors 0.43.1 → 0.43.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.
- package/CHANGELOG.md +11 -0
- package/DynamicEditor.js +1 -1
- package/DynamicEditor.js.map +1 -1
- package/containers/EditorItem.js +1 -1
- package/containers/EditorItem.js.map +1 -1
- package/containers/EditorLayout.js +1 -1
- package/containers/EditorLayout.js.map +1 -1
- package/containers/EditorLayoutItem.js +1 -1
- package/containers/EditorLayoutItem.js.map +1 -1
- package/editors/DynamicColorEditor.js +1 -1
- package/editors/DynamicColorEditor.js.map +1 -1
- package/editors/DynamicColorEditorWithPrecedence.js +1 -1
- package/editors/DynamicColorEditorWithPrecedence.js.map +1 -1
- package/editors/NetworkGraphDynamicColorEditor.js +1 -1
- package/editors/NetworkGraphDynamicColorEditor.js.map +1 -1
- package/editors/TableColumnFormatterEditor.js +1 -1
- package/editors/TableColumnFormatterEditor.js.map +1 -1
- package/editors/TableDynamicColorEditor.js +1 -1
- package/editors/TableDynamicColorEditor.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.43.2](https://cd.splunkdev.com/devplat/splunk-dynamic-editors/compare/v0.43.1...v0.43.2) (2026-02-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **SCP-64600:** fix backspace in range value input ([8b90a5f](https://cd.splunkdev.com/devplat/splunk-dynamic-editors/commits/8b90a5f6832aa1c27f9afe3a2777d091b261f28f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.43.1](https://cd.splunkdev.com/devplat/splunk-dynamic-editors/compare/v0.43.0...v0.43.1) (2026-01-27)
|
|
7
18
|
|
|
8
19
|
|
package/DynamicEditor.js
CHANGED
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
display: flex;
|
|
488
488
|
flex-direction: column;
|
|
489
489
|
margin-left: ${c.default.spacingMedium};
|
|
490
|
-
`;t.handleUpdateRangeBoundary=({rangeBoundaryIndex:e,setError:t,shouldUpdate:o,updateRangeBoundary:a,value:n})=>{if(o){const o=a(n,e);o&&o.error&&t(o.error)}};t.default=({initialValue:e,rangeBoundaryIndex:o,rangeText:a,rangeValues:n,showNumberEditor:l=!0,updateRangeBoundary:r})=>{const[s,u]=i.useState(null),[c,g]=i.useState(!1),[h,v]=i.useState(null),y=i.useCallback((()=>{g(!0)}),[]),C=i.useCallback(((e,{value:a})=>{u(a),(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:o,setError:v,shouldUpdate:!c,updateRangeBoundary:r,value:a})}),[c,o,r]),_=i.useCallback((()=>{g(!1),(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:o,setError:v,shouldUpdate:
|
|
490
|
+
`;t.handleUpdateRangeBoundary=({rangeBoundaryIndex:e,setError:t,shouldUpdate:o,updateRangeBoundary:a,value:n})=>{if(o){const o=a(n,e);o&&o.error&&t(o.error)}};t.default=({initialValue:e,rangeBoundaryIndex:o,rangeText:a,rangeValues:n,showNumberEditor:l=!0,updateRangeBoundary:r})=>{const[s,u]=i.useState(null),[c,g]=i.useState(!1),[h,v]=i.useState(null),y=i.useCallback((()=>{g(!0)}),[]),C=i.useCallback(((e,{value:a})=>{u(a),(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:o,setError:v,shouldUpdate:!c,updateRangeBoundary:r,value:a})}),[c,o,r]),_=i.useCallback((()=>{g(!1),"number"==typeof s?(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:o,setError:v,shouldUpdate:s!==e,updateRangeBoundary:r,value:s}):u(null)}),[o,s,e,r]),O=i.useCallback((a=>{"Enter"===a.key&&("number"==typeof s?(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:o,setError:v,shouldUpdate:s!==e,updateRangeBoundary:r,value:s}):u(null))}),[o,s,e,r]);return i.useEffect((()=>{h&&!n.includes(s)&&(v(null),(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:o,setError:v,shouldUpdate:"number"==typeof s,updateRangeBoundary:r,value:s}))}),[s,h,o,n,r]),i.createElement(b,null,i.createElement(m,null,l&&i.createElement(p,{"data-test":"range-boundary-editor",error:!!h,onBlur:_,onChange:C,onFocus:y,onKeyUp:O,value:null===s?e:s}),i.createElement(d,null,a)),l&&h&&i.createElement(f,null,h))}},1782:function(e,t,o){var a=this&&this.__createBinding||(Object.create?function(e,t,o,a){void 0===a&&(a=o);var n=Object.getOwnPropertyDescriptor(t,o);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,a,n)}:function(e,t,o,a){void 0===a&&(a=o),e[a]=t[o]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&a(t,e,o);return n(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=l(o(9497)),s=r(o(7408));t.default=({color:e,colorIndex:t,onChange:o,palette:a})=>{const n=i.useCallback((({value:e})=>{let a=e;return null===a&&(a="transparent"),o({colorIndex:t,value:a})}),[t,o]);return i.createElement(s.default,{"data-test":`range-color-${e}`,value:e,palette:a,onChange:n,hideInput:!0})}},104:function(e,t,o){var a=this&&this.__createBinding||(Object.create?function(e,t,o,a){void 0===a&&(a=o);var n=Object.getOwnPropertyDescriptor(t,o);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,a,n)}:function(e,t,o,a){void 0===a&&(a=o),e[a]=t[o]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&a(t,e,o);return n(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=l(o(9497)),s=l(o(23)),u=r(o(232)),c=o(6649),d=r(o(2841)),f=r(o(6959)),p=r(o(1782)),m=r(o(6900)),b=o(8548),g=u.default.div`
|
|
491
491
|
padding-top: 10px;
|
|
492
492
|
`,h=u.default.div`
|
|
493
493
|
display: flex;
|