react-intlayer 9.0.0-canary.9 → 9.0.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 (328) hide show
  1. package/dist/cjs/IntlayerNode.cjs +1 -2
  2. package/dist/cjs/IntlayerNode.cjs.map +1 -1
  3. package/dist/cjs/UI/ContentSelector.cjs +0 -1
  4. package/dist/cjs/UI/ContentSelector.cjs.map +1 -1
  5. package/dist/cjs/analytics/AnalyticsProvider.cjs +16 -0
  6. package/dist/cjs/analytics/AnalyticsProvider.cjs.map +1 -0
  7. package/dist/cjs/analytics/exposureSink.cjs +27 -0
  8. package/dist/cjs/analytics/exposureSink.cjs.map +1 -0
  9. package/dist/cjs/analytics/index.cjs +10 -0
  10. package/dist/cjs/analytics/useAnalytics.cjs +54 -0
  11. package/dist/cjs/analytics/useAnalytics.cjs.map +1 -0
  12. package/dist/cjs/analytics/useConversion.cjs +32 -0
  13. package/dist/cjs/analytics/useConversion.cjs.map +1 -0
  14. package/dist/cjs/analytics/useExperiment.cjs +65 -0
  15. package/dist/cjs/analytics/useExperiment.cjs.map +1 -0
  16. package/dist/cjs/client/IntlayerProvider.cjs +6 -2
  17. package/dist/cjs/client/IntlayerProvider.cjs.map +1 -1
  18. package/dist/cjs/client/format/useCompact.cjs +0 -1
  19. package/dist/cjs/client/format/useCompact.cjs.map +1 -1
  20. package/dist/cjs/client/format/useCurrency.cjs +0 -1
  21. package/dist/cjs/client/format/useCurrency.cjs.map +1 -1
  22. package/dist/cjs/client/format/useDate.cjs +0 -1
  23. package/dist/cjs/client/format/useDate.cjs.map +1 -1
  24. package/dist/cjs/client/format/useIntl.cjs +0 -1
  25. package/dist/cjs/client/format/useIntl.cjs.map +1 -1
  26. package/dist/cjs/client/format/useList.cjs +0 -1
  27. package/dist/cjs/client/format/useList.cjs.map +1 -1
  28. package/dist/cjs/client/format/useNumber.cjs +0 -1
  29. package/dist/cjs/client/format/useNumber.cjs.map +1 -1
  30. package/dist/cjs/client/format/usePercentage.cjs +0 -1
  31. package/dist/cjs/client/format/usePercentage.cjs.map +1 -1
  32. package/dist/cjs/client/format/useRelativeTime.cjs +0 -1
  33. package/dist/cjs/client/format/useRelativeTime.cjs.map +1 -1
  34. package/dist/cjs/client/format/useUnit.cjs +0 -1
  35. package/dist/cjs/client/format/useUnit.cjs.map +1 -1
  36. package/dist/cjs/client/t.cjs +0 -1
  37. package/dist/cjs/client/t.cjs.map +1 -1
  38. package/dist/cjs/client/useDictionary.cjs +0 -1
  39. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  40. package/dist/cjs/client/useDictionaryAsync.cjs +0 -1
  41. package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
  42. package/dist/cjs/client/useDictionaryDynamic.cjs +0 -1
  43. package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
  44. package/dist/cjs/client/useI18n.cjs +0 -1
  45. package/dist/cjs/client/useI18n.cjs.map +1 -1
  46. package/dist/cjs/client/useIntlayer.cjs +0 -1
  47. package/dist/cjs/client/useIntlayer.cjs.map +1 -1
  48. package/dist/cjs/client/useLoadDynamic.cjs.map +1 -1
  49. package/dist/cjs/client/useLocale.cjs +0 -1
  50. package/dist/cjs/client/useLocale.cjs.map +1 -1
  51. package/dist/cjs/client/useLocaleBase.cjs +0 -1
  52. package/dist/cjs/client/useLocaleBase.cjs.map +1 -1
  53. package/dist/cjs/client/useLocaleStorage.cjs +0 -1
  54. package/dist/cjs/client/useLocaleStorage.cjs.map +1 -1
  55. package/dist/cjs/client/usePathname.cjs +0 -1
  56. package/dist/cjs/client/usePathname.cjs.map +1 -1
  57. package/dist/cjs/client/useRewriteURL.cjs +0 -1
  58. package/dist/cjs/client/useRewriteURL.cjs.map +1 -1
  59. package/dist/cjs/client/useTraduction.cjs +0 -1
  60. package/dist/cjs/client/useTraduction.cjs.map +1 -1
  61. package/dist/cjs/editor/ContentSelector.cjs +0 -1
  62. package/dist/cjs/editor/ContentSelector.cjs.map +1 -1
  63. package/dist/cjs/editor/EditorProvider.cjs.map +1 -1
  64. package/dist/cjs/editor/useEditor.cjs +0 -1
  65. package/dist/cjs/editor/useEditor.cjs.map +1 -1
  66. package/dist/cjs/getDictionary.cjs +0 -1
  67. package/dist/cjs/getDictionary.cjs.map +1 -1
  68. package/dist/cjs/getIntlayer.cjs +0 -1
  69. package/dist/cjs/getIntlayer.cjs.map +1 -1
  70. package/dist/cjs/html/HTMLProvider.cjs +0 -1
  71. package/dist/cjs/html/HTMLProvider.cjs.map +1 -1
  72. package/dist/cjs/html/HTMLRenderer.cjs +0 -1
  73. package/dist/cjs/html/HTMLRenderer.cjs.map +1 -1
  74. package/dist/cjs/html/HTMLRendererPlugin.cjs.map +1 -1
  75. package/dist/cjs/index.cjs +8 -0
  76. package/dist/cjs/index.cjs.map +1 -1
  77. package/dist/cjs/markdown/MarkdownProvider.cjs +0 -1
  78. package/dist/cjs/markdown/MarkdownProvider.cjs.map +1 -1
  79. package/dist/cjs/markdown/MarkdownRenderer.cjs +0 -1
  80. package/dist/cjs/markdown/MarkdownRenderer.cjs.map +1 -1
  81. package/dist/cjs/markdown/MarkdownRendererPlugin.cjs.map +1 -1
  82. package/dist/cjs/markdown/processor.cjs +0 -1
  83. package/dist/cjs/markdown/processor.cjs.map +1 -1
  84. package/dist/cjs/markdown/runtime.cjs +0 -1
  85. package/dist/cjs/markdown/runtime.cjs.map +1 -1
  86. package/dist/cjs/plugins.cjs +33 -15
  87. package/dist/cjs/plugins.cjs.map +1 -1
  88. package/dist/cjs/reactElement/renderReactElement.cjs +0 -1
  89. package/dist/cjs/reactElement/renderReactElement.cjs.map +1 -1
  90. package/dist/cjs/server/IntlayerServerProvider.cjs +0 -1
  91. package/dist/cjs/server/IntlayerServerProvider.cjs.map +1 -1
  92. package/dist/cjs/server/format/useCompact.cjs +0 -1
  93. package/dist/cjs/server/format/useCompact.cjs.map +1 -1
  94. package/dist/cjs/server/format/useCurrency.cjs +0 -1
  95. package/dist/cjs/server/format/useCurrency.cjs.map +1 -1
  96. package/dist/cjs/server/format/useDate.cjs +0 -1
  97. package/dist/cjs/server/format/useDate.cjs.map +1 -1
  98. package/dist/cjs/server/format/useIntl.cjs +0 -1
  99. package/dist/cjs/server/format/useIntl.cjs.map +1 -1
  100. package/dist/cjs/server/format/useList.cjs +0 -1
  101. package/dist/cjs/server/format/useList.cjs.map +1 -1
  102. package/dist/cjs/server/format/useNumber.cjs +0 -1
  103. package/dist/cjs/server/format/useNumber.cjs.map +1 -1
  104. package/dist/cjs/server/format/usePercentage.cjs +0 -1
  105. package/dist/cjs/server/format/usePercentage.cjs.map +1 -1
  106. package/dist/cjs/server/format/useRelativeTime.cjs +0 -1
  107. package/dist/cjs/server/format/useRelativeTime.cjs.map +1 -1
  108. package/dist/cjs/server/format/useUnit.cjs +0 -1
  109. package/dist/cjs/server/format/useUnit.cjs.map +1 -1
  110. package/dist/cjs/server/serverContext.cjs.map +1 -1
  111. package/dist/cjs/server/t.cjs +0 -1
  112. package/dist/cjs/server/t.cjs.map +1 -1
  113. package/dist/cjs/server/useDictionary.cjs.map +1 -1
  114. package/dist/cjs/server/useDictionaryAsync.cjs +0 -1
  115. package/dist/cjs/server/useDictionaryAsync.cjs.map +1 -1
  116. package/dist/cjs/server/useDictionaryDynamic.cjs +0 -1
  117. package/dist/cjs/server/useDictionaryDynamic.cjs.map +1 -1
  118. package/dist/cjs/server/useI18n.cjs.map +1 -1
  119. package/dist/cjs/server/useIntlayer.cjs.map +1 -1
  120. package/dist/cjs/server/useLoadDynamic.cjs.map +1 -1
  121. package/dist/cjs/server/useLocale.cjs +0 -1
  122. package/dist/cjs/server/useLocale.cjs.map +1 -1
  123. package/dist/esm/IntlayerNode.mjs +1 -1
  124. package/dist/esm/IntlayerNode.mjs.map +1 -1
  125. package/dist/esm/UI/ContentSelector.mjs.map +1 -1
  126. package/dist/esm/analytics/AnalyticsProvider.mjs +15 -0
  127. package/dist/esm/analytics/AnalyticsProvider.mjs.map +1 -0
  128. package/dist/esm/analytics/exposureSink.mjs +24 -0
  129. package/dist/esm/analytics/exposureSink.mjs.map +1 -0
  130. package/dist/esm/analytics/index.mjs +6 -0
  131. package/dist/esm/analytics/useAnalytics.mjs +53 -0
  132. package/dist/esm/analytics/useAnalytics.mjs.map +1 -0
  133. package/dist/esm/analytics/useConversion.mjs +31 -0
  134. package/dist/esm/analytics/useConversion.mjs.map +1 -0
  135. package/dist/esm/analytics/useExperiment.mjs +64 -0
  136. package/dist/esm/analytics/useExperiment.mjs.map +1 -0
  137. package/dist/esm/client/IntlayerProvider.mjs +6 -1
  138. package/dist/esm/client/IntlayerProvider.mjs.map +1 -1
  139. package/dist/esm/client/format/useCompact.mjs.map +1 -1
  140. package/dist/esm/client/format/useCurrency.mjs.map +1 -1
  141. package/dist/esm/client/format/useDate.mjs.map +1 -1
  142. package/dist/esm/client/format/useIntl.mjs.map +1 -1
  143. package/dist/esm/client/format/useList.mjs.map +1 -1
  144. package/dist/esm/client/format/useNumber.mjs.map +1 -1
  145. package/dist/esm/client/format/usePercentage.mjs.map +1 -1
  146. package/dist/esm/client/format/useRelativeTime.mjs.map +1 -1
  147. package/dist/esm/client/format/useUnit.mjs.map +1 -1
  148. package/dist/esm/client/t.mjs.map +1 -1
  149. package/dist/esm/client/useDictionary.mjs.map +1 -1
  150. package/dist/esm/client/useDictionaryAsync.mjs.map +1 -1
  151. package/dist/esm/client/useDictionaryDynamic.mjs.map +1 -1
  152. package/dist/esm/client/useI18n.mjs.map +1 -1
  153. package/dist/esm/client/useIntlayer.mjs.map +1 -1
  154. package/dist/esm/client/useLoadDynamic.mjs.map +1 -1
  155. package/dist/esm/client/useLocale.mjs.map +1 -1
  156. package/dist/esm/client/useLocaleBase.mjs.map +1 -1
  157. package/dist/esm/client/useLocaleStorage.mjs.map +1 -1
  158. package/dist/esm/client/usePathname.mjs.map +1 -1
  159. package/dist/esm/client/useRewriteURL.mjs.map +1 -1
  160. package/dist/esm/client/useTraduction.mjs.map +1 -1
  161. package/dist/esm/editor/ContentSelector.mjs.map +1 -1
  162. package/dist/esm/editor/EditorProvider.mjs.map +1 -1
  163. package/dist/esm/editor/useEditor.mjs.map +1 -1
  164. package/dist/esm/getDictionary.mjs.map +1 -1
  165. package/dist/esm/getIntlayer.mjs.map +1 -1
  166. package/dist/esm/html/HTMLProvider.mjs.map +1 -1
  167. package/dist/esm/html/HTMLRenderer.mjs.map +1 -1
  168. package/dist/esm/html/HTMLRendererPlugin.mjs.map +1 -1
  169. package/dist/esm/index.mjs +5 -1
  170. package/dist/esm/index.mjs.map +1 -1
  171. package/dist/esm/markdown/MarkdownProvider.mjs.map +1 -1
  172. package/dist/esm/markdown/MarkdownRenderer.mjs.map +1 -1
  173. package/dist/esm/markdown/MarkdownRendererPlugin.mjs.map +1 -1
  174. package/dist/esm/markdown/processor.mjs.map +1 -1
  175. package/dist/esm/markdown/runtime.mjs.map +1 -1
  176. package/dist/esm/plugins.mjs +34 -16
  177. package/dist/esm/plugins.mjs.map +1 -1
  178. package/dist/esm/reactElement/renderReactElement.mjs.map +1 -1
  179. package/dist/esm/server/IntlayerServerProvider.mjs.map +1 -1
  180. package/dist/esm/server/format/useCompact.mjs.map +1 -1
  181. package/dist/esm/server/format/useCurrency.mjs.map +1 -1
  182. package/dist/esm/server/format/useDate.mjs.map +1 -1
  183. package/dist/esm/server/format/useIntl.mjs.map +1 -1
  184. package/dist/esm/server/format/useList.mjs.map +1 -1
  185. package/dist/esm/server/format/useNumber.mjs.map +1 -1
  186. package/dist/esm/server/format/usePercentage.mjs.map +1 -1
  187. package/dist/esm/server/format/useRelativeTime.mjs.map +1 -1
  188. package/dist/esm/server/format/useUnit.mjs.map +1 -1
  189. package/dist/esm/server/serverContext.mjs.map +1 -1
  190. package/dist/esm/server/t.mjs.map +1 -1
  191. package/dist/esm/server/useDictionary.mjs.map +1 -1
  192. package/dist/esm/server/useDictionaryAsync.mjs.map +1 -1
  193. package/dist/esm/server/useDictionaryDynamic.mjs.map +1 -1
  194. package/dist/esm/server/useI18n.mjs.map +1 -1
  195. package/dist/esm/server/useIntlayer.mjs.map +1 -1
  196. package/dist/esm/server/useLoadDynamic.mjs.map +1 -1
  197. package/dist/esm/server/useLocale.mjs.map +1 -1
  198. package/dist/types/IntlayerNode.d.ts +1 -6
  199. package/dist/types/IntlayerNode.d.ts.map +1 -1
  200. package/dist/types/UI/ContentSelector.d.ts +0 -1
  201. package/dist/types/UI/ContentSelector.d.ts.map +1 -1
  202. package/dist/types/analytics/AnalyticsProvider.d.ts +10 -0
  203. package/dist/types/analytics/AnalyticsProvider.d.ts.map +1 -0
  204. package/dist/types/analytics/exposureSink.d.ts +32 -0
  205. package/dist/types/analytics/exposureSink.d.ts.map +1 -0
  206. package/dist/types/analytics/index.d.ts +5 -0
  207. package/dist/types/analytics/useAnalytics.d.ts +15 -0
  208. package/dist/types/analytics/useAnalytics.d.ts.map +1 -0
  209. package/dist/types/analytics/useConversion.d.ts +31 -0
  210. package/dist/types/analytics/useConversion.d.ts.map +1 -0
  211. package/dist/types/analytics/useExperiment.d.ts +41 -0
  212. package/dist/types/analytics/useExperiment.d.ts.map +1 -0
  213. package/dist/types/client/IntlayerProvider.d.ts +1 -3
  214. package/dist/types/client/IntlayerProvider.d.ts.map +1 -1
  215. package/dist/types/client/format/useCompact.d.ts +1 -3
  216. package/dist/types/client/format/useCompact.d.ts.map +1 -1
  217. package/dist/types/client/format/useCurrency.d.ts +1 -3
  218. package/dist/types/client/format/useCurrency.d.ts.map +1 -1
  219. package/dist/types/client/format/useDate.d.ts +0 -1
  220. package/dist/types/client/format/useDate.d.ts.map +1 -1
  221. package/dist/types/client/format/useIntl.d.ts +0 -1
  222. package/dist/types/client/format/useIntl.d.ts.map +1 -1
  223. package/dist/types/client/format/useList.d.ts +4 -6
  224. package/dist/types/client/format/useList.d.ts.map +1 -1
  225. package/dist/types/client/format/useNumber.d.ts +1 -3
  226. package/dist/types/client/format/useNumber.d.ts.map +1 -1
  227. package/dist/types/client/format/usePercentage.d.ts +1 -3
  228. package/dist/types/client/format/usePercentage.d.ts.map +1 -1
  229. package/dist/types/client/format/useRelativeTime.d.ts +1 -3
  230. package/dist/types/client/format/useRelativeTime.d.ts.map +1 -1
  231. package/dist/types/client/format/useUnit.d.ts +1 -3
  232. package/dist/types/client/format/useUnit.d.ts.map +1 -1
  233. package/dist/types/client/t.d.ts +0 -1
  234. package/dist/types/client/t.d.ts.map +1 -1
  235. package/dist/types/client/useDictionary.d.ts +2 -5
  236. package/dist/types/client/useDictionary.d.ts.map +1 -1
  237. package/dist/types/client/useDictionaryAsync.d.ts +0 -1
  238. package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
  239. package/dist/types/client/useDictionaryDynamic.d.ts +0 -1
  240. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  241. package/dist/types/client/useI18n.d.ts +0 -1
  242. package/dist/types/client/useI18n.d.ts.map +1 -1
  243. package/dist/types/client/useIntlayer.d.ts +2 -5
  244. package/dist/types/client/useIntlayer.d.ts.map +1 -1
  245. package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
  246. package/dist/types/client/useLocale.d.ts +1 -5
  247. package/dist/types/client/useLocale.d.ts.map +1 -1
  248. package/dist/types/client/useLocaleBase.d.ts +2 -4
  249. package/dist/types/client/useLocaleBase.d.ts.map +1 -1
  250. package/dist/types/client/useLocaleStorage.d.ts +5 -10
  251. package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
  252. package/dist/types/client/usePathname.d.ts.map +1 -1
  253. package/dist/types/client/useRewriteURL.d.ts.map +1 -1
  254. package/dist/types/client/useTraduction.d.ts +0 -1
  255. package/dist/types/client/useTraduction.d.ts.map +1 -1
  256. package/dist/types/editor/ContentSelector.d.ts +0 -1
  257. package/dist/types/editor/ContentSelector.d.ts.map +1 -1
  258. package/dist/types/editor/EditorProvider.d.ts +0 -1
  259. package/dist/types/editor/EditorProvider.d.ts.map +1 -1
  260. package/dist/types/editor/useEditor.d.ts.map +1 -1
  261. package/dist/types/getDictionary.d.ts +0 -1
  262. package/dist/types/getDictionary.d.ts.map +1 -1
  263. package/dist/types/getIntlayer.d.ts +0 -1
  264. package/dist/types/getIntlayer.d.ts.map +1 -1
  265. package/dist/types/html/HTMLComponentTypes.d.ts +8 -9
  266. package/dist/types/html/HTMLComponentTypes.d.ts.map +1 -1
  267. package/dist/types/html/HTMLProvider.d.ts +0 -1
  268. package/dist/types/html/HTMLProvider.d.ts.map +1 -1
  269. package/dist/types/html/HTMLRenderer.d.ts +2 -7
  270. package/dist/types/html/HTMLRenderer.d.ts.map +1 -1
  271. package/dist/types/html/HTMLRendererPlugin.d.ts +0 -1
  272. package/dist/types/html/HTMLRendererPlugin.d.ts.map +1 -1
  273. package/dist/types/html/types.d.ts +0 -1
  274. package/dist/types/html/types.d.ts.map +1 -1
  275. package/dist/types/index.d.ts +18 -35
  276. package/dist/types/index.d.ts.map +1 -1
  277. package/dist/types/markdown/MarkdownProvider.d.ts +7 -4
  278. package/dist/types/markdown/MarkdownProvider.d.ts.map +1 -1
  279. package/dist/types/markdown/MarkdownRenderer.d.ts +2 -17
  280. package/dist/types/markdown/MarkdownRenderer.d.ts.map +1 -1
  281. package/dist/types/markdown/MarkdownRendererPlugin.d.ts +0 -1
  282. package/dist/types/markdown/MarkdownRendererPlugin.d.ts.map +1 -1
  283. package/dist/types/markdown/processor.d.ts +0 -1
  284. package/dist/types/markdown/processor.d.ts.map +1 -1
  285. package/dist/types/markdown/runtime.d.ts +0 -1
  286. package/dist/types/markdown/runtime.d.ts.map +1 -1
  287. package/dist/types/plugins.d.ts +1 -2
  288. package/dist/types/plugins.d.ts.map +1 -1
  289. package/dist/types/reactElement/renderReactElement.d.ts +0 -1
  290. package/dist/types/reactElement/renderReactElement.d.ts.map +1 -1
  291. package/dist/types/server/IntlayerServerProvider.d.ts +1 -3
  292. package/dist/types/server/IntlayerServerProvider.d.ts.map +1 -1
  293. package/dist/types/server/format/useCompact.d.ts +0 -1
  294. package/dist/types/server/format/useCompact.d.ts.map +1 -1
  295. package/dist/types/server/format/useCurrency.d.ts +0 -1
  296. package/dist/types/server/format/useCurrency.d.ts.map +1 -1
  297. package/dist/types/server/format/useDate.d.ts +0 -1
  298. package/dist/types/server/format/useDate.d.ts.map +1 -1
  299. package/dist/types/server/format/useIntl.d.ts +0 -1
  300. package/dist/types/server/format/useIntl.d.ts.map +1 -1
  301. package/dist/types/server/format/useList.d.ts +0 -1
  302. package/dist/types/server/format/useList.d.ts.map +1 -1
  303. package/dist/types/server/format/useNumber.d.ts +0 -1
  304. package/dist/types/server/format/useNumber.d.ts.map +1 -1
  305. package/dist/types/server/format/usePercentage.d.ts +0 -1
  306. package/dist/types/server/format/usePercentage.d.ts.map +1 -1
  307. package/dist/types/server/format/useRelativeTime.d.ts +0 -1
  308. package/dist/types/server/format/useRelativeTime.d.ts.map +1 -1
  309. package/dist/types/server/format/useUnit.d.ts +0 -1
  310. package/dist/types/server/format/useUnit.d.ts.map +1 -1
  311. package/dist/types/server/serverContext.d.ts +1 -5
  312. package/dist/types/server/serverContext.d.ts.map +1 -1
  313. package/dist/types/server/t.d.ts +0 -1
  314. package/dist/types/server/t.d.ts.map +1 -1
  315. package/dist/types/server/useDictionary.d.ts +2 -5
  316. package/dist/types/server/useDictionary.d.ts.map +1 -1
  317. package/dist/types/server/useDictionaryAsync.d.ts +2 -5
  318. package/dist/types/server/useDictionaryAsync.d.ts.map +1 -1
  319. package/dist/types/server/useDictionaryDynamic.d.ts +0 -1
  320. package/dist/types/server/useDictionaryDynamic.d.ts.map +1 -1
  321. package/dist/types/server/useI18n.d.ts +0 -1
  322. package/dist/types/server/useI18n.d.ts.map +1 -1
  323. package/dist/types/server/useIntlayer.d.ts +2 -5
  324. package/dist/types/server/useIntlayer.d.ts.map +1 -1
  325. package/dist/types/server/useLoadDynamic.d.ts.map +1 -1
  326. package/dist/types/server/useLocale.d.ts +0 -1
  327. package/dist/types/server/useLocale.d.ts.map +1 -1
  328. package/package.json +22 -12
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAnalytics.d.ts","names":[],"sources":["../../../src/analytics/useAnalytics.tsx"],"mappings":";;;;;;;;;;;cAkBa"}
@@ -0,0 +1,31 @@
1
+ //#region src/analytics/useConversion.d.ts
2
+ /**
3
+ * Parameters describing a conversion to record.
4
+ */
5
+ type ConversionParams = {
6
+ /** The experiment this conversion is attributed to. */
7
+ experimentKey: string;
8
+ /** The variant the session was assigned. */
9
+ variant: string;
10
+ /** The goal reached (e.g. `"signup"`, `"cta_click"`). */
11
+ goal: string;
12
+ /** Optional numeric value (e.g. revenue). */
13
+ value?: number;
14
+ };
15
+ /**
16
+ * Returns a stable `trackConversion` callback for content A/B testing. Safe to
17
+ * call from any component: it resolves to a no-op when analytics is disabled
18
+ * or the client has not been initialized yet.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * const trackConversion = useConversion();
23
+ * <button onClick={() => trackConversion({
24
+ * experimentKey: 'homepage-hero', variant: 'b', goal: 'cta_click',
25
+ * })}>Get started</button>
26
+ * ```
27
+ */
28
+ declare const useConversion: () => (params: ConversionParams) => void;
29
+ //#endregion
30
+ export { ConversionParams, useConversion };
31
+ //# sourceMappingURL=useConversion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConversion.d.ts","names":[],"sources":["../../../src/analytics/useConversion.tsx"],"mappings":";;;;KAQY;;EAEV;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;;;cAgBW,sBAAa,QACI"}
@@ -0,0 +1,41 @@
1
+ //#region src/analytics/useExperiment.d.ts
2
+ /**
3
+ * The state of an A/B experiment for the current session.
4
+ */
5
+ type ExperimentState = {
6
+ /**
7
+ * The variant assigned to this session. Until assignment resolves (and on
8
+ * the server, or when analytics is disabled), this is the first variant —
9
+ * treat the first variant as the control.
10
+ */
11
+ variant: string;
12
+ /**
13
+ * `true` once the variant has been deterministically assigned and its
14
+ * exposure recorded. Useful to defer rendering when a flash of the control
15
+ * variant is not acceptable.
16
+ */
17
+ isAssigned: boolean;
18
+ };
19
+ /**
20
+ * Assigns this session to a variant of an A/B experiment and records the
21
+ * exposure, scoped to `experimentKey`, so the backend can compute per-variant
22
+ * conversion rates against `useConversion` events.
23
+ *
24
+ * Assignment is deterministic per session (no server round-trip, stable across
25
+ * re-mounts). The exposure is recorded once per mount.
26
+ *
27
+ * @param experimentKey - Unique key identifying the experiment.
28
+ * @param variants - The candidate variant names; the first one is the control.
29
+ * @param weights - Optional relative weights, one per variant (e.g. `[9, 1]`).
30
+ * @returns The {@link ExperimentState} for this session.
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * const { variant } = useExperiment('homepage-hero', ['a', 'b']);
35
+ * const content = useIntlayer(variant === 'b' ? 'hero-b' : 'hero');
36
+ * ```
37
+ */
38
+ declare const useExperiment: (experimentKey: string, variants: string[], weights?: number[]) => ExperimentState;
39
+ //#endregion
40
+ export { ExperimentState, useExperiment };
41
+ //# sourceMappingURL=useExperiment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExperiment.d.ts","names":[],"sources":["../../../src/analytics/useExperiment.tsx"],"mappings":";;;;KAQY;;;;;;EAMV;;;;;;EAMA;;;;;;;;;;;;;;;;;;;;;cAsBW,gBAAa,uBACH,oBACH,uBAEjB"}
@@ -1,7 +1,5 @@
1
1
  import { LocalesValues } from "@intlayer/types/module_augmentation";
