ordering-ui-admin-external 1.45.50 → 1.45.51

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.
@@ -1,221 +1,221 @@
1
- /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
6
-
7
- /*!
8
- Copyright (c) 2018 Jed Watson.
9
- Licensed under the MIT License (MIT), see
10
- http://jedwatson.github.io/classnames
11
- */
12
-
13
- /*!
14
- * decimal.js v10.4.3
15
- * An arbitrary-precision Decimal type for JavaScript.
16
- * https://github.com/MikeMcl/decimal.js
17
- * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
18
- * MIT Licence
19
- */
20
-
21
- /*!
22
- * Bootstrap dropdown.js v4.6.2 (https://getbootstrap.com/)
23
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
24
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
25
- */
26
-
27
- /*!
28
- * Bootstrap modal.js v4.6.2 (https://getbootstrap.com/)
29
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
30
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
31
- */
32
-
33
- /*!
34
- * Bootstrap tooltip.js v4.6.2 (https://getbootstrap.com/)
35
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
36
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
37
- */
38
-
39
- /*!
40
- * Bootstrap util.js v4.6.2 (https://getbootstrap.com/)
41
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
42
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
43
- */
44
-
45
- /*!
46
- * chartjs-adapter-moment v1.0.1
47
- * https://www.chartjs.org
48
- * (c) 2022 chartjs-adapter-moment Contributors
49
- * Released under the MIT license
50
- */
51
-
52
- /*!
53
- Copyright (c) 2018 Jed Watson.
54
- Licensed under the MIT License (MIT), see
55
- http://jedwatson.github.io/classnames
56
- */
57
-
58
- /*!
59
- *
60
- * Super simple wysiwyg editor v0.8.18
61
- * https://summernote.org
62
- *
63
- *
64
- * Copyright 2013- Alan Hong. and other contributors
65
- * summernote may be freely distributed under the MIT license.
66
- *
67
- * Date: 2020-05-20T16:47Z
68
- *
69
- */
70
-
71
- /*!
72
- * @kurkle/color v0.2.1
73
- * https://github.com/kurkle/color#readme
74
- * (c) 2022 Jukka Kurkela
75
- * Released under the MIT License
76
- */
77
-
78
- /*!
79
- * Chart.js v3.9.1
80
- * https://www.chartjs.org
81
- * (c) 2022 Chart.js Contributors
82
- * Released under the MIT License
83
- */
84
-
85
- /*!
86
- * Cropper.js v1.6.2
87
- * https://fengyuanchen.github.io/cropperjs
88
- *
89
- * Copyright 2015-present Chen Fengyuan
90
- * Released under the MIT license
91
- *
92
- * Date: 2024-04-21T07:43:05.335Z
93
- */
94
-
95
- /*!
96
- * Pikaday
97
- *
98
- * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
99
- */
100
-
101
- /*!
102
- * Selectr 2.4.13
103
- * http://mobius.ovh/docs/selectr
104
- *
105
- * Released under the MIT license
106
- */
107
-
108
- /*!
109
- * jQuery JavaScript Library v3.7.1
110
- * https://jquery.com/
111
- *
112
- * Copyright OpenJS Foundation and other contributors
113
- * Released under the MIT license
114
- * https://jquery.org/license
115
- *
116
- * Date: 2023-08-28T13:37Z
117
- */
118
-
119
- /*!
120
- * jsoneditor.js
121
- *
122
- * @brief
123
- * JSONEditor is a web-based tool to view, edit, format, and validate JSON.
124
- * It has various modes such as a tree editor, a code editor, and a plain text
125
- * editor.
126
- *
127
- * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+
128
- *
129
- * @license
130
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
131
- * use this file except in compliance with the License. You may obtain a copy
132
- * of the License at
133
- *
134
- * http://www.apache.org/licenses/LICENSE-2.0
135
- *
136
- * Unless required by applicable law or agreed to in writing, software
137
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
138
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
139
- * License for the specific language governing permissions and limitations under
140
- * the License.
141
- *
142
- * Copyright (c) 2011-2023 Jos de Jong, http://jsoneditoronline.org
143
- *
144
- * @author Jos de Jong, <wjosdejong@gmail.com>
145
- * @version 9.10.5
146
- * @date 2023-12-21
147
- */
148
-
149
- /*! *****************************************************************************
150
- Copyright (c) Microsoft Corporation.
151
-
152
- Permission to use, copy, modify, and/or distribute this software for any
153
- purpose with or without fee is hereby granted.
154
-
155
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
156
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
157
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
158
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
159
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
160
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
161
- PERFORMANCE OF THIS SOFTWARE.
162
- ***************************************************************************** */
163
-
164
- /*! @license DOMPurify 2.5.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.7/LICENSE */
165
-
166
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
167
-
168
- /**
169
- * @preserve
170
- * Authors: Handsoncode
171
- * Last updated: Nov 15, 2017
172
- *
173
- * Description: Definition file for English - United States language-country.
174
- */
175
-
176
- /** @license React v16.13.1
177
- * react-is.development.js
178
- *
179
- * Copyright (c) Facebook, Inc. and its affiliates.
180
- *
181
- * This source code is licensed under the MIT license found in the
182
- * LICENSE file in the root directory of this source tree.
183
- */
184
-
185
- /** @license React v16.13.1
186
- * react-is.production.min.js
187
- *
188
- * Copyright (c) Facebook, Inc. and its affiliates.
189
- *
190
- * This source code is licensed under the MIT license found in the
191
- * LICENSE file in the root directory of this source tree.
192
- */
193
-
194
- /**!
195
- * @fileOverview Kickass library to create and place poppers near their reference elements.
196
- * @version 1.16.1
197
- * @license
198
- * Copyright (c) 2016 Federico Zivolo and contributors
199
- *
200
- * Permission is hereby granted, free of charge, to any person obtaining a copy
201
- * of this software and associated documentation files (the "Software"), to deal
202
- * in the Software without restriction, including without limitation the rights
203
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
204
- * copies of the Software, and to permit persons to whom the Software is
205
- * furnished to do so, subject to the following conditions:
206
- *
207
- * The above copyright notice and this permission notice shall be included in all
208
- * copies or substantial portions of the Software.
209
- *
210
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
211
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
212
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
213
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
214
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
215
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
216
- * SOFTWARE.
217
- */
218
-
219
- //! moment.js
220
-
221
- //! moment.js locale configuration
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /*!
8
+ Copyright (c) 2018 Jed Watson.
9
+ Licensed under the MIT License (MIT), see
10
+ http://jedwatson.github.io/classnames
11
+ */
12
+
13
+ /*!
14
+ * decimal.js v10.4.3
15
+ * An arbitrary-precision Decimal type for JavaScript.
16
+ * https://github.com/MikeMcl/decimal.js
17
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
18
+ * MIT Licence
19
+ */
20
+
21
+ /*!
22
+ * Bootstrap dropdown.js v4.6.2 (https://getbootstrap.com/)
23
+ * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
24
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
25
+ */
26
+
27
+ /*!
28
+ * Bootstrap modal.js v4.6.2 (https://getbootstrap.com/)
29
+ * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
30
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
31
+ */
32
+
33
+ /*!
34
+ * Bootstrap tooltip.js v4.6.2 (https://getbootstrap.com/)
35
+ * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
36
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
37
+ */
38
+
39
+ /*!
40
+ * Bootstrap util.js v4.6.2 (https://getbootstrap.com/)
41
+ * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
42
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
43
+ */
44
+
45
+ /*!
46
+ * chartjs-adapter-moment v1.0.1
47
+ * https://www.chartjs.org
48
+ * (c) 2022 chartjs-adapter-moment Contributors
49
+ * Released under the MIT license
50
+ */
51
+
52
+ /*!
53
+ Copyright (c) 2018 Jed Watson.
54
+ Licensed under the MIT License (MIT), see
55
+ http://jedwatson.github.io/classnames
56
+ */
57
+
58
+ /*!
59
+ *
60
+ * Super simple wysiwyg editor v0.8.18
61
+ * https://summernote.org
62
+ *
63
+ *
64
+ * Copyright 2013- Alan Hong. and other contributors
65
+ * summernote may be freely distributed under the MIT license.
66
+ *
67
+ * Date: 2020-05-20T16:47Z
68
+ *
69
+ */
70
+
71
+ /*!
72
+ * @kurkle/color v0.2.1
73
+ * https://github.com/kurkle/color#readme
74
+ * (c) 2022 Jukka Kurkela
75
+ * Released under the MIT License
76
+ */
77
+
78
+ /*!
79
+ * Chart.js v3.9.1
80
+ * https://www.chartjs.org
81
+ * (c) 2022 Chart.js Contributors
82
+ * Released under the MIT License
83
+ */
84
+
85
+ /*!
86
+ * Cropper.js v1.6.2
87
+ * https://fengyuanchen.github.io/cropperjs
88
+ *
89
+ * Copyright 2015-present Chen Fengyuan
90
+ * Released under the MIT license
91
+ *
92
+ * Date: 2024-04-21T07:43:05.335Z
93
+ */
94
+
95
+ /*!
96
+ * Pikaday
97
+ *
98
+ * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
99
+ */
100
+
101
+ /*!
102
+ * Selectr 2.4.13
103
+ * http://mobius.ovh/docs/selectr
104
+ *
105
+ * Released under the MIT license
106
+ */
107
+
108
+ /*!
109
+ * jQuery JavaScript Library v3.7.1
110
+ * https://jquery.com/
111
+ *
112
+ * Copyright OpenJS Foundation and other contributors
113
+ * Released under the MIT license
114
+ * https://jquery.org/license
115
+ *
116
+ * Date: 2023-08-28T13:37Z
117
+ */
118
+
119
+ /*!
120
+ * jsoneditor.js
121
+ *
122
+ * @brief
123
+ * JSONEditor is a web-based tool to view, edit, format, and validate JSON.
124
+ * It has various modes such as a tree editor, a code editor, and a plain text
125
+ * editor.
126
+ *
127
+ * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+
128
+ *
129
+ * @license
130
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
131
+ * use this file except in compliance with the License. You may obtain a copy
132
+ * of the License at
133
+ *
134
+ * http://www.apache.org/licenses/LICENSE-2.0
135
+ *
136
+ * Unless required by applicable law or agreed to in writing, software
137
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
138
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
139
+ * License for the specific language governing permissions and limitations under
140
+ * the License.
141
+ *
142
+ * Copyright (c) 2011-2023 Jos de Jong, http://jsoneditoronline.org
143
+ *
144
+ * @author Jos de Jong, <wjosdejong@gmail.com>
145
+ * @version 9.10.5
146
+ * @date 2023-12-21
147
+ */
148
+
149
+ /*! *****************************************************************************
150
+ Copyright (c) Microsoft Corporation.
151
+
152
+ Permission to use, copy, modify, and/or distribute this software for any
153
+ purpose with or without fee is hereby granted.
154
+
155
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
156
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
157
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
158
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
159
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
160
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
161
+ PERFORMANCE OF THIS SOFTWARE.
162
+ ***************************************************************************** */
163
+
164
+ /*! @license DOMPurify 2.5.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.7/LICENSE */
165
+
166
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
167
+
168
+ /**
169
+ * @preserve
170
+ * Authors: Handsoncode
171
+ * Last updated: Nov 15, 2017
172
+ *
173
+ * Description: Definition file for English - United States language-country.
174
+ */
175
+
176
+ /** @license React v16.13.1
177
+ * react-is.development.js
178
+ *
179
+ * Copyright (c) Facebook, Inc. and its affiliates.
180
+ *
181
+ * This source code is licensed under the MIT license found in the
182
+ * LICENSE file in the root directory of this source tree.
183
+ */
184
+
185
+ /** @license React v16.13.1
186
+ * react-is.production.min.js
187
+ *
188
+ * Copyright (c) Facebook, Inc. and its affiliates.
189
+ *
190
+ * This source code is licensed under the MIT license found in the
191
+ * LICENSE file in the root directory of this source tree.
192
+ */
193
+
194
+ /**!
195
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
196
+ * @version 1.16.1
197
+ * @license
198
+ * Copyright (c) 2016 Federico Zivolo and contributors
199
+ *
200
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
201
+ * of this software and associated documentation files (the "Software"), to deal
202
+ * in the Software without restriction, including without limitation the rights
203
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
204
+ * copies of the Software, and to permit persons to whom the Software is
205
+ * furnished to do so, subject to the following conditions:
206
+ *
207
+ * The above copyright notice and this permission notice shall be included in all
208
+ * copies or substantial portions of the Software.
209
+ *
210
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
211
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
212
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
213
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
214
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
215
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
216
+ * SOFTWARE.
217
+ */
218
+
219
+ //! moment.js
220
+
221
+ //! moment.js locale configuration
@@ -39,7 +39,9 @@ var BusinessDeviceListingUI = function BusinessDeviceListingUI(props) {
39
39
  _onSearch = props.onSearch,
40
40
  deviceListState = props.deviceListState,
41
41
  handleUpdateDeviceList = props.handleUpdateDeviceList,
42
- isEnabledDeleteAllSessions = props.isEnabledDeleteAllSessions;
42
+ isEnabledDeleteAllSessionsProp = props.isEnabledDeleteAllSessions;
43
+ var isEnabledDeleteAllSessionsFlag = (0, _utils.getFeatureFlags)('dominos_enable_delete_all_sessions_by_user');
44
+ var isEnabledDeleteAllSessions = isEnabledDeleteAllSessionsProp !== null && isEnabledDeleteAllSessionsProp !== void 0 ? isEnabledDeleteAllSessionsProp : isEnabledDeleteAllSessionsFlag;
43
45
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
44
46
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
45
47
  t = _useLanguage2[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.45.50",
3
+ "version": "1.45.51",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -10,7 +10,7 @@ import { List as MenuIcon } from 'react-bootstrap-icons'
10
10
  import { Button, IconButton, LinkButton } from '../../../styles'
11
11
  import { useTheme } from 'styled-components'
12
12
  import { Alert, SearchBar, SideBar, ColumnAllowSettingPopover } from '../../Shared'
13
- import { addQueryToUrl, removeQueryToUrl } from '../../../utils'
13
+ import { addQueryToUrl, removeQueryToUrl, getFeatureFlags } from '../../../utils'
14
14
 
15
15
  import {
16
16
  BrandListingContainer,
@@ -34,9 +34,12 @@ const BusinessDeviceListingUI = (props) => {
34
34
  onSearch,
35
35
  deviceListState,
36
36
  handleUpdateDeviceList,
37
- isEnabledDeleteAllSessions
37
+ isEnabledDeleteAllSessions: isEnabledDeleteAllSessionsProp
38
38
  } = props
39
39
 
40
+ const isEnabledDeleteAllSessionsFlag = getFeatureFlags('dominos_enable_delete_all_sessions_by_user')
41
+ const isEnabledDeleteAllSessions = isEnabledDeleteAllSessionsProp ?? isEnabledDeleteAllSessionsFlag
42
+
40
43
  const [, t] = useLanguage()
41
44
  const theme = useTheme()
42
45
  const [{ optimizeImage }] = useUtils()