@bigbinary/neeto-webhooks-frontend 1.4.2 → 1.5.0
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/index.cjs.js +141 -132
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +142 -133
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Link, useParams, useRouteMatch, Switch, Route } from 'react-router-dom'
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { dateFormat, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
5
5
|
import { HamburgerMenu, Search, Right, Close, Check, Info, MenuHorizontal } from '@bigbinary/neeto-icons';
|
|
6
|
-
import { Button, Typography, Input, Spinner, Tab, Accordion, Tag, NoData, Pane,
|
|
6
|
+
import { Button, Typography, Input, Spinner, Tab, Accordion, Tag, NoData, Pane, Dropdown, Alert } from '@bigbinary/neetoui';
|
|
7
7
|
import { isEmpty, pluck, mergeDeepLeft } from 'ramda';
|
|
8
8
|
import { Neeto } from '@bigbinary/neeto-icons/logos';
|
|
9
9
|
import { QueryClient, QueryCache, QueryClientProvider, useQuery, useQueryClient, useMutation } from 'react-query';
|
|
@@ -4885,6 +4885,51 @@ var useDestroyWebhook = function useDestroyWebhook(options) {
|
|
|
4885
4885
|
});
|
|
4886
4886
|
};
|
|
4887
4887
|
|
|
4888
|
+
function cov_1owqdys1co() {
|
|
4889
|
+
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/constants/urls.js";
|
|
4890
|
+
var hash = "646ee44063db873cac5666e02d3c8fcd3c62f653";
|
|
4891
|
+
var global = new Function("return this")();
|
|
4892
|
+
var gcv = "__coverage__";
|
|
4893
|
+
var coverageData = {
|
|
4894
|
+
path: "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/constants/urls.js",
|
|
4895
|
+
statementMap: {
|
|
4896
|
+
"0": {
|
|
4897
|
+
start: {
|
|
4898
|
+
line: 1,
|
|
4899
|
+
column: 32
|
|
4900
|
+
},
|
|
4901
|
+
end: {
|
|
4902
|
+
line: 1,
|
|
4903
|
+
column: 76
|
|
4904
|
+
}
|
|
4905
|
+
}
|
|
4906
|
+
},
|
|
4907
|
+
fnMap: {},
|
|
4908
|
+
branchMap: {},
|
|
4909
|
+
s: {
|
|
4910
|
+
"0": 0
|
|
4911
|
+
},
|
|
4912
|
+
f: {},
|
|
4913
|
+
b: {},
|
|
4914
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
4915
|
+
hash: "646ee44063db873cac5666e02d3c8fcd3c62f653"
|
|
4916
|
+
};
|
|
4917
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
4918
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
4919
|
+
coverage[path] = coverageData;
|
|
4920
|
+
}
|
|
4921
|
+
var actualCoverage = coverage[path];
|
|
4922
|
+
{
|
|
4923
|
+
// @ts-ignore
|
|
4924
|
+
cov_1owqdys1co = function () {
|
|
4925
|
+
return actualCoverage;
|
|
4926
|
+
};
|
|
4927
|
+
}
|
|
4928
|
+
return actualCoverage;
|
|
4929
|
+
}
|
|
4930
|
+
cov_1owqdys1co();
|
|
4931
|
+
var WEBHOOK_HELP_URL = (cov_1owqdys1co().s[0]++, "https://help.neetocal.com/articles/webhook");
|
|
4932
|
+
|
|
4888
4933
|
function _assertThisInitialized(self) {
|
|
4889
4934
|
if (self === void 0) {
|
|
4890
4935
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -7611,7 +7656,7 @@ instance.loadLanguages;
|
|
|
7611
7656
|
|
|
7612
7657
|
function cov_cbigk78w1() {
|
|
7613
7658
|
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/constants.js";
|
|
7614
|
-
var hash = "
|
|
7659
|
+
var hash = "406540f361b63e66d2909c4920304cefd0c66a31";
|
|
7615
7660
|
var global = new Function("return this")();
|
|
7616
7661
|
var gcv = "__coverage__";
|
|
7617
7662
|
var coverageData = {
|
|
@@ -7646,16 +7691,6 @@ function cov_cbigk78w1() {
|
|
|
7646
7691
|
line: 20,
|
|
7647
7692
|
column: 11
|
|
7648
7693
|
}
|
|
7649
|
-
},
|
|
7650
|
-
"3": {
|
|
7651
|
-
start: {
|
|
7652
|
-
line: 26,
|
|
7653
|
-
column: 2
|
|
7654
|
-
},
|
|
7655
|
-
end: {
|
|
7656
|
-
line: 26,
|
|
7657
|
-
column: 90
|
|
7658
|
-
}
|
|
7659
7694
|
}
|
|
7660
7695
|
},
|
|
7661
7696
|
fnMap: {
|
|
@@ -7712,8 +7747,7 @@ function cov_cbigk78w1() {
|
|
|
7712
7747
|
s: {
|
|
7713
7748
|
"0": 0,
|
|
7714
7749
|
"1": 0,
|
|
7715
|
-
"2": 0
|
|
7716
|
-
"3": 0
|
|
7750
|
+
"2": 0
|
|
7717
7751
|
},
|
|
7718
7752
|
f: {
|
|
7719
7753
|
"0": 0,
|
|
@@ -7721,7 +7755,7 @@ function cov_cbigk78w1() {
|
|
|
7721
7755
|
},
|
|
7722
7756
|
b: {},
|
|
7723
7757
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7724
|
-
hash: "
|
|
7758
|
+
hash: "406540f361b63e66d2909c4920304cefd0c66a31"
|
|
7725
7759
|
};
|
|
7726
7760
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
7727
7761
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -7750,11 +7784,10 @@ var VALIDATION_SCHEMA = function VALIDATION_SCHEMA(webhooks) {
|
|
|
7750
7784
|
secret: yup.string().trim()
|
|
7751
7785
|
});
|
|
7752
7786
|
};
|
|
7753
|
-
var WEBHOOK_SECRET_KEY_HELP_URL = (cov_cbigk78w1().s[3]++, "https://neetocalhelp.neetokb.com/articles/webhooks#securing-webhook-using-a-secret-key");
|
|
7754
7787
|
|
|
7755
7788
|
function cov_t5m44crof() {
|
|
7756
7789
|
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/AddWebhookPane.jsx";
|
|
7757
|
-
var hash = "
|
|
7790
|
+
var hash = "2c9d4342641749ebdaaced093d065c7374a61586";
|
|
7758
7791
|
var global = new Function("return this")();
|
|
7759
7792
|
var gcv = "__coverage__";
|
|
7760
7793
|
var coverageData = {
|
|
@@ -7762,95 +7795,85 @@ function cov_t5m44crof() {
|
|
|
7762
7795
|
statementMap: {
|
|
7763
7796
|
"0": {
|
|
7764
7797
|
start: {
|
|
7765
|
-
line:
|
|
7798
|
+
line: 17,
|
|
7766
7799
|
column: 23
|
|
7767
7800
|
},
|
|
7768
7801
|
end: {
|
|
7769
|
-
line:
|
|
7802
|
+
line: 114,
|
|
7770
7803
|
column: 1
|
|
7771
7804
|
}
|
|
7772
7805
|
},
|
|
7773
7806
|
"1": {
|
|
7774
7807
|
start: {
|
|
7775
|
-
line:
|
|
7808
|
+
line: 25,
|
|
7776
7809
|
column: 16
|
|
7777
7810
|
},
|
|
7778
7811
|
end: {
|
|
7779
|
-
line:
|
|
7812
|
+
line: 25,
|
|
7780
7813
|
column: 32
|
|
7781
7814
|
}
|
|
7782
7815
|
},
|
|
7783
7816
|
"2": {
|
|
7784
7817
|
start: {
|
|
7785
|
-
line:
|
|
7818
|
+
line: 26,
|
|
7786
7819
|
column: 36
|
|
7787
7820
|
},
|
|
7788
7821
|
end: {
|
|
7789
|
-
line:
|
|
7822
|
+
line: 28,
|
|
7790
7823
|
column: 4
|
|
7791
7824
|
}
|
|
7792
7825
|
},
|
|
7793
7826
|
"3": {
|
|
7794
7827
|
start: {
|
|
7795
|
-
line:
|
|
7828
|
+
line: 27,
|
|
7796
7829
|
column: 21
|
|
7797
7830
|
},
|
|
7798
7831
|
end: {
|
|
7799
|
-
line:
|
|
7832
|
+
line: 27,
|
|
7800
7833
|
column: 30
|
|
7801
7834
|
}
|
|
7802
7835
|
},
|
|
7803
7836
|
"4": {
|
|
7804
7837
|
start: {
|
|
7805
|
-
line:
|
|
7838
|
+
line: 29,
|
|
7806
7839
|
column: 42
|
|
7807
7840
|
},
|
|
7808
7841
|
end: {
|
|
7809
|
-
line:
|
|
7842
|
+
line: 29,
|
|
7810
7843
|
column: 74
|
|
7811
7844
|
}
|
|
7812
7845
|
},
|
|
7813
7846
|
"5": {
|
|
7814
7847
|
start: {
|
|
7815
|
-
line:
|
|
7848
|
+
line: 30,
|
|
7816
7849
|
column: 36
|
|
7817
7850
|
},
|
|
7818
7851
|
end: {
|
|
7819
|
-
line:
|
|
7852
|
+
line: 32,
|
|
7820
7853
|
column: 4
|
|
7821
7854
|
}
|
|
7822
7855
|
},
|
|
7823
7856
|
"6": {
|
|
7824
7857
|
start: {
|
|
7825
|
-
line:
|
|
7858
|
+
line: 31,
|
|
7826
7859
|
column: 21
|
|
7827
7860
|
},
|
|
7828
7861
|
end: {
|
|
7829
|
-
line:
|
|
7862
|
+
line: 31,
|
|
7830
7863
|
column: 30
|
|
7831
7864
|
}
|
|
7832
7865
|
},
|
|
7833
7866
|
"7": {
|
|
7834
7867
|
start: {
|
|
7835
|
-
line:
|
|
7868
|
+
line: 33,
|
|
7836
7869
|
column: 22
|
|
7837
7870
|
},
|
|
7838
7871
|
end: {
|
|
7839
|
-
line:
|
|
7872
|
+
line: 33,
|
|
7840
7873
|
column: 30
|
|
7841
7874
|
}
|
|
7842
7875
|
},
|
|
7843
7876
|
"8": {
|
|
7844
|
-
start: {
|
|
7845
|
-
line: 33,
|
|
7846
|
-
column: 21
|
|
7847
|
-
},
|
|
7848
|
-
end: {
|
|
7849
|
-
line: 33,
|
|
7850
|
-
column: 29
|
|
7851
|
-
}
|
|
7852
|
-
},
|
|
7853
|
-
"9": {
|
|
7854
7877
|
start: {
|
|
7855
7878
|
line: 35,
|
|
7856
7879
|
column: 24
|
|
@@ -7860,7 +7883,7 @@ function cov_t5m44crof() {
|
|
|
7860
7883
|
column: 34
|
|
7861
7884
|
}
|
|
7862
7885
|
},
|
|
7863
|
-
"
|
|
7886
|
+
"9": {
|
|
7864
7887
|
start: {
|
|
7865
7888
|
line: 39,
|
|
7866
7889
|
column: 23
|
|
@@ -7870,7 +7893,7 @@ function cov_t5m44crof() {
|
|
|
7870
7893
|
column: 3
|
|
7871
7894
|
}
|
|
7872
7895
|
},
|
|
7873
|
-
"
|
|
7896
|
+
"10": {
|
|
7874
7897
|
start: {
|
|
7875
7898
|
line: 40,
|
|
7876
7899
|
column: 4
|
|
@@ -7880,33 +7903,33 @@ function cov_t5m44crof() {
|
|
|
7880
7903
|
column: 11
|
|
7881
7904
|
}
|
|
7882
7905
|
},
|
|
7883
|
-
"
|
|
7906
|
+
"11": {
|
|
7884
7907
|
start: {
|
|
7885
7908
|
line: 49,
|
|
7886
7909
|
column: 2
|
|
7887
7910
|
},
|
|
7888
7911
|
end: {
|
|
7889
|
-
line:
|
|
7912
|
+
line: 113,
|
|
7890
7913
|
column: 4
|
|
7891
7914
|
}
|
|
7892
7915
|
},
|
|
7893
|
-
"
|
|
7916
|
+
"12": {
|
|
7894
7917
|
start: {
|
|
7895
|
-
line:
|
|
7918
|
+
line: 71,
|
|
7896
7919
|
column: 30
|
|
7897
7920
|
},
|
|
7898
7921
|
end: {
|
|
7899
|
-
line:
|
|
7922
|
+
line: 71,
|
|
7900
7923
|
column: 76
|
|
7901
7924
|
}
|
|
7902
7925
|
},
|
|
7903
|
-
"
|
|
7926
|
+
"13": {
|
|
7904
7927
|
start: {
|
|
7905
|
-
line:
|
|
7928
|
+
line: 75,
|
|
7906
7929
|
column: 10
|
|
7907
7930
|
},
|
|
7908
7931
|
end: {
|
|
7909
|
-
line:
|
|
7932
|
+
line: 109,
|
|
7910
7933
|
column: 13
|
|
7911
7934
|
}
|
|
7912
7935
|
}
|
|
@@ -7916,73 +7939,73 @@ function cov_t5m44crof() {
|
|
|
7916
7939
|
name: "(anonymous_0)",
|
|
7917
7940
|
decl: {
|
|
7918
7941
|
start: {
|
|
7919
|
-
line:
|
|
7942
|
+
line: 17,
|
|
7920
7943
|
column: 23
|
|
7921
7944
|
},
|
|
7922
7945
|
end: {
|
|
7923
|
-
line:
|
|
7946
|
+
line: 17,
|
|
7924
7947
|
column: 24
|
|
7925
7948
|
}
|
|
7926
7949
|
},
|
|
7927
7950
|
loc: {
|
|
7928
7951
|
start: {
|
|
7929
|
-
line:
|
|
7952
|
+
line: 24,
|
|
7930
7953
|
column: 6
|
|
7931
7954
|
},
|
|
7932
7955
|
end: {
|
|
7933
|
-
line:
|
|
7956
|
+
line: 114,
|
|
7934
7957
|
column: 1
|
|
7935
7958
|
}
|
|
7936
7959
|
},
|
|
7937
|
-
line:
|
|
7960
|
+
line: 24
|
|
7938
7961
|
},
|
|
7939
7962
|
"1": {
|
|
7940
7963
|
name: "(anonymous_1)",
|
|
7941
7964
|
decl: {
|
|
7942
7965
|
start: {
|
|
7943
|
-
line:
|
|
7966
|
+
line: 27,
|
|
7944
7967
|
column: 15
|
|
7945
7968
|
},
|
|
7946
7969
|
end: {
|
|
7947
|
-
line:
|
|
7970
|
+
line: 27,
|
|
7948
7971
|
column: 16
|
|
7949
7972
|
}
|
|
7950
7973
|
},
|
|
7951
7974
|
loc: {
|
|
7952
7975
|
start: {
|
|
7953
|
-
line:
|
|
7976
|
+
line: 27,
|
|
7954
7977
|
column: 21
|
|
7955
7978
|
},
|
|
7956
7979
|
end: {
|
|
7957
|
-
line:
|
|
7980
|
+
line: 27,
|
|
7958
7981
|
column: 30
|
|
7959
7982
|
}
|
|
7960
7983
|
},
|
|
7961
|
-
line:
|
|
7984
|
+
line: 27
|
|
7962
7985
|
},
|
|
7963
7986
|
"2": {
|
|
7964
7987
|
name: "(anonymous_2)",
|
|
7965
7988
|
decl: {
|
|
7966
7989
|
start: {
|
|
7967
|
-
line:
|
|
7990
|
+
line: 31,
|
|
7968
7991
|
column: 15
|
|
7969
7992
|
},
|
|
7970
7993
|
end: {
|
|
7971
|
-
line:
|
|
7994
|
+
line: 31,
|
|
7972
7995
|
column: 16
|
|
7973
7996
|
}
|
|
7974
7997
|
},
|
|
7975
7998
|
loc: {
|
|
7976
7999
|
start: {
|
|
7977
|
-
line:
|
|
8000
|
+
line: 31,
|
|
7978
8001
|
column: 21
|
|
7979
8002
|
},
|
|
7980
8003
|
end: {
|
|
7981
|
-
line:
|
|
8004
|
+
line: 31,
|
|
7982
8005
|
column: 30
|
|
7983
8006
|
}
|
|
7984
8007
|
},
|
|
7985
|
-
line:
|
|
8008
|
+
line: 31
|
|
7986
8009
|
},
|
|
7987
8010
|
"3": {
|
|
7988
8011
|
name: "(anonymous_3)",
|
|
@@ -8012,99 +8035,99 @@ function cov_t5m44crof() {
|
|
|
8012
8035
|
name: "(anonymous_4)",
|
|
8013
8036
|
decl: {
|
|
8014
8037
|
start: {
|
|
8015
|
-
line:
|
|
8038
|
+
line: 71,
|
|
8016
8039
|
column: 20
|
|
8017
8040
|
},
|
|
8018
8041
|
end: {
|
|
8019
|
-
line:
|
|
8042
|
+
line: 71,
|
|
8020
8043
|
column: 21
|
|
8021
8044
|
}
|
|
8022
8045
|
},
|
|
8023
8046
|
loc: {
|
|
8024
8047
|
start: {
|
|
8025
|
-
line:
|
|
8048
|
+
line: 71,
|
|
8026
8049
|
column: 30
|
|
8027
8050
|
},
|
|
8028
8051
|
end: {
|
|
8029
|
-
line:
|
|
8052
|
+
line: 71,
|
|
8030
8053
|
column: 76
|
|
8031
8054
|
}
|
|
8032
8055
|
},
|
|
8033
|
-
line:
|
|
8056
|
+
line: 71
|
|
8034
8057
|
},
|
|
8035
8058
|
"5": {
|
|
8036
8059
|
name: "(anonymous_5)",
|
|
8037
8060
|
decl: {
|
|
8038
8061
|
start: {
|
|
8039
|
-
line:
|
|
8062
|
+
line: 74,
|
|
8040
8063
|
column: 9
|
|
8041
8064
|
},
|
|
8042
8065
|
end: {
|
|
8043
|
-
line:
|
|
8066
|
+
line: 74,
|
|
8044
8067
|
column: 10
|
|
8045
8068
|
}
|
|
8046
8069
|
},
|
|
8047
8070
|
loc: {
|
|
8048
8071
|
start: {
|
|
8049
|
-
line:
|
|
8072
|
+
line: 75,
|
|
8050
8073
|
column: 10
|
|
8051
8074
|
},
|
|
8052
8075
|
end: {
|
|
8053
|
-
line:
|
|
8076
|
+
line: 109,
|
|
8054
8077
|
column: 13
|
|
8055
8078
|
}
|
|
8056
8079
|
},
|
|
8057
|
-
line:
|
|
8080
|
+
line: 75
|
|
8058
8081
|
}
|
|
8059
8082
|
},
|
|
8060
8083
|
branchMap: {
|
|
8061
8084
|
"0": {
|
|
8062
8085
|
loc: {
|
|
8063
8086
|
start: {
|
|
8064
|
-
line:
|
|
8087
|
+
line: 29,
|
|
8065
8088
|
column: 16
|
|
8066
8089
|
},
|
|
8067
8090
|
end: {
|
|
8068
|
-
line:
|
|
8091
|
+
line: 29,
|
|
8069
8092
|
column: 37
|
|
8070
8093
|
}
|
|
8071
8094
|
},
|
|
8072
8095
|
type: "default-arg",
|
|
8073
8096
|
locations: [{
|
|
8074
8097
|
start: {
|
|
8075
|
-
line:
|
|
8098
|
+
line: 29,
|
|
8076
8099
|
column: 35
|
|
8077
8100
|
},
|
|
8078
8101
|
end: {
|
|
8079
|
-
line:
|
|
8102
|
+
line: 29,
|
|
8080
8103
|
column: 37
|
|
8081
8104
|
}
|
|
8082
8105
|
}],
|
|
8083
|
-
line:
|
|
8106
|
+
line: 29
|
|
8084
8107
|
},
|
|
8085
8108
|
"1": {
|
|
8086
8109
|
loc: {
|
|
8087
8110
|
start: {
|
|
8088
|
-
line:
|
|
8111
|
+
line: 29,
|
|
8089
8112
|
column: 18
|
|
8090
8113
|
},
|
|
8091
8114
|
end: {
|
|
8092
|
-
line:
|
|
8115
|
+
line: 29,
|
|
8093
8116
|
column: 30
|
|
8094
8117
|
}
|
|
8095
8118
|
},
|
|
8096
8119
|
type: "default-arg",
|
|
8097
8120
|
locations: [{
|
|
8098
8121
|
start: {
|
|
8099
|
-
line:
|
|
8122
|
+
line: 29,
|
|
8100
8123
|
column: 28
|
|
8101
8124
|
},
|
|
8102
8125
|
end: {
|
|
8103
|
-
line:
|
|
8126
|
+
line: 29,
|
|
8104
8127
|
column: 30
|
|
8105
8128
|
}
|
|
8106
8129
|
}],
|
|
8107
|
-
line:
|
|
8130
|
+
line: 29
|
|
8108
8131
|
},
|
|
8109
8132
|
"2": {
|
|
8110
8133
|
loc: {
|
|
@@ -8175,35 +8198,35 @@ function cov_t5m44crof() {
|
|
|
8175
8198
|
"4": {
|
|
8176
8199
|
loc: {
|
|
8177
8200
|
start: {
|
|
8178
|
-
line:
|
|
8201
|
+
line: 57,
|
|
8179
8202
|
column: 11
|
|
8180
8203
|
},
|
|
8181
8204
|
end: {
|
|
8182
|
-
line:
|
|
8205
|
+
line: 57,
|
|
8183
8206
|
column: 66
|
|
8184
8207
|
}
|
|
8185
8208
|
},
|
|
8186
8209
|
type: "cond-expr",
|
|
8187
8210
|
locations: [{
|
|
8188
8211
|
start: {
|
|
8189
|
-
line:
|
|
8212
|
+
line: 57,
|
|
8190
8213
|
column: 30
|
|
8191
8214
|
},
|
|
8192
8215
|
end: {
|
|
8193
|
-
line:
|
|
8216
|
+
line: 57,
|
|
8194
8217
|
column: 47
|
|
8195
8218
|
}
|
|
8196
8219
|
}, {
|
|
8197
8220
|
start: {
|
|
8198
|
-
line:
|
|
8221
|
+
line: 57,
|
|
8199
8222
|
column: 50
|
|
8200
8223
|
},
|
|
8201
8224
|
end: {
|
|
8202
|
-
line:
|
|
8225
|
+
line: 57,
|
|
8203
8226
|
column: 66
|
|
8204
8227
|
}
|
|
8205
8228
|
}],
|
|
8206
|
-
line:
|
|
8229
|
+
line: 57
|
|
8207
8230
|
}
|
|
8208
8231
|
},
|
|
8209
8232
|
s: {
|
|
@@ -8220,8 +8243,7 @@ function cov_t5m44crof() {
|
|
|
8220
8243
|
"10": 0,
|
|
8221
8244
|
"11": 0,
|
|
8222
8245
|
"12": 0,
|
|
8223
|
-
"13": 0
|
|
8224
|
-
"14": 0
|
|
8246
|
+
"13": 0
|
|
8225
8247
|
},
|
|
8226
8248
|
f: {
|
|
8227
8249
|
"0": 0,
|
|
@@ -8239,7 +8261,7 @@ function cov_t5m44crof() {
|
|
|
8239
8261
|
"4": [0, 0]
|
|
8240
8262
|
},
|
|
8241
8263
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
8242
|
-
hash: "
|
|
8264
|
+
hash: "2c9d4342641749ebdaaced093d065c7374a61586"
|
|
8243
8265
|
};
|
|
8244
8266
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
8245
8267
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -8290,15 +8312,14 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8290
8312
|
})),
|
|
8291
8313
|
updateWebhook = _ref5.mutate;
|
|
8292
8314
|
var endpointRef = (cov_t5m44crof().s[7]++, useRef());
|
|
8293
|
-
var
|
|
8294
|
-
var initialValues = (cov_t5m44crof().s[9]++, editingWebhookId ? (cov_t5m44crof().b[2][0]++, webhook) : (cov_t5m44crof().b[2][1]++, {
|
|
8315
|
+
var initialValues = (cov_t5m44crof().s[8]++, editingWebhookId ? (cov_t5m44crof().b[2][0]++, webhook) : (cov_t5m44crof().b[2][1]++, {
|
|
8295
8316
|
endpoint: "",
|
|
8296
8317
|
secret: ""
|
|
8297
8318
|
}));
|
|
8298
|
-
cov_t5m44crof().s[
|
|
8319
|
+
cov_t5m44crof().s[9]++;
|
|
8299
8320
|
var handleSubmit = function handleSubmit(values) {
|
|
8300
8321
|
cov_t5m44crof().f[3]++;
|
|
8301
|
-
cov_t5m44crof().s[
|
|
8322
|
+
cov_t5m44crof().s[10]++;
|
|
8302
8323
|
editingWebhookId ? (cov_t5m44crof().b[3][0]++, updateWebhook({
|
|
8303
8324
|
id: editingWebhookId,
|
|
8304
8325
|
payload: values
|
|
@@ -8307,23 +8328,32 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8307
8328
|
entityType: entityType
|
|
8308
8329
|
})));
|
|
8309
8330
|
};
|
|
8310
|
-
cov_t5m44crof().s[
|
|
8331
|
+
cov_t5m44crof().s[11]++;
|
|
8311
8332
|
return /*#__PURE__*/React.createElement(Pane, {
|
|
8312
8333
|
initialFocusRef: endpointRef,
|
|
8313
8334
|
isOpen: isOpen,
|
|
8314
8335
|
onClose: onClose
|
|
8315
|
-
}, /*#__PURE__*/React.createElement(Pane.Header,
|
|
8336
|
+
}, /*#__PURE__*/React.createElement(Pane.Header, {
|
|
8337
|
+
className: "flex items-center space-x-3"
|
|
8338
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
8316
8339
|
"data-cy": "add-new-webhook-pane-header",
|
|
8317
8340
|
style: "h2",
|
|
8318
8341
|
weight: "semibold"
|
|
8319
|
-
}, editingWebhookId ? (cov_t5m44crof().b[4][0]++, t("webhook.edit")) : (cov_t5m44crof().b[4][1]++, t("webhook.add")))
|
|
8342
|
+
}, editingWebhookId ? (cov_t5m44crof().b[4][0]++, t("webhook.edit")) : (cov_t5m44crof().b[4][1]++, t("webhook.add"))), /*#__PURE__*/React.createElement("a", {
|
|
8343
|
+
href: WEBHOOK_HELP_URL,
|
|
8344
|
+
rel: "noreferrer",
|
|
8345
|
+
target: "_blank"
|
|
8346
|
+
}, /*#__PURE__*/React.createElement(Info, {
|
|
8347
|
+
className: "neeto-ui-text-primary-800 mt-0.5 cursor-pointer",
|
|
8348
|
+
size: 20
|
|
8349
|
+
}))), /*#__PURE__*/React.createElement(Form, {
|
|
8320
8350
|
formikProps: {
|
|
8321
8351
|
enableReinitialize: true,
|
|
8322
8352
|
validationSchema: VALIDATION_SCHEMA(webhooks),
|
|
8323
8353
|
initialValues: initialValues,
|
|
8324
8354
|
onSubmit: function onSubmit(values) {
|
|
8325
8355
|
cov_t5m44crof().f[4]++;
|
|
8326
|
-
cov_t5m44crof().s[
|
|
8356
|
+
cov_t5m44crof().s[12]++;
|
|
8327
8357
|
return handleSubmit(VALIDATION_SCHEMA().cast(values));
|
|
8328
8358
|
}
|
|
8329
8359
|
}
|
|
@@ -8331,7 +8361,7 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8331
8361
|
var dirty = _ref6.dirty,
|
|
8332
8362
|
isSubmitting = _ref6.isSubmitting;
|
|
8333
8363
|
cov_t5m44crof().f[5]++;
|
|
8334
|
-
cov_t5m44crof().s[
|
|
8364
|
+
cov_t5m44crof().s[13]++;
|
|
8335
8365
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pane.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
8336
8366
|
className: "w-full space-y-4"
|
|
8337
8367
|
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
@@ -8342,31 +8372,10 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8342
8372
|
placeholder: t("webhook.endpointPlaceholder"),
|
|
8343
8373
|
ref: endpointRef
|
|
8344
8374
|
}), /*#__PURE__*/React.createElement(Input$1, {
|
|
8345
|
-
name: "secret",
|
|
8346
8375
|
"data-cy": "secret-key-input-field",
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
}, /*#__PURE__*/React.createElement(Info, {
|
|
8351
|
-
className: "mx-1",
|
|
8352
|
-
size: 18
|
|
8353
|
-
})), /*#__PURE__*/React.createElement(Popover, {
|
|
8354
|
-
position: "right",
|
|
8355
|
-
reference: popoverRef,
|
|
8356
|
-
content: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover.Title, null, t("webhook.secretHelpPopover.title")), /*#__PURE__*/React.createElement(Typography, {
|
|
8357
|
-
lineHeight: "normal",
|
|
8358
|
-
style: "body2"
|
|
8359
|
-
}, t("webhook.secretHelpPopover.description")), /*#__PURE__*/React.createElement("a", {
|
|
8360
|
-
href: WEBHOOK_SECRET_KEY_HELP_URL,
|
|
8361
|
-
rel: "noreferrer",
|
|
8362
|
-
target: "_blank"
|
|
8363
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
8364
|
-
className: "neeto-ui-mt-3",
|
|
8365
|
-
label: t("webhook.secretHelpPopover.linkText"),
|
|
8366
|
-
size: "small",
|
|
8367
|
-
style: "link"
|
|
8368
|
-
})))
|
|
8369
|
-
}))
|
|
8376
|
+
label: t("webhook.secret"),
|
|
8377
|
+
name: "secret",
|
|
8378
|
+
placeholder: t("webhook.secretPlaceholder")
|
|
8370
8379
|
}))), /*#__PURE__*/React.createElement(Pane.Footer, {
|
|
8371
8380
|
className: "flex gap-2"
|
|
8372
8381
|
}, /*#__PURE__*/React.createElement(ActionBlock, {
|
|
@@ -9495,7 +9504,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
9495
9504
|
return /*#__PURE__*/React.createElement("div", {
|
|
9496
9505
|
className: "w-full px-6"
|
|
9497
9506
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9498
|
-
className: "sticky top-0 z-50 w-full bg-white
|
|
9507
|
+
className: "sticky top-0 z-50 w-full bg-white"
|
|
9499
9508
|
}, /*#__PURE__*/React.createElement(Header, _extends({
|
|
9500
9509
|
title: t("webhook.title")
|
|
9501
9510
|
}, (cov_une6dfv6o().b[4][0]++, shouldShowBreadcrumbs) && (cov_une6dfv6o().b[4][1]++, {
|
|
@@ -9517,8 +9526,8 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
9517
9526
|
}
|
|
9518
9527
|
})
|
|
9519
9528
|
})), /*#__PURE__*/React.createElement(Typography, {
|
|
9520
|
-
"data-cy": "webhook-description-header",
|
|
9521
9529
|
className: "neeto-ui-text-gray-700",
|
|
9530
|
+
"data-cy": "webhook-description-header",
|
|
9522
9531
|
style: "h5",
|
|
9523
9532
|
weight: "normal"
|
|
9524
9533
|
}, t("webhook.description"))), /*#__PURE__*/React.createElement("div", {
|