@vuetify/v0 0.1.6 → 0.1.8

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 (162) hide show
  1. package/README.md +0 -1
  2. package/dist/{adapter-Bjs_Nx_J.mjs → adapter-B4zE-hA5.mjs} +5 -8
  3. package/dist/adapter-CqP9Z4JU.d.mts +1087 -0
  4. package/dist/{adapter-CLs-OrSN.d.mts → adapter-DIx4Rntl.d.mts} +5 -48
  5. package/dist/adapters-BjeDmKc6.mjs +1 -0
  6. package/dist/adapters-Bv5aRv3l.mjs +1 -0
  7. package/dist/adapters-C66XaKkw.mjs +1 -0
  8. package/dist/adapters-DkVblyML.mjs +1 -0
  9. package/dist/adapters-uJLWGQJl.mjs +1 -0
  10. package/dist/browser/index.js +2380 -1080
  11. package/dist/components/index.d.mts +2 -20
  12. package/dist/components/index.mjs +34 -39
  13. package/dist/{components-GiQh_RfQ.mjs → components-BbxKYAXs.mjs} +1129 -392
  14. package/dist/composables/index.d.mts +18 -17
  15. package/dist/composables/index.mjs +34 -37
  16. package/dist/{consola-DiUk9j3y.d.mts → consola-BVzYzeLH.d.mts} +1 -1
  17. package/dist/{consola-GBy8XRuL.mjs → consola-Ceox8BWi.mjs} +1 -2
  18. package/dist/constants/index.d.mts +1 -1
  19. package/dist/constants/index.mjs +3 -5
  20. package/dist/{createDataTable-lSofI5rU.mjs → createDataTable-DZouEhvH.mjs} +9 -11
  21. package/dist/{createGroup-CCb7Zfyw.mjs → createGroup-BpJFi41X.mjs} +5 -8
  22. package/dist/{createPagination-lagznd8i.mjs → createPagination-Bu8vE0JW.mjs} +3 -5
  23. package/dist/{createSelection-Zo4RQpYe.mjs → createSelection-8MX0OHXR.mjs} +9 -12
  24. package/dist/{createSingle-BH9wNDrS.mjs → createSingle-CbuOBb-E.mjs} +3 -5
  25. package/dist/{createTokens-Cu1efg9Z.mjs → createTokens-CXlT0Vc6.mjs} +25 -27
  26. package/dist/{createTrinity-Cii8-B2r.mjs → createTrinity-C_c8eedz.mjs} +10 -13
  27. package/dist/data-table/adapters/client/index.d.mts +1 -2
  28. package/dist/data-table/adapters/client/index.mjs +7 -9
  29. package/dist/data-table/adapters/index.d.mts +4 -4
  30. package/dist/data-table/adapters/index.mjs +10 -12
  31. package/dist/data-table/adapters/server/index.d.mts +1 -2
  32. package/dist/data-table/adapters/server/index.mjs +5 -7
  33. package/dist/data-table/adapters/virtual/index.d.mts +1 -2
  34. package/dist/data-table/adapters/virtual/index.mjs +7 -9
  35. package/dist/data-table/index.d.mts +5 -6
  36. package/dist/data-table/index.mjs +22 -25
  37. package/dist/date/index.d.mts +1 -3
  38. package/dist/date/index.mjs +3932 -3943
  39. package/dist/features/adapters/flagsmith/index.d.mts +2 -4
  40. package/dist/features/adapters/flagsmith/index.mjs +2 -3
  41. package/dist/features/adapters/launchdarkly/index.d.mts +1 -3
  42. package/dist/features/adapters/launchdarkly/index.mjs +2 -3
  43. package/dist/features/adapters/posthog/index.d.mts +1 -3
  44. package/dist/features/adapters/posthog/index.mjs +3 -4
  45. package/dist/features/index.d.mts +2 -16
  46. package/dist/features/index.mjs +13 -18
  47. package/dist/{flagsmith-CHmpPGR7.mjs → flagsmith-CrWUeIhT.mjs} +1 -2
  48. package/dist/{globals-D6FBsWDI.mjs → globals-ClSU6mqC.mjs} +2 -3
  49. package/dist/{htmlElements-d8iBCGpO.mjs → htmlElements-DcYtv0hg.mjs} +7 -10
  50. package/dist/{index-De0SQt1w.d.mts → index-63-0oJS8.d.mts} +381 -981
  51. package/dist/{index-DlUIZN-F.d.mts → index-B5NU2uB7.d.mts} +2754 -1642
  52. package/dist/index-CeNfBYuo.d.mts +46 -0
  53. package/dist/{index-DIK84tM4.d.mts → index-CmCMrlt3.d.mts} +3 -3
  54. package/dist/index-CxW4itj1.d.mts +858 -0
  55. package/dist/{index-BFBN5Zl3.d.mts → index-Dor6eAEc.d.mts} +0 -1
  56. package/dist/{index-UNwEBkQT.d.mts → index-MHkcqY_y.d.mts} +1 -2
  57. package/dist/{index-BuOz3Rgm.d.mts → index-dJKXAO5D.d.mts} +1 -2
  58. package/dist/index.d.mts +22 -20
  59. package/dist/index.mjs +38 -40
  60. package/dist/json/attributes.json +252 -0
  61. package/dist/json/importMap.json +60 -0
  62. package/dist/json/tags.json +128 -0
  63. package/dist/json/web-types.json +1023 -228
  64. package/dist/{launchdarkly-W8t8ZANX.mjs → launchdarkly-jF2KZGoH.mjs} +1 -2
  65. package/dist/locale/adapters/index.d.mts +1 -2
  66. package/dist/locale/adapters/index.mjs +4 -6
  67. package/dist/locale/adapters/v0/index.d.mts +1 -2
  68. package/dist/locale/adapters/v0/index.mjs +3 -5
  69. package/dist/locale/index.d.mts +2 -16
  70. package/dist/locale/index.mjs +14 -17
  71. package/dist/logger/adapters/consola/index.d.mts +1 -2
  72. package/dist/logger/adapters/consola/index.mjs +2 -3
  73. package/dist/logger/adapters/index.d.mts +4 -4
  74. package/dist/logger/adapters/index.mjs +6 -8
  75. package/dist/logger/adapters/pino/index.d.mts +1 -2
  76. package/dist/logger/adapters/pino/index.mjs +3 -5
  77. package/dist/logger/adapters/v0/index.d.mts +1 -2
  78. package/dist/logger/adapters/v0/index.mjs +3 -5
  79. package/dist/logger/index.d.mts +5 -16
  80. package/dist/logger/index.mjs +8 -10
  81. package/dist/{memory-BsZGbGnG.mjs → memory-XCMtkld1.mjs} +1 -2
  82. package/dist/palettes/ant/generate/index.d.mts +9 -0
  83. package/dist/palettes/ant/generate/index.mjs +98 -0
  84. package/dist/palettes/ant/index.d.mts +6 -0
  85. package/dist/palettes/ant/index.mjs +149 -0
  86. package/dist/palettes/index.d.mts +12 -0
  87. package/dist/palettes/index.mjs +1 -0
  88. package/dist/palettes/leonardo/generate/index.d.mts +10 -0
  89. package/dist/palettes/leonardo/generate/index.mjs +120 -0
  90. package/dist/palettes/material/generate/index.d.mts +10 -0
  91. package/dist/palettes/material/generate/index.mjs +103 -0
  92. package/dist/palettes/material/index.d.mts +6 -0
  93. package/dist/palettes/material/index.mjs +173 -0
  94. package/dist/palettes/md1/index.d.mts +6 -0
  95. package/dist/palettes/md1/index.mjs +261 -0
  96. package/dist/palettes/md2/index.d.mts +6 -0
  97. package/dist/palettes/md2/index.mjs +297 -0
  98. package/dist/palettes/radix/index.d.mts +6 -0
  99. package/dist/palettes/radix/index.mjs +439 -0
  100. package/dist/palettes/tailwind/index.d.mts +6 -0
  101. package/dist/palettes/tailwind/index.mjs +291 -0
  102. package/dist/permissions/adapters/index.d.mts +2 -17
  103. package/dist/permissions/adapters/index.mjs +4 -6
  104. package/dist/permissions/adapters/v0/index.d.mts +1 -17
  105. package/dist/permissions/adapters/v0/index.mjs +3 -5
  106. package/dist/permissions/index.d.mts +1 -16
  107. package/dist/permissions/index.mjs +12 -15
  108. package/dist/{pino-BD5PCzAF.mjs → pino-B7tJ3m18.mjs} +2 -4
  109. package/dist/{pino-p-jDkNQd.d.mts → pino-Bzighnkd.d.mts} +1 -2
  110. package/dist/{posthog-BxaG8sYi.mjs → posthog-BE7-t7cV.mjs} +2 -4
  111. package/dist/rules/index.d.mts +2 -0
  112. package/dist/rules/index.mjs +15 -0
  113. package/dist/{server-DgOdFYMU.mjs → server-CZ6ahbEH.mjs} +2 -4
  114. package/dist/{server-CGAeOGPC.d.mts → server-Ch9J86tb.d.mts} +1 -2
  115. package/dist/storage/adapters/index.d.mts +2 -2
  116. package/dist/storage/adapters/index.mjs +2 -3
  117. package/dist/storage/adapters/memory/index.d.mts +1 -1
  118. package/dist/storage/adapters/memory/index.mjs +2 -3
  119. package/dist/storage/index.d.mts +3 -16
  120. package/dist/storage/index.mjs +33 -37
  121. package/dist/theme/adapters/index.d.mts +1 -16
  122. package/dist/theme/adapters/index.mjs +4 -6
  123. package/dist/theme/adapters/v0/index.d.mts +1 -16
  124. package/dist/theme/adapters/v0/index.mjs +3 -5
  125. package/dist/theme/index.d.mts +1 -16
  126. package/dist/theme/index.mjs +13 -16
  127. package/dist/{toArray-BBZH-G2X.mjs → toArray-VdROPpy-.mjs} +2 -4
  128. package/dist/types/index.d.mts +1 -1
  129. package/dist/types/index.mjs +1 -1
  130. package/dist/{useClickOutside-Bm_3mbcT.mjs → useClickOutside-W0Sur1rC.mjs} +671 -211
  131. package/dist/{useFeatures-BS4mit8z.mjs → useFeatures-CUicSI-E.mjs} +5 -8
  132. package/dist/{useLocale-DJJmg-wv.mjs → useLocale-cQlPxbpV.mjs} +14 -12
  133. package/dist/{useLogger-C8G5jgNk.mjs → useLogger-DY1Hbcy1.mjs} +13 -16
  134. package/dist/{usePermissions-C5Mkotol.mjs → usePermissions-BSW59R4q.mjs} +5 -7
  135. package/dist/useRules-BbA6_gvs.mjs +144 -0
  136. package/dist/{useTheme-BBnASLr3.mjs → useTheme-Bdx2Lj5c.mjs} +11 -13
  137. package/dist/utilities/index.d.mts +1 -2
  138. package/dist/utilities/index.mjs +426 -4
  139. package/dist/{v0-BOxb3nD1.d.mts → v0-1xxC39wf.d.mts} +1 -2
  140. package/dist/{v0-DzvhDU1W.mjs → v0-2G2476h-.mjs} +3 -6
  141. package/dist/{v0-DtO_ICXr.mjs → v0-B1QQGE4O.mjs} +2 -5
  142. package/dist/{v0-lua6ffdk.mjs → v0-BFseIsBi.mjs} +3 -5
  143. package/dist/{v0-Bh8d1j_p.d.mts → v0-BZINNGoC.d.mts} +2 -2
  144. package/dist/{v0-DHMoZ7dS.d.mts → v0-CAKa6tzG.d.mts} +1 -1
  145. package/dist/{v0-BWBSVkew.mjs → v0-CHBrvw49.mjs} +3 -5
  146. package/dist/{v0-CVr15VcY.d.mts → v0-CdUL2eOn.d.mts} +1 -2
  147. package/dist/{v0-CWUF_HqP.mjs → v0-YAqbXudL.mjs} +3 -5
  148. package/dist/{virtual-CVb9hRUU.d.mts → virtual-DwBiFA25.d.mts} +1 -2
  149. package/dist/{virtual-BEOqkQvm.mjs → virtual-eDNVH1fz.mjs} +3 -5
  150. package/package.json +40 -11
  151. package/dist/adapter-DcwxFryd.d.mts +0 -97
  152. package/dist/adapters-BGJKsBrw.mjs +0 -1
  153. package/dist/adapters-BQ-Lr3PW.mjs +0 -1
  154. package/dist/adapters-DEXpW9If.mjs +0 -1
  155. package/dist/adapters-Q9WaOsJp.mjs +0 -1
  156. package/dist/adapters-SSDVth5e.mjs +0 -1
  157. package/dist/constants-B8pMSkcW.mjs +0 -1
  158. package/dist/utilities-CcJtp9Gx.mjs +0 -429
  159. /package/dist/{adapter-CJIj5ySf.d.mts → adapter-JTFG3Jn8.d.mts} +0 -0
  160. /package/dist/{index-Bv1VN_j5.d.mts → index-B5ZDDkXv.d.mts} +0 -0
  161. /package/dist/{index-BDTbJClL.d.mts → index-NsE5nARK.d.mts} +0 -0
  162. /package/dist/{memory-DVjquu_v.d.mts → memory-BTtRdnNn.d.mts} +0 -0
