@vuetify/v0 1.0.0-alpha.3 → 1.0.0-alpha.4

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 (169) hide show
  1. package/README.md +3 -0
  2. package/dist/adapter-BSKx9WQ7.mjs +4 -0
  3. package/dist/{index-CT5SCLzW.d.mts → adapter-C6JmOyYo.d.mts} +6 -9
  4. package/dist/{adapter-gQ2SNKZq.mjs → adapter-C9cR4AcY.mjs} +248 -5
  5. package/dist/adapter-Chznb9Ju.mjs +4 -0
  6. package/dist/{adapter-DlX3FA3A.d.mts → adapter-Cr7Bl4la.d.mts} +3 -7
  7. package/dist/adapter-D8zizQVP.mjs +4 -0
  8. package/dist/adapter-DgBBe_BW.d.mts +17 -0
  9. package/dist/adapter-Dzyrlbz7.d.mts +98 -0
  10. package/dist/adapter-o8r-2vUn.d.mts +11 -0
  11. package/dist/adapters-B25KaYU4.mjs +2 -0
  12. package/dist/adapters-BcddLSNs.mjs +4 -0
  13. package/dist/adapters-D64TORDu.mjs +2 -0
  14. package/dist/adapters-Dv74Jk6A.mjs +5 -0
  15. package/dist/adapters-t6QC-zE8.mjs +3 -0
  16. package/dist/browser/index.js +1510 -388
  17. package/dist/components/index.d.mts +2 -2
  18. package/dist/components/index.mjs +1 -1
  19. package/dist/{components-C4jI-78d.mjs → components-BWxMSWr7.mjs} +138 -90
  20. package/dist/composables/index.d.mts +19 -19
  21. package/dist/composables/index.mjs +31 -29
  22. package/dist/{consola-BdgyPEfx.d.mts → consola-Crr4qbeI.d.mts} +2 -2
  23. package/dist/{consola-Ceox8BWi.mjs → consola-DYvbPNbF.mjs} +3 -1
  24. package/dist/constants/index.d.mts +1 -1
  25. package/dist/constants/index.mjs +2 -2
  26. package/dist/{createDataTable-iODP6aKB.mjs → createDataTable-DDr2yY-A.mjs} +30 -29
  27. package/dist/{createGroup-CGk6hY_Y.mjs → createGroup-BSGtfBUE.mjs} +3 -3
  28. package/dist/{createRegistry-BXzdXAjq.mjs → createRegistry-Db_juawd.mjs} +78 -41
  29. package/dist/{createSelection-B3HJEPNg.mjs → createSelection-BeKZMxha.mjs} +3 -3
  30. package/dist/{createSingle-Dql8mRi-.mjs → createSingle-Dms2efxr.mjs} +1 -1
  31. package/dist/{createTokens-DgFYsOrv.mjs → createTokens-B1lwHZvO.mjs} +2 -2
  32. package/dist/data-table/adapters/client/index.d.mts +2 -2
  33. package/dist/data-table/adapters/client/index.mjs +2 -2
  34. package/dist/data-table/adapters/index.d.mts +5 -5
  35. package/dist/data-table/adapters/index.mjs +6 -6
  36. package/dist/data-table/adapters/server/index.d.mts +2 -2
  37. package/dist/data-table/adapters/server/index.mjs +2 -2
  38. package/dist/data-table/adapters/virtual/index.d.mts +2 -2
  39. package/dist/data-table/adapters/virtual/index.mjs +2 -2
  40. package/dist/data-table/index.d.mts +6 -6
  41. package/dist/data-table/index.mjs +6 -6
  42. package/dist/date/index.d.mts +3 -3
  43. package/dist/date/index.mjs +11 -4
  44. package/dist/features/adapters/flagsmith/index.d.mts +2 -2
  45. package/dist/features/adapters/flagsmith/index.mjs +2 -2
  46. package/dist/features/adapters/launchdarkly/index.d.mts +2 -2
  47. package/dist/features/adapters/launchdarkly/index.mjs +2 -2
  48. package/dist/features/adapters/posthog/index.d.mts +2 -2
  49. package/dist/features/adapters/posthog/index.mjs +2 -2
  50. package/dist/features/index.d.mts +3 -3
  51. package/dist/features/index.mjs +2 -1
  52. package/dist/{flagsmith-Dbh1h8WF.mjs → flagsmith-Cu93hUIF.mjs} +6 -4
  53. package/dist/{index-BzFHTW59.d.mts → flagsmith-ygKMImos.d.mts} +4 -4
  54. package/dist/{globals-zEjWBKCr.mjs → globals-BAe6tA_x.mjs} +1 -1
  55. package/dist/{index-GOpjKzaJ.d.mts → index-B3-FstpY.d.mts} +25 -2
  56. package/dist/{index-BJGcVy7e.d.mts → index-BA7YU2xY.d.mts} +5 -5
  57. package/dist/{index-B76iGRE3.d.mts → index-BfpLkDR_.d.mts} +949 -59
  58. package/dist/{index-DE3bWw11.d.mts → index-Cw04PFVO.d.mts} +92 -48
  59. package/dist/index-DewYtDsc.d.mts +4 -0
  60. package/dist/{index-DNDuacmH.d.mts → index-jQPkwo3G.d.mts} +15 -5
  61. package/dist/index.d.mts +23 -23
  62. package/dist/index.mjs +35 -33
  63. package/dist/json/attributes.json +1 -1
  64. package/dist/json/web-types.json +2 -2
  65. package/dist/launchdarkly-BJR4vbbV.d.mts +13 -0
  66. package/dist/{launchdarkly-BKtW-idu.mjs → launchdarkly-CLGtJCsI.mjs} +6 -4
  67. package/dist/locale/adapters/index.d.mts +3 -3
  68. package/dist/locale/adapters/index.mjs +4 -3
  69. package/dist/locale/adapters/v0/index.d.mts +2 -2
  70. package/dist/locale/adapters/v0/index.mjs +2 -2
  71. package/dist/locale/adapters/vue-i18n/index.d.mts +3 -3
  72. package/dist/locale/adapters/vue-i18n/index.mjs +4 -2
  73. package/dist/locale/index.d.mts +4 -4
  74. package/dist/locale/index.mjs +4 -3
  75. package/dist/logger/adapters/consola/index.d.mts +1 -1
  76. package/dist/logger/adapters/consola/index.mjs +1 -1
  77. package/dist/logger/adapters/index.d.mts +5 -5
  78. package/dist/logger/adapters/index.mjs +6 -5
  79. package/dist/logger/adapters/pino/index.d.mts +1 -1
  80. package/dist/logger/adapters/pino/index.mjs +1 -1
  81. package/dist/logger/adapters/v0/index.d.mts +2 -2
  82. package/dist/logger/adapters/v0/index.mjs +2 -2
  83. package/dist/logger/index.d.mts +6 -6
  84. package/dist/logger/index.mjs +6 -5
  85. package/dist/{memory-CeSQE-QV.d.mts → memory-B0w39kno.d.mts} +9 -9
  86. package/dist/{memory-oYBvtkgx.mjs → memory-BMpJcQjQ.mjs} +13 -3
  87. package/dist/notifications/index.d.mts +30 -4
  88. package/dist/notifications/index.mjs +187 -126
  89. package/dist/palettes/ant/index.d.mts +1 -1
  90. package/dist/palettes/index.d.mts +3 -3
  91. package/dist/palettes/leonardo/generate/index.mjs +3 -0
  92. package/dist/palettes/material/index.d.mts +1 -1
  93. package/dist/palettes/md1/index.d.mts +1 -1
  94. package/dist/palettes/md2/index.d.mts +1 -1
  95. package/dist/palettes/radix/index.d.mts +1 -1
  96. package/dist/palettes/tailwind/index.d.mts +1 -1
  97. package/dist/permissions/adapters/index.d.mts +2 -2
  98. package/dist/permissions/adapters/index.mjs +3 -3
  99. package/dist/permissions/adapters/v0/index.d.mts +2 -2
  100. package/dist/permissions/adapters/v0/index.mjs +2 -2
  101. package/dist/permissions/index.d.mts +2 -2
  102. package/dist/permissions/index.mjs +3 -3
  103. package/dist/{pino-9L79n6y6.mjs → pino-CIcYlW3u.mjs} +3 -1
  104. package/dist/{pino-DNfCEb0p.d.mts → pino-NmR7X0s4.d.mts} +2 -2
  105. package/dist/{posthog-DmuyycaR.mjs → posthog-B3go2aCh.mjs} +7 -5
  106. package/dist/posthog-CQntUXFO.d.mts +13 -0
  107. package/dist/rules/index.d.mts +1 -1
  108. package/dist/rules/index.mjs +1 -1
  109. package/dist/{server-3ilWFwqe.d.mts → server-DQK305lc.d.mts} +5 -5
  110. package/dist/{server-y7zLSCSx.mjs → server-ZFXbgQoY.mjs} +4 -3
  111. package/dist/storage/adapters/index.d.mts +3 -3
  112. package/dist/storage/adapters/index.mjs +2 -2
  113. package/dist/storage/adapters/memory/index.d.mts +2 -2
  114. package/dist/storage/adapters/memory/index.mjs +2 -2
  115. package/dist/storage/index.d.mts +4 -4
  116. package/dist/storage/index.mjs +3 -3
  117. package/dist/theme/adapters/index.d.mts +2 -2
  118. package/dist/theme/adapters/index.mjs +4 -4
  119. package/dist/theme/adapters/unhead/index.d.mts +1 -1
  120. package/dist/theme/adapters/unhead/index.mjs +1 -1
  121. package/dist/theme/adapters/v0/index.d.mts +1 -1
  122. package/dist/theme/adapters/v0/index.mjs +1 -1
  123. package/dist/theme/index.d.mts +1 -1
  124. package/dist/theme/index.mjs +3 -3
  125. package/dist/types/index.d.mts +1 -1
  126. package/dist/{unhead-B-I2OS6i.mjs → unhead-dPyVkgiJ.mjs} +2 -2
  127. package/dist/{useClickOutside-CY4U2J9W.mjs → useClickOutside-B8naChaQ.mjs} +1224 -228
  128. package/dist/{useFeatures-BPOke6iP.mjs → useFeatures-x2iKp0C8.mjs} +7 -10
  129. package/dist/{useLocale-BV8e3imF.mjs → useLocale-BUms59Bw.mjs} +6 -6
  130. package/dist/{useLogger-DvdRTrqC.mjs → useLogger-DPSSa-YR.mjs} +4 -4
  131. package/dist/{useNotifications-vSJE6z6t.mjs → useNotifications-BPTmZWQy.mjs} +4 -4
  132. package/dist/{usePermissions-D3zPwKQc.mjs → usePermissions-CTi-3pBk.mjs} +6 -6
  133. package/dist/{useRules-BT6cgoTj.mjs → useRules-DNhljkyO.mjs} +2 -2
  134. package/dist/{useTheme-cUZb2A9O.mjs → useTheme-3vW3kFNg.mjs} +5 -5
  135. package/dist/utilities/index.d.mts +2 -2
  136. package/dist/utilities/index.mjs +26 -2
  137. package/dist/{v0-DrOub-e1.d.mts → v0-CRGArJim.d.mts} +4 -4
  138. package/dist/{v0-C49OI_wc.mjs → v0-CotC1PiS.mjs} +5 -3
  139. package/dist/{v0-Dq3zhexO.mjs → v0-DAlKpCR8.mjs} +3 -4
  140. package/dist/{v0-D7Fm2C3Y.d.mts → v0-DDELiSI6.d.mts} +3 -3
  141. package/dist/v0-DYsCJPIu.d.mts +8 -0
  142. package/dist/{v0-gpExNexS.mjs → v0-DadOcxFI.mjs} +2 -2
  143. package/dist/{v0-Bmow1q_x.mjs → v0-Dvu8fMl3.mjs} +3 -3
  144. package/dist/{v0-CHZpnMeP.mjs → v0-YJQoTLsp.mjs} +6 -4
  145. package/dist/virtual-BqCRw0ly.d.mts +8 -0
  146. package/dist/{virtual-C0yHf1DC.mjs → virtual-Dnno49F8.mjs} +3 -4
  147. package/package.json +1 -1
  148. package/dist/adapter-58IvIfAZ.d.mts +0 -96
  149. package/dist/adapter-BvWEd9w-.d.mts +0 -17
  150. package/dist/adapter-Dhq68tz0.d.mts +0 -11
  151. package/dist/adapters-BSiqsTZN.mjs +0 -3
  152. package/dist/adapters-C3QXhf4I.mjs +0 -2
  153. package/dist/adapters-CMJGA1k7.mjs +0 -2
  154. package/dist/adapters-Dse4bPxk.mjs +0 -5
  155. package/dist/adapters-_ZqxCD8f.mjs +0 -4
  156. package/dist/createPagination-CHF7SmmK.mjs +0 -247
  157. package/dist/index-1XdASTjp.d.mts +0 -13
  158. package/dist/index-C6rdXZ7j.d.mts +0 -11
  159. package/dist/index-Dp1HjBxJ.d.mts +0 -13
  160. package/dist/v0-CdusXjY_.d.mts +0 -8
  161. package/dist/virtual-D4fckewC.d.mts +0 -8
  162. /package/dist/{adapter-Be9zUc-n.mjs → adapter-oM18AdUc.mjs} +0 -0
  163. /package/dist/{htmlElements-D4oMQZPJ.mjs → htmlElements-CHXZfsZu.mjs} +0 -0
  164. /package/dist/{index-CFhUdAHM.d.mts → index-CKKoxA9V.d.mts} +0 -0
  165. /package/dist/{index-DuddF-NR.d.mts → index-CLR1QMM3.d.mts} +0 -0
  166. /package/dist/{index-BgCkepP_.d.mts → index-DJQwYeyx.d.mts} +0 -0
  167. /package/dist/{index-CROz1VSV.d.mts → index-DWfPppPU.d.mts} +0 -0
  168. /package/dist/{index-DTvqw22G.d.mts → index-H_hl6-4b.d.mts} +0 -0
  169. /package/dist/{toArray-as9BWxBK.mjs → toArray-CD2-OxAz.mjs} +0 -0
