@devtron-labs/devtron-fe-common-lib 0.0.13-beta-1 → 0.0.13-beta-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/dist/Common/Types.d.ts +1 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
- package/src/Common/ImageTags.tsx +6 -0
- package/src/Common/Types.ts +1 -0
package/dist/Common/Types.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -22798,7 +22798,9 @@ var ImageTagsContainer = function (_a) {
|
|
|
22798
22798
|
};
|
|
22799
22799
|
var handleTagCreate = function (newValue) {
|
|
22800
22800
|
var lowercaseValue = newValue.toLowerCase().trim();
|
|
22801
|
+
console.log("handleTagCreate,outside validation : ");
|
|
22801
22802
|
if (validateTag(lowercaseValue)) {
|
|
22803
|
+
console.log("handleTagCreate,inside validation : ");
|
|
22802
22804
|
var newTag = {
|
|
22803
22805
|
id: 0,
|
|
22804
22806
|
tagName: lowercaseValue,
|
|
@@ -22940,6 +22942,8 @@ var ImageTagsContainer = function (_a) {
|
|
|
22940
22942
|
}
|
|
22941
22943
|
};
|
|
22942
22944
|
var setInputValue = function (e) {
|
|
22945
|
+
console.log("setInputValue: ");
|
|
22946
|
+
console.log(e.target.value);
|
|
22943
22947
|
e.target.value && validateTag(e.target.value);
|
|
22944
22948
|
setTextInput(e.target.value);
|
|
22945
22949
|
};
|
|
@@ -22950,6 +22954,8 @@ var ImageTagsContainer = function (_a) {
|
|
|
22950
22954
|
}
|
|
22951
22955
|
};
|
|
22952
22956
|
var onClickSave = function () {
|
|
22957
|
+
console.log("onClickSave: ");
|
|
22958
|
+
console.log(textInput);
|
|
22953
22959
|
if (textInput.trim()) {
|
|
22954
22960
|
handleTagCreate(textInput);
|
|
22955
22961
|
}
|
package/package.json
CHANGED
package/src/Common/ImageTags.tsx
CHANGED
|
@@ -132,7 +132,9 @@ export const ImageTagsContainer = ({
|
|
|
132
132
|
|
|
133
133
|
const handleTagCreate = (newValue) => {
|
|
134
134
|
const lowercaseValue = newValue.toLowerCase().trim()
|
|
135
|
+
console.log("handleTagCreate,outside validation : ")
|
|
135
136
|
if(validateTag(lowercaseValue)) {
|
|
137
|
+
console.log("handleTagCreate,inside validation : ")
|
|
136
138
|
const newTag: ReleaseTag = {
|
|
137
139
|
id: 0,
|
|
138
140
|
tagName: lowercaseValue,
|
|
@@ -320,6 +322,8 @@ export const ImageTagsContainer = ({
|
|
|
320
322
|
}
|
|
321
323
|
|
|
322
324
|
const setInputValue = (e) => {
|
|
325
|
+
console.log("setInputValue: ")
|
|
326
|
+
console.log(e.target.value)
|
|
323
327
|
e.target.value && validateTag(e.target.value)
|
|
324
328
|
setTextInput(e.target.value)
|
|
325
329
|
}
|
|
@@ -332,6 +336,8 @@ export const ImageTagsContainer = ({
|
|
|
332
336
|
}
|
|
333
337
|
|
|
334
338
|
const onClickSave = () => {
|
|
339
|
+
console.log("onClickSave: ")
|
|
340
|
+
console.log(textInput)
|
|
335
341
|
if (textInput.trim()) {
|
|
336
342
|
handleTagCreate(textInput)
|
|
337
343
|
}
|