@@ -0,0 +1,858 @@
1
+ import { i as Extensible, o as ID } from "./index-Dor6eAEc.mjs";
2
+ import { t as ContextTrinity } from "./index-CeNfBYuo.mjs";
3
+
4
+ //#region src/composables/createRegistry/index.d.ts
5
+ /**
6
+ * User-facing input shape for registry tickets.
7
+ *
8
+ * Extend this when defining custom ticket types passed to `register()` and `onboard()`.
9
+ * The registry adds the computed fields (`index`, `valueIsIndex`) automatically — those
10
+ * live on {@link RegistryTicket}, which is the output type returned by `get()` and `values()`.
11
+ *
12
+ * @template V The type of the ticket value.
13
+ */
14
+ interface RegistryTicketInput<V = unknown> {
15
+ /** The unique identifier. Optional — auto-generated if not provided. */
16
+ id?: ID;
17
+ /** The value associated with the ticket. If not provided, it defaults to the index. */
18
+ value?: V;
19
+ }
20
+ interface RegistryTicket<V = unknown> {
21
+ /** The unique identifier. Is randomly generated if not provided. */
22
+ id: ID;
23
+ /**
24
+ * The index of the ticket in the registry.
25
+ *
26
+ * @remarks Automatically managed by the registry. Updated during reindexing. It's not recommended to manually set this.
27
+ */
28
+ index: number;
29
+ /** The value associated with the ticket. If not provided, it defaults to the index. */
30
+ value: V;
31
+ /**
32
+ * Whether the value is derived from index.
33
+ *
34
+ * @remarks Set to true when no explicit value is provided during registration. It's not recommended to manually set this.
35
+ */
36
+ valueIsIndex: boolean;
37
+ /** Remove this ticket from the registry. Semantic sugar for `registry.unregister(ticket.id)`. */
38
+ unregister: () => void;
39
+ }
40
+ /** Valid event names for registry operations */
41
+ type RegistryEventName = 'register:ticket' | 'unregister:ticket' | 'update:ticket' | 'clear:registry' | 'reindex:registry';
42
+ /** Maps event names to their payload types */
43
+ type RegistryEventMap<Z extends RegistryTicket> = {
44
+ 'register:ticket': Z;
45
+ 'unregister:ticket': Z;
46
+ 'update:ticket': Z;
47
+ 'clear:registry': undefined;
48
+ 'reindex:registry': undefined;
49
+ };
50
+ /** Callback signature for registry event listeners */
51
+ type RegistryEventCallback<Z extends RegistryTicket = RegistryTicket, K extends RegistryEventName = RegistryEventName> = (data: RegistryEventMap<Z>[K]) => void;
52
+ /** Resolves callback type: typed for known events, unknown for custom events */
53
+ type EventHandler<Z extends RegistryTicket, K extends string> = K extends RegistryEventName ? (data: RegistryEventMap<Z>[K]) => void : (data: unknown) => void;
54
+ /** Resolves payload type: typed for known events, unknown for custom events */
55
+ type EventPayload<Z extends RegistryTicket, K extends string> = K extends RegistryEventName ? RegistryEventMap<Z>[K] : unknown;
56
+ interface RegistryContext<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z> {
57
+ /**
58
+ * The collection of tickets in the registry
59
+ *
60
+ * @template ID The type of the ticket ID.
61
+ * @template E The type of the registry ticket.
62
+ *
63
+ * @remarks Read-only view of the internal collection. Use `register`, `unregister`, `upsert`, and `clear` methods to modify.
64
+ */
65
+ collection: ReadonlyMap<ID, E>;
66
+ /**
67
+ * Clear the entire registry
68
+ *
69
+ * @remarks Removes all tickets from the registry. This operation invalidates cached results from `keys()`, `values()`, and `entries()`.
70
+ *
71
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#clear
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * import { createRegistry } from '@vuetify/v0'
76
+ *
77
+ * const registry = createRegistry()
78
+ *
79
+ * registry.register({ id: 'ticket-1' })
80
+ * registry.register({ id: 'ticket-2' })
81
+ *
82
+ * console.log(registry.size) // 2
83
+ *
84
+ * registry.clear()
85
+ *
86
+ * console.log(registry.size) // 0
87
+ * ```
88
+ */
89
+ clear: () => void;
90
+ /**
91
+ * Check if a ticket exists by ID
92
+ *
93
+ * @param id The ID of the ticket to check.
94
+ * @remarks Calls `collection.has` internally.
95
+ *
96
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#has
97
+ *
98
+ * @example
99
+ * ```ts
100
+ * import { createRegistry } from '@vuetify/v0'
101
+ *
102
+ * const registry = createRegistry()
103
+ *
104
+ * registry.register({ id: 'ticket-id' })
105
+ *
106
+ * const exists = registry.has('ticket-id') // true
107
+ * ```
108
+ */
109
+ has: (id: ID) => boolean;
110
+ /**
111
+ * Get all registered IDs
112
+ *
113
+ * @remarks Calls `collection.keys` internally with caching. First call is O(n), subsequent calls are O(1) until cache invalidation.
114
+ *
115
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#keys
116
+ *
117
+ * @example
118
+ * ```ts
119
+ * import { createRegistry } from '@vuetify/v0'
120
+ *
121
+ * const registry = createRegistry()
122
+ *
123
+ * registry.register({ id: 'ticket-1' })
124
+ * registry.register({ id: 'ticket-2' })
125
+ *
126
+ * const ids = registry.keys() // ['ticket-1', 'ticket-2']
127
+ * ```
128
+ */
129
+ keys: () => readonly ID[];
130
+ /**
131
+ * Browse for an ID(s) by value
132
+ *
133
+ * @param value The value to browse for.
134
+ * @remarks Returns an array of IDs that share the given value, or undefined if no match is found.
135
+ *
136
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#browse
137
+ *
138
+ * @example
139
+ * ```ts
140
+ * import { createRegistry } from '@vuetify/v0'
141
+ *
142
+ * const registry = createRegistry()
143
+ *
144
+ * registry.register({ id: 'ticket-1', value: 'common-value' })
145
+ * registry.register({ id: 'ticket-2', value: 'common-value' })
146
+ * registry.register({ id: 'ticket-3', value: 'unique-value' })
147
+ *
148
+ * const common = registry.browse('common-value') // ['ticket-1', 'ticket-2']
149
+ * const unique = registry.browse('unique-value') // ['ticket-3']
150
+ * ```
151
+ */
152
+ browse: (value: E['value']) => ID[] | undefined;
153
+ /**
154
+ * lookup a ticket by index number
155
+ *
156
+ * @param index The index number to lookup.
157
+ * @remarks Maps do not support indexing by default, this method provides a way to retrieve an ID based on its index in the registry.
158
+ *
159
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#lookup
160
+ *
161
+ * @example
162
+ * ```ts
163
+ * const registry = createRegistry()
164
+ *
165
+ * registry.register({ id: 'ticket-1' })
166
+ * registry.register({ id: 'ticket-2' })
167
+ *
168
+ * const ticket1 = registry.lookup(0) // 'ticket-1'
169
+ * const ticket2 = registry.lookup(1) // 'ticket-2'
170
+ * ```
171
+ */
172
+ lookup: (index: number) => ID | undefined;
173
+ /**
174
+ * Get a ticket by ID
175
+ *
176
+ * @param id The ID of the ticket to retrieve.
177
+ * @remarks Calls `collection.get` internally.
178
+ *
179
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#get
180
+ *
181
+ * @example
182
+ * ```ts
183
+ * import { createRegistry } from '@vuetify/v0'
184
+ *
185
+ * const registry = createRegistry()
186
+ *
187
+ * registry.register({ id: 'ticket-id', value: 'some-value' })
188
+ *
189
+ * const ticket = registry.get('ticket-id') // { id: 'ticket-id', index: 0, value: 'some-value', ... }
190
+ * ```
191
+ */
192
+ get: (id: ID) => E | undefined;
193
+ /**
194
+ * Update or insert a ticket by ID
195
+ *
196
+ * @param id The ID of the ticket to upsert.
197
+ * @param ticket The partial ticket data to update or insert.
198
+ * @remarks If the ticket exists, it will be updated with the provided data. If it doesn't exist, a new ticket will be created with the given ID and data. This operation invalidates cached results from `keys()`, `values()`, and `entries()`.
199
+ *
200
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#upsert
201
+ *
202
+ * @example
203
+ * ```ts
204
+ * import { createRegistry } from '@vuetify/v0'
205
+ *
206
+ * const registry = createRegistry()
207
+ *
208
+ * // Insert a new ticket
209
+ * const ticket = registry.upsert('ticket-id', { value: 'initial-value' })
210
+ *
211
+ * // Update the existing ticket
212
+ * const patched = registry.upsert('ticket-id', { value: 'updated-value' })
213
+ * ```
214
+ */
215
+ upsert: (id: ID, ticket?: Partial<Z>) => E;
216
+ /**
217
+ * Get all values of registered tickets
218
+ *
219
+ * @remarks Calls `collection.values` internally with caching. First call is O(n), subsequent calls are O(1) until cache invalidation.
220
+ *
221
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#values
222
+ *
223
+ * @example
224
+ * ```ts
225
+ * import { createRegistry } from '@vuetify/v0'
226
+ *
227
+ * const registry = createRegistry()
228
+ *
229
+ * registry.register({ id: 'ticket-1', value: 'value-1' })
230
+ * registry.register({ id: 'ticket-2', value: 'value-2' })
231
+ *
232
+ * const values = registry.values() // [{ id: 'ticket-1', ... }, { id: 'ticket-2', ... }]
233
+ * ```
234
+ */
235
+ values: () => readonly E[];
236
+ /**
237
+ * Get all entries of registered tickets
238
+ *
239
+ * @remarks Calls `collection.entries` internally with caching. First call is O(n), subsequent calls are O(1) until cache invalidation.
240
+ *
241
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#entries
242
+ *
243
+ * @example
244
+ * ```ts
245
+ * import { createRegistry } from '@vuetify/v0'
246
+ *
247
+ * const registry = createRegistry()
248
+ *
249
+ * registry.register({ id: 'ticket-1', value: 'value-1' })
250
+ * registry.register({ id: 'ticket-2', value: 'value-2' })
251
+ *
252
+ * const entries = registry.entries() // [['ticket-1', { id: 'ticket-1', ... }], ['ticket-2', { id: 'ticket-2', ... }]]
253
+ * ```
254
+ */
255
+ entries: () => readonly [ID, E][];
256
+ /**
257
+ * Register a new ticket
258
+ *
259
+ * @param ticket The partial ticket data to register.
260
+ * @remarks If no ID is provided, a unique ID will be generated automatically. If no value is provided, it defaults to the ticket's index. This operation invalidates cached results from `keys()`, `values()`, and `entries()`.
261
+ *
262
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#register
263
+ *
264
+ * @example
265
+ * ```ts
266
+ * import { createRegistry } from '@vuetify/v0'
267
+ *
268
+ * const registry = createRegistry()
269
+ *
270
+ * const ticket = registry.register()
271
+ *
272
+ * console.log(ticket) // { id: 'generated-id', index: 0, value: 0, valueIsIndex: true }
273
+ * ```
274
+ */
275
+ register: (ticket?: Partial<Z & RegistryTicket>) => E;
276
+ /**
277
+ * Unregister a ticket by ID
278
+ *
279
+ * @param id The ID of the ticket to unregister.
280
+ * @remarks Removes the ticket from the registry and reindexes the remaining tickets. This operation invalidates cached results from `keys()`, `values()`, and `entries()`.
281
+ *
282
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#unregister
283
+ *
284
+ * @example
285
+ * ```ts
286
+ * import { createRegistry } from '@vuetify/v0'
287
+ *
288
+ * const registry = createRegistry()
289
+ *
290
+ * registry.register({ id: 'ticket-id' })
291
+ *
292
+ * registry.unregister('ticket-id')
293
+ * ```
294
+ */
295
+ unregister: (id: ID) => void;
296
+ /**
297
+ * Reset the index directory and update all tickets
298
+ *
299
+ * @remarks Rebuilds the internal index mapping and ensures all tickets have correct index values. This operation invalidates cached results from `keys()`, `values()`, and `entries()`.
300
+ *
301
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#reindex
302
+ *
303
+ * @example
304
+ * ```ts
305
+ * import { createRegistry } from '@vuetify/v0'
306
+ *
307
+ * const registry = createRegistry()
308
+ *
309
+ * registry.register({ id: 'ticket-1' })
310
+ * registry.register({ id: 'ticket-2' })
311
+ *
312
+ * // After some operations that may affect indexing
313
+ * registry.reindex()
314
+ * ```
315
+ */
316
+ reindex: () => void;
317
+ /**
318
+ * Seek for a ticket based on direction and optional predicate
319
+ *
320
+ * @param direction The direction to seek ('first' or 'last'). Defaults to 'first'.
321
+ * @param from The index to start seeking from. Defaults to the beginning or end based on direction.
322
+ * @param predicate An optional function to test each ticket. The first ticket that satisfies the predicate will be returned.
323
+ * @remarks This method allows for flexible searching within the registry, either from the start or end, and can filter tickets based on custom criteria.
324
+ *
325
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#seek
326
+ *
327
+ * @example
328
+ * ```ts
329
+ * import { createRegistry } from '@vuetify/v0'
330
+ *
331
+ * const registry = createRegistry()
332
+ *
333
+ * registry.register({ id: 'ticket-1', value: 'apple' })
334
+ * registry.register({ id: 'ticket-2', value: 'banana' })
335
+ * registry.register({ id: 'ticket-3', value: 'cherry' })
336
+ *
337
+ * // Seek the first ticket
338
+ * const first = registry.seek('first')
339
+ *
340
+ * // Seek the last ticket
341
+ * const last = registry.seek('last')
342
+ *
343
+ * // Seek the first ticket with value 'banana'
344
+ * const banana = registry.seek('first', undefined, ticket => ticket.value === 'banana')
345
+ *
346
+ * // Seek from index 1 to find the next ticket with value starting with 'c'
347
+ * const cherry = registry.seek('first', 1, ticket => (ticket.value as string).startsWith('c'))
348
+ * ```
349
+ */
350
+ /**
351
+ * Move a ticket to a new index position
352
+ *
353
+ * @param id The ID of the ticket to move.
354
+ * @param toIndex The target index position. Clamped to valid range.
355
+ * @returns The moved ticket, or undefined if the ticket was not found.
356
+ *
357
+ * @remarks Rebuilds the internal collection order by removing and reinserting the entry at the target position. Triggers a full reindex after the move. This operation invalidates cached results from `keys()`, `values()`, and `entries()`.
358
+ *
359
+ * @see https://0.vuetifyjs.com/composables/registration/create-registry#move
360
+ *
361
+ * @example
362
+ * ```ts
363
+ * import { createRegistry } from '@vuetify/v0'
364
+ *
365
+ * const registry = createRegistry()
366
+ *
367
+ * registry.onboard([
368
+ * { id: 'a', value: 'alpha' },
369
+ * { id: 'b', value: 'beta' },
370
+ * { id: 'c', value: 'gamma' },
371
+ * ])
372
+ *
373
+ * // Move 'a' from index 0 to index 2
374
+ * registry.move('a', 2)
375
+ *
376
+ * console.log(registry.keys()) // ['b', 'c', 'a']
377
+ * ```
378
+ */
379
+ move: (id: ID, toIndex: number) => E | undefined;
380
+ seek: (direction?: 'first' | 'last', from?: number, predicate?: (ticket: E) => boolean) => E | undefined;
381
+ /**
382
+ * Listen for registry events
383
+ *
384
+ * @param event The name of the event to listen for.
385
+ * @param cb The callback function to invoke when the event is emitted.
386
+ * @remarks Must be enabled via the `events` option when creating the registry.
387
+ * Supported events:
388
+ * - `register:ticket` - Emitted when a ticket is registered, receives the ticket as argument
389
+ * - `unregister:ticket` - Emitted when a ticket is unregistered, receives the ticket as argument
390
+ * - `update:ticket` - Emitted when a ticket is updated, receives the updated ticket as argument
391
+ * - `clear:registry` - Emitted when the registry is cleared
392
+ * - `reindex:registry` - Emitted when the registry is reindexed
393
+ *
394
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#on
395
+ *
396
+ * @example
397
+ * ```ts
398
+ * import { createRegistry } from '@vuetify/v0'
399
+ *
400
+ * const registry = createRegistry({ events: true })
401
+ *
402
+ * registry.on('register:ticket', (ticket) => {
403
+ * console.log('Ticket registered:', ticket)
404
+ * })
405
+ *
406
+ * registry.register({ id: 'ticket-id' }) // Console: Ticket registered: { id: 'ticket-id', ... }
407
+ * ```
408
+ */
409
+ on: <K extends Extensible<RegistryEventName>>(event: K, cb: EventHandler<E, K>) => void;
410
+ /**
411
+ * Stop listening for registry events
412
+ *
413
+ * @param event The name of the event to stop listening for.
414
+ * @param cb The callback function to remove.
415
+ * @remarks Must be enabled via the `events` option when creating the registry.
416
+ *
417
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#off
418
+ *
419
+ * @example
420
+ * ```ts
421
+ * import { onScopeDispose } from 'vue'
422
+ * import { createRegistry } from '@vuetify/v0'
423
+ *
424
+ * const registry = createRegistry({ events: true })
425
+ *
426
+ * function onRegister(ticket) {
427
+ * console.log('Ticket registered:', ticket)
428
+ * }
429
+ *
430
+ * registry.on('register:ticket', onRegister)
431
+ *
432
+ * registry.register({ id: 'ticket-id' }) // Console: Ticket registered: { id: 'ticket-id', ... }
433
+ *
434
+ * onScopeDispose(() => {
435
+ * registry.off('register:ticket', onRegister)
436
+ * })
437
+ * ```
438
+ */
439
+ off: <K extends Extensible<RegistryEventName>>(event: K, cb: EventHandler<E, K>) => void;
440
+ /**
441
+ * Emit an event with data
442
+ *
443
+ * @param event The name of the event to emit.
444
+ * @param data The data to pass to event listeners.
445
+ * @remarks Must be enabled via the `events` option when creating the registry.
446
+ *
447
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#emit
448
+ *
449
+ * @example
450
+ * ```ts
451
+ * import { createRegistry } from '@vuetify/v0'
452
+ *
453
+ * const registry = createRegistry({ events: true })
454
+ *
455
+ * registry.on('custom-event', (data) => {
456
+ * console.log('Custom event received:', data)
457
+ * })
458
+ *
459
+ * registry.emit('custom-event', { message: 'Hello, World!' }) // Console: Custom event received: { message: 'Hello, World!' }
460
+ * ```
461
+ */
462
+ emit: <K extends Extensible<RegistryEventName>>(event: K, data: EventPayload<E, K>) => void;
463
+ /**
464
+ * Clears the registry and removes all listeners
465
+ *
466
+ * @remarks Disposes of the registry by clearing all tickets and removing all event listeners.
467
+ *
468
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#dispose
469
+ *
470
+ * @example
471
+ * ```ts
472
+ * import { onScopeDispose } from 'vue'
473
+ * import { createRegistry } from '@vuetify/v0'
474
+ *
475
+ * const registry = createRegistry({ events: true })
476
+ *
477
+ * registry.register({ id: 'ticket-id' })
478
+ *
479
+ * onScopeDispose(() => {
480
+ * registry.dispose()
481
+ * })
482
+ * ```
483
+ */
484
+ dispose: () => void;
485
+ /**
486
+ * Onboard multiple tickets at once
487
+ *
488
+ * @param registrations An array of partial ticket data to register.
489
+ * @remarks Registers multiple tickets in a single operation and returns the array of registered tickets.
490
+ *
491
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#onboard
492
+ *
493
+ * @example
494
+ * ```ts
495
+ * import { createRegistry } from '@vuetify/v0'
496
+ *
497
+ * const registry = createRegistry()
498
+ *
499
+ * const tickets = registry.onboard([
500
+ * { id: 'ticket-1', value: 'value-1' },
501
+ * { id: 'ticket-2', value: 'value-2' },
502
+ * ])
503
+ *
504
+ * console.log(tickets) // [{ id: 'ticket-1', ... }, { id: 'ticket-2', ... }]
505
+ * ```
506
+ */
507
+ onboard: (registrations: Partial<Z & RegistryTicket>[]) => E[];
508
+ /**
509
+ * Offboard multiple tickets at once
510
+ *
511
+ * @param ids An array of ticket IDs to unregister.
512
+ * @remarks Unregisters multiple tickets in a single operation with optimized reindexing.
513
+ *
514
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#offboard
515
+ *
516
+ * @example
517
+ * ```ts
518
+ * import { createRegistry } from '@vuetify/v0'
519
+ *
520
+ * const registry = createRegistry()
521
+ *
522
+ * registry.onboard([
523
+ * { id: 'ticket-1', value: 'value-1' },
524
+ * { id: 'ticket-2', value: 'value-2' },
525
+ * { id: 'ticket-3', value: 'value-3' },
526
+ * ])
527
+ *
528
+ * registry.offboard(['ticket-1', 'ticket-3'])
529
+ *
530
+ * console.log(registry.size) // 1
531
+ * ```
532
+ */
533
+ offboard: (ids: ID[]) => void;
534
+ /**
535
+ * The number of tickets in the registry
536
+ *
537
+ * @remarks Reflects the current size of the internal ticket collection.
538
+ *
539
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#size
540
+ *
541
+ * @example
542
+ * ```ts
543
+ * import { createRegistry } from '@vuetify/v0'
544
+ *
545
+ * const registry = createRegistry()
546
+ *
547
+ * registry.register({ id: 'ticket-1' })
548
+ * registry.register({ id: 'ticket-2' })
549
+ *
550
+ * console.log(registry.size) // 2
551
+ * ```
552
+ */
553
+ size: number;
554
+ /**
555
+ * Execute operations in a batch, deferring cache invalidation and event emission until complete
556
+ *
557
+ * @param fn The function containing batch operations.
558
+ * @returns The return value of the batch function.
559
+ * @remarks Useful for bulk operations like onboard(). Invalidation and events happen once at the end, not after each operation.
560
+ *
561
+ * @see https://0.vuetifyjs.com/composables/registration/use-registry#batch
562
+ *
563
+ * @example
564
+ * ```ts
565
+ * import { createRegistry } from '@vuetify/v0'
566
+ *
567
+ * const registry = createRegistry({ events: true })
568
+ *
569
+ * // Without batch: N invalidations + N events
570
+ * // With batch: 1 invalidation + N events (after all registrations)
571
+ * const tickets = registry.batch(() => {
572
+ * return [
573
+ * registry.register({ id: 'a' }),
574
+ * registry.register({ id: 'b' }),
575
+ * registry.register({ id: 'c' }),
576
+ * ]
577
+ * })
578
+ * ```
579
+ */
580
+ batch: <R>(fn: () => R) => R;
581
+ }
582
+ interface RegistryOptions {
583
+ /**
584
+ * Enable event emission for registry operations
585
+ *
586
+ * @default false
587
+ * @remarks When enabled, the registry will emit events for operations like registration and unregistration. Listeners can be added using the `on` method.
588
+ *
589
+ * @example
590
+ * ```ts
591
+ * import { createRegistry } from '@vuetify/v0'
592
+ *
593
+ * const registry = createRegistry({ events: true })
594
+ *
595
+ * registry.on('register:ticket', (ticket) => {
596
+ * console.log('Ticket registered:', ticket)
597
+ * })
598
+ *
599
+ * registry.register({ id: 'ticket-id' }) // Console: Ticket registered: { id: 'ticket-id', ... }
600
+ * ```
601
+ */
602
+ events?: boolean;
603
+ /**
604
+ * Enable reactive behavior for registry operations
605
+ *
606
+ * @default false
607
+ * @remarks When enabled, the registry will use Vue's shallowReactive to track changes. This is useful for scenarios where you want to reactively update the registry state in response to changes.
608
+ *
609
+ * @example
610
+ * ```ts
611
+ * import { createRegistry } from '@vuetify/v0'
612
+ *
613
+ * const registry = createRegistry({ reactive: true })
614
+ *
615
+ * registry.register({ id: 'ticket-id' })
616
+ *
617
+ * console.log(registry.size) // 1
618
+ * ```
619
+ */
620
+ reactive?: boolean;
621
+ }
622
+ interface RegistryContextOptions extends RegistryOptions {
623
+ namespace?: string;
624
+ }
625
+ /**
626
+ * Creates a new registry instance.
627
+ *
628
+ * @param options The options for the registry instance.
629
+ * @template Z The type of registry ticket that extends RegistryTicket. Use this to add custom properties to tickets.
630
+ * @template E The type of registry context that extends RegistryContext<Z>. Use this when extending the registry with additional methods.
631
+ * @returns A new registry instance.
632
+ *
633
+ * @see https://0.vuetifyjs.com/composables/registration/create-registry#create-registry
634
+ *
635
+ * @example
636
+ * ```ts
637
+ * import { createRegistry } from '@vuetify/v0'
638
+ *
639
+ * const registry = createRegistry()
640
+ *
641
+ * const ticket1 = registry.register({ id: 'user-1', value: { name: 'John' } })
642
+ * const ticket2 = registry.register({ id: 'user-2', value: { name: 'Jane' } })
643
+ *
644
+ * console.log(registry.size) // 2
645
+ * console.log(registry.get('user-1')) // { id: 'user-1', index: 0, value: { name: 'John' }, ... }
646
+ * ```
647
+ */
648
+ declare function createRegistry<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z>(options?: RegistryOptions): RegistryContext<Z, E>;
649
+ /**
650
+ * Creates a new registry context.
651
+ *
652
+ * @param options The options for the registry context, including `namespace` (defaults to `'v0:registry'`) and `events`.
653
+ * @template Z The type of registry ticket that extends RegistryTicket. Use this to add custom properties to tickets.
654
+ * @template E The type of registry context that extends RegistryContext<Z>. Use this when extending the registry with additional methods.
655
+ * @returns A new registry context.
656
+ *
657
+ * @see https://0.vuetifyjs.com/composables/registration/create-registry#create-registry-context
658
+ *
659
+ * @example
660
+ * ```ts
661
+ * import { createRegistryContext } from '@vuetify/v0'
662
+ *
663
+ * // With default namespace 'v0:registry'
664
+ * export const [useItems, provideItems, items] = createRegistryContext()
665
+ *
666
+ * // Or with custom namespace
667
+ * export const [useItems, provideItems, items] = createRegistryContext({ namespace: 'my-items' })
668
+ *
669
+ * // In a parent component:
670
+ * provideItems()
671
+ *
672
+ * // In a child component:
673
+ * const items = useItems()
674
+ * items.register({ id: 'item-1', value: 'Value 1' })
675
+ * ```
676
+ */
677
+ declare function createRegistryContext<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z>(_options?: RegistryContextOptions): ContextTrinity<RegistryContext<Z, E>>;
678
+ /**
679
+ * Uses an existing registry from context.
680
+ *
681
+ * @param namespace The namespace for the registry context. Defaults to `'v0:registry'`.
682
+ * @template Z The type of registry ticket that extends RegistryTicket.
683
+ * @template E The type of registry context that extends RegistryContext<Z>.
684
+ * @returns The registry instance.
685
+ *
686
+ * @see https://0.vuetifyjs.com/composables/registration/create-registry#use-registry
687
+ *
688
+ * @example
689
+ * ```ts
690
+ * import { useRegistry } from '@vuetify/v0'
691
+ *
692
+ * // In a child component (after provideRegistry was called by an ancestor):
693
+ * const registry = useRegistry()
694
+ *
695
+ * registry.register({ id: 'item-1', value: 'Value 1' })
696
+ * ```
697
+ */
698
+ declare function useRegistry<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z>(namespace?: string): RegistryContext<Z, E>;
699
+ //#endregion
700
+ //#region src/composables/createTokens/index.d.ts
701
+ interface TokenAlias<T = unknown> {
702
+ [key: string]: unknown;
703
+ $value: T;
704
+ $type?: string;
705
+ $description?: string;
706
+ $extensions?: Record<string, unknown>;
707
+ $deprecated?: boolean | string;
708
+ }
709
+ type TokenPrimitive = string | number | boolean | null | Function;
710
+ type TokenValue = TokenPrimitive | TokenAlias;
711
+ interface TokenCollection {
712
+ [key: string]: TokenValue | TokenCollection;
713
+ }
714
+ type FlatTokenCollection = {
715
+ id: string;
716
+ value: TokenValue;
717
+ };
718
+ interface TokenTicket<Z extends TokenValue = TokenValue> extends RegistryTicket<Z> {}
719
+ interface TokenContext<Z extends TokenTicket> extends RegistryContext<Z> {
720
+ /**
721
+ * Checks if a token is an alias
722
+ *
723
+ * @param token The token to check.
724
+ * @returns True if the token is an alias, false otherwise.
725
+ * @remarks An alias is a string that starts with "{" and ends with "}".
726
+ *
727
+ * @see https://0.vuetifyjs.com/composables/registration/create-tokens#is-alias
728
+ *
729
+ * @example
730
+ * ```ts
731
+ * const tokens = createTokens({
732
+ * colors: {
733
+ * primary: '#3b82f6',
734
+ * secondary: '{colors.primary}', // Alias reference
735
+ * },
736
+ * })
737
+ *
738
+ * console.log(tokens.isAlias('{colors.primary}')) // true
739
+ * console.log(tokens.isAlias('#3b82f6')) // false
740
+ * ```
741
+ */
742
+ isAlias: (token: unknown) => token is string;
743
+ /**
744
+ * Resolves a token or alias to its value.
745
+ *
746
+ * @param token The token or alias to resolve.
747
+ * @returns The resolved value of the token or alias, or undefined if not found.
748
+ * @remarks This function can resolve nested aliases and supports token paths using dot notation.
749
+ *
750
+ * @see https://0.vuetifyjs.com/composables/registration/create-tokens#resolve
751
+ *
752
+ * @example
753
+ * ```ts
754
+ * const tokens = createTokens({
755
+ * colors: {
756
+ * primary: '#3b82f6',
757
+ * secondary: '{colors.primary}', // Alias reference
758
+ * },
759
+ * })
760
+ *
761
+ * console.log(tokens.resolve('{colors.primary}')) // '#3b82f6'
762
+ * console.log(tokens.resolve('{colors.secondary}')) // '#3b82f6'
763
+ * ```
764
+ */
765
+ resolve: (token: string | TokenAlias) => unknown | undefined;
766
+ }
767
+ interface TokenOptions extends RegistryOptions {
768
+ /**
769
+ * Whether to flatten nested token structures.
770
+ *
771
+ * @default false
772
+ */
773
+ flat?: boolean;
774
+ /**
775
+ * An optional prefix to prepend to each token ID during registration.
776
+ *
777
+ * @remarks This is useful for namespacing tokens.
778
+ */
779
+ prefix?: string;
780
+ }
781
+ interface TokenContextOptions extends TokenOptions, RegistryContextOptions {
782
+ tokens?: TokenCollection;
783
+ }
784
+ /**
785
+ * Creates a new token instance.
786
+ *
787
+ * @param tokens The tokens to use.
788
+ * @param options The options for the token instance.
789
+ * @template Z The type of the token ticket.
790
+ * @template E The type of the token context.
791
+ * @returns A new token instance.
792
+ *
793
+ * @see https://www.designtokens.org/tr/drafts/format/
794
+ * @see https://0.vuetifyjs.com/composables/registration/create-tokens
795
+ *
796
+ * @example
797
+ * ```ts
798
+ * import { createTokens } from '@vuetify/v0'
799
+ *
800
+ * const tokens = createTokens({
801
+ * colors: {
802
+ * primary: '#3b82f6',
803
+ * secondary: '{colors.primary}', // Alias reference
804
+ * },
805
+ * })
806
+ *
807
+ * console.log(tokens.resolve('{colors.primary}')) // '#3b82f6'
808
+ * console.log(tokens.resolve('{colors.secondary}')) // '#3b82f6'
809
+ * ```
810
+ */
811
+ declare function createTokens<Z extends TokenTicket = TokenTicket, E extends TokenContext<Z> = TokenContext<Z>>(tokens?: TokenCollection, options?: TokenOptions): E;
812
+ /**
813
+ * Creates a new token context.
814
+ *
815
+ * @param namespace The namespace for the token context.
816
+ * @param tokens The tokens to use.
817
+ * @template Z The type of the token ticket.
818
+ * @template E The type of the token context.
819
+ * @returns A new token context.
820
+ *
821
+ * @see https://0.vuetifyjs.com/composables/registration/create-tokens
822
+ *
823
+ * @example
824
+ * ```ts
825
+ * import { createTokensContext } from '@vuetify/v0'
826
+ *
827
+ * export const [useTokens, provideTokens, context] = createTokensContext({
828
+ * namespace: 'v0:tokens',
829
+ * tokens: {
830
+ * colors: {
831
+ * primary: '#3b82f6',
832
+ * secondary: '{colors.primary}', // Alias reference
833
+ * },
834
+ * },
835
+ * })
836
+ * ```
837
+ */
838
+ declare function createTokensContext<Z extends TokenTicket = TokenTicket, E extends TokenContext<Z> = TokenContext<Z>>(_options: TokenContextOptions): ContextTrinity<E>;
839
+ /**
840
+ * Returns the current tokens instance.
841
+ *
842
+ * @param namespace The namespace for the tokens context. Defaults to `'v0:tokens'`.
843
+ * @returns The current tokens instance.
844
+ *
845
+ * @see https://0.vuetifyjs.com/composables/registration/create-tokens
846
+ *
847
+ * @example
848
+ * ```vue
849
+ * <script setup lang="ts">
850
+ * import { useTokens } from '@vuetify/v0'
851
+ *
852
+ * const tokens = useTokens()
853
+ * </script>
854
+ * ```
855
+ */
856
+ declare function useTokens<Z extends TokenTicket = TokenTicket, E extends TokenContext<Z> = TokenContext<Z>>(namespace?: string): E;
857
+ //#endregion
858
+ export { useRegistry as C, createRegistryContext as S, RegistryEventName as _, TokenContextOptions as a, RegistryTicketInput as b, TokenTicket as c, createTokensContext as d, useTokens as f, RegistryEventMap as g, RegistryEventCallback as h, TokenContext as i, TokenValue as l, RegistryContextOptions as m, TokenAlias as n, TokenOptions as o, RegistryContext as p, TokenCollection as r, TokenPrimitive as s, FlatTokenCollection as t, createTokens as u, RegistryOptions as v, createRegistry as x, RegistryTicket as y };