@bigbinary/neeto-molecules 3.15.43 → 3.15.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/dist/AuditLogs.js +539 -0
  2. package/dist/AuditLogs.js.map +1 -0
  3. package/dist/BoardView.js +394 -0
  4. package/dist/BoardView.js.map +1 -0
  5. package/dist/Breadcrumbs.js +46 -0
  6. package/dist/Breadcrumbs.js.map +1 -0
  7. package/dist/BrowserPreview.js +50 -0
  8. package/dist/BrowserPreview.js.map +1 -0
  9. package/dist/BrowserSupport.js +348 -0
  10. package/dist/BrowserSupport.js.map +1 -0
  11. package/dist/Builder.js +786 -0
  12. package/dist/Builder.js.map +1 -0
  13. package/dist/ButtonGroup.js +36 -0
  14. package/dist/ButtonGroup.js.map +1 -0
  15. package/dist/CalendarView.js +356 -0
  16. package/dist/CalendarView.js.map +1 -0
  17. package/dist/CardLayout.js +49 -0
  18. package/dist/CardLayout.js.map +1 -0
  19. package/dist/Chevron-DfSoxXBs.js +246 -0
  20. package/dist/Chevron-DfSoxXBs.js.map +1 -0
  21. package/dist/Codeblock.js +58 -0
  22. package/dist/Codeblock.js.map +1 -0
  23. package/dist/Columns.js +21 -0
  24. package/dist/Columns.js.map +1 -0
  25. package/dist/ConfigurePageSidebar.js +97 -0
  26. package/dist/ConfigurePageSidebar.js.map +1 -0
  27. package/dist/ConfirmationModal.js +110 -0
  28. package/dist/ConfirmationModal.js.map +1 -0
  29. package/dist/Container.js +38 -0
  30. package/dist/Container.js.map +1 -0
  31. package/dist/CopyToClipboardButton.js +82 -0
  32. package/dist/CopyToClipboardButton.js.map +1 -0
  33. package/dist/Currency.js +917 -0
  34. package/dist/Currency.js.map +1 -0
  35. package/dist/DateFormat.js +45 -0
  36. package/dist/DateFormat.js.map +1 -0
  37. package/dist/DateRangeFilter.js +178 -0
  38. package/dist/DateRangeFilter.js.map +1 -0
  39. package/dist/DeleteArchiveModal.js +98 -0
  40. package/dist/DeleteArchiveModal.js.map +1 -0
  41. package/dist/DeviceIncompatibilityMessage.js +95 -0
  42. package/dist/DeviceIncompatibilityMessage.js.map +1 -0
  43. package/dist/DocumentEditor.js +183 -0
  44. package/dist/DocumentEditor.js.map +1 -0
  45. package/dist/DownloadMobileAppCallout.js +40 -0
  46. package/dist/DownloadMobileAppCallout.js.map +1 -0
  47. package/dist/DynamicVariables.js +115 -0
  48. package/dist/DynamicVariables.js.map +1 -0
  49. package/dist/EmailForm.js +567 -0
  50. package/dist/EmailForm.js.map +1 -0
  51. package/dist/EmailPreview.js +140 -0
  52. package/dist/EmailPreview.js.map +1 -0
  53. package/dist/EmojiPicker.js +112 -0
  54. package/dist/EmojiPicker.js.map +1 -0
  55. package/dist/EmojiReactions.js +82 -0
  56. package/dist/EmojiReactions.js.map +1 -0
  57. package/dist/Engagements.js +292 -0
  58. package/dist/Engagements.js.map +1 -0
  59. package/dist/ErrorPage.js +1811 -0
  60. package/dist/ErrorPage.js.map +1 -0
  61. package/dist/FileUpload.js +595 -0
  62. package/dist/FileUpload.js.map +1 -0
  63. package/dist/FinderModal.js +280 -0
  64. package/dist/FinderModal.js.map +1 -0
  65. package/dist/FloatingActionMenu.js +854 -0
  66. package/dist/FloatingActionMenu.js.map +1 -0
  67. package/dist/GoogleFontPicker.js +581 -0
  68. package/dist/GoogleFontPicker.js.map +1 -0
  69. package/dist/Header.js +126 -0
  70. package/dist/Header.js.map +1 -0
  71. package/dist/HelpPopover.js +83 -0
  72. package/dist/HelpPopover.js.map +1 -0
  73. package/dist/IconPicker.js +1159 -0
  74. package/dist/IconPicker.js.map +1 -0
  75. package/dist/ImageWithFallback.js +49 -0
  76. package/dist/ImageWithFallback.js.map +1 -0
  77. package/dist/InlineInput.js +230 -0
  78. package/dist/InlineInput.js.map +1 -0
  79. package/dist/Insights.js +358 -0
  80. package/dist/Insights.js.map +1 -0
  81. package/dist/IntegrationCard.js +227 -0
  82. package/dist/IntegrationCard.js.map +1 -0
  83. package/dist/IpRestriction.js +3617 -0
  84. package/dist/IpRestriction.js.map +1 -0
  85. package/dist/KeyboardShortcuts.js +284 -0
  86. package/dist/KeyboardShortcuts.js.map +1 -0
  87. package/dist/LoginPage.js +184 -0
  88. package/dist/LoginPage.js.map +1 -0
  89. package/dist/MadeWith.js +41 -0
  90. package/dist/MadeWith.js.map +1 -0
  91. package/dist/MenuBar.js +1326 -0
  92. package/dist/MenuBar.js.map +1 -0
  93. package/dist/Metadata.js +218 -0
  94. package/dist/Metadata.js.map +1 -0
  95. package/dist/MobilePreviewHeader.js +25 -0
  96. package/dist/MobilePreviewHeader.js.map +1 -0
  97. package/dist/MoreDropdown.js +163 -0
  98. package/dist/MoreDropdown.js.map +1 -0
  99. package/dist/NavigationHeader.js +264 -0
  100. package/dist/NavigationHeader.js.map +1 -0
  101. package/dist/NeetoWidget.js +2867 -0
  102. package/dist/NeetoWidget.js.map +1 -0
  103. package/dist/Onboarding.js +246 -0
  104. package/dist/Onboarding.js.map +1 -0
  105. package/dist/OptionFields.js +717 -0
  106. package/dist/OptionFields.js.map +1 -0
  107. package/dist/PageLoader.js +40 -0
  108. package/dist/PageLoader.js.map +1 -0
  109. package/dist/PhoneNumber.js +75 -0
  110. package/dist/PhoneNumber.js.map +1 -0
  111. package/dist/ProductEmbed.js +884 -0
  112. package/dist/ProductEmbed.js.map +1 -0
  113. package/dist/PublishBlock.js +447 -0
  114. package/dist/PublishBlock.js.map +1 -0
  115. package/dist/PublishYourItem.js +58 -0
  116. package/dist/PublishYourItem.js.map +1 -0
  117. package/dist/Rename.js +366 -0
  118. package/dist/Rename.js.map +1 -0
  119. package/dist/ResponsiveDevicePicker.js +63 -0
  120. package/dist/ResponsiveDevicePicker.js.map +1 -0
  121. package/dist/Schedule.js +926 -0
  122. package/dist/Schedule.js.map +1 -0
  123. package/dist/Scrollable.js +42 -0
  124. package/dist/Scrollable.js.map +1 -0
  125. package/dist/Search.js +110 -0
  126. package/dist/Search.js.map +1 -0
  127. package/dist/SendToFields.js +2221 -0
  128. package/dist/SendToFields.js.map +1 -0
  129. package/dist/SessionEnvironment.js +431 -0
  130. package/dist/SessionEnvironment.js.map +1 -0
  131. package/dist/Settings.js +250 -0
  132. package/dist/Settings.js.map +1 -0
  133. package/dist/ShareRecordingPane.js +216 -0
  134. package/dist/ShareRecordingPane.js.map +1 -0
  135. package/dist/ShareViaEmail.js +416 -0
  136. package/dist/ShareViaEmail.js.map +1 -0
  137. package/dist/ShareViaLink.js +1556 -0
  138. package/dist/ShareViaLink.js.map +1 -0
  139. package/dist/Sidebar.js +294 -0
  140. package/dist/Sidebar.js.map +1 -0
  141. package/dist/StatusDropdown.js +109 -0
  142. package/dist/StatusDropdown.js.map +1 -0
  143. package/dist/StickyRibbonsContainer.js +131 -0
  144. package/dist/StickyRibbonsContainer.js.map +1 -0
  145. package/dist/SubHeader.js +209 -0
  146. package/dist/SubHeader.js.map +1 -0
  147. package/dist/SubscriptionNotificationsContainer.js +77 -0
  148. package/dist/SubscriptionNotificationsContainer.js.map +1 -0
  149. package/dist/SuffixedInput.js +111 -0
  150. package/dist/SuffixedInput.js.map +1 -0
  151. package/dist/TableWrapper.js +27 -0
  152. package/dist/TableWrapper.js.map +1 -0
  153. package/dist/Taxonomy.js +496 -0
  154. package/dist/Taxonomy.js.map +1 -0
  155. package/dist/TimeFormat.js +14 -0
  156. package/dist/TimeFormat.js.map +1 -0
  157. package/dist/TimezoneMismatchModal.js +138 -0
  158. package/dist/TimezoneMismatchModal.js.map +1 -0
  159. package/dist/ToggleFeatureCard.js +211 -0
  160. package/dist/ToggleFeatureCard.js.map +1 -0
  161. package/dist/_commonjsHelpers-BFTU3MAI.js +8 -0
  162. package/dist/_commonjsHelpers-BFTU3MAI.js.map +1 -0
  163. package/dist/cjs/AuditLogs.js +541 -0
  164. package/dist/cjs/AuditLogs.js.map +1 -0
  165. package/dist/cjs/BoardView.js +396 -0
  166. package/dist/cjs/BoardView.js.map +1 -0
  167. package/dist/cjs/Breadcrumbs.js +48 -0
  168. package/dist/cjs/Breadcrumbs.js.map +1 -0
  169. package/dist/cjs/BrowserPreview.js +52 -0
  170. package/dist/cjs/BrowserPreview.js.map +1 -0
  171. package/dist/cjs/BrowserSupport.js +350 -0
  172. package/dist/cjs/BrowserSupport.js.map +1 -0
  173. package/dist/cjs/Builder.js +794 -0
  174. package/dist/cjs/Builder.js.map +1 -0
  175. package/dist/cjs/ButtonGroup.js +38 -0
  176. package/dist/cjs/ButtonGroup.js.map +1 -0
  177. package/dist/cjs/CalendarView.js +358 -0
  178. package/dist/cjs/CalendarView.js.map +1 -0
  179. package/dist/cjs/CardLayout.js +51 -0
  180. package/dist/cjs/CardLayout.js.map +1 -0
  181. package/dist/cjs/Chevron-DJbXy_CD.js +256 -0
  182. package/dist/cjs/Chevron-DJbXy_CD.js.map +1 -0
  183. package/dist/cjs/Codeblock.js +60 -0
  184. package/dist/cjs/Codeblock.js.map +1 -0
  185. package/dist/cjs/Columns.js +35 -0
  186. package/dist/cjs/Columns.js.map +1 -0
  187. package/dist/cjs/ConfigurePageSidebar.js +99 -0
  188. package/dist/cjs/ConfigurePageSidebar.js.map +1 -0
  189. package/dist/cjs/ConfirmationModal.js +131 -0
  190. package/dist/cjs/ConfirmationModal.js.map +1 -0
  191. package/dist/cjs/Container.js +40 -0
  192. package/dist/cjs/Container.js.map +1 -0
  193. package/dist/cjs/CopyToClipboardButton.js +84 -0
  194. package/dist/cjs/CopyToClipboardButton.js.map +1 -0
  195. package/dist/cjs/Currency.js +920 -0
  196. package/dist/cjs/Currency.js.map +1 -0
  197. package/dist/cjs/DateFormat.js +47 -0
  198. package/dist/cjs/DateFormat.js.map +1 -0
  199. package/dist/cjs/DateRangeFilter.js +180 -0
  200. package/dist/cjs/DateRangeFilter.js.map +1 -0
  201. package/dist/cjs/DeleteArchiveModal.js +100 -0
  202. package/dist/cjs/DeleteArchiveModal.js.map +1 -0
  203. package/dist/cjs/DeviceIncompatibilityMessage.js +115 -0
  204. package/dist/cjs/DeviceIncompatibilityMessage.js.map +1 -0
  205. package/dist/cjs/DocumentEditor.js +185 -0
  206. package/dist/cjs/DocumentEditor.js.map +1 -0
  207. package/dist/cjs/DownloadMobileAppCallout.js +42 -0
  208. package/dist/cjs/DownloadMobileAppCallout.js.map +1 -0
  209. package/dist/cjs/DynamicVariables.js +117 -0
  210. package/dist/cjs/DynamicVariables.js.map +1 -0
  211. package/dist/cjs/EmailForm.js +593 -0
  212. package/dist/cjs/EmailForm.js.map +1 -0
  213. package/dist/cjs/EmailPreview.js +142 -0
  214. package/dist/cjs/EmailPreview.js.map +1 -0
  215. package/dist/cjs/EmojiPicker.js +114 -0
  216. package/dist/cjs/EmojiPicker.js.map +1 -0
  217. package/dist/cjs/EmojiReactions.js +84 -0
  218. package/dist/cjs/EmojiReactions.js.map +1 -0
  219. package/dist/cjs/Engagements.js +294 -0
  220. package/dist/cjs/Engagements.js.map +1 -0
  221. package/dist/cjs/ErrorPage.js +1831 -0
  222. package/dist/cjs/ErrorPage.js.map +1 -0
  223. package/dist/cjs/FileUpload.js +598 -0
  224. package/dist/cjs/FileUpload.js.map +1 -0
  225. package/dist/cjs/FinderModal.js +282 -0
  226. package/dist/cjs/FinderModal.js.map +1 -0
  227. package/dist/cjs/FloatingActionMenu.js +875 -0
  228. package/dist/cjs/FloatingActionMenu.js.map +1 -0
  229. package/dist/cjs/GoogleFontPicker.js +583 -0
  230. package/dist/cjs/GoogleFontPicker.js.map +1 -0
  231. package/dist/cjs/Header.js +128 -0
  232. package/dist/cjs/Header.js.map +1 -0
  233. package/dist/cjs/HelpPopover.js +85 -0
  234. package/dist/cjs/HelpPopover.js.map +1 -0
  235. package/dist/cjs/IconPicker.js +1161 -0
  236. package/dist/cjs/IconPicker.js.map +1 -0
  237. package/dist/cjs/ImageWithFallback.js +51 -0
  238. package/dist/cjs/ImageWithFallback.js.map +1 -0
  239. package/dist/cjs/InlineInput.js +233 -0
  240. package/dist/cjs/InlineInput.js.map +1 -0
  241. package/dist/cjs/Insights.js +360 -0
  242. package/dist/cjs/Insights.js.map +1 -0
  243. package/dist/cjs/IntegrationCard.js +229 -0
  244. package/dist/cjs/IntegrationCard.js.map +1 -0
  245. package/dist/cjs/IpRestriction.js +3638 -0
  246. package/dist/cjs/IpRestriction.js.map +1 -0
  247. package/dist/cjs/KeyboardShortcuts.js +286 -0
  248. package/dist/cjs/KeyboardShortcuts.js.map +1 -0
  249. package/dist/cjs/LoginPage.js +205 -0
  250. package/dist/cjs/LoginPage.js.map +1 -0
  251. package/dist/cjs/MadeWith.js +43 -0
  252. package/dist/cjs/MadeWith.js.map +1 -0
  253. package/dist/cjs/MenuBar.js +1328 -0
  254. package/dist/cjs/MenuBar.js.map +1 -0
  255. package/dist/cjs/Metadata.js +220 -0
  256. package/dist/cjs/Metadata.js.map +1 -0
  257. package/dist/cjs/MobilePreviewHeader.js +27 -0
  258. package/dist/cjs/MobilePreviewHeader.js.map +1 -0
  259. package/dist/cjs/MoreDropdown.js +165 -0
  260. package/dist/cjs/MoreDropdown.js.map +1 -0
  261. package/dist/cjs/NavigationHeader.js +266 -0
  262. package/dist/cjs/NavigationHeader.js.map +1 -0
  263. package/dist/cjs/NeetoWidget.js +2888 -0
  264. package/dist/cjs/NeetoWidget.js.map +1 -0
  265. package/dist/cjs/Onboarding.js +248 -0
  266. package/dist/cjs/Onboarding.js.map +1 -0
  267. package/dist/cjs/OptionFields.js +719 -0
  268. package/dist/cjs/OptionFields.js.map +1 -0
  269. package/dist/cjs/PageLoader.js +42 -0
  270. package/dist/cjs/PageLoader.js.map +1 -0
  271. package/dist/cjs/PhoneNumber.js +80 -0
  272. package/dist/cjs/PhoneNumber.js.map +1 -0
  273. package/dist/cjs/ProductEmbed.js +886 -0
  274. package/dist/cjs/ProductEmbed.js.map +1 -0
  275. package/dist/cjs/PublishBlock.js +449 -0
  276. package/dist/cjs/PublishBlock.js.map +1 -0
  277. package/dist/cjs/PublishYourItem.js +60 -0
  278. package/dist/cjs/PublishYourItem.js.map +1 -0
  279. package/dist/cjs/Rename.js +368 -0
  280. package/dist/cjs/Rename.js.map +1 -0
  281. package/dist/cjs/ResponsiveDevicePicker.js +65 -0
  282. package/dist/cjs/ResponsiveDevicePicker.js.map +1 -0
  283. package/dist/cjs/Schedule.js +947 -0
  284. package/dist/cjs/Schedule.js.map +1 -0
  285. package/dist/cjs/Scrollable.js +44 -0
  286. package/dist/cjs/Scrollable.js.map +1 -0
  287. package/dist/cjs/Search.js +112 -0
  288. package/dist/cjs/Search.js.map +1 -0
  289. package/dist/cjs/SendToFields.js +2223 -0
  290. package/dist/cjs/SendToFields.js.map +1 -0
  291. package/dist/cjs/SessionEnvironment.js +433 -0
  292. package/dist/cjs/SessionEnvironment.js.map +1 -0
  293. package/dist/cjs/Settings.js +252 -0
  294. package/dist/cjs/Settings.js.map +1 -0
  295. package/dist/cjs/ShareRecordingPane.js +218 -0
  296. package/dist/cjs/ShareRecordingPane.js.map +1 -0
  297. package/dist/cjs/ShareViaEmail.js +437 -0
  298. package/dist/cjs/ShareViaEmail.js.map +1 -0
  299. package/dist/cjs/ShareViaLink.js +1577 -0
  300. package/dist/cjs/ShareViaLink.js.map +1 -0
  301. package/dist/cjs/Sidebar.js +315 -0
  302. package/dist/cjs/Sidebar.js.map +1 -0
  303. package/dist/cjs/StatusDropdown.js +111 -0
  304. package/dist/cjs/StatusDropdown.js.map +1 -0
  305. package/dist/cjs/StickyRibbonsContainer.js +133 -0
  306. package/dist/cjs/StickyRibbonsContainer.js.map +1 -0
  307. package/dist/cjs/SubHeader.js +211 -0
  308. package/dist/cjs/SubHeader.js.map +1 -0
  309. package/dist/cjs/SubscriptionNotificationsContainer.js +79 -0
  310. package/dist/cjs/SubscriptionNotificationsContainer.js.map +1 -0
  311. package/dist/cjs/SuffixedInput.js +113 -0
  312. package/dist/cjs/SuffixedInput.js.map +1 -0
  313. package/dist/cjs/TableWrapper.js +29 -0
  314. package/dist/cjs/TableWrapper.js.map +1 -0
  315. package/dist/cjs/Taxonomy.js +517 -0
  316. package/dist/cjs/Taxonomy.js.map +1 -0
  317. package/dist/cjs/TimeFormat.js +16 -0
  318. package/dist/cjs/TimeFormat.js.map +1 -0
  319. package/dist/cjs/TimezoneMismatchModal.js +140 -0
  320. package/dist/cjs/TimezoneMismatchModal.js.map +1 -0
  321. package/dist/cjs/ToggleFeatureCard.js +213 -0
  322. package/dist/cjs/ToggleFeatureCard.js.map +1 -0
  323. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +11 -0
  324. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +1 -0
  325. package/dist/cjs/index-JY2zVpnv.js +1189 -0
  326. package/dist/cjs/index-JY2zVpnv.js.map +1 -0
  327. package/dist/cjs/inject-css-vQvjPR2x.js +6 -0
  328. package/dist/cjs/inject-css-vQvjPR2x.js.map +1 -0
  329. package/dist/cjs/phone-number-BN-c0rfv.js +320 -0
  330. package/dist/cjs/phone-number-BN-c0rfv.js.map +1 -0
  331. package/dist/cjs/platform-BUcCb8Jx.js +1254 -0
  332. package/dist/cjs/platform-BUcCb8Jx.js.map +1 -0
  333. package/dist/cjs/useColumns-BP8c4PV-.js +282 -0
  334. package/dist/cjs/useColumns-BP8c4PV-.js.map +1 -0
  335. package/dist/index-DAYCJu79.js +1187 -0
  336. package/dist/index-DAYCJu79.js.map +1 -0
  337. package/dist/inject-css-DmrvuTKK.js +4 -0
  338. package/dist/inject-css-DmrvuTKK.js.map +1 -0
  339. package/dist/phone-number-CXCBroLh.js +295 -0
  340. package/dist/phone-number-CXCBroLh.js.map +1 -0
  341. package/dist/platform-F44zJ4Xh.js +1252 -0
  342. package/dist/platform-F44zJ4Xh.js.map +1 -0
  343. package/dist/styles/page-loader.css +1 -0
  344. package/dist/styles/page-loader.js +3 -0
  345. package/dist/useColumns-Db5uic1-.js +274 -0
  346. package/dist/useColumns-Db5uic1-.js.map +1 -0
  347. package/package.json +5 -5
  348. package/types/AuditLogs.d.ts +22 -0
  349. package/types/BoardView.d.ts +149 -0
  350. package/types/Breadcrumbs.d.ts +30 -0
  351. package/types/BrowserPreview.d.ts +30 -0
  352. package/types/BrowserSupport.d.ts +110 -0
  353. package/types/Builder.d.ts +99 -0
  354. package/types/ButtonGroup.d.ts +45 -0
  355. package/types/CalendarView.d.ts +98 -0
  356. package/types/CardLayout.d.ts +34 -0
  357. package/types/Codeblock.d.ts +37 -0
  358. package/types/Columns.d.ts +168 -0
  359. package/types/ConfigurePageSidebar.d.ts +45 -0
  360. package/types/ConfirmationModal.d.ts +65 -0
  361. package/types/Container.d.ts +38 -0
  362. package/types/CopyToClipboardButton.d.ts +28 -0
  363. package/types/Currency.d.ts +50 -0
  364. package/types/DateFormat.d.ts +15 -0
  365. package/types/DateRangeFilter.d.ts +56 -0
  366. package/types/DeleteArchiveModal.d.ts +65 -0
  367. package/types/DeviceIncompatibilityMessage.d.ts +19 -0
  368. package/types/DocumentEditor.d.ts +61 -0
  369. package/types/DownloadMobileAppCallout.d.ts +35 -0
  370. package/types/DynamicVariables.d.ts +48 -0
  371. package/types/EmailForm.d.ts +165 -0
  372. package/types/EmailFormProvider.d.ts +48 -0
  373. package/types/EmailPreview.d.ts +43 -0
  374. package/types/EmojiPicker.d.ts +35 -0
  375. package/types/EmojiReactions.d.ts +62 -0
  376. package/types/Engagements.d.ts +131 -0
  377. package/types/ErrorPage.d.ts +22 -0
  378. package/types/FileUpload.d.ts +89 -0
  379. package/types/FinderModal.d.ts +66 -0
  380. package/types/FloatingActionMenu.d.ts +59 -0
  381. package/types/GoogleFontPicker.d.ts +68 -0
  382. package/types/Header.d.ts +37 -0
  383. package/types/HelpPopover.d.ts +45 -0
  384. package/types/IconPicker.d.ts +45 -0
  385. package/types/ImageWithFallback.d.ts +24 -0
  386. package/types/InlineInput.d.ts +87 -0
  387. package/types/Insights.d.ts +112 -0
  388. package/types/IntegrationCard.d.ts +60 -0
  389. package/types/IpRestriction.d.ts +25 -0
  390. package/types/KeyboardShortcuts.d.ts +149 -0
  391. package/types/LoginPage.d.ts +45 -0
  392. package/types/MadeWith.d.ts +18 -0
  393. package/types/MenuBar.d.ts +127 -0
  394. package/types/Metadata.d.ts +109 -0
  395. package/types/MobilePreviewHeader.d.ts +19 -0
  396. package/types/MoreDropdown.d.ts +52 -0
  397. package/types/NavigationHeader.d.ts +180 -0
  398. package/types/NeetoWidget.d.ts +43 -0
  399. package/types/Onboarding.d.ts +70 -0
  400. package/types/OptionFields.d.ts +70 -0
  401. package/types/PageLoader.d.ts +40 -0
  402. package/types/PhoneNumber.d.ts +112 -0
  403. package/types/ProductEmbed.d.ts +93 -0
  404. package/types/PublishBlock.d.ts +148 -0
  405. package/types/Rename.d.ts +73 -0
  406. package/types/ResponsiveDevicePicker.d.ts +32 -0
  407. package/types/Schedule.d.ts +146 -0
  408. package/types/Scrollable.d.ts +30 -0
  409. package/types/Search.d.ts +22 -0
  410. package/types/SendToFields.d.ts +67 -0
  411. package/types/SessionEnvironment.d.ts +170 -0
  412. package/types/Settings.d.ts +108 -0
  413. package/types/ShareRecordingPane.d.ts +85 -0
  414. package/types/ShareViaEmail.d.ts +99 -0
  415. package/types/ShareViaLink.d.ts +183 -0
  416. package/types/Sidebar.d.ts +51 -0
  417. package/types/StatusDropdown.d.ts +74 -0
  418. package/types/StickyRibbonsContainer.d.ts +28 -0
  419. package/types/SubHeader.d.ts +105 -0
  420. package/types/SubscriptionNotificationsContainer.d.ts +26 -0
  421. package/types/SuffixedInput.d.ts +45 -0
  422. package/types/TableWrapper.d.ts +40 -0
  423. package/types/Taxonomy.d.ts +59 -0
  424. package/types/TimeFormat.d.ts +13 -0
  425. package/types/TimezoneMismatchModal.d.ts +41 -0
  426. package/types/ToggleFeatureCard.d.ts +38 -0