2
- import * as _$react from "react";
3
2
  import { FC, PropsWithChildren } from "react";
4
-
5
3
  //#region src/client/IntlayerProvider.d.ts
6
4
  type IntlayerValue = {
7
5
  locale: LocalesValues;
@@ -12,7 +10,7 @@ type IntlayerValue = {
12
10
  /**
13
11
  * Context that stores the current locale on the client side.
14
12
  */
15
- declare const IntlayerClientContext: _$react.Context<IntlayerValue>;
13
+ declare const IntlayerClientContext: import("react").Context<IntlayerValue>;
16
14
  /**
17
15
  * Hook that provides the current Intlayer client context.
18
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"mappings":";;;;;KAiBK,aAAA;EACH,MAAA,EAAQ,aAAA;EACR,SAAA,GAAY,SAAA,EAAW,aAAA;EACvB,aAAA;EACA,eAAA;AAAA;;;;cAMW,qBAAA,EAAqB,OAAA,CAAA,OAAA,CAAA,aAAA;;;;;;cAWrB,kBAAA;AAXb;;;AAAA,KAgBY,qBAAA,GAAwB,iBAAA;EAhBF;AAWlC;;EASE,MAAA,GAAS,aAAA;EAToE;;AAK/E;EAQE,aAAA,GAAgB,aAAA;;;;EAIhB,SAAA,IAAa,MAAA,EAAQ,aAAA;EAZa;;;EAgBlC,aAAA;EAZA;;;EAgBA,eAAA;AAAA;;;;;;;AAWF;;cAAa,uBAAA,EAAyB,EAAA,CAAG,qBAAA;;;AA8EzC;;;;;;;;;;;;;;;;;;cAAa,gBAAA,EAAkB,EAAA,CAAG,qBAAA"}
1
+ {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"mappings":";;;KAkBK;EACH,QAAQ;EACR,YAAY,WAAW;EACvB;EACA;;;;;cAMW,uCAAqB,QAAA;;;;;;cAWrB;;;;KAKD,wBAAwB;;;;EAIlC,SAAS;;;;EAIT,gBAAgB;;;;EAIhB,aAAa,QAAQ;;;;EAIrB;;;;EAIA;;;;;;;;;;cAWW,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;cA8E5B,kBAAkB,GAAG"}
@@ -1,5 +1,3 @@
1
- import * as _$_intlayer_types0 from "@intlayer/types";
2
-
3
1
  //#region src/client/format/useCompact.d.ts
4
2
  /**
5
3
  * React client hook that provides a compact number formatter
@@ -12,7 +10,7 @@ import * as _$_intlayer_types0 from "@intlayer/types";
12
10
  * ```
13
11
  */
14
12
  declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & {
15
- locale?: _$_intlayer_types0.LocalesValues;
13
+ locale?: import("@intlayer/types").LocalesValues;
16
14
  }) => string;
17
15
  //#endregion
18
16
  export { useCompact };
@@ -1 +1 @@
1
- {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"mappings":";;;;;;AAgBA;;;;;;;cAAa,UAAA,SAAU,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,kBAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"mappings":";;;;;;;;;;;cAgBa,mBAAU,wBAAA,UAAA,KAAA"}
@@ -1,5 +1,3 @@
1
- import * as _$_intlayer_types0 from "@intlayer/types";
2
-
3
1
  //#region src/client/format/useCurrency.d.ts
4
2
  /**
5
3
  * React client hook that provides a currency formatter
@@ -26,7 +24,7 @@ import * as _$_intlayer_types0 from "@intlayer/types";
26
24
  * ```
27
25
  */
28
26
  declare const useCurrency: () => (value: string | number, options?: Intl.NumberFormatOptions & {
29
- locale?: _$_intlayer_types0.LocalesValues;
27
+ locale?: import("@intlayer/types").LocalesValues;
30
28
  }) => string;
31
29
  //#endregion
32
30
  export { useCurrency };
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/client/format/useCurrency.ts"],"mappings":";;;;;;AA8BA;;;;;;;;;;;;;;;;;;;;;cAAa,WAAA,SAAW,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,kBAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/client/format/useCurrency.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;cA8Ba,oBAAW,wBAAA,UAAA,KAAA"}
@@ -1,5 +1,4 @@
1
1
  import { date } from "@intlayer/core/formatters";
2
-
3
2
  //#region src/client/format/useDate.d.ts
4
3
  /**
5
4
  * React client hook that provides a localized date/time formatter
@@ -1 +1 @@
1
- {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/client/format/useDate.ts"],"mappings":";;;;;AAgCA;;;;;;;;;;;;;;;;;;;;;;;;cAAa,OAAA,YAGA,IAAA,EAAM,UAAA,QAAkB,IAAA"}
1
+ {"version":3,"file":"useDate.d.ts","names":[],"sources":["../../../../src/client/format/useDate.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCa,mBAAO,MAGD,kBAAkB"}
@@ -1,6 +1,5 @@
1
1
  import { LocalesValues } from "@intlayer/types/module_augmentation";
2
2
  import { WrappedIntl } from "@intlayer/core/formatters";
3
-
4
3
  //#region src/client/format/useIntl.d.ts
5
4
  /**
6
5
  * React client hook that provides a locale-bound `Intl` object.
@@ -1 +1 @@
1
- {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../../src/client/format/useIntl.ts"],"mappings":";;;;;;AAmCA;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,OAAA,GAAW,MAAA,GAAS,aAAA,KAAa,WAAA"}
1
+ {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../../src/client/format/useIntl.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCa,UAAO,SAAa,kBAAa"}
@@ -1,5 +1,3 @@
1
- import * as _$_intlayer_types0 from "@intlayer/types";
2
-
3
1
  //#region src/client/format/useList.d.ts
4
2
  /**
5
3
  * React client hook that provides a list formatter
@@ -23,11 +21,11 @@ import * as _$_intlayer_types0 from "@intlayer/types";
23
21
  * ```
24
22
  */
25
23
  declare const useList: () => (values: (string | number)[], options?: {
26
- localeMatcher?: "lookup" | "best fit";
27
- type?: "conjunction" | "disjunction" | "unit";
28
- style?: "long" | "short" | "narrow";
24
+ localeMatcher?: 'lookup' | 'best fit';
25
+ type?: 'conjunction' | 'disjunction' | 'unit';
26
+ style?: 'long' | 'short' | 'narrow';
29
27
  } & {
30
- locale?: _$_intlayer_types0.LocalesValues;
28
+ locale?: import("@intlayer/types").LocalesValues;
31
29
  }) => string;
32
30
  //#endregion
33
31
  export { useList };
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/client/format/useList.ts"],"mappings":";;;;;;AA2BA;;;;;;;;;;;;;;;;;;cAAa,OAAA,SAAO,MAAA,uBAAA,OAAA;;;;;WAWnB,kBAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useList.d.ts","names":[],"sources":["../../../../src/client/format/useList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;cA2Ba,gBAAO,6BAAA"}
@@ -1,5 +1,3 @@
1
- import * as _$_intlayer_types0 from "@intlayer/types";
2
-
3
1
  //#region src/client/format/useNumber.d.ts
4
2
  /**
5
3
  * React client hook that provides a localized number formatter.
@@ -24,7 +22,7 @@ import * as _$_intlayer_types0 from "@intlayer/types";
24
22
  * A number formatting function bound to the active locale.
25
23
  */
26
24
  declare const useNumber: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
27
- locale?: _$_intlayer_types0.LocalesValues;
25
+ locale?: import("@intlayer/types").LocalesValues;
28
26
  }) => string;
