@expo/styleguide-search-ui 3.2.2 → 3.2.4

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/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("cmdk"),t=require("@kapaai/react-sdk"),a=require("react"),n=require("@expo/styleguide"),l=require("@expo/styleguide-icons/outline/MessageQuestionCircleIcon"),r=require("@expo/styleguide-icons/outline/SearchSmIcon"),s=require("@expo/styleguide-icons/outline/Stars02Icon"),c=require("@expo/styleguide-icons/outline/XIcon"),o=require("lodash.groupby"),i=require("@expo/styleguide-icons/outline/ArrowUpRightIcon"),m=require("@expo/styleguide-icons/outline/ChevronRightIcon"),u=require("@sanity/client"),d=require("@sanity/image-url"),p=require("@expo/styleguide-icons/custom/GithubIcon"),g=require("@expo/styleguide-icons/outline/Download01Icon"),x=require("@expo/styleguide-icons/outline/Star01Icon"),E=require("@expo/styleguide-icons/custom/PlanEnterpriseIcon"),h=require("@expo/styleguide-icons/outline/BookOpen02Icon"),f=require("@expo/styleguide-icons/outline/GraduationHat02Icon"),C=require("@expo/styleguide-icons/outline/Hash02Icon"),v=require("@expo/styleguide-icons/outline/Home02Icon"),y=require("@expo/styleguide-icons/outline/ClipboardIcon"),b=require("@expo/styleguide-icons/outline/RefreshCcw02Icon"),N=require("@expo/styleguide-icons/outline/ThumbsDownIcon"),k=require("@expo/styleguide-icons/outline/ThumbsUpIcon"),w=require("@expo/styleguide-icons/solid/ThumbsDownSolidIcon"),I=require("@expo/styleguide-icons/solid/ThumbsUpSolidIcon"),S=require("markdown-to-jsx"),q=require("@expo/styleguide-icons/outline/CheckIcon"),A=require("prism-react-renderer");const L=({isLoading:e,className:t})=>a.createElement("div",{role:"progressbar",className:n.mergeClasses("bg-palette-blue9 h-0.5 absolute z-20",e&&"animate-[searchUIBarLoader_2s_infinite_ease-in-out]",t)});function H(){return a.createElement(m.ChevronRightIcon,{className:"icon-xs text-icon-quaternary inline-block relative mx-1 -top-px"})}const M=()=>a.createElement(i.ArrowUpRightIcon,{className:"text-icon-tertiary self-center ml-auto shrink-0"}),$=({className:e})=>a.createElement("svg",{viewBox:"-11.5 -10.23174 23 20.46348",className:n.mergeClasses("icon-md text-icon-secondary",e)},a.createElement("circle",{cx:"0",cy:"0",r:"2.05",fill:"currentColor"}),a.createElement("g",{stroke:"currentColor",strokeWidth:"1",fill:"none"},a.createElement("ellipse",{rx:"11",ry:"4.2"}),a.createElement("ellipse",{rx:"11",ry:"4.2",transform:"rotate(60)"}),a.createElement("ellipse",{rx:"11",ry:"4.2",transform:"rotate(120)"}))),T=({className:e})=>a.createElement("svg",{width:"77",height:"19",viewBox:"0 0 2197 500",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-label":"Algolia",className:e,role:"img"},a.createElement("g",{clipPath:"url(#clip0_1_2)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1070.38 275.3V5.90999C1070.38 2.27998 1067.14 -0.480015 1063.56 0.0799852L1013.1 8.01999C1010.23 8.46999 1008.11 10.95 1008.11 13.86L1008.28 287.08C1008.28 300 1008.28 379.78 1104.25 382.57C1107.58 382.67 1110.34 379.99 1110.34 376.66V335.88C1110.34 332.92 1108.15 330.37 1105.22 330.04C1070.37 326.03 1070.37 282.47 1070.37 275.32L1070.38 275.3Z"}),a.createElement("path",{d:"M1902.56 104.73H1851.78C1848.52 104.73 1845.88 107.372 1845.88 110.63V376.73C1845.88 379.988 1848.52 382.63 1851.78 382.63H1902.56C1905.82 382.63 1908.46 379.988 1908.46 376.73V110.63C1908.46 107.372 1905.82 104.73 1902.56 104.73Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1851.78 71.38H1902.55C1905.81 71.38 1908.45 68.74 1908.45 65.48V5.90001C1908.45 2.28001 1905.21 -0.489988 1901.63 0.0700121L1850.86 8.02001C1847.99 8.47001 1845.87 10.94 1845.87 13.85V65.47C1845.87 68.73 1848.51 71.37 1851.77 71.37L1851.78 71.38Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1764.03 275.3V5.90999C1764.03 2.27998 1760.79 -0.480015 1757.21 0.0799852L1706.75 8.01999C1703.88 8.46999 1701.76 10.95 1701.76 13.86L1701.93 287.08C1701.93 300 1701.93 379.78 1797.9 382.57C1801.23 382.67 1803.99 379.99 1803.99 376.66V335.88C1803.99 332.92 1801.8 330.37 1798.87 330.04C1764.02 326.03 1764.02 282.47 1764.02 275.32L1764.03 275.3Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1631.95 142.72C1620.81 130.47 1607.12 121.07 1591.17 114.41C1575.25 107.88 1557.91 104.56 1539.1 104.56C1520.32 104.56 1502.95 107.73 1487.18 114.41C1471.59 121.07 1457.89 130.46 1446.42 142.72C1434.95 154.95 1426.04 169.59 1419.66 186.75C1413.28 203.92 1410.42 224.12 1410.42 245.11C1410.42 266.1 1413.61 281.98 1419.97 299.32C1426.35 316.64 1435.11 331.43 1446.42 343.68C1457.71 355.91 1471.25 365.3 1487.02 372.14C1502.79 378.97 1527.14 382.47 1539.42 382.62C1551.67 382.62 1576.2 378.8 1592.12 372.14C1608.04 365.46 1621.58 355.91 1632.9 343.68C1644.19 331.43 1652.95 316.64 1659.15 299.32C1665.37 281.98 1668.39 266.1 1668.39 245.11C1668.39 224.12 1665.05 203.92 1658.36 186.75C1651.98 169.58 1643.22 154.95 1631.93 142.72H1631.95ZM1587.52 306.47C1576.05 322.22 1559.96 330.17 1539.43 330.17C1518.88 330.17 1502.8 322.37 1491.33 306.47C1479.86 290.72 1474.12 272.46 1474.12 245.27C1474.12 218.38 1479.71 196.13 1491.18 180.4C1502.63 164.65 1518.72 156.88 1539.25 156.88C1559.8 156.88 1575.88 164.66 1587.34 180.4C1598.81 195.97 1604.7 218.38 1604.7 245.27C1604.7 272.46 1598.98 290.57 1587.51 306.47H1587.52Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M894.42 104.73H845.09C796.73 104.73 754.18 130.21 729.34 168.83C714.82 191.41 706.35 218.46 706.35 247.56C706.35 292.45 726.48 332.48 757.94 358.66C760.87 361.26 763.99 363.64 767.25 365.8C780.11 374.29 795.36 379.27 811.77 379.27C813 379.27 814.23 379.24 815.45 379.18C815.81 379.16 816.16 379.13 816.52 379.11C817.39 379.06 818.27 379 819.14 378.91C819.48 378.88 819.82 378.83 820.16 378.79C821.07 378.69 821.98 378.58 822.89 378.45C823.1 378.42 823.31 378.38 823.52 378.35C856.41 373.28 885.08 347.53 894.42 315.54V373.37C894.42 376.63 897.06 379.27 900.32 379.27H950.74C954 379.27 956.64 376.63 956.64 373.37V110.63C956.64 107.37 954 104.73 950.74 104.73H894.42ZM894.42 311.65C882.22 321.81 866.45 325.63 849.58 326.77C849.42 326.78 849.25 326.8 849.09 326.81C847.97 326.88 846.85 326.91 845.73 326.91C803.49 326.91 768.61 291.02 768.61 247.54C768.61 237.29 770.57 227.53 774.03 218.56C785.25 189.44 812.8 168.82 845.09 168.82H894.42V311.65Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2133.97 104.73H2084.64C2036.28 104.73 1993.73 130.21 1968.89 168.83C1954.37 191.41 1945.9 218.46 1945.9 247.56C1945.9 292.45 1966.03 332.48 1997.49 358.66C2000.42 361.26 2003.54 363.64 2006.8 365.8C2019.66 374.29 2034.91 379.27 2051.32 379.27C2052.55 379.27 2053.78 379.24 2055 379.18C2055.36 379.16 2055.71 379.13 2056.07 379.11C2056.94 379.06 2057.82 379 2058.69 378.91C2059.03 378.88 2059.37 378.83 2059.71 378.79C2060.62 378.69 2061.53 378.58 2062.44 378.45C2062.65 378.42 2062.86 378.38 2063.07 378.35C2095.96 373.28 2124.63 347.53 2133.97 315.54V373.37C2133.97 376.63 2136.61 379.27 2139.87 379.27H2190.29C2193.55 379.27 2196.19 376.63 2196.19 373.37V110.63C2196.19 107.37 2193.55 104.73 2190.29 104.73H2133.97ZM2133.97 311.65C2121.77 321.81 2106 325.63 2089.13 326.77C2088.97 326.78 2088.8 326.8 2088.64 326.81C2087.52 326.88 2086.4 326.91 2085.28 326.91C2043.04 326.91 2008.16 291.02 2008.16 247.54C2008.16 237.29 2010.12 227.53 2013.58 218.56C2024.8 189.44 2052.35 168.82 2084.64 168.82H2133.97V311.65Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1314.05 104.73H1264.72C1216.36 104.73 1173.81 130.21 1148.97 168.83C1137.18 187.17 1129.37 208.47 1126.86 231.42C1126.28 236.72 1125.98 242.1 1125.98 247.56C1125.98 253.02 1126.29 258.71 1126.91 264.15C1131.19 302.24 1150.05 335.76 1177.57 358.67C1180.5 361.27 1183.62 363.65 1186.88 365.81C1199.74 374.3 1214.99 379.28 1231.4 379.28C1249.39 379.28 1266.01 373.35 1279.56 363.31C1295.85 351.73 1308.44 334.77 1314.04 315.56V365.82H1313.93V376.9C1313.93 398.74 1308.22 415.17 1296.59 426.26C1284.98 437.34 1265.55 442.89 1238.34 442.89C1227.22 442.89 1209.55 442.3 1191.74 440.48C1188.91 440.19 1186.28 441.98 1185.47 444.7L1172.69 487.81C1171.67 491.27 1173.96 494.83 1177.52 495.34C1199.04 498.42 1220.04 500.02 1232.17 500.02C1281.08 500.02 1317.33 489.27 1341.06 467.81C1362.54 448.4 1374.21 418.92 1376.26 379.29V110.63C1376.26 107.37 1373.62 104.73 1370.36 104.73H1314.04H1314.05ZM1314.05 168.83C1314.05 168.83 1314.7 307.96 1314.05 312.19C1301.97 321.96 1286.94 325.78 1270.56 326.89C1270.4 326.9 1270.23 326.92 1270.07 326.93C1268.95 327 1267.83 327.03 1266.71 327.03C1265.39 327.03 1264.08 327 1262.77 326.93C1222.36 324.82 1188.25 289.67 1188.25 247.55C1188.25 237.3 1190.21 227.54 1193.67 218.57C1204.89 189.45 1232.44 168.83 1264.73 168.83H1314.06H1314.05Z"}),a.createElement("path",{d:"M249.83 0C113.3 0 2.00001 110.09 0.0300098 246.16C-1.96999 384.35 110.15 498.86 248.36 499.66C291.04 499.91 332.15 489.47 368.66 469.63C372.22 467.7 372.77 462.8 369.74 460.12L346.36 439.4C341.61 435.19 334.85 434 329 436.48C303.52 447.32 275.83 452.86 247.29 452.51C135.61 451.14 45.38 358.22 47.16 246.55C48.92 136.29 139.16 47.14 249.83 47.14H452.52V407.41L337.52 305.23C333.8 301.92 328.1 302.57 325.1 306.54C306.64 330.98 276.57 346.18 243.17 343.88C196.84 340.68 159.3 303.38 155.83 257.07C151.68 201.83 195.46 155.55 249.83 155.55C299.01 155.55 339.51 193.4 343.74 241.5C344.12 245.78 346.05 249.77 349.26 252.62L379.21 279.17C382.61 282.18 388 280.34 388.84 275.87C391 264.32 391.76 252.29 390.91 239.95C386.09 169.61 329.11 113.02 258.74 108.69C178.06 103.72 110.61 166.83 108.47 245.94C106.38 323.04 169.55 389.5 246.66 391.2C278.85 391.91 308.69 381.79 332.8 364.25L483.06 497.45C489.5 503.16 499.67 498.59 499.67 489.98V9.48C499.66 4.25 495.42 0 490.18 0H249.83Z"})),a.createElement("defs",null,a.createElement("clipPath",null,a.createElement("rect",{width:2196.2,height:500})))),z=({className:e})=>a.createElement("svg",{height:"19",width:"72",viewBox:"0 0 989 262",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:e},a.createElement("path",{d:"m345.202 187.216c-1.602 0-2.9-1.3-2.898-2.903l.192-131.3758c.003-1.599 1.3-2.8941 2.899-2.8941h21.913c1.601 0 2.899 1.2977 2.899 2.8983v68.9056c0 2.83 3.639 3.982 5.268 1.668l30.607-43.4845c.543-.7712 1.427-1.2301 2.37-1.2301h26.556c2.365 0 3.734 2.6785 2.35 4.5952l-34.565 47.8594c-.751 1.04-.73 2.45.053 3.466l36.845 47.828c1.468 1.905.11 4.667-2.296 4.667h-28.159c-.933 0-1.808-.449-2.353-1.206l-31.425-43.693c-1.644-2.285-5.251-1.123-5.251 1.692v40.308c0 1.601-1.298 2.899-2.899 2.899z"}),a.createElement("path",{d:"m477.369 190.227c-7.763 0-14.355-1.472-19.776-4.417-5.354-3.011-9.436-6.993-12.247-11.945-2.744-5.02-4.116-10.541-4.116-16.564 0-5.019.77-9.603 2.309-13.753 1.539-4.149 4.016-7.796 7.429-10.941 3.48-3.213 8.131-5.89 13.953-8.031 4.016-1.473 8.801-2.778 14.355-3.915 5.555-1.138 11.846-2.209 18.872-3.213 4.589-.699 9.476-1.441 14.664-2.225 1.701-.258 2.481 2.042.974 2.873-1.028.566-2.292-.179-2.378-1.35-.372-5.108-1.881-8.956-4.526-11.544-3.079-3.012-8.232-4.518-15.459-4.518-4.016 0-8.198.971-12.548 2.911-3.548 1.583-6.228 4.168-8.04 7.754-.706 1.398-2.282 2.21-3.774 1.737l-19.281-6.114c-1.515-.48-2.37-2.096-1.811-3.583 2.906-7.7358 7.751-14.125 14.535-19.1678 7.563-5.6216 17.869-8.4323 30.919-8.4323 9.57 0 18.069 1.4723 25.497 4.4169 7.429 2.9446 13.05 8.0307 16.865 15.2584 2.142 4.0154 3.413 8.0308 3.815 12.0458.401 4.016.602 8.5.602 13.452v63.355c0 1.601-1.298 2.899-2.898 2.899h-18.095c-1.601 0-2.899-1.298-2.899-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.002 1.796-5.102 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.82 4.818-23.189 4.818zm5.822-21.482c5.019 0 9.236-.87 12.649-2.61 3.48-1.807 6.223-3.848 8.231-6.123 2.075-2.276 3.48-4.183 4.216-5.722 1.406-2.945 2.209-6.358 2.41-10.24.211-3.117.339-5.818.383-8.101.017-.882.847-1.529 1.703-1.315 1.428.357 1.345 2.42-.106 2.665-5.205.882-9.612 1.66-13.224 2.334-5.019.87-9.068 1.674-12.146 2.41-3.079.736-5.789 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.811 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.602 4.617 1.807 6.424 1.271 1.74 3.045 3.079 5.32 4.016s4.986 1.405 8.131 1.405z"}),a.createElement("path",{d:"m611.484 190.227c-10.774 0-19.775-2.509-27.003-7.529-7.228-5.019-12.682-11.845-16.363-20.478-3.614-8.633-5.421-18.37-5.421-29.212 0-10.841 1.807-20.579 5.421-29.212 3.614-8.6329 8.934-15.4591 15.961-20.4783s15.694-7.5288 26-7.5288c10.373 0 19.408 2.4761 27.104 7.4284s13.652 11.745 17.868 20.3777c4.283 8.567 6.425 18.371 6.425 29.413 0 10.842-2.108 20.579-6.324 29.212-4.15 8.633-9.972 15.459-17.467 20.478-7.496 5.02-16.229 7.529-26.201 7.529zm-50.506 45.173c-1.601 0-2.898-1.297-2.898-2.898v-150.8033c0-1.6007 1.297-2.8983 2.898-2.8983h18.296c1.6 0 2.898 1.2976 2.898 2.8983v69.6793c0 .943.764 1.707 1.706 1.707.943 0 1.707.764 1.707 1.707v77.71c0 1.601-1.298 2.898-2.898 2.898zm46.089-69.466c5.89 0 10.708-1.472 14.456-4.417 3.747-2.944 6.525-6.893 8.332-11.845 1.807-5.019 2.71-10.574 2.71-16.664 0-6.023-.937-11.511-2.811-16.463-1.874-5.019-4.785-9.001-8.733-11.946-3.882-3.011-8.868-4.517-14.958-4.517-5.688 0-10.306 1.372-13.853 4.116-3.48 2.744-6.023 6.592-7.629 11.544s-2.409 10.708-2.409 17.266c0 6.559.803 12.314 2.409 17.266 1.606 4.953 4.216 8.801 7.83 11.544 3.681 2.744 8.566 4.116 14.656 4.116z"}),a.createElement("path",{d:"m707.657 190.227c-7.763 0-14.355-1.472-19.775-4.417-5.354-3.011-9.437-6.993-12.247-11.945-2.744-5.02-4.116-10.541-4.116-16.564 0-5.019.77-9.603 2.309-13.753 1.539-4.149 4.015-7.796 7.428-10.941 3.48-3.213 8.131-5.89 13.954-8.031 4.015-1.473 8.8-2.778 14.355-3.915 5.554-1.138 11.845-2.209 18.872-3.213 4.588-.699 9.476-1.441 14.663-2.225 1.702-.258 2.482 2.042.974 2.873-1.027.566-2.292-.179-2.377-1.35-.372-5.108-1.881-8.956-4.526-11.544-3.079-3.012-8.232-4.518-15.46-4.518-4.015 0-8.198.971-12.548 2.911-3.548 1.583-6.227 4.168-8.039 7.754-.706 1.398-2.282 2.21-3.775 1.737l-19.281-6.114c-1.514-.48-2.369-2.096-1.81-3.583 2.906-7.7358 7.751-14.125 14.535-19.1678 7.562-5.6216 17.868-8.4323 30.918-8.4323 9.57 0 18.069 1.4723 25.498 4.4169 7.428 2.9446 13.05 8.0307 16.865 15.2584 2.141 4.0154 3.413 8.0308 3.814 12.0458.402 4.016.603 8.5.603 13.452v63.355c0 1.601-1.298 2.899-2.899 2.899h-18.095c-1.6 0-2.898-1.298-2.898-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.001 1.796-5.101 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.819 4.818-23.189 4.818zm5.823-21.482c5.019 0 9.235-.87 12.648-2.61 3.48-1.807 6.224-3.848 8.232-6.123 2.074-2.276 3.48-4.183 4.216-5.722 1.405-2.945 2.208-6.358 2.409-10.24.211-3.117.339-5.818.384-8.101.017-.882.847-1.529 1.702-1.315 1.428.357 1.346 2.42-.105 2.665-5.205.882-9.613 1.66-13.224 2.334-5.019.87-9.068 1.674-12.147 2.41-3.078.736-5.788 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.81 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.603 4.617 1.807 6.424 1.272 1.74 3.045 3.079 5.321 4.016 2.275.937 4.985 1.405 8.131 1.405z"}),a.createElement("path",{d:"m795.884 187.216c-1.601 0-2.898-1.298-2.898-2.899v-21.508c0-1.6 1.297-2.898 2.898-2.898h21.508c1.601 0 2.899 1.298 2.899 2.898v21.508c0 1.601-1.298 2.899-2.899 2.899z"}),a.createElement("path",{d:"m876.97 190.227c-7.763 0-14.355-1.472-19.776-4.417-5.353-3.011-9.436-6.993-12.247-11.945-2.743-5.02-4.115-10.541-4.115-16.564 0-5.019.769-9.603 2.309-13.753 1.539-4.149 4.015-7.796 7.428-10.941 3.48-3.213 8.131-5.89 13.954-8.031 4.015-1.473 8.8-2.778 14.355-3.915 5.554-1.138 11.845-2.209 18.872-3.213 4.588-.699 9.476-1.441 14.663-2.225 1.702-.258 2.482 2.042.974 2.873-1.027.566-2.292-.179-2.377-1.35-.372-5.108-1.881-8.956-4.527-11.544-3.078-3.012-8.231-4.518-15.459-4.518-4.015 0-8.198.971-12.548 2.911-3.548 1.583-6.228 4.168-8.039 7.754-.706 1.398-2.282 2.21-3.775 1.737l-19.281-6.114c-1.515-.48-2.37-2.096-1.811-3.583 2.907-7.7358 7.752-14.125 14.536-19.1678 7.562-5.6216 17.868-8.4323 30.918-8.4323 9.57 0 18.069 1.4723 25.498 4.4169 7.428 2.9446 13.05 8.0307 16.864 15.2584 2.142 4.0154 3.413 8.0308 3.815 12.0458.401 4.016.602 8.5.602 13.452v63.355c0 1.601-1.297 2.899-2.898 2.899h-18.095c-1.601 0-2.898-1.298-2.898-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.001 1.796-5.102 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.82 4.818-23.189 4.818zm5.823-21.482c5.019 0 9.235-.87 12.648-2.61 3.48-1.807 6.224-3.848 8.232-6.123 2.074-2.276 3.479-4.183 4.216-5.722 1.405-2.945 2.208-6.358 2.409-10.24.211-3.117.339-5.818.384-8.101.017-.882.846-1.529 1.702-1.315 1.428.357 1.345 2.42-.106 2.665-5.204.882-9.612 1.66-13.223 2.334-5.019.87-9.068 1.674-12.147 2.41-3.078.736-5.789 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.811 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.602 4.617 1.807 6.424 1.272 1.74 3.045 3.079 5.32 4.016 2.276.937 4.986 1.405 8.132 1.405z"}),a.createElement("path",{d:"m962.788 63.7427c-1.601 0-2.899-1.2976-2.899-2.8983v-18.2957c0-1.6007 1.298-2.8983 2.899-2.8983h21.508c1.6 0 2.898 1.2976 2.898 2.8983v18.2957c0 1.6007-1.298 2.8983-2.898 2.8983zm0 123.4733c-1.601 0-2.899-1.298-2.899-2.899v-102.6183c0-1.6007 1.298-2.8983 2.899-2.8983h21.508c1.6 0 2.898 1.2976 2.898 2.8983v102.6183c0 1.601-1.298 2.899-2.898 2.899z"}),a.createElement("path",{d:"m195.824.5c36.051 0 65.277 29.2254 65.277 65.2764v130.4476c0 36.051-29.226 65.276-65.277 65.276h-130.447c-36.051 0-65.276414-29.225-65.276414-65.276v-130.4476c0-36.051 29.225414-65.2764 65.276414-65.2764zm-116.5564 56.5498c-.9608 0-1.7401.7785-1.7403 1.7393v136.5899c0 .961.7794 1.74 1.7403 1.74h30.3914c.961 0 1.74-.779 1.74-1.74v-38.541c0-.961.779-1.74 1.74-1.74h14.775c.614 0 1.182.323 1.495.851l23.995 40.32c.313.527.881.85 1.495.85h35.002c1.36 0 2.194-1.49 1.483-2.65l-34.842-56.785c-.357-.582-.341-1.319.042-1.884l34.817-51.466c.781-1.1555-.046-2.7149-1.442-2.7149h-34.843c-.608 0-1.172.3172-1.487.837l-24.899 41.0349c-.316.52-.88.838-1.488.838h-14.103c-.961 0-1.74-.779-1.74-1.74v-63.7999c0-.9609-.779-1.7392-1.74-1.7393z"}));function j({isPromptMode:e}){return a.createElement("div",{className:"flex gap-4 px-4 h-11 items-center border-t border-secondary"},a.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden"},a.createElement("kbd",null,"↵"),a.createElement("span",null,"to ",e?"send question":"select")),!e&&a.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden"},a.createElement("kbd",null,"↑"),a.createElement("kbd",null,"↓"),a.createElement("span",null,"to navigate")),a.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden"},a.createElement("kbd",null,"tab"),a.createElement("span",null,"to switch mode")),a.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden"},a.createElement("kbd",null,"esc"),a.createElement("span",null,"to close")),e?a.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-1.5 items-center ml-auto"},a.createElement("span",null,"AI assistant by"),a.createElement("a",{href:"https://www.kapa.ai/",target:"_blank"},a.createElement(z,{className:"hocus:opacity-80"}))):a.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center ml-auto"},a.createElement("span",null,"Search by"),a.createElement("a",{href:"https://www.algolia.com/developers/?utm_medium=referral&utm_content=powered_by&utm_source=expo.dev.com&utm_campaign=docsearch",target:"_blank"},a.createElement(T,{className:"hocus:opacity-80"}))))}const _="9r24npb8",P="production",R=u.createClient({projectId:_,dataset:P,useCdn:!0,apiVersion:"v2025-02-19"}),V=d({projectId:_,dataset:P});const D=async(e,t,a,n)=>{const{hits:l,libraries:r}=await t(e,n).then((e=>e.json()));a(l||r||[])},F=(e,t,a,n,l,r={})=>[`https://${t}-dsn.algolia.net/1/indexes/${n}/query`,{method:"POST",headers:{"X-Algolia-Application-Id":t,"X-Algolia-API-Key":a},body:JSON.stringify({params:`query=${e}&hitsPerPage=${l}`,highlightPreTag:"<mark>",highlightPostTag:"</mark>",...r})}],K=(e,t)=>fetch(...F(e,"QEX7PB7D46","6652d26570e8628af4601e1d78ad456b","expo",20,{facetFilters:[["version:none",`version:${t}`]]})),G=e=>fetch(...F(e,"8TDSE0OHGQ","c9c791d9d5fd7f315d7f3859b32c1f3b","react-native-v2",5,{facetFilters:[["version:current"]]})),U=e=>R.fetch(`*[_type == "post" && publishAt < now() && (title match "${e}*" || metadataDescription match "${e}*")] | order(publishAt desc)[0...10] {\n title,\n slug,\n tags,\n metadataDescription,\n mainImage\n }`),B=e=>fetch(`https://reactnative.directory/api/libraries?search=${encodeURI(e)}&limit=5`),O=(e,t)=>({dangerouslySetInnerHTML:{__html:e._highlightResult.hierarchy[`${t}`]?.value||""}}),Z=(e,t=36)=>{if(!e||!e.length)return"";const a=Math.max(e.indexOf("<mark>")-t,0),n=Math.min(e.indexOf("</mark>")+t+6,e.length);return`${0!==a?"…":""}${e.substring(a,n).trim()}${n!==e.length?"…":""}`},Q=(e,t=!1)=>t?{}:{dangerouslySetInnerHTML:{__html:e._highlightResult.content?.value?Z(e._highlightResult.content?.value):Z(e._highlightResult.hierarchy.lvl1?.value||"",82)}},X=["/versions/","/more/"],W=e=>X.some((t=>e.includes(t))),J=["/app-signing/","/build/","/build-reference/","/development/","/eas/","/eas/metadata/","/eas-update/","/submit/"],Y=e=>J.some((t=>e.includes(t))),ee=["/get-started/","/develop/","/deploy/","/faq/","/core-concepts/","/debugging/","/config-plugins/"],te=e=>ee.some((t=>e.includes(t))),ae=["/tutorial","/ui-programming/","/additional-resources/"],ne=e=>ae.some((t=>e.includes(t))),le=()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator?.platform??navigator?.userAgentData?.platform??""),re=(e,t)=>{if(!e||!e.length)return"";const a=e.toLowerCase().indexOf(t.toLowerCase());if(-1===a)return e;const n=a+t.length;return e.substring(0,a)+"<mark>"+e.substring(a,n)+"</mark>"+e.substring(n)},se=({children:t,url:l,isExternalLink:r,isNested:s,onSelect:c,className:o,value:i})=>{const[m,u]=a.useState(!1),[d,p]=a.useState(!1);return a.createElement(e.Command.Item,{className:n.mergeClasses("relative",o),value:i,"data-nested":!!s||void 0,onMouseDown:e=>{(e.metaKey||e.ctrlKey)&&p(!0)},onMouseUp:e=>{!l||1!==e.button&&2!==e.button||function(e){navigator.clipboard?.writeText(e),u(!0),setTimeout((()=>u(!1)),1500)}(l)},onSelect:()=>{l&&((e,t=!1)=>{const a=document.createElement("a");t&&(a.target="_blank",a.rel="noopener noreferrer"),a.href=e,a.click()})(l,!!d||r),d?p(!1):c&&c()},onContextMenu:e=>{e.preventDefault()}},t,m&&a.createElement("div",{className:"text-2xs font-medium absolute rounded-full px-2 right-2.5 top-[calc(50%-13px)] border-secondary bg-info text-info"},"Copied!"))},ce=new Intl.NumberFormat,oe=({item:e,onSelect:t,query:n})=>a.createElement(se,{value:`rnd-${e.npmPkg}`,url:e.githubUrl,isExternalLink:!0,onSelect:t},a.createElement("div",{className:"inline-flex gap-3 items-center"},a.createElement(p.GithubIcon,{className:"text-icon-secondary"}),a.createElement("div",null,a.createElement("p",{className:"text-xs font-medium",dangerouslySetInnerHTML:{__html:re(e.npmPkg,n)}}),a.createElement("p",{className:"flex items-center gap-1 text-3xs text-quaternary"},a.createElement(x.Star01Icon,{className:"icon-2xs text-icon-quaternary"}),ce.format(e.github.stats.stars)," stars",e.npm.downloads?a.createElement(a.Fragment,null," ","· ",a.createElement(g.Download01Icon,{className:"icon-2xs text-icon-quaternary"}),ce.format(e.npm.downloads)," downloads"):void 0)),a.createElement(M,null))),ie=({item:e,levelKey:t="lvl0"})=>e.hierarchy[t]?a.createElement(a.Fragment,null,a.createElement(H,null),a.createElement("span",{...O(e,t)})):null,me=({item:e,onSelect:t})=>{const{lvl0:n,lvl1:l,lvl2:r,lvl3:s,lvl4:c}=e.hierarchy;return a.createElement(se,{value:`rn-${e.objectID}`,url:e.url,isExternalLink:!0,onSelect:t},a.createElement("div",{className:"inline-flex gap-3 items-center"},a.createElement($,{className:"shrink-0"}),a.createElement("div",null,c&&a.createElement(a.Fragment,null,a.createElement("p",{className:"text-xs font-medium",...O(e,"lvl4")}),a.createElement("p",{className:"text-3xs text-quaternary"},a.createElement("span",{...O(e,"lvl0")}),a.createElement(ie,{item:e,levelKey:"lvl1"}),a.createElement(ie,{item:e,levelKey:"lvl2"}),a.createElement(ie,{item:e,levelKey:"lvl3"}))),!c&&s&&a.createElement(a.Fragment,null,a.createElement("p",{className:"text-xs font-medium",...O(e,"lvl3")}),a.createElement("p",{className:"text-3xs text-quaternary"},a.createElement("span",{...O(e,"lvl0")}),a.createElement(ie,{item:e,levelKey:"lvl1"}),a.createElement(ie,{item:e,levelKey:"lvl2"}))),!s&&r&&a.createElement(a.Fragment,null,a.createElement("p",{className:"text-xs font-medium",...O(e,"lvl2")}),a.createElement("p",{className:"text-3xs text-quaternary"},a.createElement("span",{...O(e,"lvl0")}),a.createElement(ie,{item:e,levelKey:"lvl1"}))),!s&&!r&&l&&a.createElement(a.Fragment,null,a.createElement("p",{className:"text-xs font-medium",...O(e,"lvl1")}),a.createElement("p",{className:"text-3xs text-quaternary",...O(e,"lvl0")})),!s&&!r&&!l&&n&&a.createElement("p",{className:"text-xs font-medium",...O(e,"lvl0")}),a.createElement("p",{className:"text-2xs text-secondary",...Q(e,!0)})),a.createElement(M,null)))},ue=({url:e,className:t,isNested:l})=>l?a.createElement(C.Hash02Icon,{className:n.mergeClasses("icon-sm text-icon-quaternary",t)}):W(e)?a.createElement(n.DocsLogo,{className:n.mergeClasses("text-icon-secondary",t)}):Y(e)?a.createElement(E.PlanEnterpriseIcon,{className:n.mergeClasses("text-icon-secondary",t)}):te(e)?a.createElement(v.Home02Icon,{className:n.mergeClasses("text-icon-secondary",t)}):ne(e)?a.createElement(f.GraduationHat02Icon,{className:n.mergeClasses("text-icon-secondary",t)}):a.createElement(h.BookOpen02Icon,{className:n.mergeClasses("text-icon-secondary",t)}),de=e=>W(e)?"Reference":Y(e)?"Expo Application Services":te(e)?"Home":ne(e)?"Learn":"Guides",pe=({url:e,isNested:t=!1})=>t?a.createElement(a.Fragment,null,a.createElement("span",{className:"text-3xs text-quaternary"},de(e)),a.createElement(H,null)):a.createElement("p",{className:"text-3xs text-quaternary"},de(e)),ge=({item:e,onSelect:t,isNested:l,transformUrl:r})=>{const{lvl0:s,lvl2:c,lvl3:o,lvl4:i,lvl6:m}=e.hierarchy,u=n.mergeClasses(l?"text-2xs":"text-xs font-medium"),d=n.mergeClasses("text-3xs text-quaternary",l&&"hidden");return a.createElement(se,{className:n.mergeClasses(l&&"ml-8 !min-h-[32px]"),value:`expodocs-${e.objectID}`,onSelect:t,url:r?r(e.url):e.url,isNested:l,isExternalLink:!r},a.createElement("div",{className:"flex gap-3 justify-between"},a.createElement("div",{className:"inline-flex items-center gap-3 break-words"},a.createElement(ue,{url:e.url,isNested:l,className:"shrink-0"}),a.createElement("div",null,m&&a.createElement(a.Fragment,null,a.createElement("p",{className:u,...O(e,"lvl6")}),!l&&a.createElement("p",{className:"text-3xs text-quaternary"},a.createElement(pe,{url:e.url,isNested:!0}),a.createElement("span",{...O(e,"lvl0")}),a.createElement(ie,{item:e,levelKey:"lvl2"}),a.createElement(ie,{item:e,levelKey:"lvl3"}),a.createElement(ie,{item:e,levelKey:"lvl4"}))),!m&&i&&a.createElement(a.Fragment,null,a.createElement("p",{className:u,...O(e,"lvl4")}),!l&&a.createElement("p",{className:d},a.createElement(pe,{url:e.url,isNested:!0}),a.createElement("span",{...O(e,"lvl0")}),a.createElement(ie,{item:e,levelKey:"lvl2"}),a.createElement(ie,{item:e,levelKey:"lvl3"}))),!m&&!i&&o&&a.createElement(a.Fragment,null,a.createElement("p",{className:u,...O(e,"lvl3")}),!l&&a.createElement("p",{className:d},a.createElement(pe,{url:e.url,isNested:!0}),a.createElement("span",{...O(e,"lvl0")}),a.createElement(ie,{item:e,levelKey:"lvl2"}))),!m&&!i&&!o&&c&&a.createElement(a.Fragment,null,a.createElement("p",{className:u,...O(e,"lvl2")}),!l&&a.createElement("p",{className:d},a.createElement(pe,{url:e.url,isNested:!0}),a.createElement("span",{...O(e,"lvl0")}))),!m&&!i&&!o&&!c&&s&&a.createElement(a.Fragment,null,a.createElement("p",{className:u,...O(e,"lvl0")}),a.createElement(pe,{url:e.url})),(!l||e.content)&&a.createElement("p",{className:n.mergeClasses("text-secondary",l?"text-3xs":"text-2xs"),...Q(e)}))),!r&&a.createElement(M,null)))},xe=({item:e,onSelect:t,query:n})=>{return a.createElement(se,{value:`expo-blog-${e.slug.current}`,url:`https://expo.dev/blog/${e.slug.current}`,isExternalLink:!0,onSelect:t},a.createElement("div",{className:"inline-flex gap-3 items-center"},a.createElement("img",{src:(l=e.mainImage.image.asset._ref,V.image(l).auto("format").height(150).url()),alt:e.mainImage.altText,className:"size-11 object-cover rounded-md my-0.5"}),a.createElement("div",null,a.createElement("p",{className:"text-xs font-medium",dangerouslySetInnerHTML:{__html:re(e.title,n)}}),a.createElement("p",{className:"text-3xs text-quaternary",dangerouslySetInnerHTML:{__html:re(e.metadataDescription,n)}})),a.createElement(M,null)));var l};function Ee({className:e}){return a.createElement("span",{className:n.mergeClasses("dots-loader inline-flex",e)},Array.from({length:3}).map(((e,t)=>a.createElement("span",{key:t,className:"opacity-0",style:{animationDelay:.2*t+"s"}},"."))))}const he="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;he&&(he.Prism=A.Prism);let fe=null;function Ce(){return fe||(fe=(async()=>{await Promise.all([import("prismjs/components/prism-json"),import("prismjs/components/prism-yaml"),import("prismjs/components/prism-diff"),import("prismjs/components/prism-typescript"),import("prismjs/components/prism-tsx"),import("prismjs/components/prism-jsx"),import("prismjs/components/prism-bash"),import("prismjs/components/prism-kotlin"),import("prismjs/components/prism-swift"),import("prismjs/components/prism-markdown")])})()),fe}Ce().catch((()=>{}));const ve={sh:"bash"};function ye(e){return{value:e}}function be(e,t){if(!e||"object"!=typeof e)return null;if(a.isValidElement(e))return e.props;if(a.isValidElement(e)){const t=e.props.children;if(!Array.isArray(t))return be(t);for(const e of a.Children.toArray(t)){const t=be(e);if(t)return t}}return null}function Ne(e){return"string"==typeof e?e:Array.isArray(e)?e.map(Ne).join(""):function(e){return a.isValidElement(e)}(e)?Ne(e.props.children):""}function ke(e,t){if("string"==typeof e)return{...ye(e),language:t?t.split("-")[1]:"jsx"};const a=be(e);return{...ye(Ne(a?.children)),language:"string"==typeof a?.className?a.className.split("-")[1]:"jsx"}}function we({children:e,className:t}){const{value:l,language:r}=a.useMemo((()=>ke(e,t)),[e,t]),[s,c]=a.useState(!1);a.useEffect((()=>{let e=!0;return Ce().then((()=>{e&&c(!0)})),()=>{e=!1}}),[]);const o=a.useMemo((()=>"string"==typeof t&&t.length>0?t:a.isValidElement(e)&&"string"==typeof e.props.className?e.props.className:void 0),[e,t]),i=a.useMemo((()=>o??(r?`language-${r}`:void 0)),[o,r]),m=a.useMemo((()=>l?function(e,t){Ce().catch((()=>{}));let a=t?.split("-").at(-1)?.toLowerCase();if(!a)return e;a in ve&&(a=ve[a]);const n=A.Prism.languages[a];return n?A.Prism.highlight(e,n,a):e}(l,i):""),[l,i,s]),u=a.useMemo((()=>l??""),[l]),[d,p]=a.useState(!1);a.useEffect((()=>{if(!d)return;const e=setTimeout((()=>p(!1)),2e3);return()=>clearTimeout(e)}),[d]);return l?a.createElement("div",{className:"relative my-3"},a.createElement("pre",{className:n.mergeClasses("relative overflow-x-auto rounded-md border border-default bg-subtle px-4 py-3 text-2xs text-default shadow-xs","font-mono leading-[1.6]","dark:bg-element")},a.createElement("code",{className:n.mergeClasses("block min-w-fit whitespace-pre",o),dangerouslySetInnerHTML:{__html:m}})),a.createElement(n.Button,{type:"button",theme:"quaternary",size:"xs",className:"absolute right-3 top-3 inline-flex size-7 items-center justify-center rounded-full !border !border-default !bg-default !p-0 shadow-sm",onClick:()=>{u&&(navigator.clipboard?.writeText(u).catch((()=>{})),p(!0))},"aria-label":"Copy code block"},d?a.createElement(q.CheckIcon,{className:"icon-xs text-success","aria-hidden":!0}):a.createElement(y.ClipboardIcon,{className:"icon-xs text-icon-secondary","aria-hidden":!0}))):a.createElement("pre",{className:n.mergeClasses("relative my-3 overflow-x-auto rounded-md border border-default bg-subtle px-4 py-3 text-2xs text-default shadow-xs","font-mono leading-[1.6]")},e)}function Ie({conversation:e,isGeneratingAnswer:t,isPreparingAnswer:l,addFeedback:r,resetConversation:s,resetInput:c}){const[o,i]=a.useState(!1),[m,u]=a.useState(void 0),d=l||t,p=e?.getLatest();return a.createElement(a.Fragment,null,a.createElement(L,{isLoading:d}),a.createElement("div",{className:"result-container flex flex-col gap-3 !pt-3 w-full"},p?.isGenerationAborted&&a.createElement("div",{className:"text-xs bg-info text-info border border-info px-3 py-2.5 rounded-md"},"The generation has been aborted. Press Enter ",a.createElement("kbd",{className:"mx-0.5"},"↵")," to send a new question."),!d&&!p?.question&&a.createElement("div",{className:n.mergeClasses("flex flex-wrap text-xs size-full items-center justify-center text-quaternary","max-md-gutters:text-center max-md-gutters:px-5")},a.createElement("span",null,"Ask the question above and then press Enter ",a.createElement("kbd",{className:"mx-0.5"},"↵")," to send it.")),p?.question&&a.createElement("div",{className:"font-semibold mt-1 leading-relaxed"},'You asked: "',p?.question??"",'"'),l&&a.createElement("div",{className:"flex text-xs size-full items-center justify-center text-quaternary"},"Preparing answer",a.createElement(Ee,null)),a.createElement(S,{children:p?.answer?function(e){let t=e;return t=t.replace(/\[([^\]]+)\]\(([^)]+)\);/g,"[$1]($2) |"),t=t.replace(/\[([^\]]+)\]\(([^)]+)\)/g,"[$1]($2)"),t=t.replace(/(\]\([^)]+\));/g,"$1 |"),t=t.replace(/\[([^\]]+)\]\(([^)]+)\)/g,"Source: [$1]($2)"),t=t.replace(/([^.!?|,\s`])\s*Source:/g,"$1. Source:"),t=t.replace(/(^|\n)\s*\.\s*Source:/g,"$1Source:"),t=t.replace(/Source:\s*Source:/g,"Source:"),t=t.replace(/\|\s*\./g,"|"),t=t.replace(/\.\s*\|\s*/g," | "),t=t.replace(/\[([^\]]*)\](?!\()/g,"$1"),t=t.replace(/Source: \[\[/g,"Source: ["),t=t.replace(/(\]\([^)]+\))\]/g,"$1"),t=t.replace(/\]\]/g,"]"),t=t.replace(/\](\s*\||\s*$)/g,"$1"),t=t.replace(/^\s*•\s*/gm,"- "),t=t.replace(/^(\s*)(\d+)\)\s*/gm,"$1$2. "),t=t.replace(/:\s*```/g,":\n```"),/\b(no information|do not contain information|cannot find|no relevant information|no info|not enough information|knowledge sources[^.]*do not)\b/i.test(t)&&(t+="\n\nIf you have questions about Expo or related technologies, feel free to ask.\nIf this topic should be covered in the Expo docs, please request it by opening an issue: [Open an issue](https://github.com/expo/expo/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)."),t}(p.answer):"",options:a.useMemo((()=>({overrides:{a:{component:n.Link,props:{target:"_blank",rel:"noopener noreferrer",className:"text-link underline-offset-2 hocus:underline"}},pre:{component:we},code:{component:({className:e,...t})=>a.createElement("code",{...t,className:n.mergeClasses("inline-block rounded-md border border-default bg-subtle px-1 py-0.5 text-3xs font-medium leading-tight text-default",e)})},p:{component:({className:e,style:t,...l})=>a.createElement("p",{...l,style:{...t??{},fontSize:"14px",lineHeight:"1.55"},className:n.mergeClasses("mb-2 text-[10px] leading-[1.55] text-secondary",e)})},ol:{component:({className:e,style:t,...l})=>a.createElement("ol",{...l,style:{...t??{},fontSize:"14px",lineHeight:"1.55"},className:n.mergeClasses("mb-2 list-decimal pl-4 text-[10px] leading-normal text-secondary",e)})},ul:{component:({className:e,style:t,...l})=>a.createElement("ul",{...l,style:{...t??{},fontSize:"14px",lineHeight:"1.55"},className:n.mergeClasses("mb-2 list-disc pl-4 text-[10px] leading-normal text-secondary",e)})},li:{component:({className:e,style:t,...l})=>a.createElement("li",{...l,style:{...t??{},fontSize:"14px",lineHeight:"1.45"},className:n.mergeClasses("text-[10px] leading-[1.45] text-secondary",e)})}}})),[]),className:"prompt-result text-xs"}),!d&&p?.id&&a.createElement(a.Fragment,null,a.createElement("div",{className:n.mergeClasses("inline-flex items-center w-full gap-2 mt-1","max-md-gutters:flex-col")},a.createElement(n.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:a.createElement(y.ClipboardIcon,null),disabled:o,onClick:()=>{p?.answer&&(navigator.clipboard?.writeText(p.answer),i(!0),setTimeout((()=>i(!1)),1500))}},"Copy answer"),a.createElement(n.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:a.createElement(b.RefreshCcw02Icon,null),className:"mr-auto max-md-gutters:mx-auto",onClick:()=>{s?.(),c?.()}},"Reset conversation"),a.createElement("div",{className:n.mergeClasses("contents items-center w-full gap-x-2 gap-y-3","max-md-gutters:justify-center max-md-gutters:inline-flex")},a.createElement("p",{className:"text-tertiary text-2xs"},"Rate answer:"),a.createElement(n.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:m,leftSlot:!0===m?a.createElement(I.ThumbsUpSolidIcon,{className:"text-icon-success"}):a.createElement(k.ThumbsUpIcon,{className:"text-icon-success"}),onClick:()=>{r?.(p.id,"upvote"),u(!0)}}),a.createElement(n.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:m,leftSlot:!1===m?a.createElement(w.ThumbsDownSolidIcon,{className:"text-icon-danger"}):a.createElement(N.ThumbsDownIcon,{className:"text-icon-danger"}),onClick:()=>{r?.(p.id,"downvote"),u(!1)}}))),a.createElement("p",{className:n.mergeClasses("text-quaternary text-2xs my-1 mx-auto","max-md-gutters:mt-0.5")},"Expo AI assistant is an experimental feature."))))}function Se({label:e,isActive:t,onClick:l}){return a.createElement("div",{onClick:l,className:n.mergeClasses("flex items-center text-xs px-2.5 rounded-md h-full cursor-pointer transition text-tertiary whitespace-nowrap select-none min-h-8","hocus:bg-hover dark:hocus:bg-element","active:!scale-[0.975]","max-md-gutters:w-1/2 max-md-gutters:justify-center",t&&"mode-tab",t&&"bg-gradient-to-b from-palette-gray11 to-palette-black text-palette-white",t&&"dark:from-palette-gray12 dark:to-palette-white dark:text-palette-black")},e)}const qe=({config:{docsVersion:i,docsTransformUrl:m},open:u,setOpen:d,customSections:p=[]})=>{const[g,x]=a.useState(!1),[E,h]=a.useState(!0),[f,C]=a.useState(""),[v,y]=a.useState(null),[b,N]=a.useState(!1),k=a.useRef(null),{conversation:w,submitQuery:I,isGeneratingAnswer:S,isPreparingAnswer:q,addFeedback:A,stopGeneration:H,resetConversation:M}=t.useChat(),[$,T]=a.useState([]),[z,_]=a.useState([]),[P,R]=a.useState([]),[V,F]=a.useState([]),O=async()=>D(f,K,T,i),Z=async()=>(async(e,t,a)=>{a(await t(e))})(f,U,_),Q=async()=>D(f,G,R),X=async()=>D(f,B,F),W=()=>d(!1),J=w.getLatest(),Y=e=>{Promise.all([O(),Z(),Q(),X(),...p?.map((e=>e.getItemsAsync(f)))]).then(e)},ee=()=>{if(u&&!b){h(!0);const e=setTimeout((()=>{Y((()=>h(!1)))}),500);return()=>clearTimeout(e)}},te=e=>{if("Tab"===e.key&&(e.preventDefault(),N((e=>!e)),k?.current?.focus()),b&&"Enter"===e.key&&(e.preventDefault(),f.length>0)){if(q||S)return void H();if(J?.question===f&&!J?.isGenerationAborted)return;M(),h(!0),I(f),C("")}};a.useEffect((()=>{y("undefined"!=typeof navigator&&le())}),[]),a.useEffect((()=>{q||S||h(!1)}),[q,S]),a.useEffect((()=>{b||ee()}),[b]),a.useEffect((()=>{if(null!==v){const e=e=>{"k"===e.key&&(v?e.metaKey:e.ctrlKey)&&(e.preventDefault(),d((e=>!e)))};return document.addEventListener("keydown",e,!1),()=>document.removeEventListener("keydown",e)}}),[v]),a.useEffect((()=>{if(u&&!g&&Y((()=>{x(!0),h(!1)})),u)return document.addEventListener("keydown",te,!1),()=>document.removeEventListener("keydown",te);document.removeEventListener("keydown",te)}),[u,b,J,f]),a.useEffect(ee,[f]);const ae=o($.map((e=>({...e,baseUrl:e.url.replace(/#.+/,"")}))),"baseUrl"),ne=[f.length>10&&0===$.length&&a.createElement(e.Command.Group,{heading:"Ask AI",key:"expo-ai-prompt"},a.createElement(se,{value:"expo-ai-prompt",onSelect:()=>{N(!0)}},a.createElement("div",{className:"inline-flex gap-3 items-center"},a.createElement(s.Stars02Icon,{className:"text-icon-secondary"}),a.createElement("div",{className:"flex flex-col"},a.createElement("p",{className:"text-xs font-medium leading-snug"},"Ask Expo's AI assistant"),a.createElement("p",{className:"text-2xs text-tertiary leading-snug"},"Experimental feature"))))),$.length>0&&a.createElement(e.Command.Group,{heading:"Expo documentation",key:"expo-docs-group"},Object.values(ae).map((e=>e.sort(((e,t)=>e.url.localeCompare(e.baseUrl)-t.url.localeCompare(t.baseUrl))).slice(0,6).map(((e,t)=>a.createElement(ge,{isNested:0!==t,item:e,onSelect:W,key:`hit-expo-docs-${e.objectID}`,transformUrl:m})))))),z.length>0&&a.createElement(e.Command.Group,{heading:"Expo blog",key:"expo-blog-group"},z.map((e=>a.createElement(xe,{item:e,onSelect:W,key:`hit-expo-blog-${e.slug.current}`,query:f})))),P.length>0&&a.createElement(e.Command.Group,{heading:"React Native documentation",key:"rn-docs-group"},P.map((e=>a.createElement(me,{item:e,onSelect:W,key:`hit-rn-docs-${e.objectID}`})))),V.length>0&&a.createElement(e.Command.Group,{heading:"React Native directory",key:"rn-directory-group"},V.map((e=>a.createElement(oe,{item:e,onSelect:W,key:`hit-rn-dir-${e.npmPkg}`,query:f}))))];p?.forEach((({items:t,heading:n,sectionIndex:l})=>t.length>0&&ne.splice(l,0,a.createElement(e.Command.Group,{heading:n,key:`${l}-${n}`},t))));const re=b?l.MessageQuestionCircleIcon:r.SearchSmIcon;return a.createElement(e.Command.Dialog,{open:u,onOpenChange:d,label:"Search Menu",shouldFilter:!1},a.createElement("div",{className:n.mergeClasses("relative flex px-4 gap-x-3 border-b border-secondary","max-md-gutters:flex-col")},a.createElement("div",{className:"flex relative w-full overflow-hidden"},a.createElement(re,{className:"text-icon-tertiary absolute top-[29px] left-[13px] transition-opacity duration-200"}),a.createElement("div",{className:n.mergeClasses("absolute top-[25px] right-[9px] z-[101] cursor-pointer p-1 rounded-sm","hocus:bg-element","active:scale-[0.975]")},a.createElement(c.XIcon,{className:"text-icon-tertiary",onClick:()=>C("")})),a.createElement(e.Command.Input,{value:f,onValueChange:C,placeholder:b?"Ask AI…":"Search…",autoFocus:!0,ref:k})),a.createElement("div",{className:n.mergeClasses("tabs-container relative flex mt-4 mb-3 px-1.5 py-1.5 gap-1 items-center rounded-lg border border-palette-gray5 bg-subtle","dark:bg-screen dark:border-palette-gray4","max-md-gutters:mt-0",b&&"tabs-container-ai")},a.createElement(Se,{label:"Search",isActive:!b,onClick:()=>{N(!1),k?.current?.focus()}}),a.createElement(Se,{label:"Ask AI",isActive:b,onClick:()=>{N(!0),f.length>0&&(w.getLatest()||(h(!0),I(f),C(""))),k?.current?.focus()}}))),a.createElement(L,{isLoading:E}),a.createElement("div",{className:"relative"},a.createElement("div",{className:n.mergeClasses("pointer-events-none absolute left-0 -top-px z-10 h-6 w-[calc(100%-8px)]","bg-gradient-to-b from-default to-transparent opacity-90")}),b?a.createElement(Ie,{conversation:w,isGeneratingAnswer:S,isPreparingAnswer:q,addFeedback:A,resetConversation:M,resetInput:()=>C("")}):a.createElement(e.Command.List,null,g&&ne,0===ne.filter(Boolean).length&&a.createElement(e.Command.Empty,{key:"no-results-group"},a.createElement("p",{className:"text-secondary text-xs"},"No results found."))),a.createElement("div",{className:n.mergeClasses("pointer-events-none absolute left-0 -bottom-px z-10 h-6 w-[calc(100%-8px)]","bg-gradient-to-t from-default to-transparent opacity-90")})),a.createElement(j,{isPromptMode:b}))},Ae=e.Command.Item;exports.CommandItemBase=Ae,exports.CommandItemBaseWithCopy=se,exports.CommandMenu=e=>a.createElement(t.KapaProvider,{userTrackingMode:"none",integrationId:"bf5bd579-bb83-4591-8cc9-d87b6cdcb712",callbacks:{}},a.createElement(qe,{...e})),exports.CommandMenuTrigger=({setOpen:e,className:t})=>{const[l,s]=a.useState(null);return a.useEffect((()=>{s("undefined"!=typeof navigator&&le())}),[]),a.createElement(n.Button,{theme:"secondary",leftSlot:a.createElement(r.SearchSmIcon,{className:"icon-md text-icon-secondary"}),rightSlot:null!==l?a.createElement("div",{className:"ml-auto max-md-gutters:hidden"},a.createElement("kbd",{className:"!h-5 !leading-[19px]"},l?"⌘":"Ctrl")," ",a.createElement("kbd",{className:"!h-5 !leading-[19px]"},"K")):void 0,className:n.mergeClasses("cmdk-trigger bg-default pl-2.5 pr-3 border border-default shadow-xs min-h-[40px]",t),onClick:()=>e(!0)},a.createElement("p",{className:"text-secondary font-normal leading-normal text-xs"},"Search"))},exports.addHighlight=re;
1
+ "use strict";var e=require("cmdk"),t=require("@kapaai/react-sdk"),n=require("react"),a=require("@expo/styleguide"),r=require("@expo/styleguide-icons/outline/MessageQuestionCircleIcon"),l=require("@expo/styleguide-icons/outline/SearchSmIcon"),s=require("@expo/styleguide-icons/outline/Stars02Icon"),o=require("@expo/styleguide-icons/outline/XIcon"),c=require("lodash.groupby"),i=require("@expo/styleguide-icons/outline/ArrowUpRightIcon"),m=require("@expo/styleguide-icons/outline/ChevronRightIcon"),u=require("@sanity/client"),d=require("@sanity/image-url"),p=require("@expo/styleguide-icons/custom/GithubIcon"),g=require("@expo/styleguide-icons/outline/Download01Icon"),x=require("@expo/styleguide-icons/outline/Star01Icon"),h=require("@expo/styleguide-icons/custom/PlanEnterpriseIcon"),E=require("@expo/styleguide-icons/outline/BookOpen02Icon"),f=require("@expo/styleguide-icons/outline/GraduationHat02Icon"),C=require("@expo/styleguide-icons/outline/Hash02Icon"),v=require("@expo/styleguide-icons/outline/Home02Icon"),y=require("@expo/styleguide-icons/outline/ClipboardIcon"),b=require("@expo/styleguide-icons/outline/RefreshCcw02Icon"),N=require("@expo/styleguide-icons/outline/ThumbsDownIcon"),k=require("@expo/styleguide-icons/outline/ThumbsUpIcon"),w=require("@expo/styleguide-icons/solid/ThumbsDownSolidIcon"),S=require("@expo/styleguide-icons/solid/ThumbsUpSolidIcon"),I=require("markdown-to-jsx"),q=require("@expo/styleguide-icons/outline/CheckIcon"),L=require("prism-react-renderer");const $=({isLoading:e,className:t})=>n.createElement("div",{role:"progressbar",className:a.mergeClasses("bg-palette-blue9 h-0.5 absolute z-20",e&&"animate-[searchUIBarLoader_2s_infinite_ease-in-out]",t)});function A(){return n.createElement(m.ChevronRightIcon,{className:"icon-xs text-icon-quaternary inline-block relative mx-1 -top-px"})}const M=()=>n.createElement(i.ArrowUpRightIcon,{className:"text-icon-tertiary self-center ml-auto shrink-0"}),H=({className:e})=>n.createElement("svg",{viewBox:"-11.5 -10.23174 23 20.46348",className:a.mergeClasses("icon-md text-icon-secondary",e)},n.createElement("circle",{cx:"0",cy:"0",r:"2.05",fill:"currentColor"}),n.createElement("g",{stroke:"currentColor",strokeWidth:"1",fill:"none"},n.createElement("ellipse",{rx:"11",ry:"4.2"}),n.createElement("ellipse",{rx:"11",ry:"4.2",transform:"rotate(60)"}),n.createElement("ellipse",{rx:"11",ry:"4.2",transform:"rotate(120)"}))),_=({className:e})=>n.createElement("svg",{width:"77",height:"19",viewBox:"0 0 2197 500",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-label":"Algolia",className:e,role:"img"},n.createElement("g",{clipPath:"url(#clip0_1_2)"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1070.38 275.3V5.90999C1070.38 2.27998 1067.14 -0.480015 1063.56 0.0799852L1013.1 8.01999C1010.23 8.46999 1008.11 10.95 1008.11 13.86L1008.28 287.08C1008.28 300 1008.28 379.78 1104.25 382.57C1107.58 382.67 1110.34 379.99 1110.34 376.66V335.88C1110.34 332.92 1108.15 330.37 1105.22 330.04C1070.37 326.03 1070.37 282.47 1070.37 275.32L1070.38 275.3Z"}),n.createElement("path",{d:"M1902.56 104.73H1851.78C1848.52 104.73 1845.88 107.372 1845.88 110.63V376.73C1845.88 379.988 1848.52 382.63 1851.78 382.63H1902.56C1905.82 382.63 1908.46 379.988 1908.46 376.73V110.63C1908.46 107.372 1905.82 104.73 1902.56 104.73Z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1851.78 71.38H1902.55C1905.81 71.38 1908.45 68.74 1908.45 65.48V5.90001C1908.45 2.28001 1905.21 -0.489988 1901.63 0.0700121L1850.86 8.02001C1847.99 8.47001 1845.87 10.94 1845.87 13.85V65.47C1845.87 68.73 1848.51 71.37 1851.77 71.37L1851.78 71.38Z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1764.03 275.3V5.90999C1764.03 2.27998 1760.79 -0.480015 1757.21 0.0799852L1706.75 8.01999C1703.88 8.46999 1701.76 10.95 1701.76 13.86L1701.93 287.08C1701.93 300 1701.93 379.78 1797.9 382.57C1801.23 382.67 1803.99 379.99 1803.99 376.66V335.88C1803.99 332.92 1801.8 330.37 1798.87 330.04C1764.02 326.03 1764.02 282.47 1764.02 275.32L1764.03 275.3Z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1631.95 142.72C1620.81 130.47 1607.12 121.07 1591.17 114.41C1575.25 107.88 1557.91 104.56 1539.1 104.56C1520.32 104.56 1502.95 107.73 1487.18 114.41C1471.59 121.07 1457.89 130.46 1446.42 142.72C1434.95 154.95 1426.04 169.59 1419.66 186.75C1413.28 203.92 1410.42 224.12 1410.42 245.11C1410.42 266.1 1413.61 281.98 1419.97 299.32C1426.35 316.64 1435.11 331.43 1446.42 343.68C1457.71 355.91 1471.25 365.3 1487.02 372.14C1502.79 378.97 1527.14 382.47 1539.42 382.62C1551.67 382.62 1576.2 378.8 1592.12 372.14C1608.04 365.46 1621.58 355.91 1632.9 343.68C1644.19 331.43 1652.95 316.64 1659.15 299.32C1665.37 281.98 1668.39 266.1 1668.39 245.11C1668.39 224.12 1665.05 203.92 1658.36 186.75C1651.98 169.58 1643.22 154.95 1631.93 142.72H1631.95ZM1587.52 306.47C1576.05 322.22 1559.96 330.17 1539.43 330.17C1518.88 330.17 1502.8 322.37 1491.33 306.47C1479.86 290.72 1474.12 272.46 1474.12 245.27C1474.12 218.38 1479.71 196.13 1491.18 180.4C1502.63 164.65 1518.72 156.88 1539.25 156.88C1559.8 156.88 1575.88 164.66 1587.34 180.4C1598.81 195.97 1604.7 218.38 1604.7 245.27C1604.7 272.46 1598.98 290.57 1587.51 306.47H1587.52Z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M894.42 104.73H845.09C796.73 104.73 754.18 130.21 729.34 168.83C714.82 191.41 706.35 218.46 706.35 247.56C706.35 292.45 726.48 332.48 757.94 358.66C760.87 361.26 763.99 363.64 767.25 365.8C780.11 374.29 795.36 379.27 811.77 379.27C813 379.27 814.23 379.24 815.45 379.18C815.81 379.16 816.16 379.13 816.52 379.11C817.39 379.06 818.27 379 819.14 378.91C819.48 378.88 819.82 378.83 820.16 378.79C821.07 378.69 821.98 378.58 822.89 378.45C823.1 378.42 823.31 378.38 823.52 378.35C856.41 373.28 885.08 347.53 894.42 315.54V373.37C894.42 376.63 897.06 379.27 900.32 379.27H950.74C954 379.27 956.64 376.63 956.64 373.37V110.63C956.64 107.37 954 104.73 950.74 104.73H894.42ZM894.42 311.65C882.22 321.81 866.45 325.63 849.58 326.77C849.42 326.78 849.25 326.8 849.09 326.81C847.97 326.88 846.85 326.91 845.73 326.91C803.49 326.91 768.61 291.02 768.61 247.54C768.61 237.29 770.57 227.53 774.03 218.56C785.25 189.44 812.8 168.82 845.09 168.82H894.42V311.65Z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2133.97 104.73H2084.64C2036.28 104.73 1993.73 130.21 1968.89 168.83C1954.37 191.41 1945.9 218.46 1945.9 247.56C1945.9 292.45 1966.03 332.48 1997.49 358.66C2000.42 361.26 2003.54 363.64 2006.8 365.8C2019.66 374.29 2034.91 379.27 2051.32 379.27C2052.55 379.27 2053.78 379.24 2055 379.18C2055.36 379.16 2055.71 379.13 2056.07 379.11C2056.94 379.06 2057.82 379 2058.69 378.91C2059.03 378.88 2059.37 378.83 2059.71 378.79C2060.62 378.69 2061.53 378.58 2062.44 378.45C2062.65 378.42 2062.86 378.38 2063.07 378.35C2095.96 373.28 2124.63 347.53 2133.97 315.54V373.37C2133.97 376.63 2136.61 379.27 2139.87 379.27H2190.29C2193.55 379.27 2196.19 376.63 2196.19 373.37V110.63C2196.19 107.37 2193.55 104.73 2190.29 104.73H2133.97ZM2133.97 311.65C2121.77 321.81 2106 325.63 2089.13 326.77C2088.97 326.78 2088.8 326.8 2088.64 326.81C2087.52 326.88 2086.4 326.91 2085.28 326.91C2043.04 326.91 2008.16 291.02 2008.16 247.54C2008.16 237.29 2010.12 227.53 2013.58 218.56C2024.8 189.44 2052.35 168.82 2084.64 168.82H2133.97V311.65Z"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1314.05 104.73H1264.72C1216.36 104.73 1173.81 130.21 1148.97 168.83C1137.18 187.17 1129.37 208.47 1126.86 231.42C1126.28 236.72 1125.98 242.1 1125.98 247.56C1125.98 253.02 1126.29 258.71 1126.91 264.15C1131.19 302.24 1150.05 335.76 1177.57 358.67C1180.5 361.27 1183.62 363.65 1186.88 365.81C1199.74 374.3 1214.99 379.28 1231.4 379.28C1249.39 379.28 1266.01 373.35 1279.56 363.31C1295.85 351.73 1308.44 334.77 1314.04 315.56V365.82H1313.93V376.9C1313.93 398.74 1308.22 415.17 1296.59 426.26C1284.98 437.34 1265.55 442.89 1238.34 442.89C1227.22 442.89 1209.55 442.3 1191.74 440.48C1188.91 440.19 1186.28 441.98 1185.47 444.7L1172.69 487.81C1171.67 491.27 1173.96 494.83 1177.52 495.34C1199.04 498.42 1220.04 500.02 1232.17 500.02C1281.08 500.02 1317.33 489.27 1341.06 467.81C1362.54 448.4 1374.21 418.92 1376.26 379.29V110.63C1376.26 107.37 1373.62 104.73 1370.36 104.73H1314.04H1314.05ZM1314.05 168.83C1314.05 168.83 1314.7 307.96 1314.05 312.19C1301.97 321.96 1286.94 325.78 1270.56 326.89C1270.4 326.9 1270.23 326.92 1270.07 326.93C1268.95 327 1267.83 327.03 1266.71 327.03C1265.39 327.03 1264.08 327 1262.77 326.93C1222.36 324.82 1188.25 289.67 1188.25 247.55C1188.25 237.3 1190.21 227.54 1193.67 218.57C1204.89 189.45 1232.44 168.83 1264.73 168.83H1314.06H1314.05Z"}),n.createElement("path",{d:"M249.83 0C113.3 0 2.00001 110.09 0.0300098 246.16C-1.96999 384.35 110.15 498.86 248.36 499.66C291.04 499.91 332.15 489.47 368.66 469.63C372.22 467.7 372.77 462.8 369.74 460.12L346.36 439.4C341.61 435.19 334.85 434 329 436.48C303.52 447.32 275.83 452.86 247.29 452.51C135.61 451.14 45.38 358.22 47.16 246.55C48.92 136.29 139.16 47.14 249.83 47.14H452.52V407.41L337.52 305.23C333.8 301.92 328.1 302.57 325.1 306.54C306.64 330.98 276.57 346.18 243.17 343.88C196.84 340.68 159.3 303.38 155.83 257.07C151.68 201.83 195.46 155.55 249.83 155.55C299.01 155.55 339.51 193.4 343.74 241.5C344.12 245.78 346.05 249.77 349.26 252.62L379.21 279.17C382.61 282.18 388 280.34 388.84 275.87C391 264.32 391.76 252.29 390.91 239.95C386.09 169.61 329.11 113.02 258.74 108.69C178.06 103.72 110.61 166.83 108.47 245.94C106.38 323.04 169.55 389.5 246.66 391.2C278.85 391.91 308.69 381.79 332.8 364.25L483.06 497.45C489.5 503.16 499.67 498.59 499.67 489.98V9.48C499.66 4.25 495.42 0 490.18 0H249.83Z"})),n.createElement("defs",null,n.createElement("clipPath",null,n.createElement("rect",{width:2196.2,height:500})))),T=({className:e})=>n.createElement("svg",{height:"19",width:"72",viewBox:"0 0 989 262",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:e},n.createElement("path",{d:"m345.202 187.216c-1.602 0-2.9-1.3-2.898-2.903l.192-131.3758c.003-1.599 1.3-2.8941 2.899-2.8941h21.913c1.601 0 2.899 1.2977 2.899 2.8983v68.9056c0 2.83 3.639 3.982 5.268 1.668l30.607-43.4845c.543-.7712 1.427-1.2301 2.37-1.2301h26.556c2.365 0 3.734 2.6785 2.35 4.5952l-34.565 47.8594c-.751 1.04-.73 2.45.053 3.466l36.845 47.828c1.468 1.905.11 4.667-2.296 4.667h-28.159c-.933 0-1.808-.449-2.353-1.206l-31.425-43.693c-1.644-2.285-5.251-1.123-5.251 1.692v40.308c0 1.601-1.298 2.899-2.899 2.899z"}),n.createElement("path",{d:"m477.369 190.227c-7.763 0-14.355-1.472-19.776-4.417-5.354-3.011-9.436-6.993-12.247-11.945-2.744-5.02-4.116-10.541-4.116-16.564 0-5.019.77-9.603 2.309-13.753 1.539-4.149 4.016-7.796 7.429-10.941 3.48-3.213 8.131-5.89 13.953-8.031 4.016-1.473 8.801-2.778 14.355-3.915 5.555-1.138 11.846-2.209 18.872-3.213 4.589-.699 9.476-1.441 14.664-2.225 1.701-.258 2.481 2.042.974 2.873-1.028.566-2.292-.179-2.378-1.35-.372-5.108-1.881-8.956-4.526-11.544-3.079-3.012-8.232-4.518-15.459-4.518-4.016 0-8.198.971-12.548 2.911-3.548 1.583-6.228 4.168-8.04 7.754-.706 1.398-2.282 2.21-3.774 1.737l-19.281-6.114c-1.515-.48-2.37-2.096-1.811-3.583 2.906-7.7358 7.751-14.125 14.535-19.1678 7.563-5.6216 17.869-8.4323 30.919-8.4323 9.57 0 18.069 1.4723 25.497 4.4169 7.429 2.9446 13.05 8.0307 16.865 15.2584 2.142 4.0154 3.413 8.0308 3.815 12.0458.401 4.016.602 8.5.602 13.452v63.355c0 1.601-1.298 2.899-2.898 2.899h-18.095c-1.601 0-2.899-1.298-2.899-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.002 1.796-5.102 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.82 4.818-23.189 4.818zm5.822-21.482c5.019 0 9.236-.87 12.649-2.61 3.48-1.807 6.223-3.848 8.231-6.123 2.075-2.276 3.48-4.183 4.216-5.722 1.406-2.945 2.209-6.358 2.41-10.24.211-3.117.339-5.818.383-8.101.017-.882.847-1.529 1.703-1.315 1.428.357 1.345 2.42-.106 2.665-5.205.882-9.612 1.66-13.224 2.334-5.019.87-9.068 1.674-12.146 2.41-3.079.736-5.789 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.811 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.602 4.617 1.807 6.424 1.271 1.74 3.045 3.079 5.32 4.016s4.986 1.405 8.131 1.405z"}),n.createElement("path",{d:"m611.484 190.227c-10.774 0-19.775-2.509-27.003-7.529-7.228-5.019-12.682-11.845-16.363-20.478-3.614-8.633-5.421-18.37-5.421-29.212 0-10.841 1.807-20.579 5.421-29.212 3.614-8.6329 8.934-15.4591 15.961-20.4783s15.694-7.5288 26-7.5288c10.373 0 19.408 2.4761 27.104 7.4284s13.652 11.745 17.868 20.3777c4.283 8.567 6.425 18.371 6.425 29.413 0 10.842-2.108 20.579-6.324 29.212-4.15 8.633-9.972 15.459-17.467 20.478-7.496 5.02-16.229 7.529-26.201 7.529zm-50.506 45.173c-1.601 0-2.898-1.297-2.898-2.898v-150.8033c0-1.6007 1.297-2.8983 2.898-2.8983h18.296c1.6 0 2.898 1.2976 2.898 2.8983v69.6793c0 .943.764 1.707 1.706 1.707.943 0 1.707.764 1.707 1.707v77.71c0 1.601-1.298 2.898-2.898 2.898zm46.089-69.466c5.89 0 10.708-1.472 14.456-4.417 3.747-2.944 6.525-6.893 8.332-11.845 1.807-5.019 2.71-10.574 2.71-16.664 0-6.023-.937-11.511-2.811-16.463-1.874-5.019-4.785-9.001-8.733-11.946-3.882-3.011-8.868-4.517-14.958-4.517-5.688 0-10.306 1.372-13.853 4.116-3.48 2.744-6.023 6.592-7.629 11.544s-2.409 10.708-2.409 17.266c0 6.559.803 12.314 2.409 17.266 1.606 4.953 4.216 8.801 7.83 11.544 3.681 2.744 8.566 4.116 14.656 4.116z"}),n.createElement("path",{d:"m707.657 190.227c-7.763 0-14.355-1.472-19.775-4.417-5.354-3.011-9.437-6.993-12.247-11.945-2.744-5.02-4.116-10.541-4.116-16.564 0-5.019.77-9.603 2.309-13.753 1.539-4.149 4.015-7.796 7.428-10.941 3.48-3.213 8.131-5.89 13.954-8.031 4.015-1.473 8.8-2.778 14.355-3.915 5.554-1.138 11.845-2.209 18.872-3.213 4.588-.699 9.476-1.441 14.663-2.225 1.702-.258 2.482 2.042.974 2.873-1.027.566-2.292-.179-2.377-1.35-.372-5.108-1.881-8.956-4.526-11.544-3.079-3.012-8.232-4.518-15.46-4.518-4.015 0-8.198.971-12.548 2.911-3.548 1.583-6.227 4.168-8.039 7.754-.706 1.398-2.282 2.21-3.775 1.737l-19.281-6.114c-1.514-.48-2.369-2.096-1.81-3.583 2.906-7.7358 7.751-14.125 14.535-19.1678 7.562-5.6216 17.868-8.4323 30.918-8.4323 9.57 0 18.069 1.4723 25.498 4.4169 7.428 2.9446 13.05 8.0307 16.865 15.2584 2.141 4.0154 3.413 8.0308 3.814 12.0458.402 4.016.603 8.5.603 13.452v63.355c0 1.601-1.298 2.899-2.899 2.899h-18.095c-1.6 0-2.898-1.298-2.898-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.001 1.796-5.101 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.819 4.818-23.189 4.818zm5.823-21.482c5.019 0 9.235-.87 12.648-2.61 3.48-1.807 6.224-3.848 8.232-6.123 2.074-2.276 3.48-4.183 4.216-5.722 1.405-2.945 2.208-6.358 2.409-10.24.211-3.117.339-5.818.384-8.101.017-.882.847-1.529 1.702-1.315 1.428.357 1.346 2.42-.105 2.665-5.205.882-9.613 1.66-13.224 2.334-5.019.87-9.068 1.674-12.147 2.41-3.078.736-5.788 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.81 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.603 4.617 1.807 6.424 1.272 1.74 3.045 3.079 5.321 4.016 2.275.937 4.985 1.405 8.131 1.405z"}),n.createElement("path",{d:"m795.884 187.216c-1.601 0-2.898-1.298-2.898-2.899v-21.508c0-1.6 1.297-2.898 2.898-2.898h21.508c1.601 0 2.899 1.298 2.899 2.898v21.508c0 1.601-1.298 2.899-2.899 2.899z"}),n.createElement("path",{d:"m876.97 190.227c-7.763 0-14.355-1.472-19.776-4.417-5.353-3.011-9.436-6.993-12.247-11.945-2.743-5.02-4.115-10.541-4.115-16.564 0-5.019.769-9.603 2.309-13.753 1.539-4.149 4.015-7.796 7.428-10.941 3.48-3.213 8.131-5.89 13.954-8.031 4.015-1.473 8.8-2.778 14.355-3.915 5.554-1.138 11.845-2.209 18.872-3.213 4.588-.699 9.476-1.441 14.663-2.225 1.702-.258 2.482 2.042.974 2.873-1.027.566-2.292-.179-2.377-1.35-.372-5.108-1.881-8.956-4.527-11.544-3.078-3.012-8.231-4.518-15.459-4.518-4.015 0-8.198.971-12.548 2.911-3.548 1.583-6.228 4.168-8.039 7.754-.706 1.398-2.282 2.21-3.775 1.737l-19.281-6.114c-1.515-.48-2.37-2.096-1.811-3.583 2.907-7.7358 7.752-14.125 14.536-19.1678 7.562-5.6216 17.868-8.4323 30.918-8.4323 9.57 0 18.069 1.4723 25.498 4.4169 7.428 2.9446 13.05 8.0307 16.864 15.2584 2.142 4.0154 3.413 8.0308 3.815 12.0458.401 4.016.602 8.5.602 13.452v63.355c0 1.601-1.297 2.899-2.898 2.899h-18.095c-1.601 0-2.898-1.298-2.898-2.899v-14.76c0-1.47 1.876-2.088 2.75-.906.395.534.399 1.264.001 1.796-5.102 6.832-10.603 11.819-16.504 14.962-6.09 3.212-13.82 4.818-23.189 4.818zm5.823-21.482c5.019 0 9.235-.87 12.648-2.61 3.48-1.807 6.224-3.848 8.232-6.123 2.074-2.276 3.479-4.183 4.216-5.722 1.405-2.945 2.208-6.358 2.409-10.24.211-3.117.339-5.818.384-8.101.017-.882.846-1.529 1.702-1.315 1.428.357 1.345 2.42-.106 2.665-5.204.882-9.612 1.66-13.223 2.334-5.019.87-9.068 1.674-12.147 2.41-3.078.736-5.789 1.539-8.131 2.409-2.677 1.071-4.852 2.242-6.525 3.513-1.606 1.205-2.811 2.543-3.614 4.016-.736 1.472-1.104 3.112-1.104 4.919 0 2.476.602 4.617 1.807 6.424 1.272 1.74 3.045 3.079 5.32 4.016 2.276.937 4.986 1.405 8.132 1.405z"}),n.createElement("path",{d:"m962.788 63.7427c-1.601 0-2.899-1.2976-2.899-2.8983v-18.2957c0-1.6007 1.298-2.8983 2.899-2.8983h21.508c1.6 0 2.898 1.2976 2.898 2.8983v18.2957c0 1.6007-1.298 2.8983-2.898 2.8983zm0 123.4733c-1.601 0-2.899-1.298-2.899-2.899v-102.6183c0-1.6007 1.298-2.8983 2.899-2.8983h21.508c1.6 0 2.898 1.2976 2.898 2.8983v102.6183c0 1.601-1.298 2.899-2.898 2.899z"}),n.createElement("path",{d:"m195.824.5c36.051 0 65.277 29.2254 65.277 65.2764v130.4476c0 36.051-29.226 65.276-65.277 65.276h-130.447c-36.051 0-65.276414-29.225-65.276414-65.276v-130.4476c0-36.051 29.225414-65.2764 65.276414-65.2764zm-116.5564 56.5498c-.9608 0-1.7401.7785-1.7403 1.7393v136.5899c0 .961.7794 1.74 1.7403 1.74h30.3914c.961 0 1.74-.779 1.74-1.74v-38.541c0-.961.779-1.74 1.74-1.74h14.775c.614 0 1.182.323 1.495.851l23.995 40.32c.313.527.881.85 1.495.85h35.002c1.36 0 2.194-1.49 1.483-2.65l-34.842-56.785c-.357-.582-.341-1.319.042-1.884l34.817-51.466c.781-1.1555-.046-2.7149-1.442-2.7149h-34.843c-.608 0-1.172.3172-1.487.837l-24.899 41.0349c-.316.52-.88.838-1.488.838h-14.103c-.961 0-1.74-.779-1.74-1.74v-63.7999c0-.9609-.779-1.7392-1.74-1.7393z"}));function z({isPromptMode:e}){return n.createElement("div",{className:"flex gap-4 px-4 h-11 items-center border-t border-secondary"},n.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden"},n.createElement("kbd",null,"↵"),n.createElement("span",null,"to ",e?"send question":"select")),!e&&n.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden"},n.createElement("kbd",null,"↑"),n.createElement("kbd",null,"↓"),n.createElement("span",null,"to navigate")),n.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden"},n.createElement("kbd",null,"tab"),n.createElement("span",null,"to switch mode")),n.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center max-md-gutters:hidden"},n.createElement("kbd",null,"esc"),n.createElement("span",null,"to close")),e?n.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-1.5 items-center ml-auto"},n.createElement("span",null,"AI assistant by"),n.createElement("a",{href:"https://www.kapa.ai/",target:"_blank"},n.createElement(T,{className:"hocus:opacity-80"}))):n.createElement("p",{className:"text-3xs text-tertiary inline-flex gap-2 items-center ml-auto"},n.createElement("span",null,"Search by"),n.createElement("a",{href:"https://www.algolia.com/developers/?utm_medium=referral&utm_content=powered_by&utm_source=expo.dev.com&utm_campaign=docsearch",target:"_blank"},n.createElement(_,{className:"hocus:opacity-80"}))))}const j="9r24npb8",R="production",P=u.createClient({projectId:j,dataset:R,useCdn:!0,apiVersion:"v2025-02-19"}),V=d({projectId:j,dataset:R});const D=async(e,t,n,a)=>{const{hits:r,libraries:l}=await t(e,a).then((e=>e.json()));n(r||l||[])},F=(e,t,n,a,r,l={})=>[`https://${t}-dsn.algolia.net/1/indexes/${a}/query`,{method:"POST",headers:{"X-Algolia-Application-Id":t,"X-Algolia-API-Key":n},body:JSON.stringify({params:`query=${e}&hitsPerPage=${r}`,highlightPreTag:"<mark>",highlightPostTag:"</mark>",getRankingInfo:!0,...l})}],K=e=>`"${e.replace(/"/g,'\\"')}"`,U=(e,t,n)=>{const a=(r=n?.sectionContext,r?[r.group?`group:${K(r.group)}`:null,r.section?`section:${K(r.section)}`:null,r.mainSection?`mainSection:${K(r.mainSection)}`:null].filter(Boolean):[]);var r;return fetch(...F(e,"QEX7PB7D46","6652d26570e8628af4601e1d78ad456b","expo",20,{facetFilters:[["version:none",`version:${t}`]],...a.length&&{optionalFilters:a,sumOrFiltersScores:!0,ruleContexts:n?.ruleContexts},attributesToRetrieve:["*","mainSection","section","group","weight"]}))},B=e=>fetch(...F(e,"8TDSE0OHGQ","c9c791d9d5fd7f315d7f3859b32c1f3b","react-native-v2",5,{facetFilters:[["version:current"]]})),G=e=>P.fetch(`*[_type == "post" && publishAt < now() && (title match "${e}*" || metadataDescription match "${e}*")] | order(publishAt desc)[0...10] {\n title,\n slug,\n tags,\n metadataDescription,\n mainImage\n }`),O=e=>fetch(`https://reactnative.directory/api/libraries?search=${encodeURI(e)}&limit=5`),Z=(e,t)=>({dangerouslySetInnerHTML:{__html:e._highlightResult.hierarchy[`${t}`]?.value||""}}),X=(e,t=36)=>{if(!e||!e.length)return"";const n=Math.max(e.indexOf("<mark>")-t,0),a=Math.min(e.indexOf("</mark>")+t+6,e.length);return`${0!==n?"…":""}${e.substring(n,a).trim()}${a!==e.length?"…":""}`},Q=(e,t=!1)=>t?{}:{dangerouslySetInnerHTML:{__html:e._highlightResult.content?.value?X(e._highlightResult.content?.value):X(e._highlightResult.hierarchy.lvl1?.value||"",82)}},W=["/versions/","/more/"],J=["/app-signing/","/build/","/build-reference/","/development/","/eas/","/eas/metadata/","/eas-update/","/submit/","/distribution/","/custom-builds/","/hosting/","/billing/","/accounts/"],Y=["/get-started/","/develop/","/deploy/","/faq/","/config-plugins/","/debugging/","/config-plugins/","/review/","/monitoring/"],ee=["/tutorial","/additional-resources/"],te=()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator?.platform??navigator?.userAgentData?.platform??""),ne=(e,t)=>{if(!e||!e.length)return"";const n=e.toLowerCase().indexOf(t.toLowerCase());if(-1===n)return e;const a=n+t.length;return e.substring(0,n)+"<mark>"+e.substring(n,a)+"</mark>"+e.substring(a)},ae=({children:t,url:r,isExternalLink:l,isNested:s,onSelect:o,className:c,value:i})=>{const[m,u]=n.useState(!1),[d,p]=n.useState(!1);return n.createElement(e.Command.Item,{className:a.mergeClasses("relative",c),value:i,"data-nested":!!s||void 0,onMouseDown:e=>{(e.metaKey||e.ctrlKey)&&p(!0)},onMouseUp:e=>{!r||1!==e.button&&2!==e.button||function(e){navigator.clipboard?.writeText(e),u(!0),setTimeout((()=>u(!1)),1500)}(r)},onSelect:()=>{r&&((e,t=!1)=>{const n=document.createElement("a");t&&(n.target="_blank",n.rel="noopener noreferrer"),n.href=e,n.click()})(r,!!d||l),d?p(!1):o&&o()},onContextMenu:e=>{e.preventDefault()}},t,m&&n.createElement("div",{className:"text-2xs font-medium absolute rounded-full px-2 right-2.5 top-[calc(50%-13px)] border-secondary bg-info text-info"},"Copied!"))},re=new Intl.NumberFormat,le=({item:e,onSelect:t,query:a})=>n.createElement(ae,{value:`rnd-${e.npmPkg}`,url:e.githubUrl,isExternalLink:!0,onSelect:t},n.createElement("div",{className:"inline-flex gap-3 items-center"},n.createElement(p.GithubIcon,{className:"text-icon-secondary"}),n.createElement("div",null,n.createElement("p",{className:"text-xs font-medium",dangerouslySetInnerHTML:{__html:ne(e.npmPkg,a)}}),n.createElement("p",{className:"flex items-center gap-1 text-3xs text-quaternary"},n.createElement(x.Star01Icon,{className:"icon-2xs text-icon-quaternary"}),re.format(e.github.stats.stars)," stars",e.npm.downloads?n.createElement(n.Fragment,null," ","· ",n.createElement(g.Download01Icon,{className:"icon-2xs text-icon-quaternary"}),re.format(e.npm.downloads)," downloads"):void 0)),n.createElement(M,null))),se=({item:e,levelKey:t="lvl0"})=>e.hierarchy[t]?n.createElement(n.Fragment,null,n.createElement(A,null),n.createElement("span",{...Z(e,t)})):null,oe=({item:e,onSelect:t})=>{const{lvl0:a,lvl1:r,lvl2:l,lvl3:s,lvl4:o}=e.hierarchy;return n.createElement(ae,{value:`rn-${e.objectID}`,url:e.url,isExternalLink:!0,onSelect:t},n.createElement("div",{className:"inline-flex gap-3 items-center"},n.createElement(H,{className:"shrink-0"}),n.createElement("div",null,o&&n.createElement(n.Fragment,null,n.createElement("p",{className:"text-xs font-medium",...Z(e,"lvl4")}),n.createElement("p",{className:"text-3xs text-quaternary"},n.createElement("span",{...Z(e,"lvl0")}),n.createElement(se,{item:e,levelKey:"lvl1"}),n.createElement(se,{item:e,levelKey:"lvl2"}),n.createElement(se,{item:e,levelKey:"lvl3"}))),!o&&s&&n.createElement(n.Fragment,null,n.createElement("p",{className:"text-xs font-medium",...Z(e,"lvl3")}),n.createElement("p",{className:"text-3xs text-quaternary"},n.createElement("span",{...Z(e,"lvl0")}),n.createElement(se,{item:e,levelKey:"lvl1"}),n.createElement(se,{item:e,levelKey:"lvl2"}))),!s&&l&&n.createElement(n.Fragment,null,n.createElement("p",{className:"text-xs font-medium",...Z(e,"lvl2")}),n.createElement("p",{className:"text-3xs text-quaternary"},n.createElement("span",{...Z(e,"lvl0")}),n.createElement(se,{item:e,levelKey:"lvl1"}))),!s&&!l&&r&&n.createElement(n.Fragment,null,n.createElement("p",{className:"text-xs font-medium",...Z(e,"lvl1")}),n.createElement("p",{className:"text-3xs text-quaternary",...Z(e,"lvl0")})),!s&&!l&&!r&&a&&n.createElement("p",{className:"text-xs font-medium",...Z(e,"lvl0")}),n.createElement("p",{className:"text-2xs text-secondary",...Q(e,!0)})),n.createElement(M,null)))},ce=({url:e,className:t,isNested:r})=>r?n.createElement(C.Hash02Icon,{className:a.mergeClasses("icon-sm text-icon-quaternary",t)}):(e=>W.some((t=>e.includes(t))))(e)?n.createElement(a.DocsLogo,{className:a.mergeClasses("text-icon-secondary",t)}):(e=>J.some((t=>e.includes(t))))(e)?n.createElement(h.PlanEnterpriseIcon,{className:a.mergeClasses("text-icon-secondary",t)}):(e=>Y.some((t=>e.includes(t))))(e)?n.createElement(v.Home02Icon,{className:a.mergeClasses("text-icon-secondary",t)}):(e=>ee.some((t=>e.includes(t))))(e)?n.createElement(f.GraduationHat02Icon,{className:a.mergeClasses("text-icon-secondary",t)}):n.createElement(E.BookOpen02Icon,{className:a.mergeClasses("text-icon-secondary",t)}),ie=({item:e,onSelect:t,isNested:r,transformUrl:l})=>{const{lvl0:s,lvl2:o,lvl3:c,lvl4:i,lvl6:m}=e.hierarchy,u=a.mergeClasses(r?"text-2xs":"text-xs font-medium"),d=a.mergeClasses("text-3xs text-quaternary",r&&"hidden");return n.createElement(ae,{className:a.mergeClasses(r&&"ml-8 !min-h-[32px]"),value:`expodocs-${e.objectID}`,onSelect:t,url:l?l(e.url):e.url,isNested:r,isExternalLink:!l},n.createElement("div",{className:"flex gap-3 justify-between"},n.createElement("div",{className:"inline-flex items-center gap-3 break-words"},n.createElement(ce,{url:e.url,isNested:r,className:"shrink-0"}),n.createElement("div",null,m&&n.createElement(n.Fragment,null,n.createElement("p",{className:u,...Z(e,"lvl6")}),!r&&n.createElement("p",{className:"text-3xs text-quaternary"},n.createElement("span",{...Z(e,"lvl0")}),n.createElement(se,{item:e,levelKey:"lvl2"}),n.createElement(se,{item:e,levelKey:"lvl3"}),n.createElement(se,{item:e,levelKey:"lvl4"}))),!m&&i&&n.createElement(n.Fragment,null,n.createElement("p",{className:u,...Z(e,"lvl4")}),!r&&n.createElement("p",{className:d},n.createElement("span",{...Z(e,"lvl0")}),n.createElement(se,{item:e,levelKey:"lvl2"}),n.createElement(se,{item:e,levelKey:"lvl3"}))),!m&&!i&&c&&n.createElement(n.Fragment,null,n.createElement("p",{className:u,...Z(e,"lvl3")}),!r&&n.createElement("p",{className:d},n.createElement("span",{...Z(e,"lvl0")}),n.createElement(se,{item:e,levelKey:"lvl2"}))),!m&&!i&&!c&&o&&n.createElement(n.Fragment,null,n.createElement("p",{className:u,...Z(e,"lvl2")}),!r&&n.createElement("p",{className:d},n.createElement("span",{...Z(e,"lvl0")}))),!m&&!i&&!c&&!o&&s&&n.createElement(n.Fragment,null,n.createElement("p",{className:u,...Z(e,"lvl0")})),(!r||e.content)&&n.createElement("p",{className:a.mergeClasses("text-secondary",r?"text-3xs":"text-2xs"),...Q(e)}))),!l&&n.createElement(M,null)))},me=({item:e,onSelect:t,query:a})=>{return n.createElement(ae,{value:`expo-blog-${e.slug.current}`,url:`https://expo.dev/blog/${e.slug.current}`,isExternalLink:!0,onSelect:t},n.createElement("div",{className:"inline-flex gap-3 items-center"},n.createElement("img",{src:(r=e.mainImage.image.asset._ref,V.image(r).auto("format").height(150).url()),alt:e.mainImage.altText,className:"size-11 object-cover rounded-md my-0.5"}),n.createElement("div",null,n.createElement("p",{className:"text-xs font-medium",dangerouslySetInnerHTML:{__html:ne(e.title,a)}}),n.createElement("p",{className:"text-3xs text-quaternary",dangerouslySetInnerHTML:{__html:ne(e.metadataDescription,a)}})),n.createElement(M,null)));var r};function ue({className:e}){return n.createElement("span",{className:a.mergeClasses("dots-loader inline-flex",e)},Array.from({length:3}).map(((e,t)=>n.createElement("span",{key:t,className:"opacity-0",style:{animationDelay:.2*t+"s"}},"."))))}const de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;de&&(de.Prism=L.Prism);let pe=null;function ge(){return pe||(pe=(async()=>{await Promise.all([import("prismjs/components/prism-json"),import("prismjs/components/prism-yaml"),import("prismjs/components/prism-diff"),import("prismjs/components/prism-typescript"),import("prismjs/components/prism-tsx"),import("prismjs/components/prism-jsx"),import("prismjs/components/prism-bash"),import("prismjs/components/prism-kotlin"),import("prismjs/components/prism-swift"),import("prismjs/components/prism-markdown")])})()),pe}ge().catch((()=>{}));const xe={sh:"bash"};function he(e){return{value:e}}function Ee(e,t){if(!e||"object"!=typeof e)return null;if(n.isValidElement(e))return e.props;if(n.isValidElement(e)){const t=e.props.children;if(!Array.isArray(t))return Ee(t);for(const e of n.Children.toArray(t)){const t=Ee(e);if(t)return t}}return null}function fe(e){return"string"==typeof e?e:Array.isArray(e)?e.map(fe).join(""):function(e){return n.isValidElement(e)}(e)?fe(e.props.children):""}function Ce(e,t){if("string"==typeof e)return{...he(e),language:t?t.split("-")[1]:"jsx"};const n=Ee(e);return{...he(fe(n?.children)),language:"string"==typeof n?.className?n.className.split("-")[1]:"jsx"}}function ve({children:e,className:t}){const{value:r,language:l}=n.useMemo((()=>Ce(e,t)),[e,t]),[s,o]=n.useState(!1);n.useEffect((()=>{let e=!0;return ge().then((()=>{e&&o(!0)})),()=>{e=!1}}),[]);const c=n.useMemo((()=>"string"==typeof t&&t.length>0?t:n.isValidElement(e)&&"string"==typeof e.props.className?e.props.className:void 0),[e,t]),i=n.useMemo((()=>c??(l?`language-${l}`:void 0)),[c,l]),m=n.useMemo((()=>r?function(e,t){ge().catch((()=>{}));let n=t?.split("-").at(-1)?.toLowerCase();if(!n)return e;n in xe&&(n=xe[n]);const a=L.Prism.languages[n];return a?L.Prism.highlight(e,a,n):e}(r,i):""),[r,i,s]),u=n.useMemo((()=>r??""),[r]),[d,p]=n.useState(!1);n.useEffect((()=>{if(!d)return;const e=setTimeout((()=>p(!1)),2e3);return()=>clearTimeout(e)}),[d]);return r?n.createElement("div",{className:"relative my-3"},n.createElement("pre",{className:a.mergeClasses("relative overflow-x-auto rounded-md border border-default bg-subtle px-4 py-3 text-2xs text-default shadow-xs","font-mono leading-[1.6]","dark:bg-element")},n.createElement("code",{className:a.mergeClasses("block min-w-fit whitespace-pre",c),dangerouslySetInnerHTML:{__html:m}})),n.createElement(a.Button,{type:"button",theme:"quaternary",size:"xs",className:"absolute right-3 top-3 inline-flex size-7 items-center justify-center rounded-full !border !border-default !bg-default !p-0 shadow-sm",onClick:()=>{u&&(navigator.clipboard?.writeText(u).catch((()=>{})),p(!0))},"aria-label":"Copy code block"},d?n.createElement(q.CheckIcon,{className:"icon-xs text-success","aria-hidden":!0}):n.createElement(y.ClipboardIcon,{className:"icon-xs text-icon-secondary","aria-hidden":!0}))):n.createElement("pre",{className:a.mergeClasses("relative my-3 overflow-x-auto rounded-md border border-default bg-subtle px-4 py-3 text-2xs text-default shadow-xs","font-mono leading-[1.6]")},e)}const ye=/(\s*```[\s\S]*?```)/g,be=new Set(["a","an","the","this","that","these","those","your","see","refer","check","use","try","visit","read","review","consult"]);function Ne(e){const t=e.split(ye);let n=t.map(((e,n)=>{if(e.trimStart().startsWith("```"))return e;const a=e.replace(/\[([^\]]+)\]\(([^)]+)\);/g,"[$1]($2) |").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"[$1]($2)").replace(/(\]\([^)]+\));/g,"$1 |").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"Source: [$1]($2)").replace(/([^.!?|,\s`])\s*Source:/g,((e,t,n,a)=>{const r=a.slice(0,n+1).replace(/[^A-Za-z]+$/i," ").trimEnd().match(/([A-Za-z]+)$/),l=r?.[1]?.toLowerCase();return l&&be.has(l)?`${t} Source:`:`${t}. Source:`})).replace(/(^|\n)\s*\.\s*Source:/g,"$1Source:").replace(/Source:\s*Source:/g,"Source:").replace(/\|\s*\./g,"|").replace(/\.\s*\|\s*/g," | ").replace(/\[([^\]]*)\](?!\()/g,"$1").replace(/Source: \[\[/g,"Source: [").replace(/(\]\([^)]+\))\]/g,"$1").replace(/\]\]/g,"]").replace(/\](\s*\||\s*$)/g,"$1").replace(/^\s*•\s*/gm,"- ").replace(/^(\s*)(\d+)\)\s*/gm,"$1$2. ");const r=t[n+1];return r&&r.trimStart().startsWith("```")&&/:\s*$/.test(a)?a.replace(/:\s*$/,":\n"):a})).join("");if(/\b(no information|do not contain information|cannot find|no relevant information|no info|not enough information|knowledge sources[^.]*do not)\b/i.test(n)){n+="\n\nIf you have questions about Expo or related technologies, feel free to ask.\nIf this topic should be covered in the Expo docs, please request it by opening an issue: [Open an issue](https://github.com/expo/expo/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)."}return n}function ke({conversation:e,isGeneratingAnswer:t,isPreparingAnswer:r,addFeedback:l,resetConversation:s,resetInput:o}){const[c,i]=n.useState(!1),[m,u]=n.useState(void 0),d=r||t,p=e?.getLatest();return n.createElement(n.Fragment,null,n.createElement($,{isLoading:d}),n.createElement("div",{className:"result-container flex flex-col gap-3 !pt-3 w-full"},p?.isGenerationAborted&&n.createElement("div",{className:"text-xs bg-info text-info border border-info px-3 py-2.5 rounded-md"},"The generation has been aborted. Press Enter ",n.createElement("kbd",{className:"mx-0.5"},"↵")," to send a new question."),!d&&!p?.question&&n.createElement("div",{className:a.mergeClasses("flex flex-wrap text-xs size-full items-center justify-center text-quaternary","max-md-gutters:text-center max-md-gutters:px-5")},n.createElement("span",null,"Ask the question above and then press Enter ",n.createElement("kbd",{className:"mx-0.5"},"↵")," to send it.")),p?.question&&n.createElement("div",{className:"font-semibold mt-1 leading-relaxed"},'You asked: "',p?.question??"",'"'),r&&n.createElement("div",{className:"flex text-xs size-full items-center justify-center text-quaternary"},"Preparing answer",n.createElement(ue,null)),n.createElement(I,{children:p?.answer?Ne(p.answer):"",options:n.useMemo((()=>({overrides:{a:{component:a.Link,props:{target:"_blank",rel:"noopener noreferrer",className:"text-link underline-offset-2 hocus:underline"}},pre:{component:ve},code:{component:({className:e,...t})=>n.createElement("code",{...t,className:a.mergeClasses("inline-block rounded-md border border-default bg-subtle px-1 py-0.5 text-3xs font-medium leading-tight text-default",e)})},p:{component:({className:e,style:t,...r})=>n.createElement("p",{...r,style:{...t??{},fontSize:"14px",lineHeight:"1.55"},className:a.mergeClasses("mb-2 text-[10px] leading-[1.55] text-secondary",e)})},ol:{component:({className:e,style:t,...r})=>n.createElement("ol",{...r,style:{...t??{},fontSize:"14px",lineHeight:"1.55"},className:a.mergeClasses("mb-2 list-decimal pl-4 text-[10px] leading-normal text-secondary",e)})},ul:{component:({className:e,style:t,...r})=>n.createElement("ul",{...r,style:{...t??{},fontSize:"14px",lineHeight:"1.55"},className:a.mergeClasses("mb-2 list-disc pl-4 text-[10px] leading-normal text-secondary",e)})},li:{component:({className:e,style:t,...r})=>n.createElement("li",{...r,style:{...t??{},fontSize:"14px",lineHeight:"1.45"},className:a.mergeClasses("text-[10px] leading-[1.45] text-secondary",e)})}}})),[]),className:"prompt-result text-xs"}),!d&&p?.id&&n.createElement(n.Fragment,null,n.createElement("div",{className:a.mergeClasses("inline-flex items-center w-full gap-2 mt-1","max-md-gutters:flex-col")},n.createElement(a.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:n.createElement(y.ClipboardIcon,null),disabled:c,onClick:()=>{p?.answer&&(navigator.clipboard?.writeText(p.answer),i(!0),setTimeout((()=>i(!1)),1500))}},"Copy answer"),n.createElement(a.Button,{skipCapitalization:!0,theme:"secondary",size:"xs",leftSlot:n.createElement(b.RefreshCcw02Icon,null),className:"mr-auto max-md-gutters:mx-auto",onClick:()=>{s?.(),o?.()}},"Reset conversation"),n.createElement("div",{className:a.mergeClasses("contents items-center w-full gap-x-2 gap-y-3","max-md-gutters:justify-center max-md-gutters:inline-flex")},n.createElement("p",{className:"text-tertiary text-2xs"},"Rate answer:"),n.createElement(a.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:m,leftSlot:!0===m?n.createElement(S.ThumbsUpSolidIcon,{className:"text-icon-success"}):n.createElement(k.ThumbsUpIcon,{className:"text-icon-success"}),onClick:()=>{l?.(p.id,"upvote"),u(!0)}}),n.createElement(a.Button,{theme:"secondary",size:"xs",className:"shrink-0",disabled:m,leftSlot:!1===m?n.createElement(w.ThumbsDownSolidIcon,{className:"text-icon-danger"}):n.createElement(N.ThumbsDownIcon,{className:"text-icon-danger"}),onClick:()=>{l?.(p.id,"downvote"),u(!1)}}))),n.createElement("p",{className:a.mergeClasses("text-quaternary text-2xs my-1 mx-auto","max-md-gutters:mt-0.5")},"Expo AI assistant is an experimental feature."))))}function we({label:e,isActive:t,onClick:r}){return n.createElement("div",{onClick:r,className:a.mergeClasses("flex items-center text-xs px-2.5 rounded-md h-full cursor-pointer transition text-tertiary whitespace-nowrap select-none min-h-8","hocus:bg-hover dark:hocus:bg-element","active:!scale-[0.975]","max-md-gutters:w-1/2 max-md-gutters:justify-center",t&&"mode-tab",t&&"bg-gradient-to-b from-palette-gray11 to-palette-black text-palette-white",t&&"dark:from-palette-gray12 dark:to-palette-white dark:text-palette-black")},e)}const Se=({config:{docsVersion:i,docsTransformUrl:m,docsSectionContext:u,docsGroupByMainSection:d=!0,docsContextBoost:p=!1},open:g,setOpen:x,customSections:h=[]})=>{const[E,f]=n.useState(!1),[C,v]=n.useState(!0),[y,b]=n.useState(""),[N,k]=n.useState(null),[w,S]=n.useState(!1),I=n.useRef(null),{conversation:q,submitQuery:L,isGeneratingAnswer:A,isPreparingAnswer:M,addFeedback:H,stopGeneration:_,resetConversation:T}=t.useChat(),[j,R]=n.useState([]),[P,V]=n.useState([]),[F,K]=n.useState([]),[Z,X]=n.useState([]),Q=async()=>D(y,(e=>U(e,i,{sectionContext:u})),R),W=async()=>(async(e,t,n)=>{n(await t(e))})(y,G,V),J=async()=>D(y,B,K),Y=async()=>D(y,O,X),ee=()=>x(!1),ne=q.getLatest(),re=e=>{Promise.all([Q(),W(),J(),Y(),...h?.map((e=>e.getItemsAsync(y)))]).then(e)},se=()=>{if(g&&!w){v(!0);const e=setTimeout((()=>{re((()=>v(!1)))}),500);return()=>clearTimeout(e)}},ce=e=>{if("Tab"===e.key&&(e.preventDefault(),S((e=>!e)),I?.current?.focus()),w&&"Enter"===e.key&&(e.preventDefault(),y.length>0)){if(M||A)return void _();if(ne?.question===y&&!ne?.isGenerationAborted)return;T(),v(!0),L(y),b("")}};n.useEffect((()=>{k("undefined"!=typeof navigator&&te())}),[]),n.useEffect((()=>{M||A||v(!1)}),[M,A]),n.useEffect((()=>{w||se()}),[w]),n.useEffect((()=>{if(null!==N){const e=e=>{"k"===e.key&&(N?e.metaKey:e.ctrlKey)&&(e.preventDefault(),x((e=>!e)))};return document.addEventListener("keydown",e,!1),()=>document.removeEventListener("keydown",e)}}),[N]),n.useEffect((()=>{if(g&&!E&&re((()=>{f(!0),v(!1)})),g)return document.addEventListener("keydown",ce,!1),()=>document.removeEventListener("keydown",ce);document.removeEventListener("keydown",ce)}),[g,w,ne,y]),n.useEffect(se,[y]);const ue=e=>{let t=0;const n=(u?.section??"").toLowerCase(),a=(u?.group??"").toLowerCase(),r=(u?.mainSection??"").toLowerCase();if(p&&n){const a=n.replace(/\s+/g,"/"),r=e.url.toLowerCase().includes(`/${a}/`),l=e.hierarchy.lvl0?.toLowerCase().includes(n);(r||l)&&(t+=5)}return e.mainSection?.toLowerCase()===r&&r&&(t+=3),e.section?.toLowerCase().includes(n)&&n&&(t+=2),e.group?.toLowerCase().includes(a)&&a&&(t+=1),t+=e._rankingInfo?.filters??0,t},de=[...j].sort(((e,t)=>{const n=ue(t)-ue(e);return n||(t._rankingInfo?.userScore??0)-(e._rankingInfo?.userScore??0)})).map((e=>({...e,baseUrl:e.url.replace(/#.+/,""),mainSection:"EAS"===e.mainSection?"Expo Application Services":e.mainSection||"Expo documentation"}))),pe=d?c(de,"mainSection"):{"Expo documentation":de},ge=u?.mainSection,xe=Object.keys(pe).sort(((e,t)=>{if(ge){if(e===ge)return-1;if(t===ge)return 1}return e.localeCompare(t)})),he=new Map;de.forEach(((e,t)=>{const n=he.get(e.baseUrl);(void 0===n||t<n)&&he.set(e.baseUrl,t)}));const Ee=[y.length>10&&0===j.length&&n.createElement(e.Command.Group,{heading:"Ask AI",key:"expo-ai-prompt"},n.createElement(ae,{value:"expo-ai-prompt",onSelect:()=>{S(!0)}},n.createElement("div",{className:"inline-flex gap-3 items-center"},n.createElement(s.Stars02Icon,{className:"text-icon-secondary"}),n.createElement("div",{className:"flex flex-col"},n.createElement("p",{className:"text-xs font-medium leading-snug"},"Ask Expo's AI assistant"),n.createElement("p",{className:"text-2xs text-tertiary leading-snug"},"Experimental feature"))))),...j.length>0?xe.map((t=>{const a=c(pe[t],"baseUrl"),r=Object.entries(a).map((([e,t])=>{const n=Math.max(...t.map((e=>e._rankingInfo?.filters??0)),0);return{baseUrl:e,values:t,filtersScore:n,orderIndex:he.get(e)??Number.MAX_SAFE_INTEGER}})).sort(((e,t)=>e.filtersScore!==t.filtersScore?t.filtersScore-e.filtersScore:e.orderIndex-t.orderIndex));return n.createElement(e.Command.Group,{heading:d?t:"Expo documentation",key:`expo-docs-group-${t}`},r.map((({values:e})=>e.sort(((e,t)=>e.url.localeCompare(e.baseUrl)-t.url.localeCompare(t.baseUrl))).slice(0,6).map(((e,t)=>n.createElement(ie,{isNested:0!==t,item:e,onSelect:ee,key:`hit-expo-docs-${e.objectID}`,transformUrl:m}))))))})):[],P.length>0&&n.createElement(e.Command.Group,{heading:"Expo blog",key:"expo-blog-group"},P.map((e=>n.createElement(me,{item:e,onSelect:ee,key:`hit-expo-blog-${e.slug.current}`,query:y})))),F.length>0&&n.createElement(e.Command.Group,{heading:"React Native documentation",key:"rn-docs-group"},F.map((e=>n.createElement(oe,{item:e,onSelect:ee,key:`hit-rn-docs-${e.objectID}`})))),Z.length>0&&n.createElement(e.Command.Group,{heading:"React Native directory",key:"rn-directory-group"},Z.map((e=>n.createElement(le,{item:e,onSelect:ee,key:`hit-rn-dir-${e.npmPkg}`,query:y}))))];h?.forEach((({items:t,heading:a,sectionIndex:r})=>t.length>0&&Ee.splice(r,0,n.createElement(e.Command.Group,{heading:a,key:`${r}-${a}`},t))));const fe=w?r.MessageQuestionCircleIcon:l.SearchSmIcon;return n.createElement(e.Command.Dialog,{open:g,onOpenChange:x,label:"Search Menu",shouldFilter:!1},n.createElement("div",{className:a.mergeClasses("relative flex px-4 gap-x-3 border-b border-secondary","max-md-gutters:flex-col")},n.createElement("div",{className:"flex relative w-full overflow-hidden"},n.createElement(fe,{className:"text-icon-tertiary absolute top-[29px] left-[13px] transition-opacity duration-200"}),n.createElement("div",{className:a.mergeClasses("absolute top-[25px] right-[9px] z-[101] cursor-pointer p-1 rounded-sm","hocus:bg-element","active:scale-[0.975]")},n.createElement(o.XIcon,{className:"text-icon-tertiary",onClick:()=>b("")})),n.createElement(e.Command.Input,{value:y,onValueChange:b,placeholder:w?"Ask AI…":"Search…",autoFocus:!0,ref:I})),n.createElement("div",{className:a.mergeClasses("tabs-container relative flex mt-4 mb-3 px-1.5 py-1.5 gap-1 items-center rounded-lg border border-palette-gray5 bg-subtle","dark:bg-screen dark:border-palette-gray4","max-md-gutters:mt-0",w&&"tabs-container-ai")},n.createElement(we,{label:"Search",isActive:!w,onClick:()=>{S(!1),I?.current?.focus()}}),n.createElement(we,{label:"Ask AI",isActive:w,onClick:()=>{S(!0),y.length>0&&(q.getLatest()||(v(!0),L(y),b(""))),I?.current?.focus()}}))),n.createElement($,{isLoading:C}),n.createElement("div",{className:"relative"},n.createElement("div",{className:a.mergeClasses("pointer-events-none absolute left-0 -top-px z-10 h-6 w-[calc(100%-8px)]","bg-gradient-to-b from-default to-transparent opacity-90")}),w?n.createElement(ke,{conversation:q,isGeneratingAnswer:A,isPreparingAnswer:M,addFeedback:H,resetConversation:T,resetInput:()=>b("")}):n.createElement(e.Command.List,null,E&&Ee,0===Ee.filter(Boolean).length&&n.createElement(e.Command.Empty,{key:"no-results-group"},n.createElement("p",{className:"text-secondary text-xs"},"No results found."))),n.createElement("div",{className:a.mergeClasses("pointer-events-none absolute left-0 -bottom-px z-10 h-6 w-[calc(100%-8px)]","bg-gradient-to-t from-default to-transparent opacity-90")})),n.createElement(z,{isPromptMode:w}))},Ie=e.Command.Item;exports.CommandItemBase=Ie,exports.CommandItemBaseWithCopy=ae,exports.CommandMenu=e=>n.createElement(t.KapaProvider,{userTrackingMode:"none",integrationId:"bf5bd579-bb83-4591-8cc9-d87b6cdcb712",callbacks:{}},n.createElement(Se,{...e})),exports.CommandMenuTrigger=({setOpen:e,className:t})=>{const[r,s]=n.useState(null);return n.useEffect((()=>{s("undefined"!=typeof navigator&&te())}),[]),n.createElement(a.Button,{theme:"secondary",leftSlot:n.createElement(l.SearchSmIcon,{className:"icon-md text-icon-secondary"}),rightSlot:null!==r?n.createElement("div",{className:"ml-auto max-md-gutters:hidden"},n.createElement("kbd",{className:"!h-5 !leading-[19px]"},r?"⌘":"Ctrl")," ",n.createElement("kbd",{className:"!h-5 !leading-[19px]"},"K")):void 0,className:a.mergeClasses("cmdk-trigger bg-default pl-2.5 pr-3 border border-default shadow-xs min-h-[40px]",t),onClick:()=>e(!0)},n.createElement("p",{className:"text-secondary font-normal leading-normal text-xs"},"Search"))},exports.addHighlight=ne;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { CommandMenuProps } from '../types';
3
- export declare const CommandMenuContent: ({ config: { docsVersion, docsTransformUrl }, open, setOpen, customSections, }: CommandMenuProps) => React.JSX.Element;
3
+ export declare const CommandMenuContent: ({ config: { docsVersion, docsTransformUrl, docsSectionContext, docsGroupByMainSection, docsContextBoost, }, open, setOpen, customSections, }: CommandMenuProps) => React.JSX.Element;
@@ -9,6 +9,9 @@ export type CommandMenuConfig = {
9
9
  docsVersion: string;
10
10
  docsTransformUrl?: (url: string) => string;
11
11
  disableDashboardSection?: boolean;
12
+ docsSectionContext?: DocsSectionContext;
13
+ docsGroupByMainSection?: boolean;
14
+ docsContextBoost?: boolean;
12
15
  };
13
16
  export type CommandMenuSection = {
14
17
  heading: string;
@@ -29,11 +32,18 @@ export type AlgoliaItemHierarchy<T> = {
29
32
  lvl6?: T | null;
30
33
  };
31
34
  export type AlgoliaItemType = {
35
+ mainSection?: string | null;
36
+ section?: string | null;
37
+ group?: string | null;
32
38
  url: string;
33
39
  objectID: string;
34
40
  anchor: string | null;
35
41
  content: string | null;
36
42
  hierarchy: AlgoliaItemHierarchy<string>;
43
+ _rankingInfo?: {
44
+ userScore?: number;
45
+ filters?: number;
46
+ };
37
47
  _highlightResult: {
38
48
  content: AlgoliaHighlight | null;
39
49
  hierarchy: AlgoliaItemHierarchy<AlgoliaHighlight>;
@@ -51,6 +61,11 @@ export type RNDirectoryItemType = {
51
61
  };
52
62
  };
53
63
  };
64
+ export type DocsSectionContext = {
65
+ mainSection?: string | null;
66
+ section?: string | null;
67
+ group?: string | null;
68
+ };
54
69
  export type ExpoBlogItemType = {
55
70
  title: string;
56
71
  tags: string[];
@@ -1,11 +1,14 @@
1
1
  import { ClientReturn } from '@sanity/client';
2
2
  import type { Dispatch, SetStateAction } from 'react';
3
- import type { AlgoliaItemHierarchy, AlgoliaItemType } from './types';
3
+ import type { AlgoliaItemHierarchy, AlgoliaItemType, DocsSectionContext } from './types';
4
4
  export declare const SANITY_CLIENT: import("@sanity/client").SanityClient;
5
5
  export declare function getSanityAsset(source: string): string;
6
6
  export declare const getItemsAsync: <T>(query: string, fetcher: (query: string, version?: string) => Promise<Response>, setter: Dispatch<SetStateAction<T[]>>, version?: string) => Promise<void>;
7
7
  export declare const getSanityItemsAsync: <T>(query: string, fetcher: (query: string, version?: string) => Promise<ClientReturn<any>>, setter: Dispatch<SetStateAction<T[]>>) => Promise<void>;
8
- export declare const getExpoDocsResults: (query: string, version?: string) => Promise<Response>;
8
+ export declare const getExpoDocsResults: (query: string, version?: string, options?: {
9
+ sectionContext?: DocsSectionContext;
10
+ ruleContexts?: string[];
11
+ }) => Promise<Response>;
9
12
  export declare const getRNDocsResults: (query: string) => Promise<Response>;
10
13
  export declare const getExpoBlogResults: (query: string) => Promise<any>;
11
14
  export declare const getDirectoryResults: (query: string) => Promise<Response>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide-search-ui",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "Expo's common search component for use on the web.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,5 +54,5 @@
54
54
  "eslintConfig": {
55
55
  "extends": "universe/web"
56
56
  },
57
- "gitHead": "7bc9d5e8c9a1af663e67f1cfa5450ea225b55441"
57
+ "gitHead": "96f49bf9dc915a9c276cca5a1ef64650db08d1be"
58
58
  }