@@ -0,0 +1,581 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
3
+ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
+ import _regeneratorRuntime from '@babel/runtime/regenerator';
6
+ import { memo, useState, useEffect, useMemo } from 'react';
7
+ import { toLabelAndValue, noop } from '@bigbinary/neeto-cist';
8
+ import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
9
+ import Select from '@bigbinary/neetoui/Select';
10
+ import { pluck, mergeLeft } from 'ramda';
11
+ import { jsx } from 'react/jsx-runtime';
12
+
13
+ /*! *****************************************************************************
14
+ Copyright (c) Microsoft Corporation. All rights reserved.
15
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
16
+ this file except in compliance with the License. You may obtain a copy of the
17
+ License at http://www.apache.org/licenses/LICENSE-2.0
18
+
19
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
21
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
22
+ MERCHANTABLITY OR NON-INFRINGEMENT.
23
+
24
+ See the Apache Version 2.0 License for specific language governing permissions
25
+ and limitations under the License.
26
+ ***************************************************************************** */
27
+
28
+ var __assign = function() {
29
+ __assign = Object.assign || function __assign(t) {
30
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
31
+ s = arguments[i];
32
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
33
+ }
34
+ return t;
35
+ };
36
+ return __assign.apply(this, arguments);
37
+ };
38
+
39
+ function __rest(s, e) {
40
+ var t = {};
41
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
42
+ t[p] = s[p];
43
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
44
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
45
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
46
+ t[p[i]] = s[p[i]];
47
+ }
48
+ return t;
49
+ }
50
+
51
+ function __awaiter(thisArg, _arguments, P, generator) {
52
+ return new (P || (P = Promise))(function (resolve, reject) {
53
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
54
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
55
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
56
+ step((generator = generator.apply(thisArg, [])).next());
57
+ });
58
+ }
59
+
60
+ function __generator(thisArg, body) {
61
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
62
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
63
+ function verb(n) { return function (v) { return step([n, v]); }; }
64
+ function step(op) {
65
+ if (f) throw new TypeError("Generator is already executing.");
66
+ while (_) try {
67
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
68
+ if (y = 0, t) op = [op[0] & 2, t.value];
69
+ switch (op[0]) {
70
+ case 0: case 1: t = op; break;
71
+ case 4: _.label++; return { value: op[1], done: false };
72
+ case 5: _.label++; y = op[1]; op = [0]; continue;
73
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
74
+ default:
75
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
76
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
77
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
78
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
79
+ if (t[2]) _.ops.pop();
80
+ _.trys.pop(); continue;
81
+ }
82
+ op = body.call(thisArg, _);
83
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
84
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
85
+ }
86
+ }
87
+
88
+ function styleInject(css, ref) {
89
+ if ( ref === void 0 ) ref = {};
90
+ var insertAt = ref.insertAt;
91
+
92
+ if (typeof document === 'undefined') { return; }
93
+
94
+ var head = document.head || document.getElementsByTagName('head')[0];
95
+ var style = document.createElement('style');
96
+ style.type = 'text/css';
97
+
98
+ if (insertAt === 'top') {
99
+ if (head.firstChild) {
100
+ head.insertBefore(style, head.firstChild);
101
+ } else {
102
+ head.appendChild(style);
103
+ }
104
+ } else {
105
+ head.appendChild(style);
106
+ }
107
+
108
+ if (style.styleSheet) {
109
+ style.styleSheet.cssText = css;
110
+ } else {
111
+ style.appendChild(document.createTextNode(css));
112
+ }
113
+ }
114
+
115
+ var css = "@charset \"UTF-8\";\ndiv[id^=font-picker] {\n position: relative;\n display: inline-block;\n width: 200px;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);\n}\ndiv[id^=font-picker] * {\n box-sizing: border-box;\n}\ndiv[id^=font-picker] p {\n margin: 0;\n padding: 0;\n}\ndiv[id^=font-picker] button {\n color: inherit;\n font-size: inherit;\n background: none;\n border: 0;\n outline: none;\n cursor: pointer;\n}\ndiv[id^=font-picker] .dropdown-button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n height: 35px;\n padding: 0 10px;\n background: #cbcbcb;\n}\ndiv[id^=font-picker] .dropdown-button:hover, div[id^=font-picker] .dropdown-button:focus {\n background: #bebebe;\n}\ndiv[id^=font-picker] .dropdown-button .dropdown-font-name {\n overflow: hidden;\n white-space: nowrap;\n}\ndiv[id^=font-picker] .dropdown-icon {\n margin-left: 10px;\n}\n@-webkit-keyframes spinner {\n to {\n transform: rotate(360deg);\n }\n}\n@keyframes spinner {\n to {\n transform: rotate(360deg);\n }\n}\ndiv[id^=font-picker] .dropdown-icon.loading::before {\n display: block;\n width: 10px;\n height: 10px;\n border: 2px solid #b2b2b2;\n border-top-color: #000000;\n border-radius: 50%;\n -webkit-animation: spinner 0.6s linear infinite;\n animation: spinner 0.6s linear infinite;\n content: \"\";\n}\ndiv[id^=font-picker] .dropdown-icon.finished::before {\n display: block;\n width: 0;\n height: 0;\n margin: 0 2px;\n border-top: 6px solid #000000;\n border-right: 5px solid transparent;\n border-left: 5px solid transparent;\n transition: transform 0.3s;\n content: \"\";\n}\ndiv[id^=font-picker] .dropdown-icon.error::before {\n content: \"⚠\";\n}\ndiv[id^=font-picker].expanded .dropdown-icon.finished::before {\n transform: rotate(-180deg);\n}\ndiv[id^=font-picker].expanded ul {\n max-height: 200px;\n}\ndiv[id^=font-picker] ul {\n position: absolute;\n z-index: 1;\n width: 100%;\n max-height: 0;\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: auto;\n background: #eaeaea;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);\n transition: 0.3s;\n -webkit-overflow-scrolling: touch;\n}\ndiv[id^=font-picker] ul li {\n height: 35px;\n list-style: none;\n}\ndiv[id^=font-picker] ul li button {\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 0 10px;\n white-space: nowrap;\n}\ndiv[id^=font-picker] ul li button:hover, div[id^=font-picker] ul li button:focus {\n background: #dddddd;\n}\ndiv[id^=font-picker] ul li button.active-font {\n background: #d1d1d1;\n}";
116
+ styleInject(css);
117
+
118
+ function getFontId(fontFamily) {
119
+ return fontFamily.replace(/\s+/g, "-").toLowerCase();
120
+ }
121
+ function validatePickerId(pickerId) {
122
+ if (pickerId.match(/[^0-9a-z]/i)) {
123
+ throw Error("The `pickerId` parameter may only contain letters and digits");
124
+ }
125
+ }
126
+
127
+ function get(url) {
128
+ return new Promise(function (resolve, reject) {
129
+ var request = new XMLHttpRequest();
130
+ request.overrideMimeType("application/json");
131
+ request.open("GET", url, true);
132
+ request.onreadystatechange = function () {
133
+ if (request.readyState === 4) {
134
+ if (request.status !== 200) {
135
+ reject(new Error("Response has status code " + request.status));
136
+ }
137
+ else {
138
+ resolve(request.responseText);
139
+ }
140
+ }
141
+ };
142
+ request.send();
143
+ });
144
+ }
145
+
146
+ var LIST_BASE_URL = "https://www.googleapis.com/webfonts/v1/webfonts";
147
+ function getFontList(apiKey) {
148
+ return __awaiter(this, void 0, void 0, function () {
149
+ var url, response, json, fontsOriginal;
150
+ return __generator(this, function (_a) {
151
+ switch (_a.label) {
152
+ case 0:
153
+ url = new URL(LIST_BASE_URL);
154
+ url.searchParams.append("sort", "popularity");
155
+ url.searchParams.append("key", apiKey);
156
+ return [4, get(url.href)];
157
+ case 1:
158
+ response = _a.sent();
159
+ json = JSON.parse(response);
160
+ fontsOriginal = json.items;
161
+ return [2, fontsOriginal.map(function (fontOriginal) {
162
+ var family = fontOriginal.family, subsets = fontOriginal.subsets, others = __rest(fontOriginal, ["family", "subsets"]);
163
+ return __assign(__assign({}, others), { family: family, id: getFontId(family), scripts: subsets });
164
+ })];
165
+ }
166
+ });
167
+ });
168
+ }
169
+
170
+ var previewFontsStylesheet = document.createElement("style");
171
+ document.head.appendChild(previewFontsStylesheet);
172
+ function applyFontPreview(previewFont, selectorSuffix) {
173
+ var fontId = getFontId(previewFont.family);
174
+ var style = "\n\t\t\t#font-button-" + fontId + selectorSuffix + " {\n\t\t\t\tfont-family: \"" + previewFont.family + "\";\n\t\t\t}\n\t\t";
175
+ previewFontsStylesheet.appendChild(document.createTextNode(style));
176
+ }
177
+ function getActiveFontStylesheet(selectorSuffix) {
178
+ var stylesheetId = "active-font-" + selectorSuffix;
179
+ var activeFontStylesheet = document.getElementById(stylesheetId);
180
+ if (!activeFontStylesheet) {
181
+ activeFontStylesheet = document.createElement("style");
182
+ activeFontStylesheet.id = stylesheetId;
183
+ document.head.appendChild(activeFontStylesheet);
184
+ }
185
+ return activeFontStylesheet;
186
+ }
187
+ function applyActiveFont(activeFont, previousFontFamily, selectorSuffix) {
188
+ var style = "\n\t\t.apply-font" + selectorSuffix + " {\n\t\t\tfont-family: \"" + activeFont.family + "\"" + (previousFontFamily ? ", \"" + previousFontFamily + "\"" : "") + ";\n\t\t}\n\t";
189
+ var activeFontStylesheet = getActiveFontStylesheet(selectorSuffix);
190
+ activeFontStylesheet.innerHTML = style;
191
+ }
192
+
193
+ var PREVIEW_ATTRIBUTE_NAME = "data-is-preview";
194
+ function getStylesheetId(fontId) {
195
+ return "font-" + fontId;
196
+ }
197
+ function stylesheetExists(fontId, isPreview) {
198
+ var stylesheetNode = document.getElementById(getStylesheetId(fontId));
199
+ if (isPreview === null || isPreview === undefined) {
200
+ return stylesheetNode !== null;
201
+ }
202
+ return (stylesheetNode !== null &&
203
+ stylesheetNode.getAttribute(PREVIEW_ATTRIBUTE_NAME) === isPreview.toString());
204
+ }
205
+ function createStylesheet(fontId, isPreview) {
206
+ var stylesheetNode = document.createElement("style");
207
+ stylesheetNode.id = getStylesheetId(fontId);
208
+ stylesheetNode.setAttribute(PREVIEW_ATTRIBUTE_NAME, isPreview.toString());
209
+ document.head.appendChild(stylesheetNode);
210
+ }
211
+ function fillStylesheet(fontId, styles) {
212
+ var stylesheetId = getStylesheetId(fontId);
213
+ var stylesheetNode = document.getElementById(stylesheetId);
214
+ if (stylesheetNode) {
215
+ stylesheetNode.textContent = styles;
216
+ }
217
+ else {
218
+ console.error("Could not fill stylesheet: Stylesheet with ID \"" + stylesheetId + "\" not found");
219
+ }
220
+ }
221
+ function setStylesheetType(fontId, isPreview) {
222
+ var stylesheetId = getStylesheetId(fontId);
223
+ var stylesheetNode = document.getElementById(stylesheetId);
224
+ if (stylesheetNode) {
225
+ stylesheetNode.setAttribute(PREVIEW_ATTRIBUTE_NAME, isPreview.toString());
226
+ }
227
+ else {
228
+ console.error("Could not change stylesheet type: Stylesheet with ID \"" + stylesheetId + "\" not found");
229
+ }
230
+ }
231
+
232
+ function getMatches(regex, str) {
233
+ var matches = [];
234
+ var match;
235
+ do {
236
+ match = regex.exec(str);
237
+ if (match) {
238
+ matches.push(match[1]);
239
+ }
240
+ } while (match);
241
+ return matches;
242
+ }
243
+
244
+ var FONT_FACE_REGEX = /@font-face {([\s\S]*?)}/gm;
245
+ var FONT_FAMILY_REGEX = /font-family: ['"](.*?)['"]/gm;
246
+ function extractFontStyles(allFontStyles) {
247
+ var rules = getMatches(FONT_FACE_REGEX, allFontStyles);
248
+ var fontStyles = {};
249
+ rules.forEach(function (rule) {
250
+ var fontFamily = getMatches(FONT_FAMILY_REGEX, rule)[0];
251
+ var fontId = getFontId(fontFamily);
252
+ if (!(fontId in fontStyles)) {
253
+ fontStyles[fontId] = "";
254
+ }
255
+ fontStyles[fontId] += "@font-face {\n" + rule + "\n}\n\n";
256
+ });
257
+ return fontStyles;
258
+ }
259
+
260
+ var FONT_BASE_URL = "https://fonts.googleapis.com/css";
261
+ function getStylesheet(fonts, scripts, variants, previewsOnly) {
262
+ return __awaiter(this, void 0, void 0, function () {
263
+ var url, variantsStr, familiesStr, familyNamesConcat, downloadChars;
264
+ return __generator(this, function (_a) {
265
+ url = new URL(FONT_BASE_URL);
266
+ variantsStr = variants.join(",");
267
+ familiesStr = fonts.map(function (font) { return font.family + ":" + variantsStr; });
268
+ url.searchParams.append("family", familiesStr.join("|"));
269
+ url.searchParams.append("subset", scripts.join(","));
270
+ if (previewsOnly) {
271
+ familyNamesConcat = fonts.map(function (font) { return font.family; }).join("");
272
+ downloadChars = familyNamesConcat
273
+ .split("")
274
+ .filter(function (char, pos, self) { return self.indexOf(char) === pos; })
275
+ .join("");
276
+ url.searchParams.append("text", downloadChars);
277
+ }
278
+ url.searchParams.append("font-display", "swap");
279
+ return [2, get(url.href)];
280
+ });
281
+ });
282
+ }
283
+
284
+ function loadFontPreviews(fonts, scripts, variants, selectorSuffix) {
285
+ return __awaiter(this, void 0, void 0, function () {
286
+ var fontsArray, fontsToFetch, response, fontStyles;
287
+ return __generator(this, function (_a) {
288
+ switch (_a.label) {
289
+ case 0:
290
+ fontsArray = Array.from(fonts.values());
291
+ fontsToFetch = fontsArray
292
+ .map(function (font) { return font.id; })
293
+ .filter(function (fontId) { return !stylesheetExists(fontId); });
294
+ fontsToFetch.forEach(function (fontId) { return createStylesheet(fontId, true); });
295
+ return [4, getStylesheet(fontsArray, scripts, variants, true)];
296
+ case 1:
297
+ response = _a.sent();
298
+ fontStyles = extractFontStyles(response);
299
+ fontsArray.forEach(function (font) {
300
+ applyFontPreview(font, selectorSuffix);
301
+ if (fontsToFetch.includes(font.id)) {
302
+ if (!(font.id in fontStyles)) {
303
+ console.error("Missing styles for font \"" + font.family + "\" (fontId \"" + font.id + "\") in Google Fonts response");
304
+ return;
305
+ }
306
+ fillStylesheet(font.id, fontStyles[font.id]);
307
+ }
308
+ });
309
+ return [2];
310
+ }
311
+ });
312
+ });
313
+ }
314
+ function loadActiveFont(font, previousFontFamily, scripts, variants, selectorSuffix) {
315
+ return __awaiter(this, void 0, void 0, function () {
316
+ var fontStyle;
317
+ return __generator(this, function (_a) {
318
+ switch (_a.label) {
319
+ case 0:
320
+ if (!stylesheetExists(font.id, false)) return [3, 1];
321
+ applyActiveFont(font, previousFontFamily, selectorSuffix);
322
+ return [3, 3];
323
+ case 1:
324
+ if (stylesheetExists(font.id, true)) {
325
+ setStylesheetType(font.id, false);
326
+ }
327
+ else {
328
+ createStylesheet(font.id, false);
329
+ }
330
+ return [4, getStylesheet([font], scripts, variants, false)];
331
+ case 2:
332
+ fontStyle = _a.sent();
333
+ applyActiveFont(font, previousFontFamily, selectorSuffix);
334
+ fillStylesheet(font.id, fontStyle);
335
+ _a.label = 3;
336
+ case 3: return [2];
337
+ }
338
+ });
339
+ });
340
+ }
341
+
342
+ var FONT_FAMILY_DEFAULT = "Open Sans";
343
+ var OPTIONS_DEFAULTS = {
344
+ pickerId: "",
345
+ families: [],
346
+ categories: [],
347
+ scripts: ["latin"],
348
+ variants: ["regular"],
349
+ filter: function () { return true; },
350
+ limit: 50,
351
+ sort: "alphabet",
352
+ };
353
+
354
+ var FontManager = (function () {
355
+ function FontManager(apiKey, defaultFamily, _a, onChange) {
356
+ if (defaultFamily === void 0) { defaultFamily = FONT_FAMILY_DEFAULT; }
357
+ var _b = _a.pickerId, pickerId = _b === void 0 ? OPTIONS_DEFAULTS.pickerId : _b, _c = _a.families, families = _c === void 0 ? OPTIONS_DEFAULTS.families : _c, _d = _a.categories, categories = _d === void 0 ? OPTIONS_DEFAULTS.categories : _d, _e = _a.scripts, scripts = _e === void 0 ? OPTIONS_DEFAULTS.scripts : _e, _f = _a.variants, variants = _f === void 0 ? OPTIONS_DEFAULTS.variants : _f, _g = _a.filter, filter = _g === void 0 ? OPTIONS_DEFAULTS.filter : _g, _h = _a.limit, limit = _h === void 0 ? OPTIONS_DEFAULTS.limit : _h, _j = _a.sort, sort = _j === void 0 ? OPTIONS_DEFAULTS.sort : _j;
358
+ if (onChange === void 0) { onChange = function () { }; }
359
+ this.fonts = new Map();
360
+ validatePickerId(pickerId);
361
+ this.selectorSuffix = pickerId ? "-" + pickerId : "";
362
+ this.apiKey = apiKey;
363
+ this.options = {
364
+ pickerId: pickerId,
365
+ families: families,
366
+ categories: categories,
367
+ scripts: scripts,
368
+ variants: variants,
369
+ filter: filter,
370
+ limit: limit,
371
+ sort: sort,
372
+ };
373
+ this.onChange = onChange;
374
+ this.addFont(defaultFamily, false);
375
+ this.setActiveFont(defaultFamily, false);
376
+ }
377
+ FontManager.prototype.init = function () {
378
+ return __awaiter(this, void 0, void 0, function () {
379
+ var fonts, _loop_1, this_1, i, state_1, fontsToLoad;
380
+ return __generator(this, function (_a) {
381
+ switch (_a.label) {
382
+ case 0: return [4, getFontList(this.apiKey)];
383
+ case 1:
384
+ fonts = _a.sent();
385
+ _loop_1 = function (i) {
386
+ var font = fonts[i];
387
+ if (this_1.fonts.size >= this_1.options.limit) {
388
+ return "break";
389
+ }
390
+ if (!this_1.fonts.has(font.family) &&
391
+ (this_1.options.families.length === 0 || this_1.options.families.includes(font.family)) &&
392
+ (this_1.options.categories.length === 0 || this_1.options.categories.includes(font.category)) &&
393
+ this_1.options.scripts.every(function (script) { return font.scripts.includes(script); }) &&
394
+ this_1.options.variants.every(function (variant) { return font.variants.includes(variant); }) &&
395
+ this_1.options.filter(font) === true) {
396
+ this_1.fonts.set(font.family, font);
397
+ }
398
+ };
399
+ this_1 = this;
400
+ for (i = 0; i < fonts.length; i += 1) {
401
+ state_1 = _loop_1(i);
402
+ if (state_1 === "break")
403
+ break;
404
+ }
405
+ fontsToLoad = new Map(this.fonts);
406
+ fontsToLoad["delete"](this.activeFontFamily);
407
+ loadFontPreviews(fontsToLoad, this.options.scripts, this.options.variants, this.selectorSuffix);
408
+ return [2, this.fonts];
409
+ }
410
+ });
411
+ });
412
+ };
413
+ FontManager.prototype.getFonts = function () {
414
+ return this.fonts;
415
+ };
416
+ FontManager.prototype.addFont = function (fontFamily, downloadPreview) {
417
+ if (downloadPreview === void 0) { downloadPreview = true; }
418
+ var font = {
419
+ family: fontFamily,
420
+ id: getFontId(fontFamily),
421
+ };
422
+ this.fonts.set(fontFamily, font);
423
+ if (downloadPreview) {
424
+ var fontMap = new Map();
425
+ fontMap.set(fontFamily, font);
426
+ loadFontPreviews(fontMap, this.options.scripts, this.options.variants, this.selectorSuffix);
427
+ }
428
+ };
429
+ FontManager.prototype.removeFont = function (fontFamily) {
430
+ this.fonts["delete"](fontFamily);
431
+ };
432
+ FontManager.prototype.getActiveFont = function () {
433
+ var activeFont = this.fonts.get(this.activeFontFamily);
434
+ if (!activeFont) {
435
+ throw Error("Cannot get active font: \"" + this.activeFontFamily + "\" is not in the font list");
436
+ }
437
+ else {
438
+ return activeFont;
439
+ }
440
+ };
441
+ FontManager.prototype.setActiveFont = function (fontFamily, runOnChange) {
442
+ var _this = this;
443
+ if (runOnChange === void 0) { runOnChange = true; }
444
+ var previousFontFamily = this.activeFontFamily;
445
+ var activeFont = this.fonts.get(fontFamily);
446
+ if (!activeFont) {
447
+ throw Error("Cannot update active font: \"" + fontFamily + "\" is not in the font list");
448
+ }
449
+ this.activeFontFamily = fontFamily;
450
+ loadActiveFont(activeFont, previousFontFamily, this.options.scripts, this.options.variants, this.selectorSuffix).then(function () {
451
+ if (runOnChange) {
452
+ _this.onChange(activeFont);
453
+ }
454
+ });
455
+ };
456
+ FontManager.prototype.setOnChange = function (onChange) {
457
+ this.onChange = onChange;
458
+ };
459
+ return FontManager;
460
+ }());
461
+
462
+ var defaultFilterOptions = function defaultFilterOptions(font) {
463
+ return !UNWANTED_FAMILIES.includes(font.family);
464
+ };
465
+ var sortAndFormatFonts = function sortAndFormatFonts(availableFonts) {
466
+ return pluck("family", availableFonts).sort(function (a, b) {
467
+ return a.localeCompare(b);
468
+ }).map(toLabelAndValue);
469
+ };
470
+
471
+ var UNWANTED_FAMILIES = ["Material Icons", "Material Icons Rounded", "Material Icons Sharp", "Material Icons Two Tone"];
472
+ var DEFAULT_PICKER_PROPS = {
473
+ pickerId: OPTIONS_DEFAULTS.pickerId,
474
+ families: OPTIONS_DEFAULTS.families,
475
+ categories: OPTIONS_DEFAULTS.categories,
476
+ scripts: OPTIONS_DEFAULTS.scripts,
477
+ variants: OPTIONS_DEFAULTS.variants,
478
+ filter: defaultFilterOptions,
479
+ limit: OPTIONS_DEFAULTS.limit,
480
+ sort: OPTIONS_DEFAULTS.sort
481
+ };
482
+
483
+ var _excluded = ["activeFontFamily", "fontManagerOptions", "onChange"];
484
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
485
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
486
+ var GoogleFontPicker = function GoogleFontPicker(_ref) {
487
+ var activeFontFamily = _ref.activeFontFamily,
488
+ _ref$fontManagerOptio = _ref.fontManagerOptions,
489
+ fontManagerOptions = _ref$fontManagerOptio === void 0 ? {
490
+ limit: 300
491
+ } : _ref$fontManagerOptio,
492
+ _ref$onChange = _ref.onChange,
493
+ onChange = _ref$onChange === void 0 ? noop : _ref$onChange,
494
+ otherProps = _objectWithoutProperties(_ref, _excluded);
495
+ var _useState = useState(activeFontFamily),
496
+ _useState2 = _slicedToArray(_useState, 2),
497
+ selectedFontFamily = _useState2[0],
498
+ setSelectedFontFamily = _useState2[1];
499
+ var _useState3 = useState(false),
500
+ _useState4 = _slicedToArray(_useState3, 2),
501
+ isLoading = _useState4[0],
502
+ setIsLoading = _useState4[1];
503
+ var _useState5 = useState([]),
504
+ _useState6 = _slicedToArray(_useState5, 2),
505
+ fonts = _useState6[0],
506
+ setFonts = _useState6[1];
507
+ var options = mergeLeft(fontManagerOptions, DEFAULT_PICKER_PROPS);
508
+ useEffect(function () {
509
+ initializeFontManager();
510
+ }, []);
511
+ var fontManager = useMemo(function () {
512
+ return new FontManager(globalProps.googleFontsApiKey, selectedFontFamily, options, onChange);
513
+ }, []);
514
+ var initializeFontManager = /*#__PURE__*/function () {
515
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
516
+ var availableFonts;
517
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
518
+ while (1) switch (_context.prev = _context.next) {
519
+ case 0:
520
+ _context.prev = 0;
521
+ setIsLoading(true);
522
+ _context.next = 4;
523
+ return fontManager.init();
524
+ case 4:
525
+ availableFonts = Array.from(fontManager.getFonts().values());
526
+ setFonts(sortAndFormatFonts(availableFonts));
527
+ _context.next = 11;
528
+ break;
529
+ case 8:
530
+ _context.prev = 8;
531
+ _context.t0 = _context["catch"](0);
532
+ throw _context.t0.message;
533
+ case 11:
534
+ _context.prev = 11;
535
+ setIsLoading(false);
536
+ return _context.finish(11);
537
+ case 14:
538
+ case "end":
539
+ return _context.stop();
540
+ }
541
+ }, _callee, null, [[0, 8, 11, 14]]);
542
+ }));
543
+ return function initializeFontManager() {
544
+ return _ref2.apply(this, arguments);
545
+ };
546
+ }();
547
+ var handleChange = function handleChange(fontFamily) {
548
+ var value = fontFamily.value;
549
+ fontManager.setActiveFont(value, false);
550
+ setSelectedFontFamily(value);
551
+ onChange(value);
552
+ };
553
+ return /*#__PURE__*/jsx(Select, _objectSpread(_objectSpread({
554
+ "data-testid": "google-font-picker",
555
+ options: fonts,
556
+ strategy: "fixed",
557
+ value: toLabelAndValue(selectedFontFamily),
558
+ styles: {
559
+ option: function option(styles, _ref3) {
560
+ var data = _ref3.data;
561
+ return _objectSpread(_objectSpread({}, styles), {}, {
562
+ fontFamily: data.value
563
+ });
564
+ },
565
+ singleValue: function singleValue(styles, _ref4) {
566
+ var data = _ref4.data;
567
+ return _objectSpread(_objectSpread({}, styles), {}, {
568
+ fontFamily: data.value
569
+ });
570
+ }
571
+ }
572
+ }, _objectSpread(_objectSpread({}, otherProps), {}, {
573
+ isLoading: isLoading
574
+ })), {}, {
575
+ onChange: handleChange
576
+ }));
577
+ };
578
+ var index = /*#__PURE__*/memo(GoogleFontPicker);
579
+
580
+ export { index as default };
581
+ //# sourceMappingURL=GoogleFontPicker.js.map