29
27
  //#endregion
30
28
  export { useNumber };
@@ -1 +1 @@
1
- {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/client/format/useNumber.ts"],"mappings":";;;;;;AA4BA;;;;;;;;;;;;;;;;;;;cAAa,SAAA,SAAS,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,kBAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useNumber.d.ts","names":[],"sources":["../../../../src/client/format/useNumber.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cA4Ba,kBAAS,wBAAA,SAAA,KAAA"}
@@ -1,5 +1,3 @@
1
- import * as _$_intlayer_types0 from "@intlayer/types";
2
-
3
1
  //#region src/client/format/usePercentage.d.ts
4
2
  /**
5
3
  * React hook to provide a percentage formatter function
@@ -20,7 +18,7 @@ import * as _$_intlayer_types0 from "@intlayer/types";
20
18
  * A function that formats numbers or numeric strings into localized percentages.
21
19
  */
22
20
  declare const usePercentage: () => (value: string | number, args_1?: Intl.NumberFormatOptions & {
23
- locale?: _$_intlayer_types0.LocalesValues;
21
+ locale?: import("@intlayer/types").LocalesValues;
24
22
  }) => string;
25
23
  //#endregion
26
24
  export { usePercentage };
@@ -1 +1 @@
1
- {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../../src/client/format/usePercentage.ts"],"mappings":";;;;;;AAwBA;;;;;;;;;;;;;;;cAAa,aAAA,SAAa,KAAA,mBAAA,MAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,kBAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"usePercentage.d.ts","names":[],"sources":["../../../../src/client/format/usePercentage.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAwBa,sBAAa,wBAAA,SAAA,KAAA"}
@@ -1,5 +1,3 @@
1
- import * as _$_intlayer_types0 from "@intlayer/types";
2
-
3
1
  //#region src/client/format/useRelativeTime.d.ts
4
2
  /**
5
3
  * Client-side React hook for accessing a localized relative time formatter.
@@ -20,7 +18,7 @@ import * as _$_intlayer_types0 from "@intlayer/types";
20
18
  * bound to the current client locale.
21
19
  */
22
20
  declare const useRelativeTime: () => (from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
23
- locale?: _$_intlayer_types0.LocalesValues;
21
+ locale?: import("@intlayer/types").LocalesValues;
24
22
  unit?: Intl.RelativeTimeFormatUnit;
25
23
  }) => string;
26
24
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/client/format/useRelativeTime.ts"],"mappings":";;;;;;AAwBA;;;;;;;;;;;;;;;cAAa,eAAA,SAAe,IAAA,oBAAA,IAAA,EAAA,EAAA,qBAAA,IAAA,EAAA,OAAA,GAAA,IAAA,CAAA,yBAAA;WAAA,kBAAA,CAAA,aAAA"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/client/format/useRelativeTime.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAwBa,wBAAe,wBAAA,MAAA,uBAAA,MAAA,UAAA,KAAA"}
@@ -1,5 +1,3 @@
1
- import * as _$_intlayer_types0 from "@intlayer/types";
2
-
3
1
  //#region src/client/format/useUnit.d.ts
4
2
  /**
5
3
  * React hook that provides a unit formatting function
@@ -19,7 +17,7 @@ import * as _$_intlayer_types0 from "@intlayer/types";
19
17
  * @returns {Function} A unit formatting function that accepts a value and optional formatting options.
20
18
  */
21
19
  declare const useUnit: () => (value: string | number, options?: Intl.NumberFormatOptions & {
22
- locale?: _$_intlayer_types0.LocalesValues;
20
+ locale?: import("@intlayer/types").LocalesValues;
23
21
  }) => string;
24
22
  //#endregion
25
23
  export { useUnit };
@@ -1 +1 @@
1
- {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../../src/client/format/useUnit.ts"],"mappings":";;;;;;AAuBA;;;;;;;;;;;;;;cAAa,OAAA,SAAO,KAAA,mBAAA,OAAA,GAAA,IAAA,CAAA,mBAAA;WAAA,kBAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useUnit.d.ts","names":[],"sources":["../../../../src/client/format/useUnit.ts"],"mappings":";;;;;;;;;;;;;;;;;;cAuBa,gBAAO,wBAAA,UAAA,KAAA"}
@@ -1,5 +1,4 @@
1
1
  import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
2
-
3
2
  //#region src/client/t.d.ts
4
3
  /**
5
4
  * Client-side translation function that returns the translation of the provided multilang content.
@@ -1 +1 @@
1
- {"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/client/t.ts"],"mappings":";;;;;AAkCA;;;;;;;;;;;;;;;;;;;;;;cAAa,CAAA,qBACX,gBAAA,EAAkB,mBAAA,CAAoB,OAAA,GACtC,MAAA,GAAS,aAAA,KAAa,OAAA"}
1
+ {"version":3,"file":"t.d.ts","names":[],"sources":["../../../src/client/t.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;cAkCa,IAAK,kBAAgB,kBACd,oBAAoB,UAAQ,SACrC,kBAAa"}
@@ -1,9 +1,6 @@
1
- import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _$_intlayer_core_interpreter0 from "@intlayer/core/interpreter";
1
+ import { IInterpreterPluginState } from "../plugins.js";
3
2
  import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
4
- import * as _$_intlayer_types0 from "@intlayer/types";
5
3
  import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup } from "@intlayer/types/dictionary";
6
-
7
4
  //#region src/client/useDictionary.d.ts
8
5
  /**
9
6
  * Client-side hook that transforms a dictionary (or qualified dictionary
@@ -12,7 +9,7 @@ import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup } from
12
9
  * If the locale is not provided (directly or through the selector), it will
13
10
  * use the locale from the client context.
14
11
  */
15
- declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => _$_intlayer_core_interpreter0.DeepTransformContent<_$_intlayer_types0.ResolveQualifiedDictionaryContent<T, A>, IInterpreterPluginState$1, _$_intlayer_types0.ExtractSelectorLocale<A>>;
12
+ declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").ResolveQualifiedDictionaryContent<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
16
13
  //#endregion
17
14
  export { useDictionary };
18
15
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/client/useDictionary.ts"],"mappings":";;;;;;;;;;;;AAuBA;;cAAa,aAAA,mBACK,UAAA,GAAa,wBAAA,kBAEzB,aAAA,GACA,0BAAA,CAA2B,CAAA,IAAK,eAAA,EAEpC,UAAA,EAAY,CAAA,EACZ,gBAAA,GAAmB,CAAA,KAAC,6BAAA,CAAA,oBAAA,CAAA,kBAAA,CAAA,iCAAA,CAAA,CAAA,EAAA,CAAA,GAAA,yBAAA,EAAA,kBAAA,CAAA,qBAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/client/useDictionary.ts"],"mappings":";;;;;;;;;;;cAuBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,2CAAC,+CAAA,kCAAA,GAAA,IAAA,mDAAA,sBAAA"}
@@ -1,6 +1,5 @@
1
1
  import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
2
2
  import { Dictionary } from "@intlayer/types/dictionary";
3
-
4
3
  //#region src/client/useDictionaryAsync.d.ts
5
4
  /**
6
5
  * On the server side, Hook that transform a dictionary and return the content
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/client/useDictionaryAsync.ts"],"mappings":";;;;;;AAkBA;;;cAAa,kBAAA,mBACK,UAAA,kBACA,aAAA,GAAgB,eAAA,EAEhC,iBAAA,EAAmB,mBAAA,OAA0B,OAAA,CAAQ,CAAA,IACrD,MAAA,GAAS,CAAA,KACR,OAAA,CAAQ,CAAA"}
1
+ {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/client/useDictionaryAsync.ts"],"mappings":";;;;;;;;cAkBa,2BACL,UAAU,kBACV,UAAU,gBAAgB,iBAAe,mBAE5B,0BAA0B,QAAQ,KAAG,SAC/C,MACR,QAAQ"}
@@ -1,7 +1,6 @@
1
1
  import { DictionaryKeys, DictionarySelectorForKey, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
2
2
  import { Dictionary } from "@intlayer/types/dictionary";
3
3
  import { QualifiedDynamicLoaderMap } from "@intlayer/core/dictionaryManipulator";
4
-
5
4
  //#region src/client/useDictionaryDynamic.d.ts
6
5
  /**
7
6
  * Client-side hook that lazily loads a dictionary and returns its content.
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"mappings":";;;;;;;AAmCA;;;;;;;;;cAAa,oBAAA,mBACK,UAAA,kBACA,cAAA,kBACA,aAAA,GAAgB,wBAAA,CAAyB,CAAA,IAAK,aAAA,EAE9D,iBAAA,EACI,mBAAA,OAA0B,OAAA,CAAQ,CAAA,KAClC,yBAAA,EACJ,GAAA,EAAK,CAAA,EACL,gBAAA,GAAmB,CAAA"}
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"mappings":";;;;;;;;;;;;;;;cAmCa,6BACL,UAAU,kBACV,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,eAAa,mBAGvE,0BAA0B,QAAQ,MAClC,2BAAyB,KACxB,GAAC,mBACa"}
@@ -2,7 +2,6 @@ import { DeepTransformContent } from "../plugins.js";
2
2
  import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types/module_augmentation";
3
3
  import { ValidDotPathsFor } from "@intlayer/core/transpiler";
4
4
  import { GetSubPath } from "@intlayer/types/dictionary";
5
-
6
5
  //#region src/client/useI18n.d.ts
7
6
  /**
8
7
  * Hook that provides a translation function `t()` for accessing nested content by key.
@@ -1 +1 @@
1
- {"version":3,"file":"useI18n.d.ts","names":[],"sources":["../../../src/client/useI18n.ts"],"mappings":";;;;;;;;AAgCA;;;;;;;;;;;;;;;cAAa,OAAA,aACD,cAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,SAAA,EAAW,CAAA,EACX,MAAA,GAAS,CAAA,gBAkBY,gBAAA,CAAiB,CAAA,GAAE,IAAA,EAChC,CAAA,KAEL,UAAA,CAAW,oBAAA,CAAqB,yBAAA,CAA0B,CAAA,IAAK,CAAA"}
1
+ {"version":3,"file":"useI18n.d.ts","names":[],"sources":["../../../src/client/useI18n.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;cAgCa,UACX,UAAU,gBACV,UAAU,gBAAgB,iBAAe,WAE9B,GAAC,SACH,OAkBE,UAAU,iBAAiB,IAAE,MAChC,MAEL,WAAW,qBAAqB,0BAA0B,KAAK"}
@@ -1,8 +1,5 @@
1
- import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _$_intlayer_core_interpreter0 from "@intlayer/core/interpreter";
1
+ import { IInterpreterPluginState } from "../plugins.js";
3
2
  import { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValues } from "@intlayer/types/module_augmentation";
4
- import * as _$_intlayer_types0 from "@intlayer/types";
5
-
6
3
  //#region src/client/useIntlayer.d.ts
7
4
  /**
8
5
  * Client-side hook that picks one dictionary by its key and returns its content.
@@ -28,7 +25,7 @@ import * as _$_intlayer_types0 from "@intlayer/types";
28
25
  * };
29
26
  * ```
30
27
  */
31
- declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => _$_intlayer_core_interpreter0.DeepTransformContent<_$_intlayer_types0.DictionaryRegistryResult<T, A>, IInterpreterPluginState$1, _$_intlayer_types0.ExtractSelectorLocale<A>>;
28
+ declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => import("@intlayer/core/interpreter").DeepTransformContent<import("@intlayer/types").DictionaryRegistryResult<T, A>, IInterpreterPluginState, import("@intlayer/types").ExtractSelectorLocale<A>>;
32
29
  //#endregion
33
30
  export { useIntlayer };
34
31
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/client/useIntlayer.ts"],"mappings":";;;;;;;;;;;AAqCA;;;;;;;;;;;;;;;;;;;cAAa,WAAA,mBACK,cAAA,kBACA,aAAA,GAAgB,wBAAA,CAAyB,CAAA,IAAK,eAAA,EAE9D,GAAA,EAAK,CAAA,EACL,gBAAA,GAAmB,CAAA,KAAC,6BAAA,CAAA,oBAAA,CAAA,kBAAA,CAAA,wBAAA,CAAA,CAAA,EAAA,CAAA,GAAA,yBAAA,EAAA,kBAAA,CAAA,qBAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/client/useIntlayer.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,2CAAC,+CAAA,yBAAA,GAAA,IAAA,mDAAA,sBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/client/useLoadDynamic.ts"],"mappings":";cA2Ba,cAAA,MAAqB,GAAA,UAAa,OAAA,EAAS,OAAA,CAAQ,CAAA,MAAK,CAAA"}
1
+ {"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/client/useLoadDynamic.ts"],"mappings":";cA2Ba,iBAAkB,GAAC,aAAa,SAAW,QAAQ,OAAK"}
@@ -1,5 +1,4 @@
1
1
  import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
2
-
3
2
  //#region src/client/useLocale.d.ts
4
3
  type UseLocaleProps = {
5
4
  isCookieEnabled?: boolean;
@@ -34,10 +33,7 @@ type UseLocaleResult = {
34
33
  * };
35
34
  * ```
36
35
  */
37
- declare const useLocale: ({
38
- isCookieEnabled,
39
- onLocaleChange
40
- }?: UseLocaleProps) => UseLocaleResult;
36
+ declare const useLocale: ({ isCookieEnabled, onLocaleChange }?: UseLocaleProps) => UseLocaleResult;
41
37
  //#endregion
42
38
  export { UseLocaleProps, UseLocaleResult, useLocale };
43
39
  //# sourceMappingURL=useLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;;KAWY,cAAA;EACV,eAAA;EACA,cAAA,IAAkB,MAAA,EAAQ,eAAA;AAAA;AAAA,KAGhB,eAAA;EACV,MAAA,EAAQ,eAAA;EACR,aAAA,EAAe,eAAA;EACf,gBAAA,EAAkB,eAAA;EAClB,SAAA,GAAY,MAAA,EAAQ,aAAA;AAAA;;;AAJtB;;;;;;;;;;;;;;;;;;;;AA8BA;cAAa,SAAA;EAAa,eAAA;EAAA;AAAA,IAGvB,cAAA,KAAsB,eAAA"}
1
+ {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"mappings":";;KAWY;EACV;EACA,kBAAkB,QAAQ;;KAGhB;EACV,QAAQ;EACR,eAAe;EACf,kBAAkB;EAClB,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;cA0BT,cAAS,iBAAA,mBAGnB,mBAAsB"}
@@ -1,14 +1,12 @@
1
- import * as _$_intlayer_types0 from "@intlayer/types";
2
-
3
1
  //#region src/client/useLocaleBase.d.ts
4
2
  /**
5
3
  * On the client side, hook to get the current locale and all related fields
6
4
  */
7
5
  declare const useLocaleBase: () => {
8
- locale: _$_intlayer_types0.LocalesValues;
6
+ locale: import("@intlayer/types").LocalesValues;
9
7
  defaultLocale: any;
10
8
  availableLocales: any;
11
- setLocale: (newLocale: _$_intlayer_types0.LocalesValues) => void;
9
+ setLocale: (newLocale: import("@intlayer/types").LocalesValues) => void;
12
10
  };
13
11
  //#endregion
14
12
  export { useLocaleBase };
@@ -1 +1 @@
1
- {"version":3,"file":"useLocaleBase.d.ts","names":[],"sources":["../../../src/client/useLocaleBase.ts"],"mappings":";;;;;;cAWa,aAAA;UASZ,kBAAA,CAAA,aAAA;;;yBAAA,kBAAA,CAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useLocaleBase.d.ts","names":[],"sources":["../../../src/client/useLocaleBase.ts"],"mappings":";;;;cAWa"}
@@ -1,6 +1,4 @@
1
1
  import { LocalesValues } from "@intlayer/types/module_augmentation";
2
- import * as _$_intlayer_types0 from "@intlayer/types";
3
-
4
2
  //#region src/client/useLocaleStorage.d.ts
5
3
  /**
6
4
  * Get the locale cookie
@@ -8,13 +6,13 @@ import * as _$_intlayer_types0 from "@intlayer/types";
8
6
  /**
9
7
  * Get the locale cookie
10
8
  */
11
- declare const localeInStorage: _$_intlayer_types0.Locale;
9
+ declare const localeInStorage: import("@intlayer/types").Locale;
12
10
  /**
13
11
  * @deprecated Use localeInStorage instead
14
12
  *
15
13
  * Get the locale cookie
16
14
  */
17
- declare const localeCookie: _$_intlayer_types0.Locale;
15
+ declare const localeCookie: import("@intlayer/types").Locale;
18
16
  /**
19
17
  * Set the locale cookie
20
18
  */
@@ -24,12 +22,12 @@ declare const setLocaleInStorage: (locale: LocalesValues, isCookieEnabled?: bool
24
22
  *
25
23
  * Set the locale cookie
26
24
  */
27
- declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled?: boolean) => void;
25
+ declare const setLocaleCookie: typeof setLocaleInStorage;
28
26
  /**
29
27
  * Hook that provides the locale cookie and a function to set it
30
28
  */
31
29
  declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
32
- getLocale: () => _$_intlayer_types0.Locale;
30
+ getLocale: () => import("@intlayer/types").Locale;
33
31
  setLocale: (locale: LocalesValues) => void;
34
32
  };
35
33
  /**
@@ -39,10 +37,7 @@ declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
39
37
  *
40
38
  * Hook that provides the locale cookie and a function to set it
41
39
  */
42
- declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
43
- getLocale: () => _$_intlayer_types0.Locale;
44
- setLocale: (locale: LocalesValues) => void;
45
- };
40
+ declare const useLocaleCookie: typeof useLocaleStorage;
46
41
  //#endregion
47
42
  export { localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage };
48
43
  //# sourceMappingURL=useLocaleStorage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;;;AAeA;;;AAAA,cAAa,eAAA,EAAkE,kBAAA,CAAnD,MAAA;;AAM5B;;;;cAAa,YAAA,EAA8B,kBAAA,CAAlB,MAAA;AAKzB;;;AAAA,cAAa,kBAAA,GACX,MAAA,EAAQ,aAAA,EACR,eAAA;;;;;;cAYW,eAAA,GAAe,MAAA,EAblB,aAAA,EAAa,eAAA;;;;cAkBV,gBAAA,GAAoB,eAAA;mBAQ9B,kBAAA,CAAA,MAAA;sBAAA,aAAA;AAAA;;AARH;;;;;;cAiBa,eAAA,GAAe,eAAA;mBAAmB,kBAAA,CAAA,MAAA;sBAAA,aAAA;AAAA"}
1
+ {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"mappings":";;;;;;;;cAea,2CAAe;;;;;;cAMf,wCAAY;;;;cAKZ,qBAAkB,QACrB,eAAa;;;;;;cAaV,wBAAe;;;;cAKf,mBAAgB;;sBAAhB;;;;;;;;;cAiBA,wBAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePathname.d.ts","names":[],"sources":["../../../src/client/usePathname.ts"],"mappings":";;AAuBA;;;;;;;;;;;;;;;;;cAAa,WAAA"}
1
+ {"version":3,"file":"usePathname.d.ts","names":[],"sources":["../../../src/client/usePathname.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAuBa"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRewriteURL.d.ts","names":[],"sources":["../../../src/client/useRewriteURL.ts"],"mappings":";;AA0BA;;;;;;;;;;;;;;;;;cAAa,aAAA"}
1
+ {"version":3,"file":"useRewriteURL.d.ts","names":[],"sources":["../../../src/client/useRewriteURL.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cA0Ba"}
@@ -1,5 +1,4 @@
1
1
  import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
2
-
3
2
  //#region src/client/useTraduction.d.ts
4
3
  /**
5
4
  * On the client side, Hook that picking one dictionary by its id and return the content.
@@ -1 +1 @@
1
- {"version":3,"file":"useTraduction.d.ts","names":[],"sources":["../../../src/client/useTraduction.ts"],"mappings":";;;;;AA0BA;;;;;;;;;;;;;;;;;;;cAAa,cAAA,2BACX,eAAA,EAAiB,mBAAA,CAAoB,OAAA,MACpC,OAAA"}
1
+ {"version":3,"file":"useTraduction.d.ts","names":[],"sources":["../../../src/client/useTraduction.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cA0Ba,uBAAwB,kBAAgB,iBAClC,oBAAoB,aACpC"}
@@ -1,6 +1,5 @@
1
1
  import { NodeProps } from "@intlayer/core/interpreter";
2
2
  import { FC, HTMLAttributes } from "react";
3
-
4
3
  //#region src/editor/ContentSelector.d.ts
5
4
  type ContentSelectorProps = NodeProps & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
6
5
  declare const ContentSelector: FC<ContentSelectorProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/editor/ContentSelector.tsx"],"mappings":";;;;KAMY,oBAAA,GAAuB,SAAA,GACjC,IAAA,CAAK,cAAA,CAAe,cAAA;AAAA,cAET,eAAA,EAAiB,EAAA,CAAG,oBAAA"}
1
+ {"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/editor/ContentSelector.tsx"],"mappings":";;;KAMY,uBAAuB,YACjC,KAAK,eAAe;cAET,iBAAiB,GAAG"}
@@ -1,5 +1,4 @@
1
1
  import { FC, PropsWithChildren } from "react";
2
-
3
2
  //#region src/editor/EditorProvider.d.ts
4
3
  declare const EditorProvider: FC<PropsWithChildren>;
5
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"mappings":";;;cAGa,cAAA,EAAgB,EAAA,CAAG,iBAAA"}
1
+ {"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../../src/editor/EditorProvider.tsx"],"mappings":";;cAGa,gBAAgB,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.tsx"],"mappings":";;AAaA;;;;cAAa,SAAA"}
1
+ {"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.tsx"],"mappings":";;;;;;cAaa"}
@@ -1,7 +1,6 @@
1
1
  import { DeepTransformContent } from "./plugins.js";
2
2
  import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
3
3
  import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from "@intlayer/types/dictionary";
4
-
5
4
  //#region src/getDictionary.d.ts
6
5
  /**
7
6
  * Transforms a dictionary (or qualified dictionary group) and returns its
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;AAmBA;;;cAAa,aAAA,mBACK,UAAA,GAAa,wBAAA,kBAEzB,aAAA,GACA,0BAAA,CAA2B,CAAA,IAAK,eAAA,EAEpC,UAAA,EAAY,CAAA,EACZ,gBAAA,GAAmB,CAAA,KAClB,oBAAA,CACD,iCAAA,CAAkC,CAAA,EAAG,CAAA,GACrC,qBAAA,CAAsB,CAAA"}
1
+ {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"mappings":";;;;;;;;;cAmBa,sBACL,UAAU,aAAa,gCACvB,UACF,gBACA,2BAA2B,KAAK,iBAAe,YAEvC,GAAC,mBACM,MAClB,qBACD,kCAAkC,GAAG,IACrC,sBAAsB"}
@@ -1,6 +1,5 @@
1
1
  import { DeepTransformContent } from "./plugins.js";
2
2
  import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
3
-
4
3
  //#region src/getIntlayer.d.ts
5
4
  /**
6
5
  * Picks one dictionary by its key and returns its content for the given
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"mappings":";;;;;;AAgBA;;;cAAa,WAAA,mBACK,cAAA,kBACA,aAAA,GAAgB,wBAAA,CAAyB,CAAA,IAAK,eAAA,EAE9D,GAAA,EAAK,CAAA,EACL,gBAAA,GAAmB,CAAA,KAClB,oBAAA,CACD,wBAAA,CAAyB,CAAA,EAAG,CAAA,GAC5B,qBAAA,CAAsB,CAAA"}
1
+ {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"mappings":";;;;;;;;cAgBa,oBACL,UAAU,sBACV,UAAU,gBAAgB,yBAAyB,KAAK,iBAAe,KAExE,GAAC,mBACa,MAClB,qBACD,yBAAyB,GAAG,IAC5B,sBAAsB"}