@orbitcommerce/constellation 1.6.0 → 1.6.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.
@@ -554,7 +554,8 @@ var TagInput = forwardRef(function TagInput2({
554
554
  const handlePaste = (event) => {
555
555
  onPaste?.(event);
556
556
  if (event.defaultPrevented) return;
557
- const pasted = event.clipboardData.getData("text");
557
+ const pasted = event.clipboardData?.getData("text") ?? "";
558
+ if (!pasted) return;
558
559
  if (saving) {
559
560
  sayWait();
560
561
  return;
@@ -42,7 +42,7 @@ import "../chunks/chunk-2YL6WDRC.js";
42
42
  import "../chunks/chunk-ZKNKC4HK.js";
43
43
  import {
44
44
  TagInput
45
- } from "../chunks/chunk-C3VVLKL7.js";
45
+ } from "../chunks/chunk-6HMCU2AL.js";
46
46
  import "../chunks/chunk-R5P6PTKK.js";
47
47
  import "../chunks/chunk-3MPC53GY.js";
48
48
  import "../chunks/chunk-323SLH5D.js";
@@ -167,13 +167,17 @@ var OtpInput = forwardRef(function OtpInput2({
167
167
  };
168
168
  const pasteBox = (index, event) => {
169
169
  if (disabled || readOnly) return;
170
+ const text = event.clipboardData?.getData("text") ?? "";
171
+ if (!text) return;
170
172
  event.preventDefault();
171
- place(event.clipboardData.getData("text"), index);
173
+ place(text, index);
172
174
  };
173
175
  const pasteSingle = (event) => {
174
176
  if (disabled || readOnly) return;
177
+ const text = event.clipboardData?.getData("text") ?? "";
178
+ if (!text) return;
175
179
  event.preventDefault();
176
- const incoming = clean(event.clipboardData.getData("text"), charset);
180
+ const incoming = clean(text, charset);
177
181
  if (!incoming) return;
178
182
  if (incoming.length >= length) {
179
183
  commit(incoming.slice(0, length));
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  TagInput,
4
4
  tagInputLabels
5
- } from "../chunks/chunk-C3VVLKL7.js";
5
+ } from "../chunks/chunk-6HMCU2AL.js";
6
6
  import "../chunks/chunk-R5P6PTKK.js";
7
7
  import "../chunks/chunk-3MPC53GY.js";
8
8
  import "../chunks/chunk-323SLH5D.js";
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  .o-table-frame__scroll {
29
- overscroll-behavior: contain;
29
+ overscroll-behavior-x: contain;
30
30
  scrollbar-width: thin;
31
31
  scrollbar-color: var(--o-border-3) transparent;
32
32
  min-height: 0;
package/dist/styles.css CHANGED
@@ -5657,7 +5657,7 @@
5657
5657
  }
5658
5658
 
5659
5659
  .o-table-frame__scroll {
5660
- overscroll-behavior: contain;
5660
+ overscroll-behavior-x: contain;
5661
5661
  scrollbar-width: thin;
5662
5662
  scrollbar-color: var(--o-border-3) transparent;
5663
5663
  min-height: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbitcommerce/constellation",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Constellation by Orbit Commerce: the design system and React components Orbit Commerce builds its dashboards with, for apps that look at home in Orbit Commerce",
5
5
  "keywords": [
6
6
  "orbit-commerce",