@creopse/vue 0.0.18 → 0.0.19
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/dist/index.cjs +5 -5
- package/dist/index.js +5 -5
- package/dist/index.mjs +602 -608
- package/package.json +1 -1
- package/types/index.d.ts +0 -1
- package/types/composables/user-preference.d.ts +0 -26
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export { useConfig } from './composables/config';
|
|
|
16
16
|
export { useHelper } from './composables/helper';
|
|
17
17
|
export { useContent } from './composables/content';
|
|
18
18
|
export { useNewsletter } from './composables/newsletter';
|
|
19
|
-
export { useUserPreference } from './composables/user-preference';
|
|
20
19
|
export type { PropsManager };
|
|
21
20
|
export { RootContainer, CustomTransition, MountedTeleport, StickyBottom, StickyTop, ReadMore, AsyncImg, Image, };
|
|
22
21
|
export type { PluginOptions };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Bool, type UserPrefs } from '@creopse/utils';
|
|
2
|
-
/**
|
|
3
|
-
* A composable that exposes the default user preferences.
|
|
4
|
-
*
|
|
5
|
-
* @returns An object containing the `defaultPrefs` property, which is a reactive
|
|
6
|
-
* ref to the default user preferences.
|
|
7
|
-
*
|
|
8
|
-
* The `defaultPrefs` object contains the following properties:
|
|
9
|
-
*
|
|
10
|
-
* - `inAppNotifEnabled`: A boolean indicating whether in-app notifications are
|
|
11
|
-
* enabled by default.
|
|
12
|
-
* - `emailNotifEnabled`: A boolean indicating whether email notifications are
|
|
13
|
-
* enabled by default.
|
|
14
|
-
* - `locale`: The user's preferred locale.
|
|
15
|
-
*/
|
|
16
|
-
export declare const useUserPreference: () => {
|
|
17
|
-
defaultPrefs: globalThis.Ref<{
|
|
18
|
-
inAppNotifEnabled?: Bool | undefined;
|
|
19
|
-
emailNotifEnabled?: Bool | undefined;
|
|
20
|
-
locale?: string | undefined;
|
|
21
|
-
}, UserPrefs | {
|
|
22
|
-
inAppNotifEnabled?: Bool | undefined;
|
|
23
|
-
emailNotifEnabled?: Bool | undefined;
|
|
24
|
-
locale?: string | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
};
|