cross-country 1.2.21 → 1.2.22

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 (259) hide show
  1. package/dist/Color-F6OSRLHC-BbLcUd-T.js +575 -0
  2. package/dist/{bolt-Bw4E_fgS.js → bolt-BLbYxvOV.js} +6 -5
  3. package/dist/bundle.css +36 -31
  4. package/dist/colour-util-Bzfca_cM.js +775 -0
  5. package/dist/components/atoms/circle/__tests__/circle.test.js +2 -2
  6. package/dist/components/atoms/column/__tests__/column.test.js +2 -2
  7. package/dist/components/atoms/index.js +1 -1
  8. package/dist/components/atoms/list/index.js +4 -0
  9. package/dist/components/atoms/list/list-item/index.js +4 -0
  10. package/dist/components/atoms/list/list-item/list-item.js +20 -0
  11. package/dist/components/atoms/list/list.js +33 -0
  12. package/dist/components/atoms/radio/index.js +2 -2
  13. package/dist/components/atoms/radio/radio.js +42 -3
  14. package/dist/components/atoms/text/animate-number/animate-number.js +1 -1
  15. package/dist/components/atoms/text/index.js +1 -1
  16. package/dist/components/atoms/text/input/__stories__/state-machine-fetch-dragons.js +3 -3
  17. package/dist/components/atoms/text/input/input-text-machine.js +3 -3
  18. package/dist/components/atoms/text/input/state-machine-text-input.js +1 -1
  19. package/dist/components/atoms/text/span/__stories__/span-story.js +6 -5
  20. package/dist/components/index.js +116 -116
  21. package/dist/components/molecules/autocomplete/autocomplete-machine.js +3 -3
  22. package/dist/components/molecules/autocomplete/autocomplete.js +1 -1
  23. package/dist/components/molecules/card/amazon/amazon-card.js +7 -6
  24. package/dist/components/molecules/card/builder/card-builder-machine/card-builder-machine.js +1 -1
  25. package/dist/components/molecules/card/builder/card-builder-machine/card-service-events.js +2 -2
  26. package/dist/components/molecules/card/builder/card-builder-machine/platform-states-amazon.js +1 -1
  27. package/dist/components/molecules/card/builder/card-builder-machine/platform-states-common.js +1 -1
  28. package/dist/components/molecules/card/builder/card-builder.js +1 -1
  29. package/dist/components/molecules/card/builder/card-editor.js +7 -6
  30. package/dist/components/molecules/card/card.js +6 -5
  31. package/dist/components/molecules/carousel/carousel.js +6 -5
  32. package/dist/components/molecules/day-number/day-number.js +6 -5
  33. package/dist/components/molecules/field/field.js +6 -5
  34. package/dist/components/molecules/gold-leaf/gold-leaf-view/__tests__/gold-leaf-view.test.js +3 -3
  35. package/dist/components/molecules/gold-leaf/gold-leaf-view/controls/gold-leaf-view-controls.js +8 -7
  36. package/dist/components/molecules/gold-leaf/gold-leaf-view/email/gold-leaf-email-view.js +7 -6
  37. package/dist/components/molecules/gold-leaf/gold-leaf-view/gold-leaf-view.js +7 -6
  38. package/dist/components/molecules/gold-leaf/gold-leaf-view/index.js +1 -1
  39. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-leaf-image.js +7 -6
  40. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.js +40 -0
  41. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-image-card.js +8 -7
  42. package/dist/components/molecules/gold-leaf/gold-leaf.js +1 -1
  43. package/dist/components/molecules/header/Header.js +10 -9
  44. package/dist/components/molecules/hero/hero.js +7 -6
  45. package/dist/components/molecules/icons/index.js +4 -3
  46. package/dist/components/molecules/icons/x/x.js +6 -5
  47. package/dist/components/molecules/index.js +8 -7
  48. package/dist/components/molecules/key-value-pairs/__tests__/key-value-pairs.js +1 -1
  49. package/dist/components/molecules/key-value-pairs/key-value-pairs.js +10 -9
  50. package/dist/components/molecules/keywords/keywords.js +6 -5
  51. package/dist/components/molecules/loading/__tests__/loading.test.js +1 -1
  52. package/dist/components/molecules/log-error-boundary/__stories__/log-error-boundary-story.js +1 -1
  53. package/dist/components/molecules/log-error-boundary/__tests__/log-error-boundary.test.js +2 -2
  54. package/dist/components/molecules/log-error-boundary/log-error-boundary.js +6 -5
  55. package/dist/components/molecules/modal/modal.js +6 -5
  56. package/dist/components/molecules/policies/index.js +4 -3
  57. package/dist/components/molecules/policies/privacy-policy.js +8 -7
  58. package/dist/components/molecules/policies/terms-of-use.js +8 -7
  59. package/dist/components/molecules/quote/quote.js +6 -5
  60. package/dist/components/molecules/radiogroup/__stories__/radio-group-form-story.js +12 -11
  61. package/dist/components/molecules/radiogroup/__stories__/radio-group-react-hook-form-story.js +15 -14
  62. package/dist/components/molecules/radiogroup/radiogroup.js +9 -9
  63. package/dist/components/molecules/related-articles/related-articles.js +15 -14
  64. package/dist/components/molecules/search/search.js +6 -5
  65. package/dist/components/molecules/stagger/stagger.js +6 -5
  66. package/dist/components/molecules/tile/corners.js +1 -1
  67. package/dist/components/molecules/tile/index.js +1 -1
  68. package/dist/components/molecules/tile/tile-interactive.js +5 -4
  69. package/dist/components/molecules/tile/tile.js +1 -1
  70. package/dist/components/molecules/time-progress/__tests__/progress.test.js +1 -1
  71. package/dist/components/molecules/time-progress/pilot/index.js +2 -3
  72. package/dist/components/molecules/time-progress/progress-over-year.js +6 -5
  73. package/dist/components/molecules/time-progress/progress.js +6 -5
  74. package/dist/components/molecules/user/anon-user.js +6 -5
  75. package/dist/components/molecules/user/user.js +7 -6
  76. package/dist/components/molecules/venn-diagram/__tests__/venn-diagram.tests.js +2 -2
  77. package/dist/components/molecules/venn-diagram/venn-diagram-circle.js +6 -5
  78. package/dist/components/molecules/venn-diagram/venn-diagram.js +6 -5
  79. package/dist/components/molecules/wallpaper/__tests__/wallpaper.tests.js +2 -2
  80. package/dist/components/molecules/wallpaper/wallpaper.js +1 -1
  81. package/dist/components/molecules/wrapper/__stories__/wrapper-children-story.js +6 -5
  82. package/dist/components/organisms/actors/actor/actor-builder-machine.js +2 -2
  83. package/dist/components/organisms/actors/actor/actor-builder.js +6 -5
  84. package/dist/components/organisms/actors/actor/actor.js +5 -4
  85. package/dist/components/organisms/actors/actor/index.js +1 -1
  86. package/dist/components/organisms/actors/animal/animal.js +1 -1
  87. package/dist/components/organisms/actors/monsters/troll/troll-machine.js +2 -2
  88. package/dist/components/organisms/actors/monsters/troll/troll.js +6 -5
  89. package/dist/components/organisms/actors/party/cleric/cleric.js +1 -1
  90. package/dist/components/organisms/actors/party/hunter/hunter.js +1 -1
  91. package/dist/components/organisms/actors/party/warrior/warrior.js +1 -1
  92. package/dist/components/organisms/actors/party/wizard/wizard.js +1 -1
  93. package/dist/components/organisms/actors/wisp/wisp.js +1 -1
  94. package/dist/components/organisms/ads/ad-card.js +6 -5
  95. package/dist/components/organisms/animation/animate-actor/animate-actor.js +6 -5
  96. package/dist/components/organisms/animation/one-day/one-day.js +15 -14
  97. package/dist/components/organisms/animation/reverse-text-animation/reverse-text-animation.js +6 -5
  98. package/dist/components/organisms/bento/layouts/five-by-four/bento-five-by-four.js +9 -8
  99. package/dist/components/organisms/bento/layouts/four-by-four/bento-four-by-four.js +6 -5
  100. package/dist/components/organisms/bento/layouts/three-by-three/bento-three-by-three.js +6 -5
  101. package/dist/components/organisms/bento/layouts/two-by-two/bento-two-by-two.js +6 -5
  102. package/dist/components/organisms/blog/__stories__/blog-story.js +9 -8
  103. package/dist/components/organisms/blog/blog-post/__stories__/blog-post-story.js +6 -5
  104. package/dist/components/organisms/blog/blog-post/blog-post-machine/build-listicle-machine.js +1 -1
  105. package/dist/components/organisms/blog/blog-post/blog-post-machine/delete-listicle-item.js +2 -2
  106. package/dist/components/organisms/blog/blog-post/blog-post-machine/load-listicle.js +2 -2
  107. package/dist/components/organisms/blog/blog-post/blog-post-machine/manage-listicle-items.js +1 -1
  108. package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle-item.js +2 -2
  109. package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle.js +2 -2
  110. package/dist/components/organisms/blog/blog-post/blog-post-machine/update-listice-item.js +2 -2
  111. package/dist/components/organisms/blog/blog-post/blog-post.js +6 -5
  112. package/dist/components/organisms/blog/blog-post-list.js +12 -11
  113. package/dist/components/organisms/blog/blog.js +6 -5
  114. package/dist/components/organisms/branch/branch.js +6 -5
  115. package/dist/components/organisms/branches/__tests__/branch-list.test.js +6 -4
  116. package/dist/components/organisms/branches/branch-list.js +61 -39
  117. package/dist/components/organisms/branches/branches.js +7 -6
  118. package/dist/components/organisms/calendar/calendar.js +6 -5
  119. package/dist/components/organisms/charts/chart/__stories__/data-set.js +1 -1
  120. package/dist/components/organisms/charts/chart/chart-gold-leaf/chart-gold-leaf.js +4 -3
  121. package/dist/components/organisms/clusters/cluster.js +6 -5
  122. package/dist/components/organisms/json-map-tile-grid/index.js +1 -1
  123. package/dist/components/organisms/json-map-tile-grid/json-map-tile-grid.js +6 -4
  124. package/dist/components/organisms/listicle/__stories__/andor-right-click-story.js +6 -5
  125. package/dist/components/organisms/listicle/__stories__/listicle-fb-v-canada-story.js +6 -5
  126. package/dist/components/organisms/listicle/__stories__/listicle-story.js +6 -5
  127. package/dist/components/organisms/listicle/build-listicle-machine/build-listicle-machine.js +1 -1
  128. package/dist/components/organisms/listicle/build-listicle-machine/delete-listicle-item.js +2 -2
  129. package/dist/components/organisms/listicle/build-listicle-machine/load-listicle.js +2 -2
  130. package/dist/components/organisms/listicle/build-listicle-machine/manage-listicle-items.js +1 -1
  131. package/dist/components/organisms/listicle/build-listicle-machine/save-listicle-item.js +2 -2
  132. package/dist/components/organisms/listicle/build-listicle-machine/save-listicle.js +2 -2
  133. package/dist/components/organisms/listicle/build-listicle-machine/update-listice-item.js +2 -2
  134. package/dist/components/organisms/listicle/edit-listicle/edit-listicle.js +13 -12
  135. package/dist/components/organisms/listicle/edit-listicle-item-list/edit-listicle-item-list.js +6 -5
  136. package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item-input.js +12 -11
  137. package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item.js +6 -5
  138. package/dist/components/organisms/listicle/listicle-builder.js +14 -13
  139. package/dist/components/organisms/listicle/listicle-item-list.js +12 -11
  140. package/dist/components/organisms/listicle/listicle.js +6 -5
  141. package/dist/components/organisms/listicle/post-link.js +7 -6
  142. package/dist/components/organisms/login/__stories__/login-story.js +6 -5
  143. package/dist/components/organisms/login/login-fetching-transition.js +6 -5
  144. package/dist/components/organisms/login/login-fields-transition.js +21 -20
  145. package/dist/components/organisms/login/login-response-transition.js +66 -11
  146. package/dist/components/organisms/login/login-submit-transition.js +6 -5
  147. package/dist/components/organisms/login/login-view.js +7 -6
  148. package/dist/components/organisms/metrics/metrics.js +6 -5
  149. package/dist/components/organisms/palettes/palettes.js +14 -12
  150. package/dist/components/organisms/player/player.js +6 -5
  151. package/dist/components/organisms/registration/password-strength-helper.js +11 -10
  152. package/dist/components/organisms/registration/post-registration.js +2 -2
  153. package/dist/components/organisms/registration/registration-form.js +6 -5
  154. package/dist/components/organisms/registration/registration-machine.js +2 -2
  155. package/dist/components/organisms/registration/registration-response.js +6 -5
  156. package/dist/components/organisms/registration/registration.js +7 -6
  157. package/dist/components/organisms/stage/stage.js +9 -8
  158. package/dist/components/organisms/survey/__stories__/build-form-story.js +6 -5
  159. package/dist/components/organisms/survey/build-form-machine.js +2 -2
  160. package/dist/components/organisms/survey/build-form.js +8 -7
  161. package/dist/components/organisms/survey/final-form.js +8 -7
  162. package/dist/components/organisms/survey/question/edit/__stories__/edit-question-story.js +6 -5
  163. package/dist/components/organisms/survey/question/edit/add-media.js +6 -5
  164. package/dist/components/organisms/survey/question/edit/add-question/__stories__/add-question-story.js +6 -5
  165. package/dist/components/organisms/survey/question/edit/add-question/add-question.js +30 -29
  166. package/dist/components/organisms/survey/question/edit/answer/answer-input.js +6 -5
  167. package/dist/components/organisms/survey/question/edit/answer-input.js +6 -5
  168. package/dist/components/organisms/survey/question/edit/edit-multiple-choice.js +6 -5
  169. package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js +2 -2
  170. package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list.js +7 -6
  171. package/dist/components/organisms/survey/question/edit/edit-option-list/option-input.js +6 -5
  172. package/dist/components/organisms/survey/question/edit/edit-option-list/option.js +7 -6
  173. package/dist/components/organisms/survey/question/edit/question-answer-input.js +6 -5
  174. package/dist/components/organisms/survey/question/take/__stories__/multiple-choice-story.js +6 -5
  175. package/dist/components/organisms/survey/question/take/__stories__/take-answer-date-time-input-story.js +6 -5
  176. package/dist/components/organisms/survey/question/take/__stories__/take-answer-input-story.js +6 -5
  177. package/dist/components/organisms/survey/question/take/inputs/input-manager.js +6 -5
  178. package/dist/components/organisms/survey/question/take/multiple-choice.js +6 -5
  179. package/dist/components/organisms/survey/question/take/take-answer-input.js +12 -11
  180. package/dist/components/organisms/tile-grid/__tests__/tile-grid.tests.js +3 -3
  181. package/dist/components/organisms/tile-grid/grid-row.js +6 -5
  182. package/dist/components/organisms/tile-grid/index.js +1 -1
  183. package/dist/components/organisms/tile-grid/island-tile-grid.js +12 -11
  184. package/dist/components/organisms/tile-grid/tile-grid.js +6 -4
  185. package/dist/components/organisms/worlds/area-of-effect/__stories__/area-of-affect-story.js +6 -5
  186. package/dist/components/organisms/worlds/area-of-effect/area-of-affect.js +31 -29
  187. package/dist/components/organisms/worlds/island/__stories__/island-story.js +18 -16
  188. package/dist/components/organisms/worlds/island/__stories__/island-util.js +25 -23
  189. package/dist/components/pages/home/headwinds/header/headwinds-header.js +6 -5
  190. package/dist/components/pages/home/headwinds/headwinds-footer.js +6 -5
  191. package/dist/components/pages/home/headwinds/headwinds-hero.js +6 -5
  192. package/dist/components/pages/home/headwinds/headwinds-sidequest.js +35 -34
  193. package/dist/components/pages/home/headwinds/home.js +9 -8
  194. package/dist/components/pages/index.js +6 -5
  195. package/dist/components/pages/profile/headwinds/headwinds-profile.js +21 -20
  196. package/dist/components/pages/profile/index.js +4 -3
  197. package/dist/components/templates/articles/article/article.js +6 -5
  198. package/dist/components/templates/home/headwinds/headwinds-home-hero.js +6 -5
  199. package/dist/components/templates/home/headwinds/headwinds-home.js +6 -5
  200. package/dist/components/templates/home/home.js +10 -9
  201. package/dist/fp-util-DZLSTUg5.js +8 -0
  202. package/dist/gold-leaf-view-CgRraK2i.js +183 -0
  203. package/dist/gold-leaf-view.module-p3mWnO60.js +17 -0
  204. package/dist/headline-DzDFQZ3e.js +11 -0
  205. package/dist/image-find-util-DMX6BcO-.js +1036 -0
  206. package/dist/index-BTF1caLu.js +2529 -0
  207. package/dist/{index-COQaJqs5.js → index-OdyFkztm.js} +3670 -2660
  208. package/dist/{index-DsigmIMS.js → index-_cvPLH70.js} +1 -1
  209. package/dist/index.esm-DGm91C_6.js +944 -0
  210. package/dist/index.js +143 -140
  211. package/dist/lib/components/atoms/list/index.d.ts +2 -0
  212. package/dist/lib/components/atoms/list/list-item/index.d.ts +2 -0
  213. package/dist/lib/components/atoms/list/list-item/list-item.d.ts +10 -0
  214. package/dist/lib/components/atoms/list/list.d.ts +12 -0
  215. package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.d.ts +4 -0
  216. package/dist/lib/components/organisms/branch/branch.d.ts +3 -1
  217. package/dist/lib/components/organisms/branches/__stories__/branches.stories.d.ts +7 -0
  218. package/dist/lib/components/organisms/branches/branch-list.d.ts +4 -1
  219. package/dist/lib/models/TreeModel.d.ts +12 -0
  220. package/dist/lib/models/index.d.ts +1 -0
  221. package/dist/lib/utils/golds/feed-util.d.ts +17 -0
  222. package/dist/lib/utils/index.d.ts +5 -0
  223. package/dist/list.module-pjS_KHqp.js +10 -0
  224. package/dist/{log-2a4cc478.esm-HFv7vQ7j.js → log-2a4cc478.esm-BdzQp5f-.js} +15 -15
  225. package/dist/{log-error-boundary-story-BF8rmHhr.js → log-error-boundary-story-CcyM__Yt.js} +6541 -7185
  226. package/dist/{magic-string.es-VsGWiGpd.js → magic-string.es-QkQE39Zh.js} +11 -6
  227. package/dist/{radio-BTUtRmLM.js → mobile-detect-CWVWWCSg.js} +12 -51
  228. package/dist/models/TreeModel.js +12 -0
  229. package/dist/models/index.js +3 -2
  230. package/dist/{react-spring_web.modern-nSq5Xzxb.js → react-spring_web.modern-ClBJWBW2.js} +281 -273
  231. package/dist/{react.esm-BEaxtOYu.js → react.esm-BpVcViTQ.js} +2197 -2181
  232. package/dist/string-util-D7tmqJRS.js +35 -0
  233. package/dist/table-data-BnRZ5F7y.js +16 -0
  234. package/dist/utils/golds/feed-util.js +240 -0
  235. package/dist/utils/index.js +12 -0
  236. package/dist/{vi.YFlodzP_-CjWVzrI3.js → vi.YFlodzP_-C3qjkUdf.js} +2 -2
  237. package/dist/{xstate-actors.esm-Ba6reXm_.js → xstate-actors.esm-CcLF5JHw.js} +1 -1
  238. package/dist/{xstate-react.esm-Ct8KIFgA.js → xstate-react.esm-DWdE0_Ay.js} +1 -1
  239. package/dist/{xstate.esm-Bo02HSs2.js → xstate.esm-COAqQ2fq.js} +11 -11
  240. package/package.json +4 -2
  241. package/dist/Color-ERTF36HU-DRLqcX19.js +0 -358
  242. package/dist/_getTag-CqbPZ7Cl.js +0 -449
  243. package/dist/components/organisms/branches/__stories__/branches-story.js +0 -6
  244. package/dist/components/organisms/branches/branch-list.types.js +0 -1
  245. package/dist/feed-util-CZfVh6cR.js +0 -244
  246. package/dist/fp-util-4N0NK_eU.js +0 -8
  247. package/dist/gold-leaf-view-BAGw5McJ.js +0 -117
  248. package/dist/gold-leaf-view.module-BTNjKEeW.js +0 -17
  249. package/dist/headline-DuHL8hAt.js +0 -11
  250. package/dist/image-find-util-Cl2ZJHfC.js +0 -41
  251. package/dist/index-BsYJgl86.js +0 -3853
  252. package/dist/index-Cdg9lY68.js +0 -542
  253. package/dist/index.esm-BrPDxyfz.js +0 -933
  254. package/dist/lib/components/organisms/branches/__stories__/branches-story.d.ts +0 -2
  255. package/dist/lib/components/organisms/branches/branch-list.types.d.ts +0 -5
  256. package/dist/list-BkQjCFcb.js +0 -14
  257. package/dist/list-item-DyDjznkQ.js +0 -8
  258. package/dist/login-response-transition-Dws0eBbH.js +0 -123
  259. package/dist/table-data-PGM-_ef9.js +0 -16
@@ -0,0 +1,35 @@
1
+ var o = Object.defineProperty;
2
+ var u = (r, e, t) => e in r ? o(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var n = (r, e, t) => u(r, typeof e != "symbol" ? e + "" : e, t);
4
+ class a {
5
+ constructor() {
6
+ /**
7
+ * Returns a random number between min (inclusive) and max (exclusive)
8
+ */
9
+ n(this, "reverse", function(e) {
10
+ return e.split("").reverse().join("");
11
+ });
12
+ n(this, "capitalize", function(e) {
13
+ return e.charAt(0).toUpperCase() + e.slice(1);
14
+ });
15
+ /* some weird canvas function which is not used anywhere
16
+ getTextWidth = function (text, font) {
17
+ canvas = document.createElement('canvas');
18
+ var context = canvas.getContext('2d');
19
+ context.font = font;
20
+ var width = context.measureText(text).width;
21
+ delete canvas;
22
+ return width;
23
+ };*/
24
+ n(this, "replaceNumbersWithLetters", function(e) {
25
+ var t = e.split(""), s = "";
26
+ return _.each(t, function(i) {
27
+ String(Number(i)) !== "NaN" && (i = String.fromCharCode(Number(i) + 97)), s += i;
28
+ }), s;
29
+ });
30
+ }
31
+ }
32
+ const l = new a();
33
+ export {
34
+ l as S
35
+ };
@@ -0,0 +1,16 @@
1
+ import { jsx as b } from "react/jsx-runtime";
2
+ import "react";
3
+ import { c as o } from "./clsx.m-BMVuQnLY.js";
4
+ const d = "_table_1rwap_1", _ = "_tableRow_1rwap_7", r = "_tableData_1rwap_12", m = "_tableDataHead_1rwap_21", s = {
5
+ table: d,
6
+ tableRow: _,
7
+ tableData: r,
8
+ tableDataHead: m
9
+ }, D = ({ children: a, customClass: t = "", customStyle: e = {}, ...l }) => /* @__PURE__ */ b("table", { className: o(s.table, t), style: e, ...l, children: a }), p = ({ children: a, customClass: t = "", customStyle: e = {}, ...l }) => /* @__PURE__ */ b("tbody", { className: o(s.tableBody, t), style: e, ...l, children: a }), H = ({ children: a, customClass: t = "", customStyle: e = {}, ...l }) => /* @__PURE__ */ b("thead", { className: o(s.tableHead, t), style: e, ...l, children: a }), T = ({ children: a, customClass: t = "", customStyle: e = {}, ...l }) => /* @__PURE__ */ b("tr", { className: o(s.tableRow, t), style: e, ...l, children: a }), N = ({ isHead: a = !1, children: t, customClass: e = "", customStyle: l = {}, ...c }) => /* @__PURE__ */ b("td", { className: o(s.tableData, { [s.tableDataHead]: a }, e), style: l, ...c, children: t });
10
+ export {
11
+ D as T,
12
+ p as a,
13
+ H as b,
14
+ T as c,
15
+ N as d
16
+ };
@@ -0,0 +1,240 @@
1
+ import y from "../../models/PortholeBranchModel.js";
2
+ import { g as w } from "../../image-find-util-DMX6BcO-.js";
3
+ const j = "./", x = (o) => {
4
+ for (const r in o)
5
+ String(o[r]) === "undefined" && (o[r] = "not found");
6
+ return o;
7
+ }, b = (o, r, i) => {
8
+ var c;
9
+ const t = x(o);
10
+ if (!t)
11
+ return;
12
+ const l = w(t), s = l[0];
13
+ if (!s)
14
+ return null;
15
+ const a = s.useText ? s.defaultImageUrl : s.imageUrl, d = a.indexOf("500") > -1 ? a.replace("500", "1280") : a, p = unescape(t.title), g = unescape(s.text);
16
+ let e = ((n) => {
17
+ var u;
18
+ return n ? ((u = n == null ? void 0 : n.meta) == null ? void 0 : u.title) ?? (n == null ? void 0 : n.title) ?? "" : "";
19
+ })(t);
20
+ e === "National Geographic Photo of the Day" ? e = "National Geographic" : e === "Latest Articles" ? e = "Dwell" : e === "Latest Items from TreeHugger" ? e = "TreeHugger" : e.trim() === "Polygon - All" ? e = "Polygon" : e.trim() === "Behance Featured Projects" ? e = "Behance" : e.trim() === "Abduzeedo Design Inspiration - Design Inspiration & Tutorials" ? e = "Abduzeedo" : e.trim() === "Latest News - Pitchfork" ? e = "Pitchfork" : e.trim() === "rackk and ruin" ? e = "Rackk and Ruin" : e.trim() === "BOILER ROOM" ? e = "Boiler Room" : e.trim() === "CRISTIAN ORDONEZ" ? e = "Cristian Ordóñez" : e.trim() === "Get Outside — Medium" ? e = "Headlands" : e.trim() === "ArtStation - Latest Picks" ? e = "ArtStation" : e.trim() === "Y! Sports Blogs - Yahoo Canada Sports" ? e = "Yahoo Sports" : e.trim() === "International Documentary Association" ? e = "Documentary" : e.trim() === "/Film" ? e = "Slash" : e.trim() === "Film Blog | The Guardian" ? e = "The Guardian" : e.trim() === "Crosscuts" ? e = "Walker" : e.trim() === "NBA.com: News" ? e = "NBA" : e.trim() === "CONTEMPORIST" ? e = "Contemporist" : e.trim() === "Sports - The Inquisitr News" ? e = "The Inquisitr" : e.trim() === "designboom | architecture & design magazine" && (e = "designboom");
21
+ const m = (t == null ? void 0 : t.tags) ?? t.categories ?? [], h = {
22
+ id: `gold-leaf-${r}-${i}`,
23
+ tags: m,
24
+ photoUrl: a,
25
+ photoLargeUrl: d,
26
+ images: l,
27
+ link: t.link,
28
+ published: t.published,
29
+ branchTitleUnescape: p,
30
+ metaLink: ((c = t == null ? void 0 : t.meta) == null ? void 0 : c.link) ?? t.link ?? "",
31
+ title: e,
32
+ branchDescriptionUnescape: g,
33
+ index: r,
34
+ description: g,
35
+ useText: s.useText,
36
+ x: 0,
37
+ y: 0,
38
+ bViewed: !1,
39
+ bTrashed: !1,
40
+ origin: "porthole",
41
+ publishedDate: t.publishedDate ?? "",
42
+ feedLink: t.feedLink ?? "",
43
+ feedTitle: t.feedTitle ?? "",
44
+ about: t.about ?? "",
45
+ text: t.text ?? ""
46
+ };
47
+ return new y(h);
48
+ }, k = (o) => o.map((l, s) => b(l, 0, s)).filter(
49
+ (l) => l !== null
50
+ ), B = () => ({
51
+ cabinporn: {
52
+ _id: "1",
53
+ xmlUrl: "http://cabinporn.com/rss",
54
+ type: "rss",
55
+ title: "Cabin Porn™",
56
+ category: "architecture",
57
+ origin: "porthole"
58
+ },
59
+ treehugger: {
60
+ _id: "7",
61
+ xmlUrl: "http://www.treehugger.com/feeds/latest/",
62
+ type: "rss",
63
+ title: "Tree Hugger",
64
+ category: "technology",
65
+ origin: "porthole"
66
+ },
67
+ wired: {
68
+ _id: "4",
69
+ xmlUrl: "http://feeds.wired.com/wired/index",
70
+ type: "rss",
71
+ title: "WIRED",
72
+ category: "technology",
73
+ origin: "porthole"
74
+ },
75
+ coolhunting: {
76
+ _id: "2",
77
+ xmlUrl: "https://coolhunting.com/feed/",
78
+ type: "rss",
79
+ title: "Cool Hunting",
80
+ category: "design",
81
+ origin: "porthole"
82
+ },
83
+ kotaku: {
84
+ _id: "6",
85
+ xmlUrl: "http://kotaku.com/rss/vip",
86
+ type: "rss",
87
+ title: "Kotaku",
88
+ category: "gaming",
89
+ origin: "porthole"
90
+ },
91
+ //nationalgeographic: nationalGeographicTreeObj,
92
+ colossal: {
93
+ _id: "10",
94
+ xmlUrl: "http://feeds.feedburner.com/colossal",
95
+ type: "rss",
96
+ title: "Colossal",
97
+ category: "design",
98
+ origin: "porthole"
99
+ },
100
+ dwell: {
101
+ _id: "9",
102
+ xmlUrl: "http://www.dwell.com/articles/feed",
103
+ type: "rss",
104
+ title: "Dwell",
105
+ category: "architecture",
106
+ origin: "porthole"
107
+ },
108
+ designmilk: {
109
+ _id: "3",
110
+ xmlUrl: "http://feeds.feedburner.com/design-milk",
111
+ type: "rss",
112
+ title: "Design Milk",
113
+ category: "design",
114
+ origin: "porthole"
115
+ },
116
+ boingboing: {
117
+ _id: "5",
118
+ xmlUrl: "http://feeds.boingboing.net/boingboing/iBag",
119
+ type: "rss",
120
+ title: "Boing Boing",
121
+ category: "technology",
122
+ origin: "porthole"
123
+ },
124
+ polygon: {
125
+ _id: "11",
126
+ xmlUrl: "http://www.polygon.com/rss/index.xml",
127
+ type: "rss",
128
+ title: "Polygon",
129
+ category: "gaming",
130
+ origin: "porthole"
131
+ },
132
+ //architizer: architizerTreeObj, // doesn't exist anymore
133
+ //"harpersbazaar" : harpersbazaarTreeObj,
134
+ //"w" : wTreeObj,
135
+ booooooom: {
136
+ _id: "15",
137
+ xmlUrl: "http://www.booooooom.com/feed/",
138
+ type: "rss",
139
+ title: "BOOOOOOOM!",
140
+ category: "art",
141
+ origin: "porthole"
142
+ },
143
+ //abduzeedo: abduzeedoTreeObj,
144
+ behance: {
145
+ _id: "17",
146
+ xmlUrl: "https://www.behance.net/feeds/projects",
147
+ type: "rss",
148
+ title: "Behance",
149
+ category: "art",
150
+ origin: "porthole"
151
+ },
152
+ //"bleacherreport" : bleacherReportTreeObj, // not working
153
+ gamespot: {
154
+ _id: "19",
155
+ xmlUrl: "http://www.gamespot.com/feeds/mashup/",
156
+ type: "rss",
157
+ title: "GameSpot",
158
+ category: "gaming",
159
+ origin: "porthole"
160
+ },
161
+ //"twitchfilm" : twitchfilmTreeObj,
162
+ //"mm" : mmTreeObj,
163
+ //"stuck" : stuckTreeObj,
164
+ //"nme" : nmeTreeObj,
165
+ //"pitchfork" : pitchforkTreeObj,
166
+ //"boilerroom" : boilerroomTreeObj,
167
+ //"ruin" : ruinTreeObj,
168
+ //"paperholm" : paperholmTreeObj,
169
+ //"fraser" : fraserTreeObj,
170
+ //"cristian" : cristianTreeObj,
171
+ //"headlands" : headlandsTreeObj,
172
+ //artnation: artnationTreeObj, valid feed but perhaps different format?!
173
+ //"nycscout" : nycscoutTreeObj,
174
+ //"tavi" : taviTreeObj,
175
+ //"repeller" : repellerTreeObj,
176
+ //"yahoosports" : yahoosportsTreeObj,
177
+ //"slash" : slashFilmTreeObj,
178
+ //"guardian" : guardianFilmTreeObj,
179
+ //"walker" : walkerFilmTreeObj,
180
+ //"doc" : docFilmTreeObj,
181
+ venturebeat: {
182
+ _id: "40",
183
+ xmlUrl: "http://venturebeat.com/feed/",
184
+ type: "rss",
185
+ title: "Venture Beat",
186
+ category: "technology",
187
+ origin: "porthole"
188
+ },
189
+ //killscreen: killscreenTreeObj,
190
+ //"inquisitr" : inquisitrTreeObj,
191
+ sbnation: {
192
+ _id: "43",
193
+ xmlUrl: "http://www.sbnation.com/rss/current",
194
+ type: "rss",
195
+ title: "SB Nation",
196
+ category: "sports",
197
+ origin: "porthole"
198
+ },
199
+ //dezeen: dezeenTreeObj,
200
+ //"contemporist" : contemporistTreeObj,
201
+ //"eikongraphia" : eikongraphiaTreeObj,
202
+ //"unhappy" : unhappyTreeObj, // not working
203
+ //architecture: architectureTreeObj,
204
+ designboom: {
205
+ _id: "49",
206
+ xmlUrl: "http://www.designboom.com/feed/",
207
+ type: "rss",
208
+ title: "Design Boom",
209
+ category: "design",
210
+ origin: "porthole"
211
+ },
212
+ nautilus: {
213
+ _id: "50",
214
+ xmlUrl: "http://nautil.us/rss/all",
215
+ type: "rss",
216
+ title: "Nautilus",
217
+ category: "technology",
218
+ origin: "porthole"
219
+ }
220
+ }), U = B(), P = (o) => {
221
+ if (o.description !== void 0) {
222
+ let r = o.description;
223
+ r.indexOf("https");
224
+ let i = r.indexOf(".jpg");
225
+ if (i === -1 && (i = r.indexOf(".png"), i === -1 && (i = r.indexOf(".gif"), i === -1)))
226
+ return j;
227
+ }
228
+ }, D = {
229
+ convertToPortholeBranches: k,
230
+ getVideoUrl: P,
231
+ getRSSBranch: b,
232
+ allPortholeTrees: U
233
+ };
234
+ export {
235
+ k as convertToPortholeBranches,
236
+ B as createAllPortholeTrees,
237
+ D as default,
238
+ b as getRSSBranch,
239
+ P as getVideoUrl
240
+ };
@@ -0,0 +1,12 @@
1
+ import { g as t } from "../mobile-detect-CWVWWCSg.js";
2
+ import { default as f } from "./golds/feed-util.js";
3
+ import { c as a } from "../colour-util-Bzfca_cM.js";
4
+ import { F as p } from "../fp-util-DZLSTUg5.js";
5
+ import { S as m } from "../string-util-D7tmqJRS.js";
6
+ export {
7
+ a as ColourUtil,
8
+ p as FpUtil,
9
+ m as StringUtil,
10
+ f as feedUtil,
11
+ t as getIsMobile
12
+ };
@@ -2,7 +2,7 @@ var dl = Object.defineProperty;
2
2
  var yl = (e, t, r) => t in e ? dl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var fe = (e, t, r) => yl(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { c as Ao, g as gl } from "./index-DukGzmpD.js";
5
- import { a as la } from "./react.esm-BEaxtOYu.js";
5
+ import { a as la } from "./react.esm-BpVcViTQ.js";
6
6
  function fa(e) {
7
7
  return e != null && typeof e == "object" && !Array.isArray(e);
8
8
  }
@@ -10558,7 +10558,7 @@ function tw(e, t = {}) {
10558
10558
  return t.frameFilter && (s = s.filter((n) => t.frameFilter(e, n) !== !1)), e.stacks = s, s;
10559
10559
  }
10560
10560
  async function rw(e, t) {
10561
- const r = (await import("./magic-string.es-VsGWiGpd.js")).default, s = new Set(t.map((n) => n.file));
10561
+ const r = (await import("./magic-string.es-QkQE39Zh.js")).default, s = new Set(t.map((n) => n.file));
10562
10562
  await Promise.all(Array.from(s).map(async (n) => {
10563
10563
  const o = t.filter((l) => l.file === n), i = await e.readSnapshotFile(n), a = new r(i);
10564
10564
  for (const l of o) {
@@ -1,4 +1,4 @@
1
- import { X as s } from "./log-2a4cc478.esm-HFv7vQ7j.js";
1
+ import { X as s } from "./log-2a4cc478.esm-BdzQp5f-.js";
2
2
  const i = "xstate.promise.resolve", u = "xstate.promise.reject";
3
3
  function c(o) {
4
4
  return {
@@ -1,5 +1,5 @@
1
1
  import w, { useLayoutEffect as k, useCallback as j, useEffect as P, useState as J } from "react";
2
- import { p as N } from "./log-2a4cc478.esm-HFv7vQ7j.js";
2
+ import { o as N } from "./log-2a4cc478.esm-BdzQp5f-.js";
3
3
  var K = { exports: {} }, M = {};
4
4
  /**
5
5
  * @license React
@@ -1,4 +1,4 @@
1
- import { r as m, g as w, b as E, c as g, i as _, m as v, t as N, d as b, a as A, e as O, f as M, h as j, j as P, k as D, l as z, n as J, o as V, p as C, S as R, q as I, s as p, u as B, v as L, w as F, x as U, $ as Y, N as q, y as $, z as G, A as Q, B as W } from "./log-2a4cc478.esm-HFv7vQ7j.js";
1
+ import { r as m, g as w, b as E, c as g, i as _, m as v, t as N, d as b, a as A, e as O, f as M, h as j, j as P, k as D, l as z, n as J, o as V, S as C, p as I, q as p, s as R, u as B, v as L, w as F, x as U, $ as Y, N as q, y as $, z as G, A as Q, B as W } from "./log-2a4cc478.esm-BdzQp5f-.js";
2
2
  const x = /* @__PURE__ */ new WeakMap();
3
3
  function f(a, t, s) {
4
4
  let i = x.get(a);
@@ -15,7 +15,7 @@ const H = {}, y = (a) => typeof a == "string" ? {
15
15
  } : a;
16
16
  class S {
17
17
  constructor(t, s) {
18
- if (this.config = t, this.key = void 0, this.id = void 0, this.type = void 0, this.path = void 0, this.states = void 0, this.history = void 0, this.entry = void 0, this.exit = void 0, this.parent = void 0, this.machine = void 0, this.meta = void 0, this.output = void 0, this.order = -1, this.description = void 0, this.tags = [], this.transitions = void 0, this.always = void 0, this.parent = s._parent, this.key = s._key, this.machine = s._machine, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.id = this.config.id || [this.machine.id, ...this.path].join(R), this.type = this.config.type || (this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.description = this.config.description, this.order = this.machine.idMap.size, this.machine.idMap.set(this.id, this), this.states = this.config.states ? I(this.config.states, (i, e) => new S(i, {
18
+ if (this.config = t, this.key = void 0, this.id = void 0, this.type = void 0, this.path = void 0, this.states = void 0, this.history = void 0, this.entry = void 0, this.exit = void 0, this.parent = void 0, this.machine = void 0, this.meta = void 0, this.output = void 0, this.order = -1, this.description = void 0, this.tags = [], this.transitions = void 0, this.always = void 0, this.parent = s._parent, this.key = s._key, this.machine = s._machine, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.id = this.config.id || [this.machine.id, ...this.path].join(C), this.type = this.config.type || (this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.description = this.config.description, this.order = this.machine.idMap.size, this.machine.idMap.set(this.id, this), this.states = this.config.states ? I(this.config.states, (i, e) => new S(i, {
19
19
  _parent: this,
20
20
  _key: e,
21
21
  _machine: this.machine
@@ -25,7 +25,7 @@ class S {
25
25
  }
26
26
  /** @internal */
27
27
  _initialize() {
28
- this.transitions = B(this), this.config.always && (this.always = L(this.config.always).map((t) => F(this, q, t))), Object.keys(this.states).forEach((t) => {
28
+ this.transitions = R(this), this.config.always && (this.always = B(this.config.always).map((t) => L(this, q, t))), Object.keys(this.states).forEach((t) => {
29
29
  this.states[t]._initialize();
30
30
  });
31
31
  }
@@ -125,7 +125,7 @@ class S {
125
125
  } = c, r = t.context;
126
126
  let u = !1;
127
127
  try {
128
- u = !o || U(o, r, s, t);
128
+ u = !o || F(o, r, s, t);
129
129
  } catch (h) {
130
130
  const l = typeof o == "string" ? o : typeof o == "object" ? o.type : void 0;
131
131
  throw new Error(`Unable to evaluate guard ${l ? `'${l}' ` : ""}in transition for event '${i}' in state node '${this.id}':
@@ -276,8 +276,8 @@ class T {
276
276
  * Returns the initial `State` instance, with reference to `self` as an `ActorRef`.
277
277
  */
278
278
  getInitialSnapshot(t, s) {
279
- const i = O(s), e = [], n = this.getPreInitialState(t, i, e), d = M([{
280
- target: [...j(this.root)],
279
+ const i = U(s), e = [], n = this.getPreInitialState(t, i, e), d = O([{
280
+ target: [...M(this.root)],
281
281
  source: this.root,
282
282
  reenter: !0,
283
283
  actions: [],
@@ -295,10 +295,10 @@ class T {
295
295
  });
296
296
  }
297
297
  getStateNodeById(t) {
298
- const s = P(t), i = s.slice(1), e = D(s[0]) ? s[0].slice(K.length) : s[0], n = this.idMap.get(e);
298
+ const s = j(t), i = s.slice(1), e = P(s[0]) ? s[0].slice(K.length) : s[0], n = this.idMap.get(e);
299
299
  if (!n)
300
300
  throw new Error(`Child state node '#${e}' does not exist on machine '${this.id}'`);
301
- return z(n, i);
301
+ return D(n, i);
302
302
  }
303
303
  get definition() {
304
304
  return this.root.definition;
@@ -307,15 +307,15 @@ class T {
307
307
  return this.definition;
308
308
  }
309
309
  getPersistedSnapshot(t, s) {
310
- return J(t, s);
310
+ return z(t, s);
311
311
  }
312
312
  restoreSnapshot(t, s) {
313
313
  const i = {}, e = t.children;
314
314
  Object.keys(e).forEach((o) => {
315
- const r = e[o], u = r.snapshot, h = r.src, l = typeof h == "string" ? V(this, h) : h;
315
+ const r = e[o], u = r.snapshot, h = r.src, l = typeof h == "string" ? J(this, h) : h;
316
316
  if (!l)
317
317
  return;
318
- const k = C(l, {
318
+ const k = V(l, {
319
319
  id: o,
320
320
  parent: s.self,
321
321
  syncSnapshot: r.syncSnapshot,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "cross-country",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "description": "an atomic design system built for personal metrics & lonely forest bathers",
5
5
  "author": "headwinds",
6
6
  "license": "MIT",
7
7
  "repository": "headwinds/cross-country",
8
8
  "type": "module",
9
9
  "main": "dist/index.js",
10
- "types": "dist/index.d.ts",
10
+ "types": "dist/types/index.d.ts",
11
11
  "files": [
12
12
  "dist"
13
13
  ],
@@ -80,6 +80,7 @@
80
80
  "@xstate/react": "4.1.0",
81
81
  "@xstate/store": "^2.4.0",
82
82
  "clsx": "^1.1.0",
83
+ "cross-country": "^1.2.22",
83
84
  "d3": "^7.8.2",
84
85
  "d3-axis": "^3.0.0",
85
86
  "date-fns": "^3.6.0",
@@ -87,6 +88,7 @@
87
88
  "dompurify": "^3.1.6",
88
89
  "he": "^1.2.0",
89
90
  "html-react-parser": "^5.1.18",
91
+ "htmlparser2": "^9.1.0",
90
92
  "idb": "^7.1.1",
91
93
  "immutable": "4.1.0",
92
94
  "nice-color-palettes": "^2.0.0",