@shop-prompter/react 1.2.2 → 1.2.3

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # shop-prompter-react
2
2
 
3
+ ## 1.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 7b506a7: Fix broken html input bug
8
+
3
9
  ## 1.2.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2299,7 +2299,10 @@ function ShopPrompter(props) {
2299
2299
  ...error ? {
2300
2300
  opacity: "0.5",
2301
2301
  pointerEvents: "none"
2302
- } : {}
2302
+ } : {
2303
+ opacity: "1",
2304
+ pointerEvents: "auto"
2305
+ }
2303
2306
  },
2304
2307
  children: [
2305
2308
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: styles2.inputWrapper, children: [
@@ -2313,7 +2316,7 @@ function ShopPrompter(props) {
2313
2316
  value: input,
2314
2317
  onInput: (e) => onInputChange(e),
2315
2318
  onKeyDown: (e) => onInputKeyDown(e),
2316
- disabled: !!error
2319
+ tabIndex: error ? -1 : 0
2317
2320
  }
2318
2321
  ),
2319
2322
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
package/dist/index.mjs CHANGED
@@ -2263,7 +2263,10 @@ function ShopPrompter(props) {
2263
2263
  ...error ? {
2264
2264
  opacity: "0.5",
2265
2265
  pointerEvents: "none"
2266
- } : {}
2266
+ } : {
2267
+ opacity: "1",
2268
+ pointerEvents: "auto"
2269
+ }
2267
2270
  },
2268
2271
  children: [
2269
2272
  /* @__PURE__ */ jsxs4("div", { style: styles2.inputWrapper, children: [
@@ -2277,7 +2280,7 @@ function ShopPrompter(props) {
2277
2280
  value: input,
2278
2281
  onInput: (e) => onInputChange(e),
2279
2282
  onKeyDown: (e) => onInputKeyDown(e),
2280
- disabled: !!error
2283
+ tabIndex: error ? -1 : 0
2281
2284
  }
2282
2285
  ),
2283
2286
  /* @__PURE__ */ jsx4(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shop-prompter/react",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -1392,7 +1392,10 @@ function ShopPrompter(props) {
1392
1392
  opacity: "0.5",
1393
1393
  pointerEvents: "none",
1394
1394
  }
1395
- : {}),
1395
+ : {
1396
+ opacity: "1",
1397
+ pointerEvents: "auto",
1398
+ }),
1396
1399
  }}
1397
1400
  >
1398
1401
  <div style={styles.inputWrapper}>
@@ -1406,7 +1409,7 @@ function ShopPrompter(props) {
1406
1409
  value={input}
1407
1410
  onInput={(e) => onInputChange(e)}
1408
1411
  onKeyDown={(e) => onInputKeyDown(e)}
1409
- disabled={!!error}
1412
+ tabIndex={error ? -1 : 0}
1410
1413
  />
1411
1414
  <button
1412
1415
  onClick={(e) => handleSend()}