@leaflink/vue-notification-feed
Advanced tools
@@ -5,6 +5,29 @@ export interface BellProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<BellProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BellProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BellProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BellProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface CircleCheckProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<CircleCheckProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleCheckProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleCheckProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleCheckProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface CircleCheckProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<CircleCheckProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleCheckProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleCheckProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleCheckProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface CircleInfoProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<CircleInfoProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleInfoProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleInfoProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleInfoProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface CircleCheckProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<CircleCheckProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleCheckProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleCheckProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleCheckProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface CloseProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<CloseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CloseProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CloseProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CloseProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface EnvelopeOpenProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<EnvelopeOpenProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EnvelopeOpenProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvelopeOpenProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvelopeOpenProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface EnvelopeOpenProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<EnvelopeOpenProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EnvelopeOpenProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvelopeOpenProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvelopeOpenProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface OpenInNewProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<OpenInNewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OpenInNewProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OpenInNewProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OpenInNewProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,6 +5,29 @@ export interface TrashCanProps { | ||
} | ||
declare const _default: import('vue').DefineComponent<TrashCanProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TrashCanProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TrashCanProps>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TrashCanProps>, { | ||
width: number; | ||
height: number; | ||
}>>> & Readonly<{}>, { | ||
width: number; | ||
height: number; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
import { FeedClientOptions } from '@knocklabs/client'; | ||
import { KnockUser, NotificationEventNames, NotificationEventProperties } from '../types.js'; | ||
export interface KnockFeedProviderProps { | ||
@@ -25,12 +26,17 @@ /** | ||
declare function __VLS_template(): { | ||
slots: { | ||
default?(_: {}): any; | ||
}; | ||
refs: {}; | ||
attrs: Partial<{}>; | ||
default?(_: {}): any; | ||
}; | ||
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; | ||
declare const __VLS_component: import('vue').DefineComponent<KnockFeedProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { | ||
event: (eventName: NotificationEventNames, properties?: NotificationEventProperties | undefined) => any; | ||
}, string, import('vue').PublicProps, Readonly<KnockFeedProviderProps> & Readonly<{ | ||
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<KnockFeedProviderProps>, { | ||
defaultFeedOptions: undefined; | ||
host: undefined; | ||
user: null; | ||
userToken: undefined; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { | ||
event: (eventName: NotificationEventNames, properties?: NotificationEventProperties | undefined) => void; | ||
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<KnockFeedProviderProps>, { | ||
defaultFeedOptions: undefined; | ||
host: undefined; | ||
user: null; | ||
userToken: undefined; | ||
}>>> & Readonly<{ | ||
onEvent?: ((eventName: NotificationEventNames, properties?: NotificationEventProperties | undefined) => any) | undefined; | ||
@@ -42,5 +48,22 @@ }>, { | ||
defaultFeedOptions: FeedClientOptions; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; | ||
type __VLS_WithTemplateSlots<T, S> = T & { | ||
@@ -47,0 +70,0 @@ new (): { |
import { Feed, FeedItem } from '@knocklabs/client'; | ||
export interface NotificationMenuProps { | ||
@@ -7,3 +8,12 @@ feedClient: Feed; | ||
} | ||
declare const _default: import('vue').DefineComponent<NotificationMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NotificationMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NotificationMenuProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NotificationMenuProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; |
import { Feed, FeedItem } from '@knocklabs/client'; | ||
export interface NotificationCellProps { | ||
@@ -8,14 +9,16 @@ feed?: Feed; | ||
declare function __VLS_template(): { | ||
slots: { | ||
default?(_: {}): any; | ||
default?(_: {}): any; | ||
}; | ||
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NotificationCellProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NotificationCellProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
refs: { | ||
ref: HTMLAnchorElement; | ||
}; | ||
attrs: Partial<{}>; | ||
}; | ||
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; | ||
declare const __VLS_component: import('vue').DefineComponent<NotificationCellProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NotificationCellProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; | ||
export default _default; | ||
type __VLS_WithTemplateSlots<T, S> = T & { | ||
@@ -22,0 +25,0 @@ new (): { |
import { FilterStatus } from '../constants.js'; | ||
export interface NotificationFeedProps { | ||
@@ -6,6 +7,29 @@ initialFilterStatus?: `${FilterStatus}`; | ||
} | ||
declare const _default: import('vue').DefineComponent<NotificationFeedProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NotificationFeedProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<NotificationFeedProps>, { | ||
initialFilterStatus: FilterStatus; | ||
settingsPath: null; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<NotificationFeedProps>, { | ||
initialFilterStatus: FilterStatus; | ||
settingsPath: null; | ||
}>>> & Readonly<{}>, { | ||
initialFilterStatus: `${FilterStatus}`; | ||
settingsPath: string | null; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
@@ -5,2 +5,3 @@ import { Feed } from '@knocklabs/client'; | ||
import { NotificationFeedProps } from './NotificationFeed.vue'; | ||
export type OnOpenOptions = { | ||
@@ -13,6 +14,12 @@ store: FeedStoreState; | ||
} | ||
declare const _default: import('vue').DefineComponent<NotificationFeedPopoverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { | ||
close: (evt: Event) => any; | ||
open: (arg: OnOpenOptions) => any; | ||
}, string, import('vue').PublicProps, Readonly<NotificationFeedPopoverProps> & Readonly<{ | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<NotificationFeedPopoverProps>, { | ||
isVisible: boolean; | ||
settings: null; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { | ||
close: (evt: Event) => void; | ||
open: (arg: OnOpenOptions) => void; | ||
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<NotificationFeedPopoverProps>, { | ||
isVisible: boolean; | ||
settings: null; | ||
}>>> & Readonly<{ | ||
onClose?: ((evt: Event) => any) | undefined; | ||
@@ -22,3 +29,20 @@ onOpen?: ((arg: OnOpenOptions) => any) | undefined; | ||
isVisible: boolean; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
import { BadgeCountTypeOption } from './UnseenBadge.vue'; | ||
export interface NotificationIconButtonProps { | ||
@@ -6,6 +7,29 @@ badgeCountType?: BadgeCountTypeOption; | ||
} | ||
declare const _default: import('vue').DefineComponent<NotificationIconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NotificationIconButtonProps> & Readonly<{}>, { | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<NotificationIconButtonProps>, { | ||
badgeCountType: string; | ||
isActive: boolean; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<NotificationIconButtonProps>, { | ||
badgeCountType: string; | ||
isActive: boolean; | ||
}>>> & Readonly<{}>, { | ||
badgeCountType: "all" | "unseen" | "unread"; | ||
isActive: boolean; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; |
import { FeedItem } from '@knocklabs/client'; | ||
export interface NotificationToastProps { | ||
@@ -8,9 +9,18 @@ id: string; | ||
} | ||
declare const _default: import('vue').DefineComponent<NotificationToastProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { | ||
close: (event: MouseEvent | KeyboardEvent) => any; | ||
open: (event: MouseEvent | KeyboardEvent) => any; | ||
}, string, import('vue').PublicProps, Readonly<NotificationToastProps> & Readonly<{ | ||
onClose?: ((event: MouseEvent | KeyboardEvent) => any) | undefined; | ||
onOpen?: ((event: MouseEvent | KeyboardEvent) => any) | undefined; | ||
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NotificationToastProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { | ||
close: (event: KeyboardEvent | MouseEvent) => void; | ||
open: (event: KeyboardEvent | MouseEvent) => void; | ||
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NotificationToastProps>>> & Readonly<{ | ||
onClose?: ((event: KeyboardEvent | MouseEvent) => any) | undefined; | ||
onOpen?: ((event: KeyboardEvent | MouseEvent) => any) | undefined; | ||
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; |
@@ -6,14 +6,30 @@ export type BadgeCountTypeOption = 'unseen' | 'unread' | 'all' | undefined; | ||
declare function __VLS_template(): { | ||
slots: { | ||
default?(_: {}): any; | ||
}; | ||
refs: {}; | ||
attrs: Partial<{}>; | ||
default?(_: {}): any; | ||
}; | ||
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; | ||
declare const __VLS_component: import('vue').DefineComponent<UnseenBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UnseenBadgeProps> & Readonly<{}>, { | ||
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UnseenBadgeProps>, { | ||
badgeCountType: string; | ||
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UnseenBadgeProps>, { | ||
badgeCountType: string; | ||
}>>> & Readonly<{}>, { | ||
badgeCountType: "all" | "unseen" | "unread"; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; | ||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; | ||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; | ||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; | ||
export default _default; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToRuntimeProps<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; | ||
type __VLS_WithTemplateSlots<T, S> = T & { | ||
@@ -20,0 +36,0 @@ new (): { |
import { default as Knock, KnockOptions } from '@knocklabs/client'; | ||
import { Ref } from 'vue'; | ||
/** | ||
@@ -4,0 +5,0 @@ * Creates an authenticated Knock client. |
import { Feed } from '@knocklabs/client'; | ||
import { Ref } from 'vue'; | ||
export type FeedSettings = { | ||
@@ -4,0 +5,0 @@ features: { |
import { KnockFeedVueClient } from '../index.js'; | ||
export default function useKnockFeed(): KnockFeedVueClient; |
import { default as Knock, Feed, FeedClientOptions } from '@knocklabs/client'; | ||
import { Ref } from 'vue'; | ||
/** | ||
@@ -4,0 +5,0 @@ * Creates a Feed instance for the provided Knock client which creates a |
import { InjectionKey } from 'vue'; | ||
import { KnockFeedVueClient } from './types.js'; | ||
export declare const DEFAULT_TOAST_DURATION = 5000; | ||
@@ -4,0 +5,0 @@ export declare const TOAST_ON_CLICK_DURATION = 300; |
import { default as Knock, Feed, FeedItem, FeedStoreState as KnockFeedStoreState } from '@knocklabs/client'; | ||
import { Ref } from 'vue'; | ||
import { EventName } from './constants'; | ||
export type ColorModes = 'light' | 'dark'; | ||
@@ -5,0 +6,0 @@ export type FeedStoreState = Pick<KnockFeedStoreState, 'items' | 'metadata' | 'pageInfo' | 'loading' | 'networkStatus'>; |
import { FeedItem } from '@knocklabs/client'; | ||
declare const _default: { | ||
@@ -3,0 +4,0 @@ (): FeedItem<GenericData>; |
import { FeedItem } from '@knocklabs/client'; | ||
declare const _default: { | ||
@@ -3,0 +4,0 @@ (): FeedItem<GenericData>; |
import { FeedItem } from '@knocklabs/client'; | ||
export declare const generateMessage: (overrides?: Partial<FeedItem>) => FeedItem; | ||
@@ -3,0 +4,0 @@ declare const _default: { |
import { FeedItem } from '@knocklabs/client'; | ||
declare const _default: { | ||
@@ -3,0 +4,0 @@ (): FeedItem<GenericData>; |
import { FeedItem } from '@knocklabs/client'; | ||
declare const _default: { | ||
@@ -3,0 +4,0 @@ (): FeedItem<GenericData>; |
import { RenderOptions } from '@testing-library/vue'; | ||
import { Component, ComponentOptions } from 'vue'; | ||
export type CustomRenderOptions = RenderOptions<ComponentOptions>; | ||
@@ -4,0 +5,0 @@ export declare const customRender: (component: Component, { global, ...options }?: CustomRenderOptions) => { |
{ | ||
"name": "@leaflink/vue-notification-feed", | ||
"version": "0.0.0-PR-106--28b8d51", | ||
"version": "0.0.0-PR-107--004a447", | ||
"description": "A set of components for integrating Knock in-app notifications into a Vue application.", | ||
@@ -62,3 +62,3 @@ "type": "module", | ||
"devDependencies": { | ||
"@faker-js/faker": "^8.4.1", | ||
"@faker-js/faker": "^9.0.3", | ||
"@leaflink/dom-testing-utils": "^5.1.0", | ||
@@ -92,3 +92,3 @@ "@leaflink/stash": "^46.5.0", | ||
"vite": "^5.2.12", | ||
"vite-plugin-dts": "^4.2.2", | ||
"vite-plugin-dts": "^3.9.1", | ||
"vitepress": "1.2.2", | ||
@@ -95,0 +95,0 @@ "vitest": "^1.6.0", |
365715
3.63%8280
4.51%