@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,583 @@
1
+ 'use strict';
2
+
3
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
+ var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
5
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
6
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
+ var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
+ var React = require('react');
9
+ var neetoCist = require('@bigbinary/neeto-cist');
10
+ var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
11
+ var Select = require('@bigbinary/neetoui/Select');
12
+ var ramda = require('ramda');
13
+ var jsxRuntime = require('react/jsx-runtime');
14
+
15
+ /*! *****************************************************************************
16
+ Copyright (c) Microsoft Corporation. All rights reserved.
17
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
18
+ this file except in compliance with the License. You may obtain a copy of the
19
+ License at http://www.apache.org/licenses/LICENSE-2.0
20
+
21
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
23
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
24
+ MERCHANTABLITY OR NON-INFRINGEMENT.
25
+
26
+ See the Apache Version 2.0 License for specific language governing permissions
27
+ and limitations under the License.
28
+ ***************************************************************************** */
29
+
30
+ var __assign = function() {
31
+ __assign = Object.assign || function __assign(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
35
+ }
36
+ return t;
37
+ };
38
+ return __assign.apply(this, arguments);
39
+ };
40
+
41
+ function __rest(s, e) {
42
+ var t = {};
43
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
44
+ t[p] = s[p];
45
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
46
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
47
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
48
+ t[p[i]] = s[p[i]];
49
+ }
50
+ return t;
51
+ }
52
+
53
+ function __awaiter(thisArg, _arguments, P, generator) {
54
+ return new (P || (P = Promise))(function (resolve, reject) {
55
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
56
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
57
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
58
+ step((generator = generator.apply(thisArg, [])).next());
59
+ });
60
+ }
61
+
62
+ function __generator(thisArg, body) {
63
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
64
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
65
+ function verb(n) { return function (v) { return step([n, v]); }; }
66
+ function step(op) {
67
+ if (f) throw new TypeError("Generator is already executing.");
68
+ while (_) try {
69
+ 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;
70
+ if (y = 0, t) op = [op[0] & 2, t.value];
71
+ switch (op[0]) {
72
+ case 0: case 1: t = op; break;
73
+ case 4: _.label++; return { value: op[1], done: false };
74
+ case 5: _.label++; y = op[1]; op = [0]; continue;
75
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
76
+ default:
77
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
78
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
79
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
80
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
81
+ if (t[2]) _.ops.pop();
82
+ _.trys.pop(); continue;
83
+ }
84
+ op = body.call(thisArg, _);
85
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
86
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
87
+ }
88
+ }
89
+
90
+ function styleInject(css, ref) {
91
+ if ( ref === void 0 ) ref = {};
92
+ var insertAt = ref.insertAt;
93
+
94
+ if (typeof document === 'undefined') { return; }
95
+
96
+ var head = document.head || document.getElementsByTagName('head')[0];
97
+ var style = document.createElement('style');
98
+ style.type = 'text/css';
99
+
100
+ if (insertAt === 'top') {
101
+ if (head.firstChild) {
102
+ head.insertBefore(style, head.firstChild);
103
+ } else {
104
+ head.appendChild(style);
105
+ }
106
+ } else {
107
+ head.appendChild(style);
108
+ }
109
+
110
+ if (style.styleSheet) {
111
+ style.styleSheet.cssText = css;
112
+ } else {
113
+ style.appendChild(document.createTextNode(css));
114
+ }
115
+ }
116
+
117
+ 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}";
118
+ styleInject(css);
119
+
120
+ function getFontId(fontFamily) {
121
+ return fontFamily.replace(/\s+/g, "-").toLowerCase();
122
+ }
123
+ function validatePickerId(pickerId) {
124
+ if (pickerId.match(/[^0-9a-z]/i)) {
125
+ throw Error("The `pickerId` parameter may only contain letters and digits");
126
+ }
127
+ }
128
+
129
+ function get(url) {
130
+ return new Promise(function (resolve, reject) {
131
+ var request = new XMLHttpRequest();
132
+ request.overrideMimeType("application/json");
133
+ request.open("GET", url, true);
134
+ request.onreadystatechange = function () {
135
+ if (request.readyState === 4) {
136
+ if (request.status !== 200) {
137
+ reject(new Error("Response has status code " + request.status));
138
+ }
139
+ else {
140
+ resolve(request.responseText);
141
+ }
142
+ }
143
+ };
144
+ request.send();
145
+ });
146
+ }
147
+
148
+ var LIST_BASE_URL = "https://www.googleapis.com/webfonts/v1/webfonts";
149
+ function getFontList(apiKey) {
150
+ return __awaiter(this, void 0, void 0, function () {
151
+ var url, response, json, fontsOriginal;
152
+ return __generator(this, function (_a) {
153
+ switch (_a.label) {
154
+ case 0:
155
+ url = new URL(LIST_BASE_URL);
156
+ url.searchParams.append("sort", "popularity");
157
+ url.searchParams.append("key", apiKey);
158
+ return [4, get(url.href)];
159
+ case 1:
160
+ response = _a.sent();
161
+ json = JSON.parse(response);
162
+ fontsOriginal = json.items;
163
+ return [2, fontsOriginal.map(function (fontOriginal) {
164
+ var family = fontOriginal.family, subsets = fontOriginal.subsets, others = __rest(fontOriginal, ["family", "subsets"]);
165
+ return __assign(__assign({}, others), { family: family, id: getFontId(family), scripts: subsets });
166
+ })];
167
+ }
168
+ });
169
+ });
170
+ }
171
+
172
+ var previewFontsStylesheet = document.createElement("style");
173
+ document.head.appendChild(previewFontsStylesheet);
174
+ function applyFontPreview(previewFont, selectorSuffix) {
175
+ var fontId = getFontId(previewFont.family);
176
+ 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";
177
+ previewFontsStylesheet.appendChild(document.createTextNode(style));
178
+ }
179
+ function getActiveFontStylesheet(selectorSuffix) {
180
+ var stylesheetId = "active-font-" + selectorSuffix;
181
+ var activeFontStylesheet = document.getElementById(stylesheetId);
182
+ if (!activeFontStylesheet) {
183
+ activeFontStylesheet = document.createElement("style");
184
+ activeFontStylesheet.id = stylesheetId;
185
+ document.head.appendChild(activeFontStylesheet);
186
+ }
187
+ return activeFontStylesheet;
188
+ }
189
+ function applyActiveFont(activeFont, previousFontFamily, selectorSuffix) {
190
+ var style = "\n\t\t.apply-font" + selectorSuffix + " {\n\t\t\tfont-family: \"" + activeFont.family + "\"" + (previousFontFamily ? ", \"" + previousFontFamily + "\"" : "") + ";\n\t\t}\n\t";
191
+ var activeFontStylesheet = getActiveFontStylesheet(selectorSuffix);
192
+ activeFontStylesheet.innerHTML = style;
193
+ }
194
+
195
+ var PREVIEW_ATTRIBUTE_NAME = "data-is-preview";
196
+ function getStylesheetId(fontId) {
197
+ return "font-" + fontId;
198
+ }
199
+ function stylesheetExists(fontId, isPreview) {
200
+ var stylesheetNode = document.getElementById(getStylesheetId(fontId));
201
+ if (isPreview === null || isPreview === undefined) {
202
+ return stylesheetNode !== null;
203
+ }
204
+ return (stylesheetNode !== null &&
205
+ stylesheetNode.getAttribute(PREVIEW_ATTRIBUTE_NAME) === isPreview.toString());
206
+ }
207
+ function createStylesheet(fontId, isPreview) {
208
+ var stylesheetNode = document.createElement("style");
209
+ stylesheetNode.id = getStylesheetId(fontId);
210
+ stylesheetNode.setAttribute(PREVIEW_ATTRIBUTE_NAME, isPreview.toString());
211
+ document.head.appendChild(stylesheetNode);
212
+ }
213
+ function fillStylesheet(fontId, styles) {
214
+ var stylesheetId = getStylesheetId(fontId);
215
+ var stylesheetNode = document.getElementById(stylesheetId);
216
+ if (stylesheetNode) {
217
+ stylesheetNode.textContent = styles;
218
+ }
219
+ else {
220
+ console.error("Could not fill stylesheet: Stylesheet with ID \"" + stylesheetId + "\" not found");
221
+ }
222
+ }
223
+ function setStylesheetType(fontId, isPreview) {
224
+ var stylesheetId = getStylesheetId(fontId);
225
+ var stylesheetNode = document.getElementById(stylesheetId);
226
+ if (stylesheetNode) {
227
+ stylesheetNode.setAttribute(PREVIEW_ATTRIBUTE_NAME, isPreview.toString());
228
+ }
229
+ else {
230
+ console.error("Could not change stylesheet type: Stylesheet with ID \"" + stylesheetId + "\" not found");
231
+ }
232
+ }
233
+
234
+ function getMatches(regex, str) {
235
+ var matches = [];
236
+ var match;
237
+ do {
238
+ match = regex.exec(str);
239
+ if (match) {
240
+ matches.push(match[1]);
241
+ }
242
+ } while (match);
243
+ return matches;
244
+ }
245
+
246
+ var FONT_FACE_REGEX = /@font-face {([\s\S]*?)}/gm;
247
+ var FONT_FAMILY_REGEX = /font-family: ['"](.*?)['"]/gm;
248
+ function extractFontStyles(allFontStyles) {
249
+ var rules = getMatches(FONT_FACE_REGEX, allFontStyles);
250
+ var fontStyles = {};
251
+ rules.forEach(function (rule) {
252
+ var fontFamily = getMatches(FONT_FAMILY_REGEX, rule)[0];
253
+ var fontId = getFontId(fontFamily);
254
+ if (!(fontId in fontStyles)) {
255
+ fontStyles[fontId] = "";
256
+ }
257
+ fontStyles[fontId] += "@font-face {\n" + rule + "\n}\n\n";
258
+ });
259
+ return fontStyles;
260
+ }
261
+
262
+ var FONT_BASE_URL = "https://fonts.googleapis.com/css";
263
+ function getStylesheet(fonts, scripts, variants, previewsOnly) {
264
+ return __awaiter(this, void 0, void 0, function () {
265
+ var url, variantsStr, familiesStr, familyNamesConcat, downloadChars;
266
+ return __generator(this, function (_a) {
267
+ url = new URL(FONT_BASE_URL);
268
+ variantsStr = variants.join(",");
269
+ familiesStr = fonts.map(function (font) { return font.family + ":" + variantsStr; });
270
+ url.searchParams.append("family", familiesStr.join("|"));
271
+ url.searchParams.append("subset", scripts.join(","));
272
+ if (previewsOnly) {
273
+ familyNamesConcat = fonts.map(function (font) { return font.family; }).join("");
274
+ downloadChars = familyNamesConcat
275
+ .split("")
276
+ .filter(function (char, pos, self) { return self.indexOf(char) === pos; })
277
+ .join("");
278
+ url.searchParams.append("text", downloadChars);
279
+ }
280
+ url.searchParams.append("font-display", "swap");
281
+ return [2, get(url.href)];
282
+ });
283
+ });
284
+ }
285
+
286
+ function loadFontPreviews(fonts, scripts, variants, selectorSuffix) {
287
+ return __awaiter(this, void 0, void 0, function () {
288
+ var fontsArray, fontsToFetch, response, fontStyles;
289
+ return __generator(this, function (_a) {
290
+ switch (_a.label) {
291
+ case 0:
292
+ fontsArray = Array.from(fonts.values());
293
+ fontsToFetch = fontsArray
294
+ .map(function (font) { return font.id; })
295
+ .filter(function (fontId) { return !stylesheetExists(fontId); });
296
+ fontsToFetch.forEach(function (fontId) { return createStylesheet(fontId, true); });
297
+ return [4, getStylesheet(fontsArray, scripts, variants, true)];
298
+ case 1:
299
+ response = _a.sent();
300
+ fontStyles = extractFontStyles(response);
301
+ fontsArray.forEach(function (font) {
302
+ applyFontPreview(font, selectorSuffix);
303
+ if (fontsToFetch.includes(font.id)) {
304
+ if (!(font.id in fontStyles)) {
305
+ console.error("Missing styles for font \"" + font.family + "\" (fontId \"" + font.id + "\") in Google Fonts response");
306
+ return;
307
+ }
308
+ fillStylesheet(font.id, fontStyles[font.id]);
309
+ }
310
+ });
311
+ return [2];
312
+ }
313
+ });
314
+ });
315
+ }
316
+ function loadActiveFont(font, previousFontFamily, scripts, variants, selectorSuffix) {
317
+ return __awaiter(this, void 0, void 0, function () {
318
+ var fontStyle;
319
+ return __generator(this, function (_a) {
320
+ switch (_a.label) {
321
+ case 0:
322
+ if (!stylesheetExists(font.id, false)) return [3, 1];
323
+ applyActiveFont(font, previousFontFamily, selectorSuffix);
324
+ return [3, 3];
325
+ case 1:
326
+ if (stylesheetExists(font.id, true)) {
327
+ setStylesheetType(font.id, false);
328
+ }
329
+ else {
330
+ createStylesheet(font.id, false);
331
+ }
332
+ return [4, getStylesheet([font], scripts, variants, false)];
333
+ case 2:
334
+ fontStyle = _a.sent();
335
+ applyActiveFont(font, previousFontFamily, selectorSuffix);
336
+ fillStylesheet(font.id, fontStyle);
337
+ _a.label = 3;
338
+ case 3: return [2];
339
+ }
340
+ });
341
+ });
342
+ }
343
+
344
+ var FONT_FAMILY_DEFAULT = "Open Sans";
345
+ var OPTIONS_DEFAULTS = {
346
+ pickerId: "",
347
+ families: [],
348
+ categories: [],
349
+ scripts: ["latin"],
350
+ variants: ["regular"],
351
+ filter: function () { return true; },
352
+ limit: 50,
353
+ sort: "alphabet",
354
+ };
355
+
356
+ var FontManager = (function () {
357
+ function FontManager(apiKey, defaultFamily, _a, onChange) {
358
+ if (defaultFamily === void 0) { defaultFamily = FONT_FAMILY_DEFAULT; }
359
+ 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;
360
+ if (onChange === void 0) { onChange = function () { }; }
361
+ this.fonts = new Map();
362
+ validatePickerId(pickerId);
363
+ this.selectorSuffix = pickerId ? "-" + pickerId : "";
364
+ this.apiKey = apiKey;
365
+ this.options = {
366
+ pickerId: pickerId,
367
+ families: families,
368
+ categories: categories,
369
+ scripts: scripts,
370
+ variants: variants,
371
+ filter: filter,
372
+ limit: limit,
373
+ sort: sort,
374
+ };
375
+ this.onChange = onChange;
376
+ this.addFont(defaultFamily, false);
377
+ this.setActiveFont(defaultFamily, false);
378
+ }
379
+ FontManager.prototype.init = function () {
380
+ return __awaiter(this, void 0, void 0, function () {
381
+ var fonts, _loop_1, this_1, i, state_1, fontsToLoad;
382
+ return __generator(this, function (_a) {
383
+ switch (_a.label) {
384
+ case 0: return [4, getFontList(this.apiKey)];
385
+ case 1:
386
+ fonts = _a.sent();
387
+ _loop_1 = function (i) {
388
+ var font = fonts[i];
389
+ if (this_1.fonts.size >= this_1.options.limit) {
390
+ return "break";
391
+ }
392
+ if (!this_1.fonts.has(font.family) &&
393
+ (this_1.options.families.length === 0 || this_1.options.families.includes(font.family)) &&
394
+ (this_1.options.categories.length === 0 || this_1.options.categories.includes(font.category)) &&
395
+ this_1.options.scripts.every(function (script) { return font.scripts.includes(script); }) &&
396
+ this_1.options.variants.every(function (variant) { return font.variants.includes(variant); }) &&
397
+ this_1.options.filter(font) === true) {
398
+ this_1.fonts.set(font.family, font);
399
+ }
400
+ };
401
+ this_1 = this;
402
+ for (i = 0; i < fonts.length; i += 1) {
403
+ state_1 = _loop_1(i);
404
+ if (state_1 === "break")
405
+ break;
406
+ }
407
+ fontsToLoad = new Map(this.fonts);
408
+ fontsToLoad["delete"](this.activeFontFamily);
409
+ loadFontPreviews(fontsToLoad, this.options.scripts, this.options.variants, this.selectorSuffix);
410
+ return [2, this.fonts];
411
+ }
412
+ });
413
+ });
414
+ };
415
+ FontManager.prototype.getFonts = function () {
416
+ return this.fonts;
417
+ };
418
+ FontManager.prototype.addFont = function (fontFamily, downloadPreview) {
419
+ if (downloadPreview === void 0) { downloadPreview = true; }
420
+ var font = {
421
+ family: fontFamily,
422
+ id: getFontId(fontFamily),
423
+ };
424
+ this.fonts.set(fontFamily, font);
425
+ if (downloadPreview) {
426
+ var fontMap = new Map();
427
+ fontMap.set(fontFamily, font);
428
+ loadFontPreviews(fontMap, this.options.scripts, this.options.variants, this.selectorSuffix);
429
+ }
430
+ };
431
+ FontManager.prototype.removeFont = function (fontFamily) {
432
+ this.fonts["delete"](fontFamily);
433
+ };
434
+ FontManager.prototype.getActiveFont = function () {
435
+ var activeFont = this.fonts.get(this.activeFontFamily);
436
+ if (!activeFont) {
437
+ throw Error("Cannot get active font: \"" + this.activeFontFamily + "\" is not in the font list");
438
+ }
439
+ else {
440
+ return activeFont;
441
+ }
442
+ };
443
+ FontManager.prototype.setActiveFont = function (fontFamily, runOnChange) {
444
+ var _this = this;
445
+ if (runOnChange === void 0) { runOnChange = true; }
446
+ var previousFontFamily = this.activeFontFamily;
447
+ var activeFont = this.fonts.get(fontFamily);
448
+ if (!activeFont) {
449
+ throw Error("Cannot update active font: \"" + fontFamily + "\" is not in the font list");
450
+ }
451
+ this.activeFontFamily = fontFamily;
452
+ loadActiveFont(activeFont, previousFontFamily, this.options.scripts, this.options.variants, this.selectorSuffix).then(function () {
453
+ if (runOnChange) {
454
+ _this.onChange(activeFont);
455
+ }
456
+ });
457
+ };
458
+ FontManager.prototype.setOnChange = function (onChange) {
459
+ this.onChange = onChange;
460
+ };
461
+ return FontManager;
462
+ }());
463
+
464
+ var defaultFilterOptions = function defaultFilterOptions(font) {
465
+ return !UNWANTED_FAMILIES.includes(font.family);
466
+ };
467
+ var sortAndFormatFonts = function sortAndFormatFonts(availableFonts) {
468
+ return ramda.pluck("family", availableFonts).sort(function (a, b) {
469
+ return a.localeCompare(b);
470
+ }).map(neetoCist.toLabelAndValue);
471
+ };
472
+
473
+ var UNWANTED_FAMILIES = ["Material Icons", "Material Icons Rounded", "Material Icons Sharp", "Material Icons Two Tone"];
474
+ var DEFAULT_PICKER_PROPS = {
475
+ pickerId: OPTIONS_DEFAULTS.pickerId,
476
+ families: OPTIONS_DEFAULTS.families,
477
+ categories: OPTIONS_DEFAULTS.categories,
478
+ scripts: OPTIONS_DEFAULTS.scripts,
479
+ variants: OPTIONS_DEFAULTS.variants,
480
+ filter: defaultFilterOptions,
481
+ limit: OPTIONS_DEFAULTS.limit,
482
+ sort: OPTIONS_DEFAULTS.sort
483
+ };
484
+
485
+ var _excluded = ["activeFontFamily", "fontManagerOptions", "onChange"];
486
+ 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; }
487
+ 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; }
488
+ var GoogleFontPicker = function GoogleFontPicker(_ref) {
489
+ var activeFontFamily = _ref.activeFontFamily,
490
+ _ref$fontManagerOptio = _ref.fontManagerOptions,
491
+ fontManagerOptions = _ref$fontManagerOptio === void 0 ? {
492
+ limit: 300
493
+ } : _ref$fontManagerOptio,
494
+ _ref$onChange = _ref.onChange,
495
+ onChange = _ref$onChange === void 0 ? neetoCist.noop : _ref$onChange,
496
+ otherProps = _objectWithoutProperties(_ref, _excluded);
497
+ var _useState = React.useState(activeFontFamily),
498
+ _useState2 = _slicedToArray(_useState, 2),
499
+ selectedFontFamily = _useState2[0],
500
+ setSelectedFontFamily = _useState2[1];
501
+ var _useState3 = React.useState(false),
502
+ _useState4 = _slicedToArray(_useState3, 2),
503
+ isLoading = _useState4[0],
504
+ setIsLoading = _useState4[1];
505
+ var _useState5 = React.useState([]),
506
+ _useState6 = _slicedToArray(_useState5, 2),
507
+ fonts = _useState6[0],
508
+ setFonts = _useState6[1];
509
+ var options = ramda.mergeLeft(fontManagerOptions, DEFAULT_PICKER_PROPS);
510
+ React.useEffect(function () {
511
+ initializeFontManager();
512
+ }, []);
513
+ var fontManager = React.useMemo(function () {
514
+ return new FontManager(initializers.globalProps.googleFontsApiKey, selectedFontFamily, options, onChange);
515
+ }, []);
516
+ var initializeFontManager = /*#__PURE__*/function () {
517
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
518
+ var availableFonts;
519
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
520
+ while (1) switch (_context.prev = _context.next) {
521
+ case 0:
522
+ _context.prev = 0;
523
+ setIsLoading(true);
524
+ _context.next = 4;
525
+ return fontManager.init();
526
+ case 4:
527
+ availableFonts = Array.from(fontManager.getFonts().values());
528
+ setFonts(sortAndFormatFonts(availableFonts));
529
+ _context.next = 11;
530
+ break;
531
+ case 8:
532
+ _context.prev = 8;
533
+ _context.t0 = _context["catch"](0);
534
+ throw _context.t0.message;
535
+ case 11:
536
+ _context.prev = 11;
537
+ setIsLoading(false);
538
+ return _context.finish(11);
539
+ case 14:
540
+ case "end":
541
+ return _context.stop();
542
+ }
543
+ }, _callee, null, [[0, 8, 11, 14]]);
544
+ }));
545
+ return function initializeFontManager() {
546
+ return _ref2.apply(this, arguments);
547
+ };
548
+ }();
549
+ var handleChange = function handleChange(fontFamily) {
550
+ var value = fontFamily.value;
551
+ fontManager.setActiveFont(value, false);
552
+ setSelectedFontFamily(value);
553
+ onChange(value);
554
+ };
555
+ return /*#__PURE__*/jsxRuntime.jsx(Select, _objectSpread(_objectSpread({
556
+ "data-testid": "google-font-picker",
557
+ options: fonts,
558
+ strategy: "fixed",
559
+ value: neetoCist.toLabelAndValue(selectedFontFamily),
560
+ styles: {
561
+ option: function option(styles, _ref3) {
562
+ var data = _ref3.data;
563
+ return _objectSpread(_objectSpread({}, styles), {}, {
564
+ fontFamily: data.value
565
+ });
566
+ },
567
+ singleValue: function singleValue(styles, _ref4) {
568
+ var data = _ref4.data;
569
+ return _objectSpread(_objectSpread({}, styles), {}, {
570
+ fontFamily: data.value
571
+ });
572
+ }
573
+ }
574
+ }, _objectSpread(_objectSpread({}, otherProps), {}, {
575
+ isLoading: isLoading
576
+ })), {}, {
577
+ onChange: handleChange
578
+ }));
579
+ };
580
+ var index = /*#__PURE__*/React.memo(GoogleFontPicker);
581
+
582
+ module.exports = index;
583
+ //# sourceMappingURL=GoogleFontPicker.js.map