@seamapi/react 1.29.0 → 1.30.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/README.md CHANGED
@@ -48,7 +48,7 @@ $ npm install @seamapi/react
48
48
  ```tsx
49
49
  import { ConnectAccountButton, DeviceTable, SeamProvider } from '@seamapi/react'
50
50
 
51
- export const App = () => {
51
+ export function App() {
52
52
  return (
53
53
  <SeamProvider publishableKey='your_publishable_key'>
54
54
  <main>
@@ -103,7 +103,7 @@ They are well-typed and follow a uniform API.
103
103
  ```tsx
104
104
  import { SeamProvider, useDevices } from '@seamapi/react/hooks'
105
105
 
106
- export const App = () => {
106
+ export function App() {
107
107
  return (
108
108
  <SeamProvider publishableKey='your_publishable_key'>
109
109
  <main>
@@ -114,7 +114,7 @@ export const App = () => {
114
114
  )
115
115
  }
116
116
 
117
- const Devices = () => {
117
+ function Devices() {
118
118
  const { devices, isLoading, isError, error } = useDevices()
119
119
 
120
120
  if (isLoading) {
package/dist/elements.js CHANGED
@@ -8077,7 +8077,7 @@ const jm = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
8077
8077
  const n = globalThis.document.createElement("link");
8078
8078
  n.rel = "stylesheet", n.type = "text/css", n.href = jm, globalThis.document.head.appendChild(n);
8079
8079
  }, [t]);
8080
- }, eO = "1.29.0", tO = "https://react.seam.co", nO = ({
8080
+ }, eO = "1.30.0", tO = "https://react.seam.co", nO = ({
8081
8081
  disabled: t = !1,
8082
8082
  unminified: e = !1
8083
8083
  }) => {
@@ -14243,14 +14243,14 @@ Et.prototype.mainError = function() {
14243
14243
  }
14244
14244
  for (var s = 0; s < i.length; s++) {
14245
14245
  var l = i[s], c = n[l];
14246
- n[l] = function(u) {
14246
+ n[l] = (function(u) {
14247
14247
  var p = t.operation(r), d = Array.prototype.slice.call(arguments, 1), f = d.pop();
14248
14248
  d.push(function(h) {
14249
14249
  p.retry(h) || (h && (arguments[0] = p.mainError()), f.apply(this, arguments));
14250
14250
  }), p.attempt(function() {
14251
14251
  u.apply(n, d);
14252
14252
  });
14253
- }.bind(n, c), n[l].options = r;
14253
+ }).bind(n, c), n[l].options = r;
14254
14254
  }
14255
14255
  };
14256
14256
  })(d1);
@@ -22597,12 +22597,16 @@ var dj = Object.defineProperty, cj = Object.defineProperties, pj = Object.getOwn
22597
22597
  );
22598
22598
  }),
22599
22599
  // We can't narrow the return type here like we do with create because we're given partial input
22600
- update: (t) => Ft(this, null, function* () {
22601
- return (yield this.createActionAttemptAndWait({
22602
- url: "/access_codes/update",
22603
- method: "POST",
22604
- data: t
22605
- })).access_code;
22600
+ update: (t, e) => Ft(this, null, function* () {
22601
+ const n = yield this.makeRequestAndFormat(
22602
+ "action_attempt",
22603
+ {
22604
+ url: "/access_codes/update",
22605
+ method: "POST",
22606
+ data: t
22607
+ }
22608
+ );
22609
+ return e != null && e.waitForCompletion ? yield this.awaitActionAttempt(n) : n;
22606
22610
  }),
22607
22611
  delete: (t) => this.createActionAttemptAndWait({
22608
22612
  url: "/access_codes/delete",
@@ -22807,7 +22811,7 @@ var dj = Object.defineProperty, cj = Object.defineProperties, pj = Object.getOwn
22807
22811
  });
22808
22812
  });
22809
22813
  }
22810
- }, vj = "6.15.1", rg = (t) => {
22814
+ }, vj = "7.1.0", rg = (t) => {
22811
22815
  var e, n, r, i, o, s, l, c, a;
22812
22816
  const u = {
22813
22817
  apiKey: (r = (n = (e = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : e.env) == null ? void 0 : n.SEAM_API_KEY) != null ? r : void 0,