@bigbinary/neeto-molecules 3.15.41 → 3.15.43

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/package.json +1 -1
  2. package/dist/AuditLogs.js +0 -539
  3. package/dist/AuditLogs.js.map +0 -1
  4. package/dist/BoardView.js +0 -393
  5. package/dist/BoardView.js.map +0 -1
  6. package/dist/Breadcrumbs.js +0 -46
  7. package/dist/Breadcrumbs.js.map +0 -1
  8. package/dist/BrowserPreview.js +0 -50
  9. package/dist/BrowserPreview.js.map +0 -1
  10. package/dist/BrowserSupport.js +0 -348
  11. package/dist/BrowserSupport.js.map +0 -1
  12. package/dist/Builder.js +0 -786
  13. package/dist/Builder.js.map +0 -1
  14. package/dist/ButtonGroup.js +0 -36
  15. package/dist/ButtonGroup.js.map +0 -1
  16. package/dist/CalendarView.js +0 -353
  17. package/dist/CalendarView.js.map +0 -1
  18. package/dist/CardLayout.js +0 -49
  19. package/dist/CardLayout.js.map +0 -1
  20. package/dist/Chevron-6dLkaXtR.js +0 -246
  21. package/dist/Chevron-6dLkaXtR.js.map +0 -1
  22. package/dist/Codeblock.js +0 -58
  23. package/dist/Codeblock.js.map +0 -1
  24. package/dist/Columns.js +0 -21
  25. package/dist/Columns.js.map +0 -1
  26. package/dist/ConfigurePageSidebar.js +0 -97
  27. package/dist/ConfigurePageSidebar.js.map +0 -1
  28. package/dist/ConfirmationModal.js +0 -110
  29. package/dist/ConfirmationModal.js.map +0 -1
  30. package/dist/Container.js +0 -38
  31. package/dist/Container.js.map +0 -1
  32. package/dist/CopyToClipboardButton.js +0 -82
  33. package/dist/CopyToClipboardButton.js.map +0 -1
  34. package/dist/Currency.js +0 -917
  35. package/dist/Currency.js.map +0 -1
  36. package/dist/DateFormat.js +0 -45
  37. package/dist/DateFormat.js.map +0 -1
  38. package/dist/DateRangeFilter.js +0 -178
  39. package/dist/DateRangeFilter.js.map +0 -1
  40. package/dist/DeleteArchiveModal.js +0 -98
  41. package/dist/DeleteArchiveModal.js.map +0 -1
  42. package/dist/DeviceIncompatibilityMessage.js +0 -95
  43. package/dist/DeviceIncompatibilityMessage.js.map +0 -1
  44. package/dist/DocumentEditor.js +0 -183
  45. package/dist/DocumentEditor.js.map +0 -1
  46. package/dist/DownloadMobileAppCallout.js +0 -40
  47. package/dist/DownloadMobileAppCallout.js.map +0 -1
  48. package/dist/DynamicVariables.js +0 -115
  49. package/dist/DynamicVariables.js.map +0 -1
  50. package/dist/EmailForm.js +0 -567
  51. package/dist/EmailForm.js.map +0 -1
  52. package/dist/EmailPreview.js +0 -140
  53. package/dist/EmailPreview.js.map +0 -1
  54. package/dist/EmojiPicker.js +0 -112
  55. package/dist/EmojiPicker.js.map +0 -1
  56. package/dist/EmojiReactions.js +0 -82
  57. package/dist/EmojiReactions.js.map +0 -1
  58. package/dist/Engagements.js +0 -292
  59. package/dist/Engagements.js.map +0 -1
  60. package/dist/ErrorPage.js +0 -1811
  61. package/dist/ErrorPage.js.map +0 -1
  62. package/dist/FileUpload.js +0 -595
  63. package/dist/FileUpload.js.map +0 -1
  64. package/dist/FinderModal.js +0 -280
  65. package/dist/FinderModal.js.map +0 -1
  66. package/dist/FloatingActionMenu.js +0 -854
  67. package/dist/FloatingActionMenu.js.map +0 -1
  68. package/dist/GoogleFontPicker.js +0 -581
  69. package/dist/GoogleFontPicker.js.map +0 -1
  70. package/dist/Header.js +0 -126
  71. package/dist/Header.js.map +0 -1
  72. package/dist/HelpPopover.js +0 -83
  73. package/dist/HelpPopover.js.map +0 -1
  74. package/dist/IconPicker.js +0 -1159
  75. package/dist/IconPicker.js.map +0 -1
  76. package/dist/ImageWithFallback.js +0 -49
  77. package/dist/ImageWithFallback.js.map +0 -1
  78. package/dist/InlineInput.js +0 -230
  79. package/dist/InlineInput.js.map +0 -1
  80. package/dist/Insights.js +0 -358
  81. package/dist/Insights.js.map +0 -1
  82. package/dist/IntegrationCard.js +0 -227
  83. package/dist/IntegrationCard.js.map +0 -1
  84. package/dist/IpRestriction.js +0 -3617
  85. package/dist/IpRestriction.js.map +0 -1
  86. package/dist/KeyboardShortcuts.js +0 -284
  87. package/dist/KeyboardShortcuts.js.map +0 -1
  88. package/dist/LoginPage.js +0 -184
  89. package/dist/LoginPage.js.map +0 -1
  90. package/dist/MadeWith.js +0 -41
  91. package/dist/MadeWith.js.map +0 -1
  92. package/dist/MenuBar.js +0 -1326
  93. package/dist/MenuBar.js.map +0 -1
  94. package/dist/Metadata.js +0 -218
  95. package/dist/Metadata.js.map +0 -1
  96. package/dist/MobilePreviewHeader.js +0 -25
  97. package/dist/MobilePreviewHeader.js.map +0 -1
  98. package/dist/MoreDropdown.js +0 -163
  99. package/dist/MoreDropdown.js.map +0 -1
  100. package/dist/NavigationHeader.js +0 -264
  101. package/dist/NavigationHeader.js.map +0 -1
  102. package/dist/NeetoWidget.js +0 -2867
  103. package/dist/NeetoWidget.js.map +0 -1
  104. package/dist/Onboarding.js +0 -246
  105. package/dist/Onboarding.js.map +0 -1
  106. package/dist/OptionFields.js +0 -717
  107. package/dist/OptionFields.js.map +0 -1
  108. package/dist/PageLoader.js +0 -40
  109. package/dist/PageLoader.js.map +0 -1
  110. package/dist/PhoneNumber.js +0 -75
  111. package/dist/PhoneNumber.js.map +0 -1
  112. package/dist/ProductEmbed.js +0 -884
  113. package/dist/ProductEmbed.js.map +0 -1
  114. package/dist/PublishBlock.js +0 -447
  115. package/dist/PublishBlock.js.map +0 -1
  116. package/dist/PublishYourItem.js +0 -58
  117. package/dist/PublishYourItem.js.map +0 -1
  118. package/dist/Rename.js +0 -366
  119. package/dist/Rename.js.map +0 -1
  120. package/dist/ResponsiveDevicePicker.js +0 -63
  121. package/dist/ResponsiveDevicePicker.js.map +0 -1
  122. package/dist/Schedule.js +0 -926
  123. package/dist/Schedule.js.map +0 -1
  124. package/dist/Scrollable.js +0 -42
  125. package/dist/Scrollable.js.map +0 -1
  126. package/dist/Search.js +0 -110
  127. package/dist/Search.js.map +0 -1
  128. package/dist/SendToFields.js +0 -2221
  129. package/dist/SendToFields.js.map +0 -1
  130. package/dist/SessionEnvironment.js +0 -431
  131. package/dist/SessionEnvironment.js.map +0 -1
  132. package/dist/Settings.js +0 -250
  133. package/dist/Settings.js.map +0 -1
  134. package/dist/ShareRecordingPane.js +0 -216
  135. package/dist/ShareRecordingPane.js.map +0 -1
  136. package/dist/ShareViaEmail.js +0 -416
  137. package/dist/ShareViaEmail.js.map +0 -1
  138. package/dist/ShareViaLink.js +0 -1556
  139. package/dist/ShareViaLink.js.map +0 -1
  140. package/dist/Sidebar.js +0 -294
  141. package/dist/Sidebar.js.map +0 -1
  142. package/dist/StatusDropdown.js +0 -109
  143. package/dist/StatusDropdown.js.map +0 -1
  144. package/dist/StickyRibbonsContainer.js +0 -131
  145. package/dist/StickyRibbonsContainer.js.map +0 -1
  146. package/dist/SubHeader.js +0 -209
  147. package/dist/SubHeader.js.map +0 -1
  148. package/dist/SubscriptionNotificationsContainer.js +0 -77
  149. package/dist/SubscriptionNotificationsContainer.js.map +0 -1
  150. package/dist/SuffixedInput.js +0 -111
  151. package/dist/SuffixedInput.js.map +0 -1
  152. package/dist/TableWrapper.js +0 -27
  153. package/dist/TableWrapper.js.map +0 -1
  154. package/dist/Taxonomy.js +0 -496
  155. package/dist/Taxonomy.js.map +0 -1
  156. package/dist/TimeFormat.js +0 -14
  157. package/dist/TimeFormat.js.map +0 -1
  158. package/dist/TimezoneMismatchModal.js +0 -138
  159. package/dist/TimezoneMismatchModal.js.map +0 -1
  160. package/dist/ToggleFeatureCard.js +0 -211
  161. package/dist/ToggleFeatureCard.js.map +0 -1
  162. package/dist/_commonjsHelpers-BFTU3MAI.js +0 -8
  163. package/dist/_commonjsHelpers-BFTU3MAI.js.map +0 -1
  164. package/dist/cjs/AuditLogs.js +0 -541
  165. package/dist/cjs/AuditLogs.js.map +0 -1
  166. package/dist/cjs/BoardView.js +0 -395
  167. package/dist/cjs/BoardView.js.map +0 -1
  168. package/dist/cjs/Breadcrumbs.js +0 -48
  169. package/dist/cjs/Breadcrumbs.js.map +0 -1
  170. package/dist/cjs/BrowserPreview.js +0 -52
  171. package/dist/cjs/BrowserPreview.js.map +0 -1
  172. package/dist/cjs/BrowserSupport.js +0 -350
  173. package/dist/cjs/BrowserSupport.js.map +0 -1
  174. package/dist/cjs/Builder.js +0 -794
  175. package/dist/cjs/Builder.js.map +0 -1
  176. package/dist/cjs/ButtonGroup.js +0 -38
  177. package/dist/cjs/ButtonGroup.js.map +0 -1
  178. package/dist/cjs/CalendarView.js +0 -355
  179. package/dist/cjs/CalendarView.js.map +0 -1
  180. package/dist/cjs/CardLayout.js +0 -51
  181. package/dist/cjs/CardLayout.js.map +0 -1
  182. package/dist/cjs/Chevron-wfVdaB4-.js +0 -256
  183. package/dist/cjs/Chevron-wfVdaB4-.js.map +0 -1
  184. package/dist/cjs/Codeblock.js +0 -60
  185. package/dist/cjs/Codeblock.js.map +0 -1
  186. package/dist/cjs/Columns.js +0 -35
  187. package/dist/cjs/Columns.js.map +0 -1
  188. package/dist/cjs/ConfigurePageSidebar.js +0 -99
  189. package/dist/cjs/ConfigurePageSidebar.js.map +0 -1
  190. package/dist/cjs/ConfirmationModal.js +0 -131
  191. package/dist/cjs/ConfirmationModal.js.map +0 -1
  192. package/dist/cjs/Container.js +0 -40
  193. package/dist/cjs/Container.js.map +0 -1
  194. package/dist/cjs/CopyToClipboardButton.js +0 -84
  195. package/dist/cjs/CopyToClipboardButton.js.map +0 -1
  196. package/dist/cjs/Currency.js +0 -920
  197. package/dist/cjs/Currency.js.map +0 -1
  198. package/dist/cjs/DateFormat.js +0 -47
  199. package/dist/cjs/DateFormat.js.map +0 -1
  200. package/dist/cjs/DateRangeFilter.js +0 -180
  201. package/dist/cjs/DateRangeFilter.js.map +0 -1
  202. package/dist/cjs/DeleteArchiveModal.js +0 -100
  203. package/dist/cjs/DeleteArchiveModal.js.map +0 -1
  204. package/dist/cjs/DeviceIncompatibilityMessage.js +0 -115
  205. package/dist/cjs/DeviceIncompatibilityMessage.js.map +0 -1
  206. package/dist/cjs/DocumentEditor.js +0 -185
  207. package/dist/cjs/DocumentEditor.js.map +0 -1
  208. package/dist/cjs/DownloadMobileAppCallout.js +0 -42
  209. package/dist/cjs/DownloadMobileAppCallout.js.map +0 -1
  210. package/dist/cjs/DynamicVariables.js +0 -117
  211. package/dist/cjs/DynamicVariables.js.map +0 -1
  212. package/dist/cjs/EmailForm.js +0 -593
  213. package/dist/cjs/EmailForm.js.map +0 -1
  214. package/dist/cjs/EmailPreview.js +0 -142
  215. package/dist/cjs/EmailPreview.js.map +0 -1
  216. package/dist/cjs/EmojiPicker.js +0 -114
  217. package/dist/cjs/EmojiPicker.js.map +0 -1
  218. package/dist/cjs/EmojiReactions.js +0 -84
  219. package/dist/cjs/EmojiReactions.js.map +0 -1
  220. package/dist/cjs/Engagements.js +0 -294
  221. package/dist/cjs/Engagements.js.map +0 -1
  222. package/dist/cjs/ErrorPage.js +0 -1831
  223. package/dist/cjs/ErrorPage.js.map +0 -1
  224. package/dist/cjs/FileUpload.js +0 -598
  225. package/dist/cjs/FileUpload.js.map +0 -1
  226. package/dist/cjs/FinderModal.js +0 -282
  227. package/dist/cjs/FinderModal.js.map +0 -1
  228. package/dist/cjs/FloatingActionMenu.js +0 -875
  229. package/dist/cjs/FloatingActionMenu.js.map +0 -1
  230. package/dist/cjs/GoogleFontPicker.js +0 -583
  231. package/dist/cjs/GoogleFontPicker.js.map +0 -1
  232. package/dist/cjs/Header.js +0 -128
  233. package/dist/cjs/Header.js.map +0 -1
  234. package/dist/cjs/HelpPopover.js +0 -85
  235. package/dist/cjs/HelpPopover.js.map +0 -1
  236. package/dist/cjs/IconPicker.js +0 -1161
  237. package/dist/cjs/IconPicker.js.map +0 -1
  238. package/dist/cjs/ImageWithFallback.js +0 -51
  239. package/dist/cjs/ImageWithFallback.js.map +0 -1
  240. package/dist/cjs/InlineInput.js +0 -233
  241. package/dist/cjs/InlineInput.js.map +0 -1
  242. package/dist/cjs/Insights.js +0 -360
  243. package/dist/cjs/Insights.js.map +0 -1
  244. package/dist/cjs/IntegrationCard.js +0 -229
  245. package/dist/cjs/IntegrationCard.js.map +0 -1
  246. package/dist/cjs/IpRestriction.js +0 -3638
  247. package/dist/cjs/IpRestriction.js.map +0 -1
  248. package/dist/cjs/KeyboardShortcuts.js +0 -286
  249. package/dist/cjs/KeyboardShortcuts.js.map +0 -1
  250. package/dist/cjs/LoginPage.js +0 -205
  251. package/dist/cjs/LoginPage.js.map +0 -1
  252. package/dist/cjs/MadeWith.js +0 -43
  253. package/dist/cjs/MadeWith.js.map +0 -1
  254. package/dist/cjs/MenuBar.js +0 -1328
  255. package/dist/cjs/MenuBar.js.map +0 -1
  256. package/dist/cjs/Metadata.js +0 -220
  257. package/dist/cjs/Metadata.js.map +0 -1
  258. package/dist/cjs/MobilePreviewHeader.js +0 -27
  259. package/dist/cjs/MobilePreviewHeader.js.map +0 -1
  260. package/dist/cjs/MoreDropdown.js +0 -165
  261. package/dist/cjs/MoreDropdown.js.map +0 -1
  262. package/dist/cjs/NavigationHeader.js +0 -266
  263. package/dist/cjs/NavigationHeader.js.map +0 -1
  264. package/dist/cjs/NeetoWidget.js +0 -2888
  265. package/dist/cjs/NeetoWidget.js.map +0 -1
  266. package/dist/cjs/Onboarding.js +0 -248
  267. package/dist/cjs/Onboarding.js.map +0 -1
  268. package/dist/cjs/OptionFields.js +0 -719
  269. package/dist/cjs/OptionFields.js.map +0 -1
  270. package/dist/cjs/PageLoader.js +0 -42
  271. package/dist/cjs/PageLoader.js.map +0 -1
  272. package/dist/cjs/PhoneNumber.js +0 -80
  273. package/dist/cjs/PhoneNumber.js.map +0 -1
  274. package/dist/cjs/ProductEmbed.js +0 -886
  275. package/dist/cjs/ProductEmbed.js.map +0 -1
  276. package/dist/cjs/PublishBlock.js +0 -449
  277. package/dist/cjs/PublishBlock.js.map +0 -1
  278. package/dist/cjs/PublishYourItem.js +0 -60
  279. package/dist/cjs/PublishYourItem.js.map +0 -1
  280. package/dist/cjs/Rename.js +0 -368
  281. package/dist/cjs/Rename.js.map +0 -1
  282. package/dist/cjs/ResponsiveDevicePicker.js +0 -65
  283. package/dist/cjs/ResponsiveDevicePicker.js.map +0 -1
  284. package/dist/cjs/Schedule.js +0 -947
  285. package/dist/cjs/Schedule.js.map +0 -1
  286. package/dist/cjs/Scrollable.js +0 -44
  287. package/dist/cjs/Scrollable.js.map +0 -1
  288. package/dist/cjs/Search.js +0 -112
  289. package/dist/cjs/Search.js.map +0 -1
  290. package/dist/cjs/SendToFields.js +0 -2223
  291. package/dist/cjs/SendToFields.js.map +0 -1
  292. package/dist/cjs/SessionEnvironment.js +0 -433
  293. package/dist/cjs/SessionEnvironment.js.map +0 -1
  294. package/dist/cjs/Settings.js +0 -252
  295. package/dist/cjs/Settings.js.map +0 -1
  296. package/dist/cjs/ShareRecordingPane.js +0 -218
  297. package/dist/cjs/ShareRecordingPane.js.map +0 -1
  298. package/dist/cjs/ShareViaEmail.js +0 -437
  299. package/dist/cjs/ShareViaEmail.js.map +0 -1
  300. package/dist/cjs/ShareViaLink.js +0 -1577
  301. package/dist/cjs/ShareViaLink.js.map +0 -1
  302. package/dist/cjs/Sidebar.js +0 -315
  303. package/dist/cjs/Sidebar.js.map +0 -1
  304. package/dist/cjs/StatusDropdown.js +0 -111
  305. package/dist/cjs/StatusDropdown.js.map +0 -1
  306. package/dist/cjs/StickyRibbonsContainer.js +0 -133
  307. package/dist/cjs/StickyRibbonsContainer.js.map +0 -1
  308. package/dist/cjs/SubHeader.js +0 -211
  309. package/dist/cjs/SubHeader.js.map +0 -1
  310. package/dist/cjs/SubscriptionNotificationsContainer.js +0 -79
  311. package/dist/cjs/SubscriptionNotificationsContainer.js.map +0 -1
  312. package/dist/cjs/SuffixedInput.js +0 -113
  313. package/dist/cjs/SuffixedInput.js.map +0 -1
  314. package/dist/cjs/TableWrapper.js +0 -29
  315. package/dist/cjs/TableWrapper.js.map +0 -1
  316. package/dist/cjs/Taxonomy.js +0 -517
  317. package/dist/cjs/Taxonomy.js.map +0 -1
  318. package/dist/cjs/TimeFormat.js +0 -16
  319. package/dist/cjs/TimeFormat.js.map +0 -1
  320. package/dist/cjs/TimezoneMismatchModal.js +0 -140
  321. package/dist/cjs/TimezoneMismatchModal.js.map +0 -1
  322. package/dist/cjs/ToggleFeatureCard.js +0 -213
  323. package/dist/cjs/ToggleFeatureCard.js.map +0 -1
  324. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -11
  325. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +0 -1
  326. package/dist/cjs/index-JY2zVpnv.js +0 -1189
  327. package/dist/cjs/index-JY2zVpnv.js.map +0 -1
  328. package/dist/cjs/inject-css-vQvjPR2x.js +0 -6
  329. package/dist/cjs/inject-css-vQvjPR2x.js.map +0 -1
  330. package/dist/cjs/phone-number-BN-c0rfv.js +0 -320
  331. package/dist/cjs/phone-number-BN-c0rfv.js.map +0 -1
  332. package/dist/cjs/platform-BUcCb8Jx.js +0 -1254
  333. package/dist/cjs/platform-BUcCb8Jx.js.map +0 -1
  334. package/dist/cjs/useColumns-BP8c4PV-.js +0 -282
  335. package/dist/cjs/useColumns-BP8c4PV-.js.map +0 -1
  336. package/dist/index-DAYCJu79.js +0 -1187
  337. package/dist/index-DAYCJu79.js.map +0 -1
  338. package/dist/inject-css-DmrvuTKK.js +0 -4
  339. package/dist/inject-css-DmrvuTKK.js.map +0 -1
  340. package/dist/phone-number-CXCBroLh.js +0 -295
  341. package/dist/phone-number-CXCBroLh.js.map +0 -1
  342. package/dist/platform-F44zJ4Xh.js +0 -1252
  343. package/dist/platform-F44zJ4Xh.js.map +0 -1
  344. package/dist/styles/page-loader.css +0 -1
  345. package/dist/styles/page-loader.js +0 -3
  346. package/dist/useColumns-Db5uic1-.js +0 -274
  347. package/dist/useColumns-Db5uic1-.js.map +0 -1
  348. package/types/AuditLogs.d.ts +0 -22
  349. package/types/BoardView.d.ts +0 -149
  350. package/types/Breadcrumbs.d.ts +0 -30
  351. package/types/BrowserPreview.d.ts +0 -30
  352. package/types/BrowserSupport.d.ts +0 -110
  353. package/types/Builder.d.ts +0 -99
  354. package/types/ButtonGroup.d.ts +0 -45
  355. package/types/CalendarView.d.ts +0 -98
  356. package/types/CardLayout.d.ts +0 -34
  357. package/types/Codeblock.d.ts +0 -37
  358. package/types/Columns.d.ts +0 -168
  359. package/types/ConfigurePageSidebar.d.ts +0 -45
  360. package/types/ConfirmationModal.d.ts +0 -65
  361. package/types/Container.d.ts +0 -38
  362. package/types/CopyToClipboardButton.d.ts +0 -28
  363. package/types/Currency.d.ts +0 -50
  364. package/types/DateFormat.d.ts +0 -15
  365. package/types/DateRangeFilter.d.ts +0 -56
  366. package/types/DeleteArchiveModal.d.ts +0 -65
  367. package/types/DeviceIncompatibilityMessage.d.ts +0 -19
  368. package/types/DocumentEditor.d.ts +0 -61
  369. package/types/DownloadMobileAppCallout.d.ts +0 -35
  370. package/types/DynamicVariables.d.ts +0 -48
  371. package/types/EmailForm.d.ts +0 -165
  372. package/types/EmailFormProvider.d.ts +0 -48
  373. package/types/EmailPreview.d.ts +0 -43
  374. package/types/EmojiPicker.d.ts +0 -35
  375. package/types/EmojiReactions.d.ts +0 -62
  376. package/types/Engagements.d.ts +0 -131
  377. package/types/ErrorPage.d.ts +0 -22
  378. package/types/FileUpload.d.ts +0 -89
  379. package/types/FinderModal.d.ts +0 -66
  380. package/types/FloatingActionMenu.d.ts +0 -59
  381. package/types/GoogleFontPicker.d.ts +0 -68
  382. package/types/Header.d.ts +0 -37
  383. package/types/HelpPopover.d.ts +0 -45
  384. package/types/IconPicker.d.ts +0 -45
  385. package/types/ImageWithFallback.d.ts +0 -24
  386. package/types/InlineInput.d.ts +0 -87
  387. package/types/Insights.d.ts +0 -112
  388. package/types/IntegrationCard.d.ts +0 -60
  389. package/types/IpRestriction.d.ts +0 -25
  390. package/types/KeyboardShortcuts.d.ts +0 -149
  391. package/types/LoginPage.d.ts +0 -45
  392. package/types/MadeWith.d.ts +0 -18
  393. package/types/MenuBar.d.ts +0 -127
  394. package/types/Metadata.d.ts +0 -109
  395. package/types/MobilePreviewHeader.d.ts +0 -19
  396. package/types/MoreDropdown.d.ts +0 -52
  397. package/types/NavigationHeader.d.ts +0 -180
  398. package/types/NeetoWidget.d.ts +0 -43
  399. package/types/Onboarding.d.ts +0 -70
  400. package/types/OptionFields.d.ts +0 -70
  401. package/types/PageLoader.d.ts +0 -40
  402. package/types/PhoneNumber.d.ts +0 -112
  403. package/types/ProductEmbed.d.ts +0 -93
  404. package/types/PublishBlock.d.ts +0 -148
  405. package/types/Rename.d.ts +0 -73
  406. package/types/ResponsiveDevicePicker.d.ts +0 -32
  407. package/types/Schedule.d.ts +0 -146
  408. package/types/Scrollable.d.ts +0 -30
  409. package/types/Search.d.ts +0 -22
  410. package/types/SendToFields.d.ts +0 -67
  411. package/types/SessionEnvironment.d.ts +0 -170
  412. package/types/Settings.d.ts +0 -108
  413. package/types/ShareRecordingPane.d.ts +0 -85
  414. package/types/ShareViaEmail.d.ts +0 -99
  415. package/types/ShareViaLink.d.ts +0 -183
  416. package/types/Sidebar.d.ts +0 -51
  417. package/types/StatusDropdown.d.ts +0 -74
  418. package/types/StickyRibbonsContainer.d.ts +0 -28
  419. package/types/SubHeader.d.ts +0 -105
  420. package/types/SubscriptionNotificationsContainer.d.ts +0 -26
  421. package/types/SuffixedInput.d.ts +0 -45
  422. package/types/TableWrapper.d.ts +0 -40
  423. package/types/Taxonomy.d.ts +0 -59
  424. package/types/TimeFormat.d.ts +0 -13
  425. package/types/TimezoneMismatchModal.d.ts +0 -41
  426. package/types/ToggleFeatureCard.d.ts +0 -38
@@ -1,581 +0,0 @@
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