@vuetify/v0 1.0.0-beta.5 → 1.0.0-rc.7
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.
- package/README.md +2 -15
- package/dist/{adapter-BI-oyZCe.d.mts → adapter-CMdKyFLz.d.mts} +1 -1
- package/dist/{adapter-CJY6aQIS.mjs → adapter-lS_VpRow.mjs} +1 -1
- package/dist/browser/index.d.ts +112 -110
- package/dist/browser/index.js +46 -26
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{components-Uq92vRyo.mjs → components-D87gpuRI.mjs} +11 -11
- package/dist/composables/index.d.mts +6 -6
- package/dist/composables/index.mjs +22 -22
- package/dist/{composables-CzjEAc-O.mjs → composables-DAc4DbYb.mjs} +11 -11
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-BT9WcHvw.mjs → createDataTable-C86TFzxJ.mjs} +3 -3
- package/dist/{createGroup-CJt-oMxs.mjs → createGroup-DKVmhWJZ.mjs} +1 -1
- package/dist/{createRegistry-C-izE3Un.mjs → createRegistry-DaRYxox5.mjs} +20 -19
- package/dist/{createSelection-rmz4G5IG.mjs → createSelection-CZFfJnBv.mjs} +4 -2
- package/dist/{createSingle-DDri2UEO.mjs → createSingle-D08Et-36.mjs} +1 -1
- package/dist/{createTokens-D_EYIf_-.mjs → createTokens-BY_7TedA.mjs} +2 -2
- package/dist/data-table/index.d.mts +1 -1
- package/dist/data-table/index.mjs +1 -1
- package/dist/date/index.mjs +1 -1
- package/dist/features/adapters/flagsmith/index.mjs +2 -1
- package/dist/features/adapters/launchdarkly/index.mjs +8 -5
- package/dist/features/adapters/posthog/index.mjs +3 -2
- package/dist/features/index.d.mts +1 -1
- package/dist/features/index.mjs +1 -1
- package/dist/{globals-od-0-rj0.mjs → globals-Djy_aCgG.mjs} +1 -1
- package/dist/{index-CV7bOS7B.d.mts → index-B5ybQyJO.d.mts} +14 -14
- package/dist/{index-CfHm03dg.d.mts → index-CIf2yTGR.d.mts} +1 -1
- package/dist/{index-DF1gnhPy.d.mts → index-CUdlfMMw.d.mts} +99 -99
- package/dist/{index-DgPFPx_7.d.mts → index-CfSenWTN.d.mts} +1 -1
- package/dist/{index-pM8UX1XI.d.mts → index-DTYOP7ci.d.mts} +2 -2
- package/dist/{index-BBJnOUyA.d.mts → index-u0Sy6Dif.d.mts} +2 -0
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +24 -24
- package/dist/json/web-types.json +1 -1
- package/dist/locale/adapters/index.d.mts +2 -2
- package/dist/locale/adapters/index.mjs +1 -1
- package/dist/locale/adapters/v0/index.d.mts +1 -1
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/adapters/vue-i18n/index.d.mts +1 -1
- package/dist/locale/index.d.mts +3 -3
- package/dist/locale/index.mjs +2 -2
- package/dist/logger/adapters/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.d.mts +1 -1
- package/dist/logger/index.mjs +2 -2
- package/dist/notifications/index.d.mts +1 -1
- package/dist/notifications/index.mjs +2 -2
- package/dist/palettes/ant/index.d.mts +1 -1
- package/dist/palettes/index.d.mts +2 -2
- package/dist/palettes/material/index.d.mts +1 -1
- package/dist/palettes/md1/index.d.mts +1 -1
- package/dist/palettes/md2/index.d.mts +1 -1
- package/dist/palettes/radix/index.d.mts +1 -1
- package/dist/palettes/tailwind/index.d.mts +1 -1
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/storage/index.d.mts +1 -1
- package/dist/storage/index.mjs +1 -1
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +3 -3
- package/dist/theme/adapters/unhead/index.d.mts +1 -1
- package/dist/theme/adapters/unhead/index.mjs +1 -1
- package/dist/theme/adapters/v0/index.d.mts +1 -1
- package/dist/theme/adapters/v0/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/index.mjs +4 -4
- package/dist/{unhead-BnxPl6sY.mjs → unhead-CAPMhSV7.mjs} +2 -2
- package/dist/{useEventListener-CfEGMcjz.mjs → useEventListener-BtOsc1qg.mjs} +1 -1
- package/dist/{useFeatures-B_u-9E7R.mjs → useFeatures-B5I-8W8H.mjs} +3 -3
- package/dist/{useLocale-BXtMJeow.mjs → useLocale-AKOyyv43.mjs} +8 -5
- package/dist/{useLogger-DX5_7Oxx.mjs → useLogger-bHW-Guij.mjs} +2 -2
- package/dist/{useNotifications-DeNMmeZF.mjs → useNotifications-P-1VQHi8.mjs} +3 -3
- package/dist/{usePermissions-DPIFes9l.mjs → usePermissions-nuWucbL_.mjs} +2 -2
- package/dist/{useRovingFocus-BLPMBFFW.mjs → useRovingFocus-BfbmLJoo.mjs} +9 -9
- package/dist/{useRules-2M0JbQHv.mjs → useRules-SLj8Le-M.mjs} +2 -2
- package/dist/{useStorage-CHx6ZSjw.mjs → useStorage-B4eV6lZZ.mjs} +3 -3
- package/dist/{useTheme-DqtxOIDJ.mjs → useTheme-SVM2VmlS.mjs} +6 -6
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +19 -4
- package/dist/{v0-D4InK1of.mjs → v0-BoEyw8RC.mjs} +1 -1
- package/dist/{v0-DXr8lzQK.mjs → v0-D5BwU_Up.mjs} +1 -1
- package/dist/{v0-Cf5DZ4lw.d.mts → v0-DcTsWvzJ.d.mts} +1 -1
- package/dist/{v0-KsDsXr6T.mjs → v0-gVrU_ObF.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isNullOrUndefined } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
3
|
-
import { t as createRegistry } from "./createRegistry-
|
|
4
|
-
import { a as useLocale } from "./useLocale-
|
|
5
|
-
import { i as useProxyRegistry, t as createGroup } from "./createGroup-
|
|
3
|
+
import { t as createRegistry } from "./createRegistry-DaRYxox5.mjs";
|
|
4
|
+
import { a as useLocale } from "./useLocale-AKOyyv43.mjs";
|
|
5
|
+
import { i as useProxyRegistry, t as createGroup } from "./createGroup-DKVmhWJZ.mjs";
|
|
6
6
|
import { t as ClientDataTableAdapter } from "./v0-A4GLojAr.mjs";
|
|
7
7
|
import { computed, shallowReactive, shallowReadonly, shallowRef, toRef, watch } from "vue";
|
|
8
8
|
//#region src/composables/createDataTable/columns.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveIds, resolveIndexes, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
3
|
-
import { t as createSelection } from "./createSelection-
|
|
3
|
+
import { t as createSelection } from "./createSelection-CZFfJnBv.mjs";
|
|
4
4
|
import { t as toArray } from "./toArray-C89ZaEuF.mjs";
|
|
5
5
|
import { computed, onScopeDispose, reactive, shallowReactive, shallowRef, toRef, toValue } from "vue";
|
|
6
6
|
//#region src/composables/useProxyRegistry/index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clamp, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
3
|
-
import { i as useLogger } from "./useLogger-
|
|
4
|
-
import { shallowReactive } from "vue";
|
|
3
|
+
import { i as useLogger } from "./useLogger-bHW-Guij.mjs";
|
|
4
|
+
import { shallowReactive, shallowRef } from "vue";
|
|
5
5
|
//#region src/composables/createRegistry/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @module createRegistry
|
|
@@ -63,7 +63,8 @@ function createRegistry(options) {
|
|
|
63
63
|
const directory = /* @__PURE__ */ new Map();
|
|
64
64
|
const cache = /* @__PURE__ */ new Map();
|
|
65
65
|
const listeners = /* @__PURE__ */ new Map();
|
|
66
|
-
const order =
|
|
66
|
+
const order = [];
|
|
67
|
+
const version = shallowRef(0);
|
|
67
68
|
let indexDependentCount = 0;
|
|
68
69
|
let needsReindex = false;
|
|
69
70
|
let minDirtyIndex = Infinity;
|
|
@@ -142,7 +143,7 @@ function createRegistry(options) {
|
|
|
142
143
|
valueIsIndex
|
|
143
144
|
});
|
|
144
145
|
collection.set(id, existing);
|
|
145
|
-
|
|
146
|
+
cache.clear();
|
|
146
147
|
emit("update:ticket", existing);
|
|
147
148
|
if (event) emit(event, existing);
|
|
148
149
|
return existing;
|
|
@@ -173,7 +174,7 @@ function createRegistry(options) {
|
|
|
173
174
|
else catalog.set(value, next);
|
|
174
175
|
}
|
|
175
176
|
function keys() {
|
|
176
|
-
if (reactive)
|
|
177
|
+
if (reactive) version.value;
|
|
177
178
|
const cached = cache.get("keys");
|
|
178
179
|
if (!/* @__PURE__ */ isUndefined(cached)) return cached;
|
|
179
180
|
const out = order.map((ticket) => ticket.id);
|
|
@@ -181,7 +182,7 @@ function createRegistry(options) {
|
|
|
181
182
|
return out;
|
|
182
183
|
}
|
|
183
184
|
function values() {
|
|
184
|
-
if (reactive)
|
|
185
|
+
if (reactive) version.value;
|
|
185
186
|
const cached = cache.get("values");
|
|
186
187
|
if (!/* @__PURE__ */ isUndefined(cached)) return cached;
|
|
187
188
|
const out = order.slice();
|
|
@@ -189,7 +190,7 @@ function createRegistry(options) {
|
|
|
189
190
|
return out;
|
|
190
191
|
}
|
|
191
192
|
function entries() {
|
|
192
|
-
if (reactive)
|
|
193
|
+
if (reactive) version.value;
|
|
193
194
|
const cached = cache.get("entries");
|
|
194
195
|
if (!/* @__PURE__ */ isUndefined(cached)) return cached;
|
|
195
196
|
const out = order.map((ticket) => [ticket.id, ticket]);
|
|
@@ -209,8 +210,9 @@ function createRegistry(options) {
|
|
|
209
210
|
emit("clear:registry");
|
|
210
211
|
}
|
|
211
212
|
function invalidate() {
|
|
212
|
-
if (isBatching) return;
|
|
213
213
|
cache.clear();
|
|
214
|
+
if (isBatching) return;
|
|
215
|
+
version.value++;
|
|
214
216
|
}
|
|
215
217
|
function batch(fn) {
|
|
216
218
|
if (isBatching) return fn();
|
|
@@ -225,6 +227,7 @@ function createRegistry(options) {
|
|
|
225
227
|
isBatching = false;
|
|
226
228
|
batched = [];
|
|
227
229
|
cache.clear();
|
|
230
|
+
version.value++;
|
|
228
231
|
}
|
|
229
232
|
}
|
|
230
233
|
function reindex() {
|
|
@@ -289,7 +292,8 @@ function createRegistry(options) {
|
|
|
289
292
|
const ticket = collection.get(id);
|
|
290
293
|
if (!ticket) return;
|
|
291
294
|
if (ticket.valueIsIndex) indexDependentCount--;
|
|
292
|
-
|
|
295
|
+
let orderPos = ticket.index;
|
|
296
|
+
if (order[orderPos] !== ticket) orderPos = order.indexOf(ticket);
|
|
293
297
|
if (orderPos !== -1) order.splice(orderPos, 1);
|
|
294
298
|
collection.delete(ticket.id);
|
|
295
299
|
directory.delete(ticket.index);
|
|
@@ -383,22 +387,19 @@ function createRegistry(options) {
|
|
|
383
387
|
function seek(direction = "first", from, predicate) {
|
|
384
388
|
if (collection.size === 0) return void 0;
|
|
385
389
|
if (needsReindex) reindex();
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
390
|
-
const tickets = values();
|
|
391
|
-
const index = /* @__PURE__ */ isUndefined(from) ? void 0 : /* @__PURE__ */ clamp(from, 0, tickets.length - 1);
|
|
390
|
+
const n = order.length;
|
|
391
|
+
if (!predicate && /* @__PURE__ */ isUndefined(from)) return direction === "first" ? order[0] : order.at(-1);
|
|
392
|
+
const index = /* @__PURE__ */ isUndefined(from) ? void 0 : /* @__PURE__ */ clamp(from, 0, n - 1);
|
|
392
393
|
if (direction === "last") {
|
|
393
|
-
const start = /* @__PURE__ */ isUndefined(index) ?
|
|
394
|
+
const start = /* @__PURE__ */ isUndefined(index) ? n - 1 : index;
|
|
394
395
|
for (let i = start; i >= 0; i--) {
|
|
395
|
-
const ticket =
|
|
396
|
+
const ticket = order[i];
|
|
396
397
|
if (!predicate || predicate(ticket)) return ticket;
|
|
397
398
|
}
|
|
398
399
|
} else {
|
|
399
400
|
const start = /* @__PURE__ */ isUndefined(index) ? 0 : index;
|
|
400
|
-
for (let i = start; i <
|
|
401
|
-
const ticket =
|
|
401
|
+
for (let i = start; i < n; i++) {
|
|
402
|
+
const ticket = order[i];
|
|
402
403
|
if (!predicate || predicate(ticket)) return ticket;
|
|
403
404
|
}
|
|
404
405
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isUndefined, resolveIds, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
3
|
-
import { t as createRegistry } from "./createRegistry-
|
|
3
|
+
import { t as createRegistry } from "./createRegistry-DaRYxox5.mjs";
|
|
4
4
|
import { computed, isRef, shallowReactive, toRaw, toRef, toValue } from "vue";
|
|
5
5
|
//#region src/composables/createModel/index.ts
|
|
6
6
|
/**
|
|
@@ -82,7 +82,9 @@ function createModel(_options = {}) {
|
|
|
82
82
|
const selectedIds = shallowReactive(/* @__PURE__ */ new Set());
|
|
83
83
|
const selectedItems = computed(() => new Set(/* @__PURE__ */ resolveIds(selectedIds, registry.get)));
|
|
84
84
|
const selectedValues = computed(() => {
|
|
85
|
-
|
|
85
|
+
const out = /* @__PURE__ */ new Set();
|
|
86
|
+
for (const item of selectedItems.value) out.add(toValue(item.value));
|
|
87
|
+
return out;
|
|
86
88
|
});
|
|
87
89
|
function select(id) {
|
|
88
90
|
if (toValue(disabled)) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
2
|
-
import { t as createSelection } from "./createSelection-
|
|
2
|
+
import { t as createSelection } from "./createSelection-CZFfJnBv.mjs";
|
|
3
3
|
import { toRef } from "vue";
|
|
4
4
|
//#region src/composables/createSingle/index.ts
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UNSAFE_KEYS, isObject, isString, isUndefined } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
3
|
-
import { i as useLogger } from "./useLogger-
|
|
4
|
-
import { t as createRegistry } from "./createRegistry-
|
|
3
|
+
import { i as useLogger } from "./useLogger-bHW-Guij.mjs";
|
|
4
|
+
import { t as createRegistry } from "./createRegistry-DaRYxox5.mjs";
|
|
5
5
|
//#region src/composables/createTokens/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @module createTokens
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as SortEntry, i as SortDirection, n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "../adapter-_srNCBEi.mjs";
|
|
2
|
-
import { _ as ColumnNode, a as DataTableExpansion, b as extractLeaves, c as DataTableOptions, d as DataTableTicket, f as DataTableTicketInput, g as useDataTable, h as createDataTableContext, i as DataTableContextOptions, l as DataTableSelection, m as createDataTable, n as DataTableColumnTicketInput, o as DataTableGroup, p as SelectStrategy, r as DataTableContext, s as DataTableGrouping, t as DataTableColumnTicket, u as DataTableSort, v as InternalHeader, x as resolveHeaders, y as computeDepth } from "../index-
|
|
2
|
+
import { _ as ColumnNode, a as DataTableExpansion, b as extractLeaves, c as DataTableOptions, d as DataTableTicket, f as DataTableTicketInput, g as useDataTable, h as createDataTableContext, i as DataTableContextOptions, l as DataTableSelection, m as createDataTable, n as DataTableColumnTicketInput, o as DataTableGroup, p as SelectStrategy, r as DataTableContext, s as DataTableGrouping, t as DataTableColumnTicket, u as DataTableSort, v as InternalHeader, x as resolveHeaders, y as computeDepth } from "../index-CfSenWTN.mjs";
|
|
3
3
|
import { n as ServerDataTableAdapterOptions, t as ServerDataTableAdapter } from "../server-DbtTGb67.mjs";
|
|
4
4
|
import { t as ClientDataTableAdapter } from "../v0-DotXXGXU.mjs";
|
|
5
5
|
import { t as VirtualDataTableAdapter } from "../virtual-C-NsLue0.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as DataTableAdapter } from "../adapter-CVoWg0sw.mjs";
|
|
2
2
|
import { t as ClientDataTableAdapter } from "../v0-A4GLojAr.mjs";
|
|
3
|
-
import { a as extractLeaves, i as computeDepth, n as createDataTableContext, o as resolveHeaders, r as useDataTable, t as createDataTable } from "../createDataTable-
|
|
3
|
+
import { a as extractLeaves, i as computeDepth, n as createDataTableContext, o as resolveHeaders, r as useDataTable, t as createDataTable } from "../createDataTable-C86TFzxJ.mjs";
|
|
4
4
|
import { t as ServerDataTableAdapter } from "../server-D5BJBjB0.mjs";
|
|
5
5
|
import { t as VirtualDataTableAdapter } from "../virtual-DFvOoeG6.mjs";
|
|
6
6
|
export { ClientDataTableAdapter, DataTableAdapter, ServerDataTableAdapter, VirtualDataTableAdapter, computeDepth, createDataTable, createDataTableContext, extractLeaves, resolveHeaders, useDataTable };
|
package/dist/date/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../globals-
|
|
1
|
+
import { t as IN_BROWSER } from "../globals-Djy_aCgG.mjs";
|
|
2
2
|
import { isFunction, isNull, isNullOrUndefined, isNumber, isString } from "../utilities/index.mjs";
|
|
3
3
|
import { t as DateAdapter } from "../adapter-Cy7wXVFe.mjs";
|
|
4
4
|
import { Temporal } from "@js-temporal/polyfill";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isNullOrUndefined } from "../../../utilities/index.mjs";
|
|
1
|
+
import { UNSAFE_KEYS, isNullOrUndefined } from "../../../utilities/index.mjs";
|
|
2
2
|
import { t as FeaturesAdapter } from "../../../adapter-CTsckKAR.mjs";
|
|
3
3
|
//#region src/composables/useFeatures/adapters/flagsmith.ts
|
|
4
4
|
/**
|
|
@@ -20,6 +20,7 @@ var FlagsmithFeaturesAdapter = class extends FeaturesAdapter {
|
|
|
20
20
|
const flags = this.client.getAllFlags();
|
|
21
21
|
const adapterFlags = {};
|
|
22
22
|
if (flags) for (const [key, flag] of Object.entries(flags)) {
|
|
23
|
+
if (UNSAFE_KEYS.has(key)) continue;
|
|
23
24
|
const isEnabled = flag.enabled;
|
|
24
25
|
const variation = flag.value;
|
|
25
26
|
adapterFlags[key] = /* @__PURE__ */ isNullOrUndefined(variation) ? isEnabled : {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isBoolean } from "../../../utilities/index.mjs";
|
|
1
|
+
import { UNSAFE_KEYS, isBoolean } from "../../../utilities/index.mjs";
|
|
2
2
|
import { t as FeaturesAdapter } from "../../../adapter-CTsckKAR.mjs";
|
|
3
3
|
//#region src/composables/useFeatures/adapters/launchdarkly.ts
|
|
4
4
|
/**
|
|
@@ -16,10 +16,13 @@ var LaunchDarklyFeaturesAdapter = class extends FeaturesAdapter {
|
|
|
16
16
|
const collect = () => {
|
|
17
17
|
const allFlags = this.client.allFlags();
|
|
18
18
|
const flags = {};
|
|
19
|
-
for (const [key, value] of Object.entries(allFlags))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
for (const [key, value] of Object.entries(allFlags)) {
|
|
20
|
+
if (UNSAFE_KEYS.has(key)) continue;
|
|
21
|
+
flags[key] = /* @__PURE__ */ isBoolean(value) ? value : {
|
|
22
|
+
$value: true,
|
|
23
|
+
$variation: value
|
|
24
|
+
};
|
|
25
|
+
}
|
|
23
26
|
return flags;
|
|
24
27
|
};
|
|
25
28
|
function onChange() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../../../globals-
|
|
2
|
-
import { isBoolean, isNullOrUndefined } from "../../../utilities/index.mjs";
|
|
1
|
+
import { t as IN_BROWSER } from "../../../globals-Djy_aCgG.mjs";
|
|
2
|
+
import { UNSAFE_KEYS, isBoolean, isNullOrUndefined } from "../../../utilities/index.mjs";
|
|
3
3
|
import { t as FeaturesAdapter } from "../../../adapter-CTsckKAR.mjs";
|
|
4
4
|
//#region src/composables/useFeatures/adapters/posthog.ts
|
|
5
5
|
/**
|
|
@@ -20,6 +20,7 @@ var PostHogFeaturesAdapter = class extends FeaturesAdapter {
|
|
|
20
20
|
const activeFlags = this.client.featureFlags.getFlags();
|
|
21
21
|
if (!activeFlags) return flags;
|
|
22
22
|
for (const key of activeFlags) {
|
|
23
|
+
if (UNSAFE_KEYS.has(key)) continue;
|
|
23
24
|
const isEnabled = this.client.isFeatureEnabled(key) ?? false;
|
|
24
25
|
const payload = this.client.getFeatureFlagPayload(key);
|
|
25
26
|
if (/* @__PURE__ */ isNullOrUndefined(payload)) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _r as createFeatures, br as useFeatures, dr as FeatureContext, fr as FeatureContextOptions, gr as FeatureTicketInput, hr as FeatureTicket, mr as FeaturePluginOptions, pr as FeatureOptions, vr as createFeaturesContext, yr as createFeaturesPlugin } from "../index-
|
|
1
|
+
import { _r as createFeatures, br as useFeatures, dr as FeatureContext, fr as FeatureContextOptions, gr as FeatureTicketInput, hr as FeatureTicket, mr as FeaturePluginOptions, pr as FeatureOptions, vr as createFeaturesContext, yr as createFeaturesPlugin } from "../index-B5ybQyJO.mjs";
|
|
2
2
|
import { n as FeaturesAdapterFlags, r as FeaturesAdapterValue, t as FeaturesAdapter } from "../adapter-Butx_2UU.mjs";
|
|
3
3
|
export { FeatureContext, FeatureContextOptions, FeatureOptions, FeaturePluginOptions, FeatureTicket, FeatureTicketInput, FeaturesAdapter, FeaturesAdapterFlags, FeaturesAdapterValue, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
|
package/dist/features/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as FeaturesAdapter } from "../adapter-CTsckKAR.mjs";
|
|
2
|
-
import { i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-
|
|
2
|
+
import { i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-B5I-8W8H.mjs";
|
|
3
3
|
export { FeaturesAdapter, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
|
|
@@ -5,7 +5,7 @@ const SUPPORTS_MATCH_MEDIA = IN_BROWSER && "matchMedia" in window && typeof wind
|
|
|
5
5
|
const SUPPORTS_OBSERVER = IN_BROWSER && "ResizeObserver" in window;
|
|
6
6
|
const SUPPORTS_INTERSECTION_OBSERVER = IN_BROWSER && "IntersectionObserver" in window;
|
|
7
7
|
const SUPPORTS_MUTATION_OBSERVER = IN_BROWSER && "MutationObserver" in window;
|
|
8
|
-
const version = "1.0.0-
|
|
8
|
+
const version = "1.0.0-rc.7";
|
|
9
9
|
/* v8 ignore next -- build-time constant, __DEV__ short-circuits in tests */
|
|
10
10
|
const __LOGGER_ENABLED__ = typeof (process.env.NODE_ENV !== "production") !== "undefined" && process.env.NODE_ENV !== "production" || typeof process.env.VITE_LOGGER_ENABLED !== "undefined" && process.env.VITE_LOGGER_ENABLED === "true";
|
|
11
11
|
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as ID, i as Extensible, o as MaybeArray } from "./index-CyNk9FpR.mjs";
|
|
2
2
|
import { t as ContextTrinity } from "./index-DXMlYoiQ.mjs";
|
|
3
|
-
import { a as RegistryEventName, c as RegistryTicketInput, o as RegistryOptions, r as RegistryEventCallback, s as RegistryTicket, t as RegistryContext } from "./index-
|
|
3
|
+
import { a as RegistryEventName, c as RegistryTicketInput, o as RegistryOptions, r as RegistryEventCallback, s as RegistryTicket, t as RegistryContext } from "./index-DTYOP7ci.mjs";
|
|
4
4
|
import { _ as FilterMode } from "./adapter-_srNCBEi.mjs";
|
|
5
|
-
import { _ as ColumnNode, c as DataTableOptions, n as DataTableColumnTicketInput, r as DataTableContext, t as DataTableColumnTicket } from "./index-
|
|
6
|
-
import { c as TokenTicket, i as TokenContext, o as TokenOptions, r as TokenCollection } from "./index-
|
|
5
|
+
import { _ as ColumnNode, c as DataTableOptions, n as DataTableColumnTicketInput, r as DataTableContext, t as DataTableColumnTicket } from "./index-CfSenWTN.mjs";
|
|
6
|
+
import { c as TokenTicket, i as TokenContext, o as TokenOptions, r as TokenCollection } from "./index-CIf2yTGR.mjs";
|
|
7
7
|
import { t as DateAdapter } from "./adapter-C5F2huij.mjs";
|
|
8
8
|
import { n as FeaturesAdapterFlags, t as FeaturesAdapter } from "./adapter-Butx_2UU.mjs";
|
|
9
|
-
import { t as LocaleAdapter } from "./adapter-
|
|
9
|
+
import { t as LocaleAdapter } from "./adapter-CMdKyFLz.mjs";
|
|
10
10
|
import { t as LoggerAdapter } from "./adapter-BYzU4Ey5.mjs";
|
|
11
11
|
import { n as StorageAdapter } from "./memory-DbyZeNjg.mjs";
|
|
12
12
|
import { App, ComponentPublicInstance, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, Reactive, Ref, ShallowReactive, ShallowRef, UnwrapNestedRefs, WatchSource, WritableComputedRef } from "vue";
|
|
@@ -2164,20 +2164,20 @@ declare function createPluginContext<O extends {
|
|
|
2164
2164
|
* @see https://standardschema.dev/
|
|
2165
2165
|
*/
|
|
2166
2166
|
interface StandardSchemaIssue {
|
|
2167
|
-
message: string;
|
|
2168
|
-
path?: ReadonlyArray<{
|
|
2169
|
-
key: PropertyKey;
|
|
2170
|
-
}
|
|
2167
|
+
readonly message: string;
|
|
2168
|
+
readonly path?: ReadonlyArray<PropertyKey | {
|
|
2169
|
+
readonly key: PropertyKey;
|
|
2170
|
+
}> | undefined;
|
|
2171
2171
|
}
|
|
2172
2172
|
interface StandardSchemaResult {
|
|
2173
|
-
value?: unknown;
|
|
2174
|
-
issues?: ReadonlyArray<StandardSchemaIssue
|
|
2173
|
+
readonly value?: unknown;
|
|
2174
|
+
readonly issues?: ReadonlyArray<StandardSchemaIssue> | undefined;
|
|
2175
2175
|
}
|
|
2176
2176
|
interface StandardSchemaV1 {
|
|
2177
|
-
'~standard': {
|
|
2178
|
-
version: 1;
|
|
2179
|
-
vendor: string;
|
|
2180
|
-
validate: (value: unknown) => StandardSchemaResult | Promise<StandardSchemaResult>;
|
|
2177
|
+
readonly '~standard': {
|
|
2178
|
+
readonly version: 1;
|
|
2179
|
+
readonly vendor: string;
|
|
2180
|
+
readonly validate: (value: unknown) => StandardSchemaResult | Promise<StandardSchemaResult>;
|
|
2181
2181
|
};
|
|
2182
2182
|
}
|
|
2183
2183
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ContextTrinity } from "./index-DXMlYoiQ.mjs";
|
|
2
|
-
import { n as RegistryContextOptions, o as RegistryOptions, s as RegistryTicket, t as RegistryContext } from "./index-
|
|
2
|
+
import { n as RegistryContextOptions, o as RegistryOptions, s as RegistryTicket, t as RegistryContext } from "./index-DTYOP7ci.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/createTokens/index.d.ts
|
|
5
5
|
interface TokenAlias<T = unknown> {
|