@seamapi/react 5.2.0 → 5.2.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.
Files changed (31) hide show
  1. package/README.md +20 -5
  2. package/dist/ecosystem.js +10 -11
  3. package/dist/ecosystem.js.map +1 -1
  4. package/dist/elements.js +5855 -5810
  5. package/dist/elements.js.map +1 -1
  6. package/dist/index.css +91 -22
  7. package/dist/index.css.map +1 -1
  8. package/dist/index.min.css +1 -1
  9. package/dist/index.min.css.map +1 -1
  10. package/lib/seam/components/SupportedDevices/DeviceModelRow.js +23 -31
  11. package/lib/seam/components/SupportedDevices/DeviceModelRow.js.map +1 -1
  12. package/lib/seam/components/SupportedDevices/ManufacturerSection.js +2 -7
  13. package/lib/seam/components/SupportedDevices/ManufacturerSection.js.map +1 -1
  14. package/lib/seam/components/SupportedDevices/RequirementIcon.d.ts +5 -0
  15. package/lib/seam/components/SupportedDevices/RequirementIcon.js +6 -0
  16. package/lib/seam/components/SupportedDevices/RequirementIcon.js.map +1 -0
  17. package/lib/seam/components/SupportedDevices/SupportedDevices.js +8 -3
  18. package/lib/seam/components/SupportedDevices/SupportedDevices.js.map +1 -1
  19. package/lib/seam/components/SupportedDevices/device-models.d.ts +2 -0
  20. package/lib/seam/components/SupportedDevices/device-models.js +25 -2
  21. package/lib/seam/components/SupportedDevices/device-models.js.map +1 -1
  22. package/lib/version.d.ts +1 -1
  23. package/lib/version.js +1 -1
  24. package/package.json +1 -1
  25. package/src/lib/seam/components/SupportedDevices/DeviceModelRow.tsx +82 -66
  26. package/src/lib/seam/components/SupportedDevices/ManufacturerSection.tsx +1 -25
  27. package/src/lib/seam/components/SupportedDevices/RequirementIcon.tsx +34 -0
  28. package/src/lib/seam/components/SupportedDevices/SupportedDevices.tsx +22 -2
  29. package/src/lib/seam/components/SupportedDevices/device-models.ts +33 -4
  30. package/src/lib/version.ts +1 -1
  31. package/src/styles/_supported-devices.scss +106 -21
package/README.md CHANGED
@@ -86,7 +86,7 @@ export function App() {
86
86
  <seam-device-table publishable-key="your_publishable_key"></seam-device-table>
87
87
  <script
88
88
  type="module"
89
- src="https://react.seam.co/v/5.2.0/dist/elements.js"
89
+ src="https://react.seam.co/v/5.2.2/dist/elements.js"
90
90
  ></script>
91
91
  </body>
92
92
  ```
@@ -173,7 +173,7 @@ Load the lightweight `ecosystem.js` bundle, which only contains these two elemen
173
173
  ></seam-supported-devices>
174
174
  <script
175
175
  type="module"
176
- src="https://react.seam.co/v/5.2.0/dist/ecosystem.js"
176
+ src="https://react.seam.co/v/5.2.2/dist/ecosystem.js"
177
177
  ></script>
178
178
  </body>
179
179
  ```
@@ -241,12 +241,22 @@ hosts such as Mintlify that cannot import an npm component. It composes
241
241
  `EcosystemProvider` and `SupportedDevices`, reads the public production Ecosystem
242
242
  catalog without an embed key, and never uses Storybook fixtures or Strapi.
243
243
 
244
+ The hosted page reads `/ecosystem/v1/device_models/summaries/list` and
245
+ `/ecosystem/v1/manufacturers/list` on its own origin. Vercel forwards these two
246
+ public routes to the production Ecosystem API, preserving query parameters.
247
+ This avoids browser local-network restrictions when a visitor's VPN or split DNS
248
+ resolves `ecosystem.seam.co` to a private address. Vite proxies the same paths
249
+ during local development. These routes do not expose admin or write endpoints.
250
+
244
251
  Query parameters are `manufacturer`, `provider` (Ecosystem slugs, not Seam Connect
245
252
  provider keys), `device_type`, `capability`, and `theme` (`light`, `dark`, `auto`).
246
253
  For example, use `?manufacturer=dormakaba&provider=oracode` to avoid listing other
247
254
  Dormakaba systems. Provider scoping applies to both models and capability badges.
248
- Unavailable, planned, and stale capabilities are not advertised as supported;
249
- beta capabilities are labelled, and conditional requirements can be expanded.
255
+ Unavailable, planned, and stale capabilities are not advertised as supported.
256
+ Feature icons distinguish support from features with requirements. Specific
257
+ requirements are grouped with the features they affect, without repeating
258
+ generic compatibility prose. Model numbers and integration providers are in
259
+ expandable model details and remain searchable.
250
260
 
251
261
  Embed the page in an iframe with `referrerpolicy="origin"`. Approved frame
252
262
  ancestors are Seam's website/docs, Mintlify previews, and localhost development.
@@ -254,6 +264,11 @@ Other routes retain their existing frame restrictions. The host should always
254
264
  provide a device catalog link outside the iframe, so it remains available if
255
265
  scripts or the iframe fail to load.
256
266
 
267
+ The document canvas follows the host theme as well as the component. Manufacturer
268
+ logos use a white tile in both themes: monochrome catalog assets may be black,
269
+ so they are not assumed to be dark-mode variants. The catalog footer appears
270
+ only on standalone visits; embedded docs provide their own fallback link.
271
+
257
272
  The iframe posts `{ type: 'seam-supported-devices:resize', height }` to the exact
258
273
  origin from `document.referrer` whenever its content height changes. The host
259
274
  must check both `event.origin === 'https://react.seam.co'` and
@@ -342,7 +357,7 @@ or place the following in the `<head>` tag:
342
357
  ```html
343
358
  <link
344
359
  rel="stylesheet"
345
- href="https://react.seam.co/v/5.2.0/dist/index.min.css"
360
+ href="https://react.seam.co/v/5.2.2/dist/index.min.css"
346
361
  />
347
362
  ```
348
363