@@ -1,5 +1,6 @@
1
1
  import { isObject } from "../../../utilities/index.mjs";
2
- //#region src/composables/useLocale/adapters/vue-i18n/index.ts
2
+ import { t as LocaleAdapter } from "../../../adapter-D8zizQVP.mjs";
3
+ //#region src/composables/useLocale/adapters/vue-i18n.ts
3
4
  /**
4
5
  * Locale adapter that delegates to a vue-i18n instance.
5
6
  *
@@ -8,9 +9,10 @@ import { isObject } from "../../../utilities/index.mjs";
8
9
  * preserving all vue-i18n features: pluralization, linked
9
10
  * messages, datetime/number formatting, etc.
10
11
  */
11
- var VueI18nLocaleAdapter = class {
12
+ var VueI18nLocaleAdapter = class extends LocaleAdapter {
12
13
  composer;
13
14
  constructor(i18n) {
15
+ super();
14
16
  this.composer = i18n.global;
15
17
  }
16
18
  t(key, ...params) {
@@ -1,4 +1,4 @@
1
- import { Cn as useLocale, Sn as createLocalePlugin, _n as LocaleTicket, bn as createLocaleContext, fn as LocaleContext, gn as LocaleRecord, hn as LocalePluginOptions, mn as LocaleOptions, pn as LocaleContextOptions, vn as LocaleTicketInput, xn as createLocaleFallback, yn as createLocale } from "../index-B76iGRE3.mjs";
2
- import { n as LocaleAdapterContext, t as LocaleAdapter } from "../adapter-BvWEd9w-.mjs";
3
- import { t as Vuetify0LocaleAdapter } from "../v0-D7Fm2C3Y.mjs";
4
- export { LocaleAdapter, LocaleAdapterContext, LocaleContext, LocaleContextOptions, LocaleOptions, LocalePluginOptions, LocaleRecord, LocaleTicket, LocaleTicketInput, Vuetify0LocaleAdapter, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, useLocale };
1
+ import { _n as createLocale, bn as createLocalePlugin, dn as LocaleContextOptions, fn as LocaleOptions, gn as LocaleTicketInput, hn as LocaleTicket, mn as LocaleRecord, pn as LocalePluginOptions, un as LocaleContext, vn as createLocaleContext, xn as useLocale, yn as createLocaleFallback } from "../index-BfpLkDR_.mjs";
2
+ import { n as LocaleAdapterContext, t as LocaleAdapter } from "../adapter-DgBBe_BW.mjs";
3
+ import { t as V0LocaleAdapter } from "../v0-DDELiSI6.mjs";
4
+ export { LocaleAdapter, LocaleAdapterContext, LocaleContext, LocaleContextOptions, LocaleOptions, LocalePluginOptions, LocaleRecord, LocaleTicket, LocaleTicketInput, V0LocaleAdapter, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, useLocale };
@@ -1,3 +1,4 @@
1
- import { t as Vuetify0LocaleAdapter } from "../v0-C49OI_wc.mjs";
2
- import { a as useLocale, i as createLocalePlugin, n as createLocaleContext, r as createLocaleFallback, t as createLocale } from "../useLocale-BV8e3imF.mjs";
3
- export { Vuetify0LocaleAdapter, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, useLocale };
1
+ import { t as LocaleAdapter } from "../adapter-D8zizQVP.mjs";
2
+ import { t as V0LocaleAdapter } from "../v0-CotC1PiS.mjs";
3
+ import { a as useLocale, i as createLocalePlugin, n as createLocaleContext, r as createLocaleFallback, t as createLocale } from "../useLocale-BUms59Bw.mjs";
4
+ export { LocaleAdapter, V0LocaleAdapter, createLocale, createLocaleContext, createLocaleFallback, createLocalePlugin, useLocale };
@@ -1,2 +1,2 @@
1
- import { t as ConsolaLoggerAdapter } from "../../../consola-BdgyPEfx.mjs";
1
+ import { t as ConsolaLoggerAdapter } from "../../../consola-Crr4qbeI.mjs";
2
2
  export { ConsolaLoggerAdapter };
@@ -1,2 +1,2 @@
1
- import { t as ConsolaLoggerAdapter } from "../../../consola-Ceox8BWi.mjs";
1
+ import { t as ConsolaLoggerAdapter } from "../../../consola-DYvbPNbF.mjs";
2
2
  export { ConsolaLoggerAdapter };
@@ -1,5 +1,5 @@
1
- import { t as LoggerAdapter } from "../../adapter-Dhq68tz0.mjs";
2
- import { t as ConsolaLoggerAdapter } from "../../consola-BdgyPEfx.mjs";
3
- import { n as PinoLoggerAdapter } from "../../pino-DNfCEb0p.mjs";
4
- import { t as Vuetify0LoggerAdapter } from "../../v0-DrOub-e1.mjs";
5
- export { ConsolaLoggerAdapter, LoggerAdapter, PinoLoggerAdapter, Vuetify0LoggerAdapter };
1
+ import { t as LoggerAdapter } from "../../adapter-o8r-2vUn.mjs";
2
+ import { t as ConsolaLoggerAdapter } from "../../consola-Crr4qbeI.mjs";
3
+ import { n as PinoLoggerAdapter } from "../../pino-NmR7X0s4.mjs";
4
+ import { t as V0LoggerAdapter } from "../../v0-CRGArJim.mjs";
5
+ export { ConsolaLoggerAdapter, LoggerAdapter, PinoLoggerAdapter, V0LoggerAdapter };
@@ -1,5 +1,6 @@
1
- import { t as ConsolaLoggerAdapter } from "../../consola-Ceox8BWi.mjs";
2
- import { t as PinoLoggerAdapter } from "../../pino-9L79n6y6.mjs";
3
- import { t as Vuetify0LoggerAdapter } from "../../v0-CHZpnMeP.mjs";
4
- import "../../adapters-BSiqsTZN.mjs";
5
- export { ConsolaLoggerAdapter, PinoLoggerAdapter, Vuetify0LoggerAdapter };
1
+ import { t as LoggerAdapter } from "../../adapter-Chznb9Ju.mjs";
2
+ import { t as ConsolaLoggerAdapter } from "../../consola-DYvbPNbF.mjs";
3
+ import { t as PinoLoggerAdapter } from "../../pino-CIcYlW3u.mjs";
4
+ import { t as V0LoggerAdapter } from "../../v0-YJQoTLsp.mjs";
5
+ import "../../adapters-t6QC-zE8.mjs";
6
+ export { ConsolaLoggerAdapter, LoggerAdapter, PinoLoggerAdapter, V0LoggerAdapter };
@@ -1,2 +1,2 @@
1
- import { n as PinoLoggerAdapter, t as PinoInstance } from "../../../pino-DNfCEb0p.mjs";
1
+ import { n as PinoLoggerAdapter, t as PinoInstance } from "../../../pino-NmR7X0s4.mjs";
2
2
  export { PinoInstance, PinoLoggerAdapter };
@@ -1,2 +1,2 @@
1
- import { t as PinoLoggerAdapter } from "../../../pino-9L79n6y6.mjs";
1
+ import { t as PinoLoggerAdapter } from "../../../pino-CIcYlW3u.mjs";
2
2
  export { PinoLoggerAdapter };
@@ -1,2 +1,2 @@
1
- import { t as Vuetify0LoggerAdapter } from "../../../v0-DrOub-e1.mjs";
2
- export { Vuetify0LoggerAdapter };
1
+ import { t as V0LoggerAdapter } from "../../../v0-CRGArJim.mjs";
2
+ export { V0LoggerAdapter };
@@ -1,2 +1,2 @@
1
- import { t as Vuetify0LoggerAdapter } from "../../../v0-CHZpnMeP.mjs";
2
- export { Vuetify0LoggerAdapter };
1
+ import { t as V0LoggerAdapter } from "../../../v0-YJQoTLsp.mjs";
2
+ export { V0LoggerAdapter };
@@ -1,6 +1,6 @@
1
- import { an as LoggerOptions, cn as createLoggerContext, dn as LogLevel, in as LoggerContextOptions, ln as createLoggerPlugin, on as LoggerPluginOptions, rn as LoggerContext, sn as createLogger, un as useLogger } from "../index-B76iGRE3.mjs";
2
- import { t as LoggerAdapter } from "../adapter-Dhq68tz0.mjs";
3
- import { t as ConsolaLoggerAdapter } from "../consola-BdgyPEfx.mjs";
4
- import { n as PinoLoggerAdapter } from "../pino-DNfCEb0p.mjs";
5
- import { t as Vuetify0LoggerAdapter } from "../v0-DrOub-e1.mjs";
6
- export { ConsolaLoggerAdapter, LogLevel, LoggerAdapter, LoggerContext, LoggerContextOptions, LoggerOptions, LoggerPluginOptions, PinoLoggerAdapter, Vuetify0LoggerAdapter, createLogger, createLoggerContext, createLoggerPlugin, useLogger };
1
+ import { an as createLogger, cn as useLogger, in as LoggerPluginOptions, ln as LogLevel, nn as LoggerContextOptions, on as createLoggerContext, rn as LoggerOptions, sn as createLoggerPlugin, tn as LoggerContext } from "../index-BfpLkDR_.mjs";
2
+ import { t as LoggerAdapter } from "../adapter-o8r-2vUn.mjs";
3
+ import { t as ConsolaLoggerAdapter } from "../consola-Crr4qbeI.mjs";
4
+ import { n as PinoLoggerAdapter } from "../pino-NmR7X0s4.mjs";
5
+ import { t as V0LoggerAdapter } from "../v0-CRGArJim.mjs";
6
+ export { ConsolaLoggerAdapter, LogLevel, LoggerAdapter, LoggerContext, LoggerContextOptions, LoggerOptions, LoggerPluginOptions, PinoLoggerAdapter, V0LoggerAdapter, createLogger, createLoggerContext, createLoggerPlugin, useLogger };
@@ -1,5 +1,6 @@
1
- import { i as useLogger, n as createLoggerContext, r as createLoggerPlugin, t as createLogger } from "../useLogger-DvdRTrqC.mjs";
2
- import { t as ConsolaLoggerAdapter } from "../consola-Ceox8BWi.mjs";
3
- import { t as PinoLoggerAdapter } from "../pino-9L79n6y6.mjs";
4
- import { t as Vuetify0LoggerAdapter } from "../v0-CHZpnMeP.mjs";
5
- export { ConsolaLoggerAdapter, PinoLoggerAdapter, Vuetify0LoggerAdapter, createLogger, createLoggerContext, createLoggerPlugin, useLogger };
1
+ import { i as useLogger, n as createLoggerContext, r as createLoggerPlugin, t as createLogger } from "../useLogger-DPSSa-YR.mjs";
2
+ import { t as LoggerAdapter } from "../adapter-Chznb9Ju.mjs";
3
+ import { t as ConsolaLoggerAdapter } from "../consola-DYvbPNbF.mjs";
4
+ import { t as PinoLoggerAdapter } from "../pino-CIcYlW3u.mjs";
5
+ import { t as V0LoggerAdapter } from "../v0-YJQoTLsp.mjs";
6
+ export { ConsolaLoggerAdapter, LoggerAdapter, PinoLoggerAdapter, V0LoggerAdapter, createLogger, createLoggerContext, createLoggerPlugin, useLogger };
@@ -1,19 +1,19 @@
1
1
  //#region src/composables/useStorage/adapters/adapter.d.ts
2
- interface StorageAdapter {
3
- getItem: (key: string) => string | null;
4
- setItem: (key: string, value: string) => void;
5
- removeItem: (key: string) => void;
6
- readonly length?: number;
7
- key?: (index: number) => string | null;
2
+ declare abstract class StorageAdapter {
3
+ get length(): number;
4
+ key(_index: number): string | null;
5
+ abstract getItem(key: string): string | null;
6
+ abstract setItem(key: string, value: string): void;
7
+ abstract removeItem(key: string): void;
8
8
  }
9
9
  //#endregion
10
10
  //#region src/composables/useStorage/adapters/memory.d.ts
11
11
  /**
12
- * In-memory storage adapter that implements the StorageAdapter interface.
12
+ * In-memory storage adapter that extends the StorageAdapter abstract class.
13
13
  * This adapter provides temporary storage that persists only for the current
14
14
  * session and is useful for testing or when persistent storage is not available.
15
15
  */
16
- declare class MemoryAdapter implements StorageAdapter {
16
+ declare class MemoryStorageAdapter extends StorageAdapter {
17
17
  private store;
18
18
  get length(): number;
19
19
  getItem(key: string): string | null;
@@ -22,4 +22,4 @@ declare class MemoryAdapter implements StorageAdapter {
22
22
  key(index: number): string;
23
23
  }
24
24
  //#endregion
25
- export { MemoryAdapter as t };
25
+ export { StorageAdapter as n, MemoryStorageAdapter as t };
@@ -1,10 +1,20 @@
1
+ //#region src/composables/useStorage/adapters/adapter.ts
2
+ var StorageAdapter = class {
3
+ get length() {
4
+ return 0;
5
+ }
6
+ key(_index) {
7
+ return null;
8
+ }
9
+ };
10
+ //#endregion
1
11
  //#region src/composables/useStorage/adapters/memory.ts
2
12
  /**
3
- * In-memory storage adapter that implements the StorageAdapter interface.
13
+ * In-memory storage adapter that extends the StorageAdapter abstract class.
4
14
  * This adapter provides temporary storage that persists only for the current
5
15
  * session and is useful for testing or when persistent storage is not available.
6
16
  */
7
- var MemoryAdapter = class {
17
+ var MemoryStorageAdapter = class extends StorageAdapter {
8
18
  store = /* @__PURE__ */ new Map();
9
19
  get length() {
10
20
  return this.store.size;
@@ -23,4 +33,4 @@ var MemoryAdapter = class {
23
33
  }
24
34
  };
25
35
  //#endregion
26
- export { MemoryAdapter as t };
36
+ export { StorageAdapter as n, MemoryStorageAdapter as t };
@@ -1,4 +1,4 @@
1
- import { Bt as NotificationsContext, Ft as NotificationInput, Gt as createNotificationsPlugin, Ht as NotificationsPluginOptions, It as NotificationSeverity, Kt as useNotifications, Lt as NotificationTicket, Rt as NotificationsAdapterContext, Ut as createNotifications, Vt as NotificationsOptions, Wt as createNotificationsContext, zt as NotificationsAdapterInterface } from "../index-B76iGRE3.mjs";
1
+ import { Bt as createNotifications, Ft as NotificationTicket, Ht as createNotificationsPlugin, It as NotificationsAdapterContext, Lt as NotificationsContext, Nt as NotificationInput, Pt as NotificationSeverity, Rt as NotificationsOptions, Ut as useNotifications, Vt as createNotificationsContext, Wt as NotificationsAdapter, zt as NotificationsPluginOptions } from "../index-BfpLkDR_.mjs";
2
2
 
3
3
  //#region src/composables/useNotifications/adapters/knock.d.ts
4
4
  /** Minimal Knock feed item shape. Uses type-only imports to avoid bundling the SDK. */
@@ -27,7 +27,18 @@ interface KnockFeed {
27
27
  teardown: () => void;
28
28
  listenForUpdates: () => void;
29
29
  }
30
- declare function createKnockAdapter(feed: KnockFeed): NotificationsAdapterInterface;
30
+ declare class KnockNotificationsAdapter extends NotificationsAdapter {
31
+ private feed;
32
+ private items;
33
+ private ctx;
34
+ private onReceived;
35
+ private onPage;
36
+ private onRead;
37
+ private onArchived;
38
+ constructor(feed: KnockFeed);
39
+ setup(_ctx: NotificationsAdapterContext): void;
40
+ dispose(): void;
41
+ }
31
42
  //#endregion
32
43
  //#region src/composables/useNotifications/adapters/novu.d.ts
33
44
  /** Minimal Novu notification shape. Uses type-only imports to avoid bundling the SDK. */
@@ -73,6 +84,21 @@ interface NovuAdapterOptions {
73
84
  /** Map a Novu severity string to a NotificationSeverity. Defaults to critical/high→error, medium→warning, low→info. */
74
85
  severity?: (novuSeverity: string) => NotificationSeverity | undefined;
75
86
  }
76
- declare function createNovuAdapter(novu: NovuClient, options?: NovuAdapterOptions): NotificationsAdapterInterface;
87
+ declare class NovuNotificationsAdapter extends NotificationsAdapter {
88
+ private novu;
89
+ private resolveSeverity;
90
+ private ids;
91
+ private ctx;
92
+ private disposed;
93
+ private unsubscribers;
94
+ private onRead;
95
+ private onUnread;
96
+ private onSeen;
97
+ private onArchived;
98
+ private onUnarchived;
99
+ constructor(novu: NovuClient, options?: NovuAdapterOptions);
100
+ setup(_ctx: NotificationsAdapterContext): void;
101
+ dispose(): void;
102
+ }
77
103
  //#endregion
78
- export { KnockFeed, KnockFeedItem, NotificationInput, NotificationSeverity, NotificationTicket, NotificationsAdapterContext, NotificationsAdapterInterface, NotificationsContext, NotificationsOptions, NotificationsPluginOptions, NovuAdapterOptions, NovuClient, NovuNotification, createKnockAdapter, createNotifications, createNotificationsContext, createNotificationsPlugin, createNovuAdapter, useNotifications };
104
+ export { KnockFeed, KnockFeedItem, KnockNotificationsAdapter, NotificationInput, NotificationSeverity, NotificationTicket, NotificationsAdapter, NotificationsAdapterContext, NotificationsContext, NotificationsOptions, NotificationsPluginOptions, NovuAdapterOptions, NovuClient, NovuNotification, NovuNotificationsAdapter, createNotifications, createNotificationsContext, createNotificationsPlugin, useNotifications };
@@ -1,6 +1,34 @@
1
- import { t as IN_BROWSER } from "../globals-zEjWBKCr.mjs";
2
- import { i as useNotifications, n as createNotificationsContext, r as createNotificationsPlugin, t as createNotifications } from "../useNotifications-vSJE6z6t.mjs";
1
+ import { t as IN_BROWSER } from "../globals-BAe6tA_x.mjs";
2
+ import { i as useNotifications, n as createNotificationsContext, r as createNotificationsPlugin, t as createNotifications } from "../useNotifications-BPTmZWQy.mjs";
3
+ //#region src/composables/useNotifications/adapters/adapter.ts
4
+ var NotificationsAdapter = class {};
5
+ //#endregion
3
6
  //#region src/composables/useNotifications/adapters/knock.ts
7
+ /**
8
+ * @module KnockNotificationsAdapter
9
+ *
10
+ * @remarks
11
+ * Knock adapter for useNotifications.
12
+ * Bridges a Knock feed instance with the notification system.
13
+ *
14
+ * Inbound: Maps real-time feed events to ctx.send()
15
+ * Outbound: Listens to notification:read and notification:archived
16
+ * events and calls feed.markAsRead/markAsArchived
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * import Knock from '@knocklabs/client'
21
+ * import { KnockNotificationsAdapter } from '#v0/composables/useNotifications/adapters/knock'
22
+ *
23
+ * const knock = new Knock(KNOCK_PUBLIC_API_KEY)
24
+ * knock.authenticate(userId)
25
+ * const feed = knock.feeds.initialize(KNOCK_FEED_CHANNEL_ID)
26
+ *
27
+ * app.use(createNotificationsPlugin({
28
+ * adapter: new KnockNotificationsAdapter(feed),
29
+ * }))
30
+ * ```
31
+ */
4
32
  function noop$1() {}
5
33
  function mapItem$1(item) {
6
34
  const subject = item.blocks?.find((b) => b.name === "subject")?.rendered;
@@ -12,64 +40,93 @@ function mapItem$1(item) {
12
40
  data: item.data
13
41
  };
14
42
  }
15
- function createKnockAdapter(feed) {
16
- const items = /* @__PURE__ */ new Map();
17
- let ctx;
18
- let onReceived;
19
- let onPage;
20
- let onRead;
21
- let onArchived;
22
- return {
23
- setup(_ctx) {
24
- ctx = _ctx;
25
- onReceived = (data) => {
26
- const payload = data;
27
- if (!payload?.items) return;
28
- for (const item of payload.items) {
29
- if (items.has(item.id)) continue;
30
- items.set(item.id, item);
31
- ctx.send(mapItem$1(item));
32
- }
33
- };
34
- onPage = (data) => {
35
- const payload = data;
36
- if (!payload?.items) return;
37
- for (const item of payload.items) {
38
- if (items.has(item.id)) continue;
39
- items.set(item.id, item);
40
- ctx.register(mapItem$1(item));
41
- }
42
- };
43
- feed.on("items.received.realtime", onReceived);
44
- feed.on("items.received.page", onPage);
45
- if (IN_BROWSER) {
46
- feed.listenForUpdates();
47
- feed.fetch().catch(noop$1);
43
+ var KnockNotificationsAdapter = class extends NotificationsAdapter {
44
+ items = /* @__PURE__ */ new Map();
45
+ ctx;
46
+ onReceived;
47
+ onPage;
48
+ onRead;
49
+ onArchived;
50
+ constructor(feed) {
51
+ super();
52
+ this.feed = feed;
53
+ }
54
+ setup(_ctx) {
55
+ this.ctx = _ctx;
56
+ this.onReceived = (data) => {
57
+ const payload = data;
58
+ if (!payload?.items) return;
59
+ for (const item of payload.items) {
60
+ if (this.items.has(item.id)) continue;
61
+ this.items.set(item.id, item);
62
+ this.ctx.send(mapItem$1(item));
63
+ }
64
+ };
65
+ this.onPage = (data) => {
66
+ const payload = data;
67
+ if (!payload?.items) return;
68
+ for (const item of payload.items) {
69
+ if (this.items.has(item.id)) continue;
70
+ this.items.set(item.id, item);
71
+ this.ctx.register(mapItem$1(item));
48
72
  }
49
- onRead = (data) => {
50
- const item = items.get(String(data));
51
- if (item) feed.markAsRead(item).catch(noop$1);
52
- };
53
- onArchived = (data) => {
54
- const item = items.get(String(data));
55
- if (item) feed.markAsArchived(item).catch(noop$1);
56
- };
57
- ctx.on("notification:read", onRead);
58
- ctx.on("notification:archived", onArchived);
59
- },
60
- dispose() {
61
- if (!ctx) return;
62
- feed.off("items.received.realtime", onReceived);
63
- feed.off("items.received.page", onPage);
64
- ctx.off("notification:read", onRead);
65
- ctx.off("notification:archived", onArchived);
66
- items.clear();
67
- feed.teardown();
73
+ };
74
+ this.feed.on("items.received.realtime", this.onReceived);
75
+ this.feed.on("items.received.page", this.onPage);
76
+ if (IN_BROWSER) {
77
+ this.feed.listenForUpdates();
78
+ this.feed.fetch().catch(noop$1);
68
79
  }
69
- };
70
- }
80
+ this.onRead = (data) => {
81
+ const item = this.items.get(String(data.id));
82
+ if (item) this.feed.markAsRead(item).catch(noop$1);
83
+ };
84
+ this.onArchived = (data) => {
85
+ const item = this.items.get(String(data.id));
86
+ if (item) this.feed.markAsArchived(item).catch(noop$1);
87
+ };
88
+ this.ctx.on("notification:read", this.onRead);
89
+ this.ctx.on("notification:archived", this.onArchived);
90
+ }
91
+ dispose() {
92
+ if (!this.ctx) return;
93
+ this.feed.off("items.received.realtime", this.onReceived);
94
+ this.feed.off("items.received.page", this.onPage);
95
+ this.ctx.off("notification:read", this.onRead);
96
+ this.ctx.off("notification:archived", this.onArchived);
97
+ this.items.clear();
98
+ this.feed.teardown();
99
+ }
100
+ };
71
101
  //#endregion
72
102
  //#region src/composables/useNotifications/adapters/novu.ts
103
+ /**
104
+ * @module NovuNotificationsAdapter
105
+ *
106
+ * @remarks
107
+ * Novu adapter for useNotifications.
108
+ * Bridges a Novu client instance with the notification system.
109
+ *
110
+ * Inbound: Seeds registry from novu.notifications.list() on setup,
111
+ * then listens to notifications.notification_received for real-time updates.
112
+ * Outbound: Listens to notification lifecycle events and calls the Novu API
113
+ * (read, unread, seen, archive, unarchive).
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * import { Novu } from '@novu/js'
118
+ * import { NovuNotificationsAdapter } from '@vuetify/v0/notifications'
119
+ *
120
+ * const novu = new Novu({
121
+ * subscriberId: userId,
122
+ * applicationIdentifier: import.meta.env.VITE_NOVU_APP_ID,
123
+ * })
124
+ *
125
+ * app.use(createNotificationsPlugin({
126
+ * adapter: new NovuNotificationsAdapter(novu),
127
+ * }))
128
+ * ```
129
+ */
73
130
  const DEFAULT_SEVERITY_MAP = {
74
131
  critical: "error",
75
132
  high: "error",
@@ -89,76 +146,80 @@ function mapItem(item, resolveSeverity) {
89
146
  severity: item.severity ? resolveSeverity(item.severity) : void 0
90
147
  };
91
148
  }
92
- function createNovuAdapter(novu, options = {}) {
93
- const resolveSeverity = options.severity ?? defaultSeverity;
94
- const ids = /* @__PURE__ */ new Set();
95
- let ctx;
96
- let disposed = false;
97
- const unsubscribers = [];
98
- let onRead;
99
- let onUnread;
100
- let onSeen;
101
- let onArchived;
102
- let onUnarchived;
103
- return {
104
- setup(_ctx) {
105
- ctx = _ctx;
106
- disposed = false;
107
- const unsub = novu.on("notifications.notification_received", (data) => {
108
- const item = data;
109
- if (disposed || !item?.id || ids.has(item.id)) return;
110
- ids.add(item.id);
111
- ctx.send(mapItem(item, resolveSeverity));
112
- });
113
- unsubscribers.push(unsub);
114
- if (IN_BROWSER) novu.notifications.list({ limit: 30 }).then(({ data }) => {
115
- if (disposed) return;
116
- for (const item of data?.notifications ?? []) {
117
- if (!item.id || ids.has(item.id)) continue;
118
- ids.add(item.id);
119
- ctx.register(mapItem(item, resolveSeverity));
120
- }
121
- }).catch(noop);
122
- onRead = (data) => {
123
- const id = String(data);
124
- if (ids.has(id)) novu.notifications.read({ notificationId: id }).catch(noop);
125
- };
126
- onUnread = (data) => {
127
- const id = String(data);
128
- if (ids.has(id)) novu.notifications.unread({ notificationId: id }).catch(noop);
129
- };
130
- onSeen = (data) => {
131
- const id = String(data);
132
- if (ids.has(id)) novu.notifications.seenAll({ notificationIds: [id] }).catch(noop);
133
- };
134
- onArchived = (data) => {
135
- const id = String(data);
136
- if (ids.has(id)) novu.notifications.archive({ notificationId: id }).catch(noop);
137
- };
138
- onUnarchived = (data) => {
139
- const id = String(data);
140
- if (ids.has(id)) novu.notifications.unarchive({ notificationId: id }).catch(noop);
141
- };
142
- ctx.on("notification:read", onRead);
143
- ctx.on("notification:unread", onUnread);
144
- ctx.on("notification:seen", onSeen);
145
- ctx.on("notification:archived", onArchived);
146
- ctx.on("notification:unarchived", onUnarchived);
147
- },
148
- dispose() {
149
- disposed = true;
150
- for (const unsub of unsubscribers) unsub();
151
- unsubscribers.length = 0;
152
- if (ctx) {
153
- if (onRead) ctx.off("notification:read", onRead);
154
- if (onUnread) ctx.off("notification:unread", onUnread);
155
- if (onSeen) ctx.off("notification:seen", onSeen);
156
- if (onArchived) ctx.off("notification:archived", onArchived);
157
- if (onUnarchived) ctx.off("notification:unarchived", onUnarchived);
149
+ var NovuNotificationsAdapter = class extends NotificationsAdapter {
150
+ resolveSeverity;
151
+ ids = /* @__PURE__ */ new Set();
152
+ ctx;
153
+ disposed = false;
154
+ unsubscribers = [];
155
+ onRead;
156
+ onUnread;
157
+ onSeen;
158
+ onArchived;
159
+ onUnarchived;
160
+ constructor(novu, options = {}) {
161
+ super();
162
+ this.novu = novu;
163
+ this.resolveSeverity = options.severity ?? defaultSeverity;
164
+ }
165
+ setup(_ctx) {
166
+ this.ctx = _ctx;
167
+ this.disposed = false;
168
+ const unsub = this.novu.on("notifications.notification_received", (data) => {
169
+ const item = data;
170
+ if (this.disposed || !item?.id || this.ids.has(item.id)) return;
171
+ this.ids.add(item.id);
172
+ this.ctx.send(mapItem(item, this.resolveSeverity));
173
+ });
174
+ this.unsubscribers.push(unsub);
175
+ if (IN_BROWSER) this.novu.notifications.list({ limit: 30 }).then(({ data }) => {
176
+ if (this.disposed) return;
177
+ for (const item of data?.notifications ?? []) {
178
+ if (!item.id || this.ids.has(item.id)) continue;
179
+ this.ids.add(item.id);
180
+ this.ctx.register(mapItem(item, this.resolveSeverity));
158
181
  }
159
- ids.clear();
182
+ }).catch(noop);
183
+ this.onRead = (data) => {
184
+ const id = String(data.id);
185
+ if (this.ids.has(id)) this.novu.notifications.read({ notificationId: id }).catch(noop);
186
+ };
187
+ this.onUnread = (data) => {
188
+ const id = String(data.id);
189
+ if (this.ids.has(id)) this.novu.notifications.unread({ notificationId: id }).catch(noop);
190
+ };
191
+ this.onSeen = (data) => {
192
+ const id = String(data.id);
193
+ if (this.ids.has(id)) this.novu.notifications.seenAll({ notificationIds: [id] }).catch(noop);
194
+ };
195
+ this.onArchived = (data) => {
196
+ const id = String(data.id);
197
+ if (this.ids.has(id)) this.novu.notifications.archive({ notificationId: id }).catch(noop);
198
+ };
199
+ this.onUnarchived = (data) => {
200
+ const id = String(data.id);
201
+ if (this.ids.has(id)) this.novu.notifications.unarchive({ notificationId: id }).catch(noop);
202
+ };
203
+ this.ctx.on("notification:read", this.onRead);
204
+ this.ctx.on("notification:unread", this.onUnread);
205
+ this.ctx.on("notification:seen", this.onSeen);
206
+ this.ctx.on("notification:archived", this.onArchived);
207
+ this.ctx.on("notification:unarchived", this.onUnarchived);
208
+ }
209
+ dispose() {
210
+ this.disposed = true;
211
+ for (const unsub of this.unsubscribers) unsub();
212
+ this.unsubscribers.length = 0;
213
+ if (this.ctx) {
214
+ /* v8 ignore next 5 -- handlers always assigned during setup; guards are defensive */
215
+ if (this.onRead) this.ctx.off("notification:read", this.onRead);
216
+ if (this.onUnread) this.ctx.off("notification:unread", this.onUnread);
217
+ if (this.onSeen) this.ctx.off("notification:seen", this.onSeen);
218
+ if (this.onArchived) this.ctx.off("notification:archived", this.onArchived);
219
+ if (this.onUnarchived) this.ctx.off("notification:unarchived", this.onUnarchived);
160
220
  }
161
- };
162
- }
221
+ this.ids.clear();
222
+ }
223
+ };
163
224
  //#endregion
164
- export { createKnockAdapter, createNotifications, createNotificationsContext, createNotificationsPlugin, createNovuAdapter, useNotifications };
225
+ export { KnockNotificationsAdapter, NotificationsAdapter, NovuNotificationsAdapter, createNotifications, createNotificationsContext, createNotificationsPlugin, useNotifications };
@@ -1,4 +1,4 @@
1
- import { r as TokenCollection } from "../../index-DE3bWw11.mjs";
1
+ import { r as TokenCollection } from "../../index-Cw04PFVO.mjs";
2
2
 
3
3
  //#region src/palettes/ant/index.d.ts
4
4
  declare const ant: TokenCollection;
@@ -1,6 +1,6 @@
1
- import { a as ID } from "../index-DuddF-NR.mjs";
2
- import { r as TokenCollection } from "../index-DE3bWw11.mjs";
3
- import { f as ThemeRecord } from "../index-B76iGRE3.mjs";
1
+ import { a as ID } from "../index-CLR1QMM3.mjs";
2
+ import { r as TokenCollection } from "../index-Cw04PFVO.mjs";
3
+ import { f as ThemeRecord } from "../index-BfpLkDR_.mjs";
4
4
 
5
5
  //#region src/palettes/index.d.ts
6
6
  interface PaletteDefinition {
@@ -31,6 +31,7 @@ function mapSemanticColors(colors, ratios) {
31
31
  delta = d;
32
32
  }
33
33
  }
34
+ /* v8 ignore next -- defensive fallbacks for when ratio table or colors map is empty */
34
35
  return colors[closest] ?? Object.values(colors)[0] ?? "#000000";
35
36
  }
36
37
  const low1 = at(1.25);
@@ -100,6 +101,7 @@ function leonardo(seed, options = {}) {
100
101
  "error-container": "#ffdad6",
101
102
  "on-error-container": "#410002",
102
103
  "background": "#ffffff",
104
+ /* v8 ignore next -- defensive fallback when lightSemantic lacks on-surface */
103
105
  "on-background": lightSemantic["on-surface"] ?? "#000000"
104
106
  }
105
107
  },
@@ -112,6 +114,7 @@ function leonardo(seed, options = {}) {
112
114
  "error-container": "#93000a",
113
115
  "on-error-container": "#ffdad6",
114
116
  "background": "#121212",
117
+ /* v8 ignore next -- defensive fallback when darkSemantic lacks on-surface */
115
118
  "on-background": darkSemantic["on-surface"] ?? "#ffffff"
116
119
  }
117
120
  }
@@ -1,4 +1,4 @@
1
- import { r as TokenCollection } from "../../index-DE3bWw11.mjs";
1
+ import { r as TokenCollection } from "../../index-Cw04PFVO.mjs";
2
2
 
3
3
  //#region src/palettes/material/index.d.ts
4
4
  declare const material: TokenCollection;
@@ -1,4 +1,4 @@
1
- import { r as TokenCollection } from "../../index-DE3bWw11.mjs";
1
+ import { r as TokenCollection } from "../../index-Cw04PFVO.mjs";
2
2
 
3
3
  //#region src/palettes/md1/index.d.ts
4
4
  declare const md1: TokenCollection;