@sharadox/sharadox-web-library 0.6.6 → 0.7.0

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 (280) hide show
  1. package/README.md +46 -8
  2. package/distribution/action/send-contact/index.d.ts +5 -6
  3. package/distribution/action/send-contact/index.d.ts.map +1 -1
  4. package/distribution/action/send-contact/index.js +13 -49
  5. package/distribution/action/send-contact/index.js.map +1 -1
  6. package/distribution/action/send-contact/type.d.ts +1 -3
  7. package/distribution/action/send-contact/type.d.ts.map +1 -1
  8. package/distribution/component/button/index.module.css +1 -58
  9. package/distribution/component/button/index.module.scss +60 -0
  10. package/distribution/component/capability/index.js +2 -2
  11. package/distribution/component/capability/index.module.css +1 -94
  12. package/distribution/component/capability/index.module.scss +85 -0
  13. package/distribution/component/capability/type.d.ts +1 -1
  14. package/distribution/component/consent/index.d.ts +1 -4
  15. package/distribution/component/consent/index.d.ts.map +1 -1
  16. package/distribution/component/consent/index.js +19 -32
  17. package/distribution/component/consent/index.js.map +1 -1
  18. package/distribution/component/consent/index.module.css +1 -183
  19. package/distribution/component/consent/index.module.scss +45 -0
  20. package/distribution/component/consent/preferences-link/index.js +1 -1
  21. package/distribution/component/consent/type.d.ts +1 -1
  22. package/distribution/component/contact/form/index.d.ts.map +1 -1
  23. package/distribution/component/contact/form/index.js +4 -4
  24. package/distribution/component/contact/form/index.js.map +1 -1
  25. package/distribution/component/contact/form/index.module.css +1 -168
  26. package/distribution/component/contact/form/index.module.scss +163 -0
  27. package/distribution/component/contact/form/type.d.ts +1 -1
  28. package/distribution/component/contact/index.js +2 -2
  29. package/distribution/component/contact/index.module.css +1 -56
  30. package/distribution/component/contact/index.module.scss +52 -0
  31. package/distribution/component/contact/type.d.ts +1 -1
  32. package/distribution/component/cross/index.module.css +1 -53
  33. package/distribution/component/cross/index.module.scss +50 -0
  34. package/distribution/component/eyebrow/index.module.css +1 -9
  35. package/distribution/component/eyebrow/index.module.scss +9 -0
  36. package/distribution/component/footer/index.js +4 -4
  37. package/distribution/component/footer/index.js.map +1 -1
  38. package/distribution/component/footer/index.module.css +1 -138
  39. package/distribution/component/footer/index.module.scss +125 -0
  40. package/distribution/component/footer/type.d.ts +1 -1
  41. package/distribution/component/globe/index.d.ts +2 -2
  42. package/distribution/component/globe/index.d.ts.map +1 -1
  43. package/distribution/component/globe/index.js +23 -32
  44. package/distribution/component/globe/index.js.map +1 -1
  45. package/distribution/component/globe/index.module.css +1 -25
  46. package/distribution/component/globe/index.module.scss +7 -0
  47. package/distribution/component/hero/guide/index.module.css +1 -97
  48. package/distribution/component/hero/guide/index.module.scss +94 -0
  49. package/distribution/component/hero/index.js +1 -1
  50. package/distribution/component/hero/index.module.css +1 -124
  51. package/distribution/component/hero/index.module.scss +109 -0
  52. package/distribution/component/hero/type.d.ts +1 -1
  53. package/distribution/component/language-switch/index.js +4 -4
  54. package/distribution/component/language-switch/index.js.map +1 -1
  55. package/distribution/component/language-switch/index.module.css +1 -20
  56. package/distribution/component/language-switch/index.module.scss +22 -0
  57. package/distribution/component/language-switch/type.d.ts +1 -1
  58. package/distribution/component/marquee/index.js +1 -1
  59. package/distribution/component/marquee/index.module.css +1 -43
  60. package/distribution/component/marquee/index.module.scss +39 -0
  61. package/distribution/component/navigation/index.js +1 -1
  62. package/distribution/component/navigation/index.module.css +1 -81
  63. package/distribution/component/navigation/index.module.scss +76 -0
  64. package/distribution/component/navigation/type.d.ts +1 -1
  65. package/distribution/component/process/index.js +1 -1
  66. package/distribution/component/process/index.module.css +1 -43
  67. package/distribution/component/process/index.module.scss +40 -0
  68. package/distribution/component/process/step/index.module.css +1 -33
  69. package/distribution/component/process/step/index.module.scss +31 -0
  70. package/distribution/component/process/type.d.ts +1 -1
  71. package/distribution/component/section/index.module.css +1 -35
  72. package/distribution/component/section/index.module.scss +32 -0
  73. package/distribution/component/section-heading/index.js +1 -1
  74. package/distribution/component/section-heading/index.module.css +1 -7
  75. package/distribution/component/section-heading/index.module.scss +7 -0
  76. package/distribution/component/section-indicator/index.js +2 -2
  77. package/distribution/component/section-indicator/index.module.css +1 -145
  78. package/distribution/component/section-indicator/index.module.scss +143 -0
  79. package/distribution/component/section-indicator/type.d.ts +1 -1
  80. package/distribution/component/service-index/index.js +1 -1
  81. package/distribution/component/service-index/index.module.css +1 -88
  82. package/distribution/component/service-index/index.module.scss +83 -0
  83. package/distribution/component/service-index/type.d.ts +1 -1
  84. package/distribution/component/services/campaign-visual/index.js +2 -2
  85. package/distribution/component/services/campaign-visual/index.module.css +1 -128
  86. package/distribution/component/services/campaign-visual/index.module.scss +122 -0
  87. package/distribution/component/services/campaign-visual/stage/index.js +3 -3
  88. package/distribution/component/services/campaign-visual/stage/index.js.map +1 -1
  89. package/distribution/component/services/campaign-visual/stage/type.d.ts +1 -1
  90. package/distribution/component/services/campaign-visual/type.d.ts +1 -1
  91. package/distribution/component/services/cell/index.js +2 -2
  92. package/distribution/component/services/cell/index.module.css +1 -86
  93. package/distribution/component/services/cell/index.module.scss +81 -0
  94. package/distribution/component/services/design-visual/index.js +1 -1
  95. package/distribution/component/services/design-visual/index.module.css +1 -130
  96. package/distribution/component/services/design-visual/index.module.scss +117 -0
  97. package/distribution/component/services/index.js +2 -2
  98. package/distribution/component/services/index.module.css +1 -84
  99. package/distribution/component/services/index.module.scss +66 -0
  100. package/distribution/component/services/mobile-visual/index.d.ts.map +1 -1
  101. package/distribution/component/services/mobile-visual/index.js +2 -1
  102. package/distribution/component/services/mobile-visual/index.js.map +1 -1
  103. package/distribution/component/services/mobile-visual/index.module.css +1 -104
  104. package/distribution/component/services/mobile-visual/index.module.scss +93 -0
  105. package/distribution/component/services/mobile-visual/type.d.ts +1 -1
  106. package/distribution/component/services/platform-visual/index.module.css +1 -46
  107. package/distribution/component/services/platform-visual/index.module.scss +39 -0
  108. package/distribution/component/services/social-visual/index.js +5 -5
  109. package/distribution/component/services/social-visual/index.js.map +1 -1
  110. package/distribution/component/services/social-visual/index.module.css +1 -131
  111. package/distribution/component/services/social-visual/index.module.scss +120 -0
  112. package/distribution/component/services/social-visual/type.d.ts +1 -1
  113. package/distribution/component/services/type.d.ts +1 -1
  114. package/distribution/component/services/web-visual/index.js +1 -1
  115. package/distribution/component/services/web-visual/index.module.css +1 -142
  116. package/distribution/component/services/web-visual/index.module.scss +132 -0
  117. package/distribution/component/share-image/index.d.ts +1 -2
  118. package/distribution/component/share-image/index.d.ts.map +1 -1
  119. package/distribution/component/share-image/index.js +3 -3
  120. package/distribution/component/share-image/index.js.map +1 -1
  121. package/distribution/component/share-image/type.d.ts +1 -1
  122. package/distribution/component/statement/index.js +1 -1
  123. package/distribution/component/statement/index.module.css +1 -11
  124. package/distribution/component/statement/index.module.scss +10 -0
  125. package/distribution/component/structured-data/index.d.ts.map +1 -1
  126. package/distribution/component/structured-data/index.js +48 -53
  127. package/distribution/component/structured-data/index.js.map +1 -1
  128. package/distribution/component/structured-data/type.d.ts +1 -1
  129. package/distribution/component/style-switch/index.d.ts +2 -2
  130. package/distribution/component/style-switch/index.d.ts.map +1 -1
  131. package/distribution/component/style-switch/index.js +11 -18
  132. package/distribution/component/style-switch/index.js.map +1 -1
  133. package/distribution/component/style-switch/index.module.css +1 -36
  134. package/distribution/component/style-switch/index.module.scss +37 -0
  135. package/distribution/component/style-switch/type.d.ts +1 -1
  136. package/distribution/component/touchpoint/index.js +3 -3
  137. package/distribution/component/touchpoint/index.module.css +1 -85
  138. package/distribution/component/touchpoint/index.module.scss +75 -0
  139. package/distribution/component/touchpoint/plate/index.module.css +1 -136
  140. package/distribution/component/touchpoint/plate/index.module.scss +129 -0
  141. package/distribution/component/touchpoint/type.d.ts +1 -1
  142. package/distribution/component/wordmark/index.module.css +1 -23
  143. package/distribution/component/wordmark/index.module.scss +22 -0
  144. package/distribution/content/locale/index.d.ts +6 -0
  145. package/distribution/content/locale/index.d.ts.map +1 -0
  146. package/distribution/content/locale/index.js +7 -0
  147. package/distribution/content/locale/index.js.map +1 -0
  148. package/distribution/{utility → content}/locale/type.d.ts +3 -2
  149. package/distribution/content/locale/type.d.ts.map +1 -0
  150. package/distribution/{utility → content}/locale/type.js.map +1 -1
  151. package/distribution/content/style/index.d.ts +47 -43
  152. package/distribution/content/style/index.d.ts.map +1 -1
  153. package/distribution/content/style/index.js +20 -13
  154. package/distribution/content/style/index.js.map +1 -1
  155. package/distribution/utility/separate/index.d.ts +6 -1
  156. package/distribution/utility/separate/index.d.ts.map +1 -1
  157. package/distribution/utility/separate/index.js +8 -2
  158. package/distribution/utility/separate/index.js.map +1 -1
  159. package/llms.txt +10 -0
  160. package/package.json +36 -27
  161. package/distribution/component/consent/toggle/index.d.ts +0 -4
  162. package/distribution/component/consent/toggle/index.d.ts.map +0 -1
  163. package/distribution/component/consent/toggle/index.js +0 -7
  164. package/distribution/component/consent/toggle/index.js.map +0 -1
  165. package/distribution/component/consent/toggle/type.d.ts +0 -10
  166. package/distribution/component/consent/toggle/type.d.ts.map +0 -1
  167. package/distribution/component/consent/toggle/type.js.map +0 -1
  168. package/distribution/component/cursor/index.d.ts +0 -3
  169. package/distribution/component/cursor/index.d.ts.map +0 -1
  170. package/distribution/component/cursor/index.js +0 -45
  171. package/distribution/component/cursor/index.js.map +0 -1
  172. package/distribution/component/cursor/index.module.css +0 -55
  173. package/distribution/component/globe/arc/index.d.ts +0 -4
  174. package/distribution/component/globe/arc/index.d.ts.map +0 -1
  175. package/distribution/component/globe/arc/index.js +0 -29
  176. package/distribution/component/globe/arc/index.js.map +0 -1
  177. package/distribution/component/globe/arc/type.d.ts +0 -12
  178. package/distribution/component/globe/arc/type.d.ts.map +0 -1
  179. package/distribution/component/globe/arc/type.js +0 -2
  180. package/distribution/component/globe/arc/type.js.map +0 -1
  181. package/distribution/component/globe/color/index.d.ts +0 -4
  182. package/distribution/component/globe/color/index.d.ts.map +0 -1
  183. package/distribution/component/globe/color/index.js +0 -16
  184. package/distribution/component/globe/color/index.js.map +0 -1
  185. package/distribution/component/globe/color/type.d.ts +0 -13
  186. package/distribution/component/globe/color/type.d.ts.map +0 -1
  187. package/distribution/component/globe/color/type.js +0 -2
  188. package/distribution/component/globe/color/type.js.map +0 -1
  189. package/distribution/component/globe/dots/index.d.ts +0 -4
  190. package/distribution/component/globe/dots/index.d.ts.map +0 -1
  191. package/distribution/component/globe/dots/index.js +0 -38
  192. package/distribution/component/globe/dots/index.js.map +0 -1
  193. package/distribution/component/globe/dots/type.d.ts +0 -7
  194. package/distribution/component/globe/dots/type.d.ts.map +0 -1
  195. package/distribution/component/globe/dots/type.js +0 -2
  196. package/distribution/component/globe/dots/type.js.map +0 -1
  197. package/distribution/component/globe/marker/index.d.ts +0 -4
  198. package/distribution/component/globe/marker/index.d.ts.map +0 -1
  199. package/distribution/component/globe/marker/index.js +0 -21
  200. package/distribution/component/globe/marker/index.js.map +0 -1
  201. package/distribution/component/globe/marker/type.d.ts +0 -9
  202. package/distribution/component/globe/marker/type.d.ts.map +0 -1
  203. package/distribution/component/globe/marker/type.js +0 -2
  204. package/distribution/component/globe/marker/type.js.map +0 -1
  205. package/distribution/component/globe/shader/arc/index.d.ts +0 -6
  206. package/distribution/component/globe/shader/arc/index.d.ts.map +0 -1
  207. package/distribution/component/globe/shader/arc/index.js +0 -24
  208. package/distribution/component/globe/shader/arc/index.js.map +0 -1
  209. package/distribution/component/globe/shader/atmosphere/index.d.ts +0 -6
  210. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +0 -1
  211. package/distribution/component/globe/shader/atmosphere/index.js +0 -15
  212. package/distribution/component/globe/shader/atmosphere/index.js.map +0 -1
  213. package/distribution/component/globe/shader/body/index.d.ts +0 -6
  214. package/distribution/component/globe/shader/body/index.d.ts.map +0 -1
  215. package/distribution/component/globe/shader/body/index.js +0 -15
  216. package/distribution/component/globe/shader/body/index.js.map +0 -1
  217. package/distribution/component/globe/shader/dot/index.d.ts +0 -6
  218. package/distribution/component/globe/shader/dot/index.d.ts.map +0 -1
  219. package/distribution/component/globe/shader/dot/index.js +0 -29
  220. package/distribution/component/globe/shader/dot/index.js.map +0 -1
  221. package/distribution/component/globe/shader/glow-vertex/index.d.ts +0 -3
  222. package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +0 -1
  223. package/distribution/component/globe/shader/glow-vertex/index.js +0 -9
  224. package/distribution/component/globe/shader/glow-vertex/index.js.map +0 -1
  225. package/distribution/component/globe/world/index.d.ts +0 -4
  226. package/distribution/component/globe/world/index.d.ts.map +0 -1
  227. package/distribution/component/globe/world/index.js +0 -39
  228. package/distribution/component/globe/world/index.js.map +0 -1
  229. package/distribution/component/globe/world/type.d.ts +0 -10
  230. package/distribution/component/globe/world/type.d.ts.map +0 -1
  231. package/distribution/component/globe/world/type.js +0 -2
  232. package/distribution/component/globe/world/type.js.map +0 -1
  233. package/distribution/component/locale-link/index.d.ts +0 -4
  234. package/distribution/component/locale-link/index.d.ts.map +0 -1
  235. package/distribution/component/locale-link/index.js +0 -9
  236. package/distribution/component/locale-link/index.js.map +0 -1
  237. package/distribution/component/locale-link/type.d.ts +0 -10
  238. package/distribution/component/locale-link/type.d.ts.map +0 -1
  239. package/distribution/component/locale-link/type.js +0 -2
  240. package/distribution/component/locale-link/type.js.map +0 -1
  241. package/distribution/hook/globe-drag/index.d.ts +0 -10
  242. package/distribution/hook/globe-drag/index.d.ts.map +0 -1
  243. package/distribution/hook/globe-drag/index.js +0 -99
  244. package/distribution/hook/globe-drag/index.js.map +0 -1
  245. package/distribution/hook/globe-drag/type.d.ts +0 -11
  246. package/distribution/hook/globe-drag/type.d.ts.map +0 -1
  247. package/distribution/hook/globe-drag/type.js +0 -2
  248. package/distribution/hook/globe-drag/type.js.map +0 -1
  249. package/distribution/hook/land-points/index.d.ts +0 -3
  250. package/distribution/hook/land-points/index.d.ts.map +0 -1
  251. package/distribution/hook/land-points/index.js +0 -17
  252. package/distribution/hook/land-points/index.js.map +0 -1
  253. package/distribution/style/token/index.css +0 -1
  254. package/distribution/utility/hex-channel/index.d.ts +0 -3
  255. package/distribution/utility/hex-channel/index.d.ts.map +0 -1
  256. package/distribution/utility/hex-channel/index.js +0 -8
  257. package/distribution/utility/hex-channel/index.js.map +0 -1
  258. package/distribution/utility/latitude-longitude-to-vector/index.d.ts +0 -7
  259. package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +0 -1
  260. package/distribution/utility/latitude-longitude-to-vector/index.js +0 -12
  261. package/distribution/utility/latitude-longitude-to-vector/index.js.map +0 -1
  262. package/distribution/utility/locale/index.d.ts +0 -6
  263. package/distribution/utility/locale/index.d.ts.map +0 -1
  264. package/distribution/utility/locale/index.js +0 -8
  265. package/distribution/utility/locale/index.js.map +0 -1
  266. package/distribution/utility/locale/type.d.ts.map +0 -1
  267. package/distribution/utility/locale/type.js +0 -2
  268. package/distribution/utility/parse-contact/index.d.ts +0 -4
  269. package/distribution/utility/parse-contact/index.d.ts.map +0 -1
  270. package/distribution/utility/parse-contact/index.js +0 -23
  271. package/distribution/utility/parse-contact/index.js.map +0 -1
  272. package/distribution/utility/parse-contact/type.d.ts +0 -20
  273. package/distribution/utility/parse-contact/type.d.ts.map +0 -1
  274. package/distribution/utility/parse-contact/type.js +0 -2
  275. package/distribution/utility/parse-contact/type.js.map +0 -1
  276. package/distribution/utility/web-gl-support/index.d.ts +0 -3
  277. package/distribution/utility/web-gl-support/index.d.ts.map +0 -1
  278. package/distribution/utility/web-gl-support/index.js +0 -11
  279. package/distribution/utility/web-gl-support/index.js.map +0 -1
  280. /package/distribution/{component/consent/toggle → content/locale}/type.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/locale/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,6FAA6F;AAC7F,eAAO,MAAM,OAAO,EAAE,SAAS,MAAM,EAAiB,CAAC;AAEvD,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,MAAM,CAE3D"}
@@ -1,8 +0,0 @@
1
- import { isLocale } from "@sharadox/web-library/internationalization/locale";
2
- /** Every language sharadox.com is published in. The first one is the default (x-default). */
3
- export const LOCALES = ["en", "pt"];
4
- /** Narrows an untrusted route segment to one of the site's locales. */
5
- export function isSiteLocale(value) {
6
- return isLocale(value, LOCALES);
7
- }
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAG7E,6FAA6F;AAC7F,MAAM,CAAC,MAAM,OAAO,GAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAEvD,uEAAuE;AACvE,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,OAAO,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/utility/locale/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAE9G,+CAA+C;AAC/C,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjC,2DAA2D;AAC3D,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=type.js.map
@@ -1,4 +0,0 @@
1
- import type { ParsedContact } from "@sharadox/sharadox-web-library/utility/parse-contact/type";
2
- /** Reads and validates the contact form, flagging likely bots (honeypot filled or submitted too fast). */
3
- export declare function parseContact(form: FormData, now?: number): ParsedContact;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAK/F,0GAA0G;AAC1G,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAa,GAAG,aAAa,CAa5E"}
@@ -1,23 +0,0 @@
1
- import { isLikelyBot } from "@sharadox/web-library/form/bot-check";
2
- import { readField } from "@sharadox/web-library/form/field";
3
- import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
4
- const NEED_KEYS = CONTACT.needs.options.map((need) => need.key);
5
- const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
6
- /** Reads and validates the contact form, flagging likely bots (honeypot filled or submitted too fast). */
7
- export function parseContact(form, now = Date.now()) {
8
- if (isLikelyBot(form, { now }))
9
- return { kind: "bot" };
10
- const value = {
11
- name: readField(form, "name", 120),
12
- email: readField(form, "email", 200),
13
- company: readField(form, "company", 160),
14
- message: readField(form, "message", 5000),
15
- locale: readField(form, "locale", 5) || "en",
16
- // What the visitor ticked under "What do you need?"; anything else is ignored.
17
- needs: [...new Set(form.getAll("need").map(String))].filter((key) => NEED_KEYS.includes(key)),
18
- };
19
- if (!value.name || !value.message || !EMAIL.test(value.email))
20
- return { kind: "invalid" };
21
- return { kind: "valid", value };
22
- }
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAIzE,MAAM,SAAS,GAAsB,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnF,MAAM,KAAK,GAAG,+BAA+B,CAAC;AAE9C,0GAA0G;AAC1G,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;IAC3D,IAAI,WAAW,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACvD,MAAM,KAAK,GAAG;QACZ,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC;QAClC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC;QACpC,OAAO,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC;QACxC,OAAO,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;QACzC,MAAM,EAAE,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,IAAI,IAAI;QAC5C,+EAA+E;QAC/E,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAkB,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;KAC9G,CAAC;IACF,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC1F,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAClC,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { NeedKey } from "@sharadox/sharadox-web-library/content/contact";
2
- /** A validated contact form submission. */
3
- export interface ContactMessage {
4
- name: string;
5
- email: string;
6
- company: string;
7
- message: string;
8
- locale: string;
9
- /** What the visitor needs, ticked in the form. */
10
- needs: NeedKey[];
11
- }
12
- export type ParsedContact = {
13
- kind: "bot";
14
- } | {
15
- kind: "invalid";
16
- } | {
17
- kind: "valid";
18
- value: ContactMessage;
19
- };
20
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAE9E,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/utility/parse-contact/type.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- /** Whether this browser can create a WebGL context. */
2
- export declare function supportsWebGl(): boolean;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/web-gl-support/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,wBAAgB,aAAa,IAAI,OAAO,CAOvC"}
@@ -1,11 +0,0 @@
1
- /** Whether this browser can create a WebGL context. */
2
- export function supportsWebGl() {
3
- try {
4
- const canvas = document.createElement("canvas");
5
- return !!(canvas.getContext("webgl2") || canvas.getContext("webgl"));
6
- }
7
- catch {
8
- return false;
9
- }
10
- }
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/web-gl-support/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,MAAM,UAAU,aAAa;IAC3B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}