@seamapi/react 1.26.0 → 1.27.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 +55 -4
- package/dist/elements.js +3056 -2956
- package/dist/elements.js.map +1 -1
- package/lib/icons/AccessCodeKey.d.ts +1 -1
- package/lib/icons/AccessCodeKey.js +3 -1
- package/lib/icons/AccessCodeKey.js.map +1 -1
- package/lib/icons/ArrowBack.d.ts +1 -1
- package/lib/icons/ArrowBack.js +5 -3
- package/lib/icons/ArrowBack.js.map +1 -1
- package/lib/icons/ArrowRestart.d.ts +1 -1
- package/lib/icons/ArrowRestart.js +5 -3
- package/lib/icons/ArrowRestart.js.map +1 -1
- package/lib/icons/BatteryLevelCritical.d.ts +1 -1
- package/lib/icons/BatteryLevelCritical.js +3 -1
- package/lib/icons/BatteryLevelCritical.js.map +1 -1
- package/lib/icons/BatteryLevelFull.d.ts +1 -1
- package/lib/icons/BatteryLevelFull.js +3 -1
- package/lib/icons/BatteryLevelFull.js.map +1 -1
- package/lib/icons/BatteryLevelHigh.d.ts +1 -1
- package/lib/icons/BatteryLevelHigh.js +3 -1
- package/lib/icons/BatteryLevelHigh.js.map +1 -1
- package/lib/icons/BatteryLevelLow.d.ts +1 -1
- package/lib/icons/BatteryLevelLow.js +3 -1
- package/lib/icons/BatteryLevelLow.js.map +1 -1
- package/lib/icons/BatteryLevelWired.d.ts +1 -1
- package/lib/icons/BatteryLevelWired.js +5 -3
- package/lib/icons/BatteryLevelWired.js.map +1 -1
- package/lib/icons/Check.d.ts +1 -1
- package/lib/icons/Check.js +3 -1
- package/lib/icons/Check.js.map +1 -1
- package/lib/icons/ChevronDown.d.ts +1 -1
- package/lib/icons/ChevronDown.js +3 -1
- package/lib/icons/ChevronDown.js.map +1 -1
- package/lib/icons/ChevronRight.d.ts +1 -1
- package/lib/icons/ChevronRight.js +5 -3
- package/lib/icons/ChevronRight.js.map +1 -1
- package/lib/icons/Close.d.ts +1 -1
- package/lib/icons/Close.js +5 -3
- package/lib/icons/Close.js.map +1 -1
- package/lib/icons/Copy.d.ts +1 -1
- package/lib/icons/Copy.js +5 -3
- package/lib/icons/Copy.js.map +1 -1
- package/lib/icons/DotsEllipsisMore.d.ts +1 -1
- package/lib/icons/DotsEllipsisMore.js +5 -3
- package/lib/icons/DotsEllipsisMore.js.map +1 -1
- package/lib/icons/ExclamationCircle.d.ts +1 -1
- package/lib/icons/ExclamationCircle.js +5 -3
- package/lib/icons/ExclamationCircle.js.map +1 -1
- package/lib/icons/ExclamationCircleOutline.d.ts +1 -1
- package/lib/icons/ExclamationCircleOutline.js +5 -3
- package/lib/icons/ExclamationCircleOutline.js.map +1 -1
- package/lib/icons/LockLocked.d.ts +1 -1
- package/lib/icons/LockLocked.js +5 -3
- package/lib/icons/LockLocked.js.map +1 -1
- package/lib/icons/LockUnlocked.d.ts +1 -1
- package/lib/icons/LockUnlocked.js +5 -3
- package/lib/icons/LockUnlocked.js.map +1 -1
- package/lib/icons/OnlineStatusAccountOffline.d.ts +1 -1
- package/lib/icons/OnlineStatusAccountOffline.js +5 -3
- package/lib/icons/OnlineStatusAccountOffline.js.map +1 -1
- package/lib/icons/OnlineStatusDeviceOffline.d.ts +1 -1
- package/lib/icons/OnlineStatusDeviceOffline.js +3 -1
- package/lib/icons/OnlineStatusDeviceOffline.js.map +1 -1
- package/lib/icons/OnlineStatusOnline.d.ts +1 -1
- package/lib/icons/OnlineStatusOnline.js +3 -1
- package/lib/icons/OnlineStatusOnline.js.map +1 -1
- package/lib/icons/Seam.d.ts +1 -1
- package/lib/icons/Seam.js +5 -3
- package/lib/icons/Seam.js.map +1 -1
- package/lib/icons/Search.d.ts +1 -1
- package/lib/icons/Search.js +5 -3
- package/lib/icons/Search.js.map +1 -1
- package/lib/icons/TriangleWarning.d.ts +1 -1
- package/lib/icons/TriangleWarning.js +5 -3
- package/lib/icons/TriangleWarning.js.map +1 -1
- package/lib/icons/TriangleWarningOutline.d.ts +1 -1
- package/lib/icons/TriangleWarningOutline.js +3 -1
- package/lib/icons/TriangleWarningOutline.js.map +1 -1
- package/lib/seam/access-codes/use-access-code.js +1 -1
- package/lib/seam/access-codes/use-access-code.js.map +1 -1
- package/lib/seam/access-codes/use-access-codes.js +1 -1
- package/lib/seam/access-codes/use-access-codes.js.map +1 -1
- package/lib/seam/components/DeviceTable/DeviceRow.js +11 -19
- package/lib/seam/components/DeviceTable/DeviceRow.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.d.ts +2 -1
- package/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.d.ts +2 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceBrandSection.d.ts +2 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceBrandSection.js +4 -7
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceBrandSection.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.d.ts +2 -1
- package/lib/seam/components/SupportedDeviceTable/{SupportedDeviceFilterResultRowProps.d.ts → SupportedDeviceFilterResultRow.d.ts} +3 -2
- package/lib/seam/components/SupportedDeviceTable/{SupportedDeviceFilterResultRowProps.js → SupportedDeviceFilterResultRow.js} +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterResultRow.js.map +1 -0
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.d.ts +5 -4
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.js +3 -3
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-device-provider.d.ts +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-device-provider.js +9 -11
- package/lib/seam/components/SupportedDeviceTable/use-device-provider.js.map +1 -1
- package/lib/seam/device-models/use-device-models.js +1 -2
- package/lib/seam/device-models/use-device-models.js.map +1 -1
- package/lib/seam/devices/use-device-providers.d.ts +5 -5
- package/lib/seam/devices/use-device-providers.js +7 -8
- package/lib/seam/devices/use-device-providers.js.map +1 -1
- package/lib/seam/devices/use-device.js +1 -1
- package/lib/seam/devices/use-device.js.map +1 -1
- package/lib/seam/devices/use-devices.js +1 -1
- package/lib/seam/devices/use-devices.js.map +1 -1
- package/lib/seam/index.d.ts +2 -0
- package/lib/seam/index.js +2 -0
- package/lib/seam/index.js.map +1 -1
- package/lib/ui/device/OnlineStatus.d.ts +1 -0
- package/lib/ui/device/OnlineStatus.js +6 -9
- package/lib/ui/device/OnlineStatus.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -6
- package/src/lib/element.tsx +2 -2
- package/src/lib/icons/AccessCodeKey.tsx +22 -18
- package/src/lib/icons/ArrowBack.tsx +32 -26
- package/src/lib/icons/ArrowRestart.tsx +32 -28
- package/src/lib/icons/BatteryLevelCritical.tsx +31 -25
- package/src/lib/icons/BatteryLevelFull.tsx +31 -18
- package/src/lib/icons/BatteryLevelHigh.tsx +31 -25
- package/src/lib/icons/BatteryLevelLow.tsx +31 -25
- package/src/lib/icons/BatteryLevelWired.tsx +35 -29
- package/src/lib/icons/Check.tsx +20 -14
- package/src/lib/icons/ChevronDown.tsx +22 -18
- package/src/lib/icons/ChevronRight.tsx +32 -28
- package/src/lib/icons/Close.tsx +32 -26
- package/src/lib/icons/Copy.tsx +32 -26
- package/src/lib/icons/DotsEllipsisMore.tsx +33 -27
- package/src/lib/icons/ExclamationCircle.tsx +33 -27
- package/src/lib/icons/ExclamationCircleOutline.tsx +33 -27
- package/src/lib/icons/LockLocked.tsx +34 -28
- package/src/lib/icons/LockUnlocked.tsx +34 -30
- package/src/lib/icons/OnlineStatusAccountOffline.tsx +33 -27
- package/src/lib/icons/OnlineStatusDeviceOffline.tsx +27 -21
- package/src/lib/icons/OnlineStatusOnline.tsx +25 -19
- package/src/lib/icons/Seam.tsx +24 -18
- package/src/lib/icons/Search.tsx +32 -26
- package/src/lib/icons/TriangleWarning.tsx +33 -27
- package/src/lib/icons/TriangleWarningOutline.tsx +22 -16
- package/src/lib/seam/access-codes/use-access-code.ts +1 -1
- package/src/lib/seam/access-codes/use-access-codes.ts +1 -1
- package/src/lib/seam/components/DeviceTable/DeviceRow.tsx +28 -44
- package/src/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.tsx +3 -1
- package/src/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.tsx +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceBrandSection.tsx +9 -12
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.tsx +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.tsx +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/{SupportedDeviceFilterResultRowProps.tsx → SupportedDeviceFilterResultRow.tsx} +2 -2
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.tsx +10 -4
- package/src/lib/seam/components/SupportedDeviceTable/use-device-provider.ts +9 -15
- package/src/lib/seam/device-models/use-device-models.ts +1 -2
- package/src/lib/seam/devices/use-device-providers.ts +22 -14
- package/src/lib/seam/devices/use-device.ts +1 -1
- package/src/lib/seam/devices/use-devices.ts +1 -1
- package/src/lib/seam/index.ts +2 -0
- package/src/lib/ui/device/OnlineStatus.tsx +13 -14
- package/src/lib/version.ts +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterResultRowProps.js.map +0 -1
package/lib/icons/Seam.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export function SeamIcon(props) {
|
|
3
|
+
return (_jsxs("svg", { xmlns: 'http://www.w3.org/2000/svg', width: 167, height: 200, fill: 'none', ...props, children: [_jsx("style", { children: '@media (prefers-color-scheme:dark){path{fill:#fff}}' }), _jsx("path", { fill: '#23292F', d: 'M166.546 58.917a9.058 9.058 0 0 0-.024-.433l-.012-.115c-.01-.105-.02-.21-.034-.315l-.02-.14c-.014-.095-.028-.191-.045-.287-.011-.059-.024-.117-.036-.176-.016-.083-.032-.165-.051-.248-.017-.075-.038-.15-.057-.225-.016-.065-.032-.13-.05-.195-.027-.095-.057-.19-.087-.284-.014-.044-.027-.089-.042-.133a8.749 8.749 0 0 0-.123-.343l-.027-.072a9.553 9.553 0 0 0-.163-.39l-.01-.023a9.312 9.312 0 0 0-.196-.409l-.002-.003a8.454 8.454 0 0 0-.204-.376l-.017-.032-.002-.004a10.31 10.31 0 0 0-.164-.267l-.086-.14-.083-.122a11.258 11.258 0 0 0-.188-.272l-.002-.002c-.633-.87-15.581-21.363-21.614-28.047-.35-.387-.709-.79-1.082-1.207-6.111-6.845-16.339-18.302-36.453-23.185-9.171-2.227-18.717-1.93-29.184.907-8.632 2.34-18.121 6.458-29.86 12.958l-1.285.711c-7.88 4.362-14.679 8.126-20.442 11.799a9.136 9.136 0 0 0-.558.357C13.75 35.026 6.74 41.59 3.043 51.152c-9.343 24.162 5.616 44.014 7.74 46.655l16.961 22.733L4.69 133.229l-.014.009a8.077 8.077 0 0 0-.303.176l-.113.068c-.07.044-.14.09-.209.136l-.197.133a7.725 7.725 0 0 0-.116.085 7.514 7.514 0 0 0-.272.203l-.015.012c-.014.01-.027.022-.04.033a8.81 8.81 0 0 0-.306.254l-.04.036c-.1.088-.198.178-.294.27l-.052.052a9.132 9.132 0 0 0-.547.585l-.105.127a7.69 7.69 0 0 0-.165.206c-.044.056-.086.114-.128.171-.042.057-.084.113-.124.171a9.355 9.355 0 0 0-.605.996l-.053.102a8.27 8.27 0 0 0-.312.688 5.784 5.784 0 0 0-.15.397l-.044.125c-.03.091-.059.182-.086.274l-.045.152a9.516 9.516 0 0 0-.284 1.474 9.09 9.09 0 0 0-.027.287l-.009.13a9.219 9.219 0 0 0-.014.31l-.002.115a8.952 8.952 0 0 0 0 .323l.004.108c.004.108.009.216.016.325l.01.114a8.786 8.786 0 0 0 .09.735l.03.165a8.58 8.58 0 0 0 .221.92c.015.052.03.105.047.156a9.2 9.2 0 0 0 .103.304l.038.106c.042.116.088.231.136.345l.027.065c.053.123.109.245.168.367l.02.044c.06.121.121.239.186.358l.022.043.007.012c.096.173.198.344.306.512l.061.09a8.905 8.905 0 0 0 .384.538l.064.086 22.408 28.363.034.043c5.595 6.995 11.768 12.622 18.347 16.726 5.879 3.667 12.089 6.132 18.457 7.328 2.927.549 5.895.818 8.819.818 7.15 0 14.04-1.608 19.443-4.657.753-.425 1.49-.878 2.213-1.352 7.657-4.217 25.026-13.847 32.28-18.372a428.33 428.33 0 0 1 3.471-2.137c10.408-6.368 22.205-13.585 28.1-25.774 2.687-5.557 5.766-13.224 5.717-23.269-.054-11.323-4.165-23.472-12.219-36.113l-6.361-10.14 19.363-11.147.004-.003c.09-.051.178-.107.266-.162.047-.03.096-.057.142-.087l.119-.082c.093-.062.185-.124.275-.19h.002l.015-.012c.245-.18.48-.37.703-.569l.004-.004c.11-.099.218-.2.322-.303l.041-.042c.09-.09.179-.182.265-.276.028-.03.054-.061.081-.092.07-.078.14-.157.206-.238.04-.047.077-.095.115-.143.052-.066.104-.13.154-.197.048-.063.093-.128.138-.192.038-.053.077-.106.114-.16.051-.076.1-.154.15-.232.028-.044.057-.087.084-.131.052-.086.102-.174.151-.261l.065-.114c.05-.092.098-.185.145-.28l.054-.106c.045-.094.088-.19.131-.286l.049-.11c.04-.093.077-.188.113-.282l.049-.124c.033-.09.063-.18.093-.27.016-.048.034-.096.049-.145.026-.082.05-.166.074-.249l.049-.173c.019-.074.036-.149.054-.223.016-.069.033-.137.048-.206l.037-.194c.015-.08.031-.159.044-.239l.023-.165c.013-.09.026-.18.037-.27l.013-.14c.01-.099.019-.198.025-.298l.006-.118c.005-.106.01-.212.011-.319v-.105c0-.11 0-.22-.004-.33Zm-141.4 27.955-.019-.024c-.048-.064-.1-.128-.15-.191-.049-.061-.096-.123-.146-.182l-.02-.025c-.027-.032-2.712-3.344-4.69-8.548-2.653-6.98-2.733-13.792-.237-20.248 1.971-5.097 6.5-9.28 13.855-14.052 11.662-5 18.412-1.978 20.654-.973 4.072 1.823 7.612 4.853 10.697 8.1L42.308 63.68l-.065.037-.038.021-.064.039a9.01 9.01 0 0 0-.3.18c-.06.038-.118.078-.177.117-.062.042-.125.083-.187.126a9.197 9.197 0 0 0-.272.2l-.068.05-.015.013c-.111.086-.22.175-.326.265l-.023.02a9.165 9.165 0 0 0-.33.298l-.008.008a8.67 8.67 0 0 0-.302.302l-.022.022a8.88 8.88 0 0 0-.255.282c-.017.02-.035.038-.051.058a8.66 8.66 0 0 0-.195.239c-.031.038-.063.076-.093.115-.044.057-.086.116-.128.174l-.14.19-.06.092a8.999 8.999 0 0 0-1.329 3.078c-.014.062-.024.124-.037.186-.015.078-.032.154-.046.231a9.008 9.008 0 0 0-.018 3.014v.006c.018.106.04.212.06.318.009.04.016.082.024.123.016.072.034.143.052.214.018.076.035.15.055.226l.037.127c.03.104.06.207.093.31l.02.06c.042.124.086.248.133.371l.006.015c.106.277.227.552.363.821l.008.015c.065.129.133.257.205.383l.008.014.02.032a9.127 9.127 0 0 0 .587.893l.103.14.003.003 42.298 54.501-16.077 9.695-17.421-23.351-.01-.014-23.18-31.068Zm66.42 78.652c-2.057 6.998-6.44 11.052-9.317 13.059-1.79.985-2.887 1.586-2.94 1.615a8.73 8.73 0 0 0-.355.206c-3.258 1.299-8.439 2.167-14.417 1.045-4.15-.779-8.265-2.428-12.23-4.901-4.837-3.017-9.476-7.279-13.789-12.666l-15.787-19.984 15.907-8.755 17.537 23.505c.031.041.065.08.097.122a8.76 8.76 0 0 0 .356.432c.07.079.138.158.21.234.058.062.118.121.178.181.071.072.142.145.216.214.069.065.14.126.21.189.068.059.135.12.204.178.103.086.21.167.316.247.039.03.076.062.116.091.151.11.305.215.461.316l.072.043c.134.084.269.165.406.241l.126.067c.121.064.242.127.366.186.05.025.102.047.154.07.115.053.231.104.349.152l.175.068a10.096 10.096 0 0 0 .53.184 9.174 9.174 0 0 0 .851.22c.076.016.152.032.229.046.1.018.2.033.3.048.082.012.163.025.245.035.095.011.191.019.287.027.087.008.172.017.26.022.09.006.182.006.273.009.087.003.172.008.259.008.23 0 .46-.01.691-.027l.03-.003c.102-.008.205-.018.307-.03l.05-.006c.097-.012.196-.025.294-.04l.048-.007c.106-.017.212-.036.317-.057l.02-.003c.113-.023.226-.048.339-.075l.046-.011c.09-.022.18-.046.269-.07l.136-.04.174-.053a9.482 9.482 0 0 0 .49-.171l.108-.043.207-.084.057-.025c.25-.109.496-.229.738-.362l.072-.039.18-.104.083-.049 22.758-13.724c2.08 6.586 2.343 12.784.731 18.269Zm51.626-40.998c.031 6.289-1.865 11.085-3.919 15.331-3.587 7.418-12.577 12.918-21.271 18.237-1.188.727-2.417 1.479-3.605 2.22a194.55 194.55 0 0 1-3.969 2.393c.881-8.667-.466-20.155-7.942-33.738a8.2 8.2 0 0 0-.257-.441c-.039-.062-.081-.124-.122-.186a9.021 9.021 0 0 0-.436-.613L60.186 74.275l16.253-9.24L98.643 94.41l.026.032c.066.087.135.17.204.254.052.063.103.127.156.188.071.082.145.162.22.241a8.8 8.8 0 0 0 .798.76c.08.067.161.132.243.196.062.048.124.097.187.144.101.074.203.145.306.215.049.033.096.067.145.098.145.094.292.184.442.269l.029.017c.332.188.675.353 1.025.496l.103.04c.136.054.274.105.413.152.053.018.106.034.16.051a9.294 9.294 0 0 0 1.112.28c.105.019.211.035.316.05.079.013.159.025.238.035.1.012.202.02.303.029.083.007.166.016.25.021.104.006.208.008.312.01.075.002.149.008.224.008.028 0 .055-.003.082-.003a9.14 9.14 0 0 0 .395-.013l.168-.01c.152-.01.303-.025.455-.043l.139-.02c.137-.019.274-.04.411-.066l.096-.017a8.821 8.821 0 0 0 .592-.14c.173-.046.345-.097.516-.154h.001c.184-.061.366-.13.547-.204l.014-.005c.18-.074.358-.154.534-.24l.024-.012c.188-.093.373-.191.556-.298l16.626-9.571 6.735 10.735.035.056c6.207 9.735 9.373 18.663 9.411 26.536Zm-34.946-47.347-25.17-33.298-.01-.011a9.363 9.363 0 0 0-.277-.348l-.006-.008c-1.991-2.394-5.047-5.934-8.694-9.19-3.503-3.129-7.028-5.565-10.727-7.41 16.343-8.121 27.724-10.415 38.048-7.91 14.647 3.557 21.927 11.71 27.243 17.664.394.443.776.87 1.146 1.28 3.026 3.352 9.371 11.681 14.458 18.5l-36.011 20.731Z', style: {
|
|
4
|
+
fill: '#23292f',
|
|
5
|
+
} })] }));
|
|
6
|
+
}
|
|
5
7
|
//# sourceMappingURL=Seam.js.map
|
package/lib/icons/Seam.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Seam.js","sourceRoot":"","sources":["../../src/lib/icons/Seam.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Seam.js","sourceRoot":"","sources":["../../src/lib/icons/Seam.tsx"],"names":[],"mappings":";AAKA,MAAM,UAAU,QAAQ,CAAC,KAA8B;IACrD,OAAO,CACL,eACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,MAAM,KACP,KAAK,aAET,0BAAQ,qDAAqD,GAAS,EACtE,eACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,g0NAAg0N,EACl0N,KAAK,EAAE;oBACL,IAAI,EAAE,SAAS;iBAChB,GACD,IACE,CACP,CAAA;AACH,CAAC"}
|
package/lib/icons/Search.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function SearchIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
package/lib/icons/Search.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export function SearchIcon(props) {
|
|
3
|
+
return (_jsxs("svg", { xmlns: 'http://www.w3.org/2000/svg', width: 20, height: 20, fill: 'none', ...props, children: [_jsx("mask", { id: 'search_svg__a', width: 20, height: 20, x: 0, y: 0, maskUnits: 'userSpaceOnUse', style: {
|
|
4
|
+
maskType: 'alpha',
|
|
5
|
+
}, children: _jsx("path", { fill: '#D9D9D9', d: 'M0 0h20v20H0z' }) }), _jsx("g", { mask: 'url(#search_svg__a)', children: _jsx("path", { fill: '#6E7179', d: 'm16.333 17.5-5.25-5.25a5.08 5.08 0 0 1-3.167 1.083c-1.513 0-2.794-.524-3.843-1.572C3.024 10.71 2.5 9.43 2.5 7.917c0-1.514.524-2.796 1.573-3.845C5.122 3.024 6.403 2.5 7.917 2.5c1.514 0 2.795.524 3.844 1.572 1.048 1.05 1.572 2.33 1.572 3.845a5.08 5.08 0 0 1-1.083 3.166l5.25 5.25-1.167 1.167Zm-8.416-5.833c1.041 0 1.927-.365 2.656-1.094.73-.73 1.094-1.615 1.094-2.656 0-1.042-.365-1.928-1.094-2.657-.73-.729-1.615-1.093-2.656-1.093-1.042 0-1.928.364-2.657 1.093-.729.73-1.093 1.615-1.093 2.657 0 1.041.364 1.927 1.093 2.656.73.73 1.615 1.094 2.657 1.094Z' }) })] }));
|
|
6
|
+
}
|
|
5
7
|
//# sourceMappingURL=Search.js.map
|
package/lib/icons/Search.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../src/lib/icons/Search.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../src/lib/icons/Search.tsx"],"names":[],"mappings":";AAKA,MAAM,UAAU,UAAU,CAAC,KAA8B;IACvD,OAAO,CACL,eACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,MAAM,KACP,KAAK,aAET,eACE,EAAE,EAAC,eAAe,EAClB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,EACJ,SAAS,EAAC,gBAAgB,EAC1B,KAAK,EAAE;oBACL,QAAQ,EAAE,OAAO;iBAClB,YAED,eAAM,IAAI,EAAC,SAAS,EAAC,CAAC,EAAC,eAAe,GAAG,GACpC,EACP,YAAG,IAAI,EAAC,qBAAqB,YAC3B,eACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,0iBAA0iB,GAC5iB,GACA,IACA,CACP,CAAA;AACH,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function TriangleWarningIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export function TriangleWarningIcon(props) {
|
|
3
|
+
return (_jsxs("svg", { xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'none', ...props, children: [_jsx("mask", { id: 'triangle-warning_svg__a', width: 24, height: 24, x: 0, y: 0, maskUnits: 'userSpaceOnUse', style: {
|
|
4
|
+
maskType: 'alpha',
|
|
5
|
+
}, children: _jsx("path", { fill: '#D9D9D9', d: 'M0 0h24v24H0z' }) }), _jsx("g", { mask: 'url(#triangle-warning_svg__a)', children: _jsx("path", { fill: '#F3980F', d: 'M1 21 12 2l11 19H1Zm11-3a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 17a.967.967 0 0 0-.287-.712A.968.968 0 0 0 12 16a.965.965 0 0 0-.712.288A.965.965 0 0 0 11 17c0 .283.096.52.288.712A.965.965 0 0 0 12 18Zm-1-3h2v-5h-2v5Z' }) })] }));
|
|
6
|
+
}
|
|
5
7
|
//# sourceMappingURL=TriangleWarning.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriangleWarning.js","sourceRoot":"","sources":["../../src/lib/icons/TriangleWarning.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TriangleWarning.js","sourceRoot":"","sources":["../../src/lib/icons/TriangleWarning.tsx"],"names":[],"mappings":";AAKA,MAAM,UAAU,mBAAmB,CACjC,KAA8B;IAE9B,OAAO,CACL,eACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,MAAM,KACP,KAAK,aAET,eACE,EAAE,EAAC,yBAAyB,EAC5B,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,EACJ,SAAS,EAAC,gBAAgB,EAC1B,KAAK,EAAE;oBACL,QAAQ,EAAE,OAAO;iBAClB,YAED,eAAM,IAAI,EAAC,SAAS,EAAC,CAAC,EAAC,eAAe,GAAG,GACpC,EACP,YAAG,IAAI,EAAC,+BAA+B,YACrC,eACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,+NAA+N,GACjO,GACA,IACA,CACP,CAAA;AACH,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function TriangleWarningOutlineIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export
|
|
2
|
+
export function TriangleWarningOutlineIcon(props) {
|
|
3
|
+
return (_jsxs("svg", { xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'none', ...props, children: [_jsx("path", { fill: '#FF9800', d: 'm12 6.49 7.53 13.01H4.47L12 6.49Zm0-3.99-11 19h22l-11-19Z' }), _jsx("path", { fill: '#FF9800', d: 'M13 16.5h-2v2h2v-2ZM13 10.5h-2v5h2v-5Z' })] }));
|
|
4
|
+
}
|
|
3
5
|
//# sourceMappingURL=TriangleWarningOutline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriangleWarningOutline.js","sourceRoot":"","sources":["../../src/lib/icons/TriangleWarningOutline.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TriangleWarningOutline.js","sourceRoot":"","sources":["../../src/lib/icons/TriangleWarningOutline.tsx"],"names":[],"mappings":";AAKA,MAAM,UAAU,0BAA0B,CACxC,KAA8B;IAE9B,OAAO,CACL,eACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,MAAM,KACP,KAAK,aAET,eACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,2DAA2D,GAC7D,EACF,eAAM,IAAI,EAAC,SAAS,EAAC,CAAC,EAAC,wCAAwC,GAAG,IAC9D,CACP,CAAA;AACH,CAAC"}
|
|
@@ -9,7 +9,7 @@ export function useAccessCode(params) {
|
|
|
9
9
|
queryFn: async () => {
|
|
10
10
|
if (client == null)
|
|
11
11
|
return null;
|
|
12
|
-
return await client
|
|
12
|
+
return await client.accessCodes.get(normalizedParams);
|
|
13
13
|
},
|
|
14
14
|
});
|
|
15
15
|
return { ...rest, accessCode: data };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-access-code.js","sourceRoot":"","sources":["../../../src/lib/seam/access-codes/use-access-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AA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I,CAAA;YAC/B,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;QACvD,CAAC;KACF,CAAC,CAAA;IACF,OAAO,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAA;AACtC,CAAC"}
|
|
@@ -9,7 +9,7 @@ export function useAccessCodes(params) {
|
|
|
9
9
|
queryFn: async () => {
|
|
10
10
|
if (client == null)
|
|
11
11
|
return [];
|
|
12
|
-
return await client
|
|
12
|
+
return await client.accessCodes.list(normalizedParams);
|
|
13
13
|
},
|
|
14
14
|
});
|
|
15
15
|
return { ...rest, accessCodes: data };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-access-codes.js","sourceRoot":"","sources":["../../../src/lib/seam/access-codes/use-access-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQhD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAM3D,MAAM,UAAU,cAAc,CAC5B,MAA4B;IAE5B,MAAM,gBAAgB,GACpB,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,CAAA;IAE7D,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAClC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAGhC;QACA,OAAO,EAAE,MAAM,IAAI,IAAI;QACvB,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,gBAAgB,CAAC;QACpD,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,MAAM,IAAI,IAAI;gBAAE,OAAO,EAAE,CAAA;YAC7B,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"use-access-codes.js","sourceRoot":"","sources":["../../../src/lib/seam/access-codes/use-access-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQhD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAM3D,MAAM,UAAU,cAAc,CAC5B,MAA4B;IAE5B,MAAM,gBAAgB,GACpB,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,CAAA;IAE7D,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAClC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAGhC;QACA,OAAO,EAAE,MAAM,IAAI,IAAI;QACvB,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,gBAAgB,CAAC;QACpD,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,MAAM,IAAI,IAAI;gBAAE,OAAO,EAAE,CAAA;YAC7B,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;QACxD,CAAC;KACF,CAAC,CAAA;IAEF,OAAO,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAA;AACvC,CAAC"}
|
|
@@ -3,28 +3,20 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { BatteryStatus } from '../../../../lib/ui/device/BatteryStatus.js';
|
|
4
4
|
import { DeviceImage } from '../../../../lib/ui/device/DeviceImage.js';
|
|
5
5
|
import { LockStatus } from '../../../../lib/ui/device/LockStatus.js';
|
|
6
|
-
import { OnlineStatus } from '../../../../lib/ui/device/OnlineStatus.js';
|
|
6
|
+
import { isDeviceAccountOffline, OnlineStatus, } from '../../../../lib/ui/device/OnlineStatus.js';
|
|
7
7
|
import { TableCell } from '../../../../lib/ui/Table/TableCell.js';
|
|
8
8
|
import { TableRow } from '../../../../lib/ui/Table/TableRow.js';
|
|
9
9
|
import { Title } from '../../../../lib/ui/typography/Title.js';
|
|
10
10
|
export function DeviceRow({ device, onClick, }) {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return (_jsxs(TableRow, { onClick: onClick, children: [_jsx(TableCell, { className: classNames('seam-image-cell',
|
|
11
|
+
const isDeviceOffline = !device.properties.online;
|
|
12
|
+
const isDisconnected = isDeviceAccountOffline(device) || isDeviceOffline;
|
|
13
|
+
const isConnected = !isDisconnected;
|
|
14
|
+
return (_jsxs(TableRow, { onClick: onClick, children: [_jsx(TableCell, { className: classNames('seam-image-cell', {
|
|
15
|
+
'seam-offline-fade': isDisconnected,
|
|
16
|
+
}), children: _jsx(DeviceImage, { device: device }) }), _jsxs(TableCell, { className: 'seam-body-cell', children: [_jsx(Title, { className: classNames('seam-truncated-text', {
|
|
17
|
+
'seam-offline-fade': isDisconnected,
|
|
18
|
+
}), children: device.properties.name }), _jsxs("div", { className: 'seam-bottom', children: [_jsx("span", { className: classNames('seam-device-model', {
|
|
19
|
+
'seam-offline-fade': isDisconnected,
|
|
20
|
+
}), children: device.properties.model.display_name }), _jsxs("div", { className: 'seam-device-statuses', children: [_jsx(OnlineStatus, { device: device }), isConnected && _jsx(BatteryStatus, { device: device }), isConnected && _jsx(LockStatus, { device: device })] })] })] })] }));
|
|
15
21
|
}
|
|
16
|
-
function DeviceStatuses({ device }) {
|
|
17
|
-
if (isAccountOffline(device) || isDeviceOffline(device)) {
|
|
18
|
-
return (_jsx("div", { className: 'seam-device-statuses', children: _jsx(OnlineStatus, { device: device }) }));
|
|
19
|
-
}
|
|
20
|
-
return (_jsxs("div", { className: 'seam-device-statuses', children: [_jsx(OnlineStatus, { device: device }), _jsx(BatteryStatus, { device: device }), _jsx(LockStatus, { device: device })] }));
|
|
21
|
-
}
|
|
22
|
-
const isAccountOffline = (device) => {
|
|
23
|
-
return (device.errors.filter((error) => error.error_code === 'account_disconnected')
|
|
24
|
-
.length > 0);
|
|
25
|
-
};
|
|
26
|
-
const isDeviceOffline = (device) => {
|
|
27
|
-
return (device.errors.filter((error) => error.error_code === 'device_disconnected')
|
|
28
|
-
.length > 0);
|
|
29
|
-
};
|
|
30
22
|
//# sourceMappingURL=DeviceRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceRow.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/DeviceTable/DeviceRow.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AAMnC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"DeviceRow.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/DeviceTable/DeviceRow.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AAMnC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EACL,sBAAsB,EACtB,YAAY,GACb,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAalD,MAAM,UAAU,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,GACQ;IACf,MAAM,eAAe,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAA;IACjD,MAAM,cAAc,GAAG,sBAAsB,CAAC,MAAM,CAAC,IAAI,eAAe,CAAA;IACxE,MAAM,WAAW,GAAG,CAAC,cAAc,CAAA;IAEnC,OAAO,CACL,MAAC,QAAQ,IAAC,OAAO,EAAE,OAAO,aACxB,KAAC,SAAS,IACR,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE;oBACvC,mBAAmB,EAAE,cAAc;iBACpC,CAAC,YAEF,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,GAAI,GACrB,EACZ,MAAC,SAAS,IAAC,SAAS,EAAC,gBAAgB,aACnC,KAAC,KAAK,IACJ,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE;4BAC3C,mBAAmB,EAAE,cAAc;yBACpC,CAAC,YAED,MAAM,CAAC,UAAU,CAAC,IAAI,GACjB,EACR,eAAK,SAAS,EAAC,aAAa,aAC1B,eACE,SAAS,EAAE,UAAU,CAAC,mBAAmB,EAAE;oCACzC,mBAAmB,EAAE,cAAc;iCACpC,CAAC,YAED,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,GAChC,EACP,eAAK,SAAS,EAAC,sBAAsB,aACnC,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,GAAI,EAC/B,WAAW,IAAI,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,GAAI,EAChD,WAAW,IAAI,KAAC,UAAU,IAAC,MAAM,EAAE,MAAM,GAAI,IAC1C,IACF,IACI,IACH,CACZ,CAAA;AACH,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface HiddenDevicesOverlayProps {
|
|
2
3
|
visible: boolean;
|
|
3
4
|
}
|
|
4
|
-
export declare function HiddenDevicesOverlay({ visible }: HiddenDevicesOverlayProps):
|
|
5
|
+
export declare function HiddenDevicesOverlay({ visible, }: HiddenDevicesOverlayProps): JSX.Element | null;
|
|
5
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HiddenDevicesOverlay.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"HiddenDevicesOverlay.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/HiddenDevicesOverlay.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,oBAAoB,CAAC,EACnC,OAAO,GACmB;IAC1B,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAK,SAAS,EAAC,wBAAwB,GAAG,CAAA;AACnD,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface ShowAllDevicesButtonProps {
|
|
2
3
|
onClick: () => void;
|
|
3
4
|
visible: boolean;
|
|
4
5
|
expanded: boolean;
|
|
5
6
|
totalDeviceCount: number;
|
|
6
7
|
}
|
|
7
|
-
export declare function ShowAllDevicesButton({ onClick, visible, expanded, totalDeviceCount, }: ShowAllDevicesButtonProps):
|
|
8
|
+
export declare function ShowAllDevicesButton({ onClick, visible, expanded, totalDeviceCount, }: ShowAllDevicesButtonProps): JSX.Element | null;
|
|
8
9
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DeviceModel } from 'seamapi';
|
|
3
|
-
|
|
3
|
+
interface SupportedDeviceBrandSectionProps {
|
|
4
4
|
brand: string;
|
|
5
5
|
deviceModels: DeviceModel[];
|
|
6
6
|
}
|
|
7
7
|
export declare function SupportedDeviceBrandSection({ brand, deviceModels, }: SupportedDeviceBrandSectionProps): JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -16,12 +16,9 @@ export function SupportedDeviceBrandSection({ brand, deviceModels, }) {
|
|
|
16
16
|
const deviceProvider = useDeviceProvider(brand);
|
|
17
17
|
const [expanded, toggleExpand] = useToggle();
|
|
18
18
|
const canExpand = deviceModels.length > maxDevicesBeforeCollapsing;
|
|
19
|
-
const visibleDevices =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
return deviceModels.filter((_deviceModel, index) => index < maxDevicesBeforeCollapsing);
|
|
24
|
-
};
|
|
19
|
+
const visibleDevices = !canExpand || expanded
|
|
20
|
+
? deviceModels
|
|
21
|
+
: deviceModels.filter((_deviceModel, index) => index < maxDevicesBeforeCollapsing);
|
|
25
22
|
const handleHeaderClick = () => {
|
|
26
23
|
if (!canExpand) {
|
|
27
24
|
return;
|
|
@@ -31,7 +28,7 @@ export function SupportedDeviceBrandSection({ brand, deviceModels, }) {
|
|
|
31
28
|
return (_jsxs("div", { className: classNames('seam-brand-section', {
|
|
32
29
|
'can-expand': canExpand,
|
|
33
30
|
expanded,
|
|
34
|
-
}), children: [_jsxs("div", { className: 'seam-header', onClick: handleHeaderClick, children: [_jsx("img", { src: deviceProvider.image_url, alt: brand, className: 'seam-brand-image' }), _jsxs("h5", { className: 'seam-brand-name', children: [deviceProvider.display_name, " ", t.devices] }), canExpand && _jsx(ChevronRightIcon, { className: 'chevron' })] }), _jsx("div", { className: 'seam-supported-device-table-content', children: visibleDevices
|
|
31
|
+
}), children: [_jsxs("div", { className: 'seam-header', onClick: handleHeaderClick, children: [_jsx("img", { src: deviceProvider.image_url, alt: brand, className: 'seam-brand-image' }), _jsxs("h5", { className: 'seam-brand-name', children: [deviceProvider.display_name, " ", t.devices] }), canExpand && _jsx(ChevronRightIcon, { className: 'chevron' })] }), _jsx("div", { className: 'seam-supported-device-table-content', children: visibleDevices.map((deviceModel, index) => (_jsx(SupportedDeviceRow, { deviceModel: deviceModel }, [
|
|
35
32
|
deviceModel.main_category,
|
|
36
33
|
deviceModel.brand,
|
|
37
34
|
deviceModel.model_name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportedDeviceBrandSection.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/SupportedDeviceBrandSection.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kEAAkE,CAAA;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,kEAAkE,CAAA;AACvG,OAAO,EAAE,kBAAkB,EAAE,MAAM,gEAAgE,CAAA;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAA;AACnG,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;;;GAIG;AACH,MAAM,0BAA0B,GAAG,CAAC,CAAA;AAOpC,MAAM,UAAU,2BAA2B,CAAC,EAC1C,KAAK,EACL,YAAY,GACqB;IACjC,MAAM,cAAc,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAA;IAE/C,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,SAAS,EAAE,CAAA;IAE5C,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,GAAG,0BAA0B,CAAA;IAElE,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"SupportedDeviceBrandSection.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/SupportedDeviceBrandSection.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kEAAkE,CAAA;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,kEAAkE,CAAA;AACvG,OAAO,EAAE,kBAAkB,EAAE,MAAM,gEAAgE,CAAA;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAA;AACnG,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;;;GAIG;AACH,MAAM,0BAA0B,GAAG,CAAC,CAAA;AAOpC,MAAM,UAAU,2BAA2B,CAAC,EAC1C,KAAK,EACL,YAAY,GACqB;IACjC,MAAM,cAAc,GAAG,iBAAiB,CAAC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oB,IACnB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,YAAY,CAAC,MAAM,GACrC,EACF,KAAC,oBAAoB,IAAC,OAAO,EAAE,SAAS,IAAI,CAAC,QAAQ,GAAI,IACrD,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,GAAG;IACR,OAAO,EAAE,SAAS;CACnB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { SupportedDeviceBrandSection } from '../../../../lib/seam/components/SupportedDeviceTable/SupportedDeviceBrandSection.js';
|
|
3
|
-
import { SupportedDeviceFilterResultRow } from '../../../../lib/seam/components/SupportedDeviceTable/
|
|
3
|
+
import { SupportedDeviceFilterResultRow } from '../../../../lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterResultRow.js';
|
|
4
4
|
import { useFilteredDeviceModels, } from '../../../../lib/seam/components/SupportedDeviceTable/use-filtered-device-models.js';
|
|
5
5
|
import { Button } from '../../../../lib/ui/Button.js';
|
|
6
6
|
export function SupportedDeviceContent({ resetFilterValue, filterValue, filters, brands, }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportedDeviceContent.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yEAAyE,CAAA;AACrH,OAAO,EAAE,8BAA8B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SupportedDeviceContent.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yEAAyE,CAAA;AACrH,OAAO,EAAE,8BAA8B,EAAE,MAAM,4EAA4E,CAA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C,EAAE,CAAA;IAEhD,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE;QAChC,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;QACvB,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;QAChC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,CAAA;KACjC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,CAAC,GAAG;IACR,OAAO,EAAE,0BAA0B;IACnC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,4CAA4C;IACnD,SAAS,EAAE,yBAAyB;IACpC,OAAO,EAAE,uCAAuC;IAChD,KAAK,EAAE,oBAAoB;CAC5B,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import type { DeviceModelFilters } from '../../../../lib/seam/components/SupportedDeviceTable/use-filtered-device-models.js';
|
|
3
|
-
|
|
3
|
+
interface SupportedDeviceFilterAreaProps {
|
|
4
4
|
filterValue: string;
|
|
5
5
|
setFilterValue: (filter: string) => void;
|
|
6
6
|
filters: DeviceModelFilters;
|
|
@@ -8,3 +8,4 @@ export interface SupportedDeviceFilterAreaProps {
|
|
|
8
8
|
brands: string[];
|
|
9
9
|
}
|
|
10
10
|
export declare function SupportedDeviceFilterArea({ filterValue, setFilterValue, filters, setFilters, brands, }: SupportedDeviceFilterAreaProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DeviceModel } from 'seamapi';
|
|
3
|
-
|
|
3
|
+
interface SupportedDeviceFilterResultRowProps {
|
|
4
4
|
deviceModel: DeviceModel;
|
|
5
5
|
}
|
|
6
6
|
export declare function SupportedDeviceFilterResultRow({ deviceModel, }: SupportedDeviceFilterResultRowProps): JSX.Element;
|
|
7
|
-
export declare function ModelColumn({ deviceModel, }: SupportedDeviceFilterResultRowProps):
|
|
7
|
+
export declare function ModelColumn({ deviceModel, }: SupportedDeviceFilterResultRowProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -9,4 +9,4 @@ export function ModelColumn({ deviceModel, }) {
|
|
|
9
9
|
const deviceProvider = useDeviceProvider(deviceModel.brand);
|
|
10
10
|
return (_jsxs("div", { className: 'seam-col seam-model-col', children: [_jsxs("div", { className: 'seam-model-name', children: [_jsx("img", { src: deviceProvider.image_url, alt: deviceModel.brand, className: 'seam-brand-image' }), ' ', deviceModel.model_name] }), _jsxs("div", { className: 'seam-model-id', children: [deviceModel.manufacturer_model_id, _jsx(DotDivider, {}), connectionTypeNames[deviceModel.connection_type]] })] }));
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=SupportedDeviceFilterResultRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupportedDeviceFilterResultRow.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterResultRow.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,YAAY,GACb,MAAM,gEAAgE,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAA;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAMxD,MAAM,UAAU,8BAA8B,CAAC,EAC7C,WAAW,GACyB;IACpC,OAAO,CACL,eAAK,SAAS,EAAC,4BAA4B,aACzC,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,EACzC,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,EACzC,KAAC,YAAY,IAAC,WAAW,EAAE,WAAW,GAAI,IACtC,CACP,CAAA;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAC1B,WAAW,GACyB;IACpC,MAAM,cAAc,GAAG,iBAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;IAE3D,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aACtC,eAAK,SAAS,EAAC,iBAAiB,aAC9B,cACE,GAAG,EAAE,cAAc,CAAC,SAAS,EAC7B,GAAG,EAAE,WAAW,CAAC,KAAK,EACtB,SAAS,EAAC,kBAAkB,GAC5B,EAAC,GAAG,EACL,WAAW,CAAC,UAAU,IACnB,EACN,eAAK,SAAS,EAAC,eAAe,aAC3B,WAAW,CAAC,qBAAqB,EAClC,KAAC,UAAU,KAAG,EACb,mBAAmB,CAAC,WAAW,CAAC,eAAe,CAAC,IAC7C,IACF,CACP,CAAA;AACH,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DeviceModel } from 'seamapi';
|
|
3
|
-
|
|
3
|
+
interface SupportedDeviceRowProps {
|
|
4
4
|
deviceModel: DeviceModel;
|
|
5
5
|
}
|
|
6
6
|
export declare function SupportedDeviceRow({ deviceModel, }: SupportedDeviceRowProps): JSX.Element;
|
|
7
|
-
export declare function ImageColumn({ deviceModel }: SupportedDeviceRowProps):
|
|
8
|
-
export declare function ModelColumn({ deviceModel }: SupportedDeviceRowProps):
|
|
9
|
-
export declare function StatusColumn({ deviceModel }: SupportedDeviceRowProps):
|
|
7
|
+
export declare function ImageColumn({ deviceModel, }: SupportedDeviceRowProps): JSX.Element;
|
|
8
|
+
export declare function ModelColumn({ deviceModel, }: SupportedDeviceRowProps): JSX.Element;
|
|
9
|
+
export declare function StatusColumn({ deviceModel, }: SupportedDeviceRowProps): JSX.Element;
|
|
10
10
|
export declare const connectionTypeNames: Record<DeviceModel['connection_type'], string>;
|
|
11
|
+
export {};
|
|
@@ -4,13 +4,13 @@ import { DotDivider } from '../../../../lib/ui/layout/DotDivider.js';
|
|
|
4
4
|
export function SupportedDeviceRow({ deviceModel, }) {
|
|
5
5
|
return (_jsxs("div", { className: 'seam-row', children: [_jsx(ImageColumn, { deviceModel: deviceModel }), _jsx(ModelColumn, { deviceModel: deviceModel }), _jsx(StatusColumn, { deviceModel: deviceModel })] }));
|
|
6
6
|
}
|
|
7
|
-
export function ImageColumn({ deviceModel }) {
|
|
7
|
+
export function ImageColumn({ deviceModel, }) {
|
|
8
8
|
return (_jsx("div", { className: 'seam-col seam-device-image-col', children: _jsx("div", { className: 'seam-image-box', children: _jsx("img", { width: 40, src: deviceModel.icon_url }) }) }));
|
|
9
9
|
}
|
|
10
|
-
export function ModelColumn({ deviceModel }) {
|
|
10
|
+
export function ModelColumn({ deviceModel, }) {
|
|
11
11
|
return (_jsxs("div", { className: 'seam-col seam-model-col', children: [_jsx("div", { className: 'seam-model-name', children: deviceModel.model_name }), _jsxs("div", { className: 'seam-model-id', children: [deviceModel.manufacturer_model_id, _jsx(DotDivider, {}), connectionTypeNames[deviceModel.connection_type]] })] }));
|
|
12
12
|
}
|
|
13
|
-
export function StatusColumn({ deviceModel }) {
|
|
13
|
+
export function StatusColumn({ deviceModel, }) {
|
|
14
14
|
const statusColor = supportLevelColors[deviceModel.support_level] ?? 'unknown';
|
|
15
15
|
return (_jsx("div", { className: 'seam-col seam-status-col', children: _jsx("div", { className: classNames('seam-status-pill', `status-${statusColor}`), children: _jsx("span", { children: status[deviceModel.support_level] }) }) }));
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportedDeviceRow.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAMxD,MAAM,UAAU,kBAAkB,CAAC,EACjC,WAAW,GACa;IACxB,OAAO,CACL,eAAK,SAAS,EAAC,UAAU,aACvB,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,EACzC,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,EACzC,KAAC,YAAY,IAAC,WAAW,EAAE,WAAW,GAAI,IACtC,CACP,CAAA;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"SupportedDeviceRow.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAMxD,MAAM,UAAU,kBAAkB,CAAC,EACjC,WAAW,GACa;IACxB,OAAO,CACL,eAAK,SAAS,EAAC,UAAU,aACvB,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,EACzC,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,EACzC,KAAC,YAAY,IAAC,WAAW,EAAE,WAAW,GAAI,IACtC,CACP,CAAA;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAC1B,WAAW,GACa;IACxB,OAAO,CACL,cAAK,SAAS,EAAC,gCAAgC,YAC7C,cAAK,SAAS,EAAC,gBAAgB,YAC7B,cAAK,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,CAAC,QAAQ,GAAI,GACzC,GACF,CACP,CAAA;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAC1B,WAAW,GACa;IACxB,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aACtC,cAAK,SAAS,EAAC,iBAAiB,YAAE,WAAW,CAAC,UAAU,GAAO,EAC/D,eAAK,SAAS,EAAC,eAAe,aAC3B,WAAW,CAAC,qBAAqB,EAClC,KAAC,UAAU,KAAG,EACb,mBAAmB,CAAC,WAAW,CAAC,eAAe,CAAC,IAC7C,IACF,CACP,CAAA;AACH,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,EAC3B,WAAW,GACa;IACxB,MAAM,WAAW,GAAG,kBAAkB,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,SAAS,CAAA;IAE9E,OAAO,CACL,cAAK,SAAS,EAAC,0BAA0B,YACvC,cAAK,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE,UAAU,WAAW,EAAE,CAAC,YACrE,yBAAO,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,GAAQ,GAC5C,GACF,CACP,CAAA;AACH,CAAC;AAED,MAAM,kBAAkB,GAGpB;IACF,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,SAAS;CACvB,CAAA;AAED,MAAM,MAAM,GAAiD;IAC3D,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,SAAS;CACvB,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAG5B;IACF,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACnB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { DeviceProvider } from 'seamapi';
|
|
2
|
-
export declare function useDeviceProvider(
|
|
2
|
+
export declare function useDeviceProvider(name: string): DeviceProvider;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { useDeviceProviders } from '../../../../lib/seam/devices/use-device-providers.js';
|
|
2
|
-
export function useDeviceProvider(
|
|
2
|
+
export function useDeviceProvider(name) {
|
|
3
3
|
const { deviceProviders } = useDeviceProviders();
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
return definedProvider;
|
|
7
|
-
}
|
|
8
|
-
return {
|
|
9
|
-
device_provider_name: 'unknown',
|
|
10
|
-
display_name: 'Unknown',
|
|
11
|
-
image_url: `https://connect.getseam.com/assets/images/logos/seam.png`,
|
|
12
|
-
provider_categories: [],
|
|
13
|
-
};
|
|
4
|
+
const provider = deviceProviders?.find((p) => p.device_provider_name === name);
|
|
5
|
+
return provider ?? unknownProvider;
|
|
14
6
|
}
|
|
7
|
+
const unknownProvider = {
|
|
8
|
+
device_provider_name: 'unknown',
|
|
9
|
+
display_name: 'Unknown',
|
|
10
|
+
image_url: 'https://connect.getseam.com/assets/images/logos/seam.png',
|
|
11
|
+
provider_categories: [],
|
|
12
|
+
};
|
|
15
13
|
//# sourceMappingURL=use-device-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-device-provider.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/use-device-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAE7E,MAAM,UAAU,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"use-device-provider.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/SupportedDeviceTable/use-device-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAE7E,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,MAAM,EAAE,eAAe,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAChD,MAAM,QAAQ,GAAG,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,oBAAoB,KAAK,IAAI,CAAC,CAAA;IAC9E,OAAO,QAAQ,IAAI,eAAe,CAAA;AACpC,CAAC;AAED,MAAM,eAAe,GAAmB;IACtC,oBAAoB,EAAE,SAAS;IAC/B,YAAY,EAAE,SAAS;IACvB,SAAS,EAAE,0DAA0D;IACrE,mBAAmB,EAAE,EAAE;CACxB,CAAA"}
|
|
@@ -8,11 +8,10 @@ export function useDeviceModels(params) {
|
|
|
8
8
|
queryFn: async () => {
|
|
9
9
|
if (client == null)
|
|
10
10
|
return [];
|
|
11
|
-
|
|
11
|
+
return await client.deviceModels.list({
|
|
12
12
|
...params,
|
|
13
13
|
acknowledge_intentional_use_of_internal_api: true,
|
|
14
14
|
});
|
|
15
|
-
return deviceModels;
|
|
16
15
|
},
|
|
17
16
|
});
|
|
18
17
|
return { ...rest, deviceModels: data };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-device-models.js","sourceRoot":"","sources":["../../../src/lib/seam/device-models/use-device-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQhD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAM3D,MAAM,UAAU,eAAe,CAC7B,MAGC;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAGhC;QACA,OAAO,EAAE,MAAM,IAAI,IAAI;QACvB,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,CAAC;QAC3C,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,MAAM,IAAI,IAAI;gBAAE,OAAO,EAAE,CAAA;YAC7B,
|
|
1
|
+
{"version":3,"file":"use-device-models.js","sourceRoot":"","sources":["../../../src/lib/seam/device-models/use-device-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQhD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAM3D,MAAM,UAAU,eAAe,CAC7B,MAGC;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAGhC;QACA,OAAO,EAAE,MAAM,IAAI,IAAI;QACvB,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,CAAC;QAC3C,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,MAAM,IAAI,IAAI;gBAAE,OAAO,EAAE,CAAA;YAC7B,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC;gBACpC,GAAG,MAAM;gBACT,2CAA2C,EAAE,IAAI;aAClD,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;IAEF,OAAO,EAAE,GAAG,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAA;AACxC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DeviceProvider } from 'seamapi';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { DeviceProvider, DeviceProvidersListRequest } from 'seamapi';
|
|
2
|
+
import type { UseSeamQueryResult } from '../../../lib/seam/use-seam-query-result.js';
|
|
3
|
+
export type UseDeviceProvidersParams = DeviceProvidersListRequest;
|
|
4
|
+
export type UseDeviceProvidersData = DeviceProvider[];
|
|
5
|
+
export declare function useDeviceProviders(params?: UseDeviceProvidersParams): UseSeamQueryResult<'deviceProviders', UseDeviceProvidersData>;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
|
2
2
|
import { useSeamClient } from '../../../lib/seam/use-seam-client.js';
|
|
3
|
-
export function useDeviceProviders() {
|
|
3
|
+
export function useDeviceProviders(params) {
|
|
4
4
|
const { client } = useSeamClient();
|
|
5
|
-
const { data,
|
|
5
|
+
const { data, ...rest } = useQuery({
|
|
6
|
+
enabled: client != null,
|
|
7
|
+
queryKey: ['devices', 'list_device_providers', params],
|
|
6
8
|
queryFn: async () => {
|
|
7
|
-
if (client == null)
|
|
9
|
+
if (client == null)
|
|
8
10
|
return [];
|
|
9
|
-
|
|
10
|
-
return await client?.devices.listDeviceProviders({});
|
|
11
|
+
return await client.devices.listDeviceProviders(params);
|
|
11
12
|
},
|
|
12
|
-
queryKey: ['devices', 'list_device_providers'],
|
|
13
|
-
enabled: client != null,
|
|
14
13
|
});
|
|
15
|
-
return { deviceProviders: data
|
|
14
|
+
return { ...rest, deviceProviders: data };
|
|
16
15
|
}
|
|
17
16
|
//# sourceMappingURL=use-device-providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-device-providers.js","sourceRoot":"","sources":["../../../src/lib/seam/devices/use-device-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"use-device-providers.js","sourceRoot":"","sources":["../../../src/lib/seam/devices/use-device-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQhD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAM3D,MAAM,UAAU,kBAAkB,CAChC,MAAiC;IAEjC,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAGhC;QACA,OAAO,EAAE,MAAM,IAAI,IAAI;QACvB,QAAQ,EAAE,CAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,CAAC;QACtD,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,MAAM,IAAI,IAAI;gBAAE,OAAO,EAAE,CAAA;YAC7B,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAA;QACzD,CAAC;KACF,CAAC,CAAA;IAEF,OAAO,EAAE,GAAG,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,CAAA;AAC3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-device.js","sourceRoot":"","sources":["../../../src/lib/seam/devices/use-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQhD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAM3D,MAAM,UAAU,SAAS,CACvB,MAAwB;IAExB,MAAM,gBAAgB,GACpB,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAA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AClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-devices.js","sourceRoot":"","sources":["../../../src/lib/seam/devices/use-devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAQhE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAM3D,MAAM,UAAU,UAAU,CACxB,MAAyB;IAEzB,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IAEpC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAChC;QACE,OAAO,EAAE,MAAM,IAAI,IAAI;QACvB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;QACrC,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,MAAM,IAAI,IAAI;gBAAE,OAAO,EAAE,CAAA;YAC7B,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"use-devices.js","sourceRoot":"","sources":["../../../src/lib/seam/devices/use-devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAQhE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAM3D,MAAM,UAAU,UAAU,CACxB,MAAyB;IAEzB,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IAEpC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAChC;QACE,OAAO,EAAE,MAAM,IAAI,IAAI;QACvB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;QACrC,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,MAAM,IAAI,IAAI;gBAAE,OAAO,EAAE,CAAA;YAC7B,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC1C,CAAC;QACD,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE;YACrB,+BAA+B;YAC/B,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;gBAC5B,WAAW,CAAC,YAAY,CACtB,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,EACnD,MAAM,CACP,CAAA;aACF;QACH,CAAC;KACF,CACF,CAAA;IAED,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AACnC,CAAC"}
|
package/lib/seam/index.d.ts
CHANGED
|
@@ -2,5 +2,7 @@ export * from './access-codes/use-access-code.js';
|
|
|
2
2
|
export * from './access-codes/use-access-codes.js';
|
|
3
3
|
export * from './connect-webviews/use-create-connect-webview.js';
|
|
4
4
|
export * from './devices/use-device.js';
|
|
5
|
+
export * from './devices/use-device-providers.js';
|
|
5
6
|
export * from './devices/use-devices.js';
|
|
7
|
+
export * from './SeamProvider.js';
|
|
6
8
|
export * from './use-seam-client.js';
|
package/lib/seam/index.js
CHANGED
|
@@ -2,6 +2,8 @@ export * from './access-codes/use-access-code.js';
|
|
|
2
2
|
export * from './access-codes/use-access-codes.js';
|
|
3
3
|
export * from './connect-webviews/use-create-connect-webview.js';
|
|
4
4
|
export * from './devices/use-device.js';
|
|
5
|
+
export * from './devices/use-device-providers.js';
|
|
5
6
|
export * from './devices/use-devices.js';
|
|
7
|
+
export * from './SeamProvider.js';
|
|
6
8
|
export * from './use-seam-client.js';
|
|
7
9
|
//# sourceMappingURL=index.js.map
|