{"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"lib/classes/weavy-app-component.ts","declarations":[{"kind":"variable","name":"UnknownApp","type":{"text":"UnknownAppType"},"default":"\"unknown\""},{"kind":"class","description":"Base class for exposed/public weavy components. This class provides common external properties and internal data provided as contexts for sub components.","name":"WeavyAppComponent","members":[{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data."},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property."},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state."},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component."},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid"},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]"},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid"},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid"},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private"},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private"},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name"},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory"},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`."},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write."},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked."},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)"},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })"},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })"},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)"},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()"},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid"},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid"},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid"},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name"},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory"},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyTypeComponent","module":"/lib/classes/weavy-type-component"},"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}]}],"exports":[{"kind":"js","name":"UnknownApp","declaration":{"name":"UnknownApp","module":"lib/classes/weavy-app-component.ts"}},{"kind":"js","name":"WeavyAppComponent","declaration":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}}]},{"kind":"javascript-module","path":"lib/classes/weavy-component.ts","declarations":[{"kind":"class","description":"Base class for exposed/public weavy components. This class provides common external properties and internal data provided as contexts for sub components.","name":"WeavyComponent","members":[{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context."},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context."},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })"},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })"},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })"},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })"},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component."},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)"}],"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered."}],"superclass":{"name":"LitElement","package":"lit"},"customElement":true}],"exports":[{"kind":"js","name":"WeavyComponent","declaration":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}]},{"kind":"javascript-module","path":"lib/classes/weavy-optional-app-component.ts","declarations":[{"kind":"class","description":"Base class for exposed/public weavy components. This class provides common external properties and internal data provided as contexts for sub components.","name":"WeavyOptionalAppComponent","members":[{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"The appType is always \"unknown\" for optional apps, since the app will be fetched from the server.","default":"UnknownApp","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"attributes":[{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}]}],"exports":[{"kind":"js","name":"WeavyOptionalAppComponent","declaration":{"name":"WeavyOptionalAppComponent","module":"lib/classes/weavy-optional-app-component.ts"}}]},{"kind":"javascript-module","path":"lib/classes/weavy-sub-app-component.ts","declarations":[{"kind":"class","description":"","name":"WeavySubAppComponent","members":[{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data."},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data."},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })"},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })"},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubTypeComponent","module":"/lib/classes/weavy-sub-type-component"},"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]}],"exports":[{"kind":"js","name":"WeavySubAppComponent","declaration":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}}]},{"kind":"javascript-module","path":"lib/classes/weavy-sub-component.ts","declarations":[{"kind":"class","description":"Base class for internal weavy sub components. This class provides common properties and internal data consumed from contexts.","name":"WeavySubComponent","members":[{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })"},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })"},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })"},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })"},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component."}],"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered."}],"superclass":{"name":"LitElement","package":"lit"},"customElement":true}],"exports":[{"kind":"js","name":"WeavySubComponent","declaration":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]},{"kind":"javascript-module","path":"lib/classes/weavy-sub-type-component.ts","declarations":[{"kind":"class","description":"","name":"WeavySubTypeComponent","members":[{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted."},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })"},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })"},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })"},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })"},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]}],"exports":[{"kind":"js","name":"WeavySubTypeComponent","declaration":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}}]},{"kind":"javascript-module","path":"lib/classes/weavy-type-component.ts","declarations":[{"kind":"class","description":"Base class for exposed/public weavy components. This class provides common external properties and internal data provided as contexts for sub components.","name":"WeavyTypeComponent","members":[{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link"},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link"},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page."},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component."},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features"},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent"},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData"},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations"},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend"},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions"},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })"},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })"},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })"},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })"},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()"},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)"},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)"},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link"},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features"},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent"},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData"},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations"},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend"},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions"}],"superclass":{"name":"WeavyComponent","module":"/lib/classes/weavy-component"},"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}]},{"kind":"variable","name":"AppTypeGuids","default":"new Map(objectAsIterable<typeof AppTypeGuidMapping, AppTypeString>(AppTypeGuidMapping))","description":"Map for all app type guids. Returns app type string."},{"kind":"variable","name":"AppTypeStrings","default":"new Map(objectAsIterable<typeof AppTypeStringMapping, AppTypeGuid>(AppTypeStringMapping))","description":"Map for all app type strings. Returns app type guid."},{"kind":"variable","name":"AgentAppTypeGuids","default":"new Map(Object.entries(AgentAppTypeGuidMapping))","description":"Map for all agent app type guids. Returns app type string."},{"kind":"variable","name":"AgentAppTypeStrings","default":"new Map(Object.entries(AgentAppTypeStringMapping))","description":"Map for all agent app type strings. Returns app type guid."}],"exports":[{"kind":"js","name":"WeavyTypeComponent","declaration":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"js","name":"AppTypeGuids","declaration":{"name":"AppTypeGuids","module":"lib/classes/weavy-type-component.ts"}},{"kind":"js","name":"AppTypeStrings","declaration":{"name":"AppTypeStrings","module":"lib/classes/weavy-type-component.ts"}},{"kind":"js","name":"AgentAppTypeGuids","declaration":{"name":"AgentAppTypeGuids","module":"lib/classes/weavy-type-component.ts"}},{"kind":"js","name":"AgentAppTypeStrings","declaration":{"name":"AgentAppTypeStrings","module":"lib/classes/weavy-type-component.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-avatar.ts","declarations":[{"kind":"class","description":"Base component to render an avatar. If no `src` is provided, it uses `name` to construct an avatar from initials.\n\n**Used sub components**\n\n- [`<wy-presence>`](./wy-presence.ts)\n- [`<wy-icon>`](./wy-icon.ts)","name":"WyAvatar","cssParts":[{"description":"The avatar component itself.","name":"wy-avatar"},{"description":"The general styling shape for the avatar.","name":"wy-avatar-shape"},{"description":"Any provided avatar image.","name":"wy-avatar-img"},{"description":"Avatar initials when no avatar image is provided.","name":"wy-avatar-initials"},{"description":"The text for avatar initials.","name":"wy-avatar-initials-text"},{"description":"Type overlay icon.","name":"wy-avatar-type-icon"},{"description":"Presence indicator.","name":"wy-avatar-presence"},{"description":"Masking for presence indicator.","name":"wy-presence-mask"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"size","type":{"text":"number"},"default":"32","description":"The size of the avatar in pixels. The pixels are translated to rem size with a base of 16px/rem.","attribute":"size"},{"kind":"field","name":"src","type":{"text":"string | undefined"},"default":"\"\"","description":"Source URL string for the avatar image.","attribute":"src"},{"kind":"field","name":"name","type":{"text":"string | undefined"},"default":"\"\"","description":"Name for the avatar. Used as title and for generating initials when `src` is not provided.","attribute":"name"},{"kind":"field","name":"description","type":{"text":"string | undefined"},"default":"\"\"","description":"Description for the avatar. This is appended to the title.","attribute":"description"},{"kind":"field","name":"isAgent","type":{"text":"boolean | undefined"},"default":"false","description":"Whether the avatar represents an agent.","attribute":"isAgent","reflects":true},{"kind":"field","name":"presence","type":{"text":"PresenceType | undefined"},"description":"Presence status for the avatar.","attribute":"presence"}],"attributes":[{"name":"size","type":{"text":"number"},"default":"32","description":"The size of the avatar in pixels. The pixels are translated to rem size with a base of 16px/rem.","fieldName":"size"},{"name":"src","type":{"text":"string | undefined"},"default":"\"\"","description":"Source URL string for the avatar image.","fieldName":"src"},{"name":"name","type":{"text":"string | undefined"},"default":"\"\"","description":"Name for the avatar. Used as title and for generating initials when `src` is not provided.","fieldName":"name"},{"name":"description","type":{"text":"string | undefined"},"default":"\"\"","description":"Description for the avatar. This is appended to the title.","fieldName":"description"},{"name":"isAgent","type":{"text":"boolean | undefined"},"default":"false","description":"Whether the avatar represents an agent.","fieldName":"isAgent"},{"name":"presence","type":{"text":"PresenceType | undefined"},"description":"Presence status for the avatar.","fieldName":"presence"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-avatar","customElement":true},{"kind":"class","description":"Group of two or more avatars displayed together.\n\n## Used sub components\n\n- [`<wy-avatar>`](./wy-avatar.ts)","name":"WyAvatarGroup","cssParts":[{"description":"The avatar in the back","name":"wy-avatar-back"},{"description":"The avatar in the front","name":"wy-avatar-front"},{"description":"Background for the back avatar mask.","name":"wy-avatar-back-mask-bg"},{"description":"Cutout mask for the back avatar.","name":"wy-avatar-back-mask"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"size","type":{"text":"number"},"default":"32","description":"The overall size of the avatar group","attribute":"size"},{"kind":"field","name":"members","type":{"text":"MemberType[] | undefined"},"description":"Array of members that can be shown."},{"kind":"field","name":"uniqueId","privacy":"protected","default":"`wy-avatar-${S4()}`"}],"attributes":[{"name":"size","type":{"text":"number"},"default":"32","description":"The overall size of the avatar group","fieldName":"size"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-avatar-group","customElement":true},{"kind":"class","description":"Wrapper for displaying a description under an avatar.","name":"WyAvatarHeader","cssParts":[{"description":"The avatar header component itself","name":"wy-avatar-header"},{"name":"wy-avatar-description"}],"slots":[{"description":"slot for any avatar to display.","name":"Standard"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"description","type":{"text":"string | undefined"},"description":"Any description to display.","attribute":"description"}],"attributes":[{"name":"description","type":{"text":"string | undefined"},"description":"Any description to display.","fieldName":"description"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-avatar-header","customElement":true}],"exports":[{"kind":"js","name":"WyAvatar","declaration":{"name":"WyAvatar","module":"lib/components/ui/wy-avatar.ts"}},{"kind":"custom-element-definition","name":"wy-avatar","declaration":{"name":"WyAvatar","module":"lib/components/ui/wy-avatar.ts"}},{"kind":"js","name":"WyAvatarGroup","declaration":{"name":"WyAvatarGroup","module":"lib/components/ui/wy-avatar.ts"}},{"kind":"custom-element-definition","name":"wy-avatar-group","declaration":{"name":"WyAvatarGroup","module":"lib/components/ui/wy-avatar.ts"}},{"kind":"js","name":"WyAvatarHeader","declaration":{"name":"WyAvatarHeader","module":"lib/components/ui/wy-avatar.ts"}},{"kind":"custom-element-definition","name":"wy-avatar-header","declaration":{"name":"WyAvatarHeader","module":"lib/components/ui/wy-avatar.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-badge.ts","declarations":[{"kind":"class","description":"Small badge component showing a count, a text label or a generic dot indicator.\n\nThe badge kind is decided from the text content of the element:\n\n- Empty, whitespace or `0` renders nothing, so `<wy-badge>${unread}</wy-badge>` hides itself when there is nothing unread.\n- A whole number renders a count badge, truncated to `limit` (`100` → `99+`).\n- Any other text renders a text badge, truncated with an ellipsis at `--wy-badge-max-width`.\n- The `dot` attribute renders a generic dot indicator. The content remains available to assistive technology.\n\nHover text is only shown when an explicit `title` is provided.\n\nThe `color` attribute picks the color pair. The default is the primary pair, which draws attention, such as an\nunread count. `variant` is the muted secondary-container pair for a count that is information rather than a call to\naction, such as the votes on a poll option.\n\n## Examples\n\n<figure class=\"example\"><figcaption>Count, text and dot badges</figcaption>\n\n```html\n<wy-badge>3</wy-badge>\n<wy-badge>Draft</wy-badge>\n<wy-badge title=\"You have a draft\">Draft</wy-badge>\n<wy-badge dot>New messages</wy-badge>\n<wy-badge color=\"variant\">12</wy-badge>\n```\n\n</figure>","name":"WyBadge","cssParts":[{"description":"Root badge container.","name":"wy-badge"},{"description":"Modifier for the muted `variant` color.","name":"wy-badge-variant"},{"description":"Modifier styles for revealing the badge.","name":"wy-badge-reveal"},{"description":"Modifier styles for delaying the reveal.","name":"wy-badge-reveal-delayed"},{"description":"Modifier when a count is displayed.","name":"wy-badge-count"},{"description":"Modifier when a text label is displayed.","name":"wy-badge-text"},{"description":"Modifier when the dot indicator is displayed.","name":"wy-badge-dot"},{"description":"Visually hidden label inside a dot badge.","name":"wy-badge-label"},{"description":"Modifier for using absolute positioning.","name":"wy-badge-positioned"},{"description":"Modifier for positioning in top right corner with `wy-badge-positioned`.","name":"wy-badge-top-right"},{"description":"Modifier for positioning in top left corner with `wy-badge-positioned`.","name":"wy-badge-top-left"},{"description":"Modifier for positioning in bottom right corner with `wy-badge-positioned`.","name":"wy-badge-bottom-right"},{"description":"Modifier for positioning in bottom left corner with `wy-badge-positioned`.","name":"wy-badge-bottom-left"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"dot","type":{"text":"boolean"},"default":"false","description":"Show a generic dot indicator instead of the content.","attribute":"dot","reflects":true},{"kind":"field","name":"position","type":{"text":"PositionType"},"default":"\"inline\"","description":"Positioning of the badge","attribute":"position"},{"kind":"field","name":"color","type":{"text":"\"primary\" | \"variant\""},"default":"\"primary\"","description":"Color pair of the badge: `primary` (default) or the muted `variant`.","attribute":"color"},{"kind":"field","name":"reveal","type":{"text":"boolean"},"default":"false","description":"Whether to animate showing the badge","attribute":"reveal"},{"kind":"field","name":"delayed","type":{"text":"boolean"},"default":"false","description":"Whether to delay showing the badge","attribute":"delayed"},{"kind":"field","name":"limit","type":{"text":"number"},"default":"99","description":"Limit for count truncation. Set to Infinity for no truncation.","attribute":"limit"},{"kind":"field","name":"title","type":{"text":"string"},"default":"\"\"","description":"Optional hover text. No tooltip is shown unless explicitly provided.","attribute":"title"},{"kind":"field","name":"content","type":{"text":"string"},"privacy":"protected","default":"\"\"","description":"Trimmed text content of the element."},{"kind":"field","name":"#observer","privacy":"private","default":"new MutationObserver(() => this.#readContent())"},{"kind":"method","name":"#readContent","privacy":"private"}],"attributes":[{"name":"dot","type":{"text":"boolean"},"default":"false","description":"Show a generic dot indicator instead of the content.","fieldName":"dot"},{"name":"position","type":{"text":"PositionType"},"default":"\"inline\"","description":"Positioning of the badge","fieldName":"position"},{"name":"color","type":{"text":"\"primary\" | \"variant\""},"default":"\"primary\"","description":"Color pair of the badge: `primary` (default) or the muted `variant`.","fieldName":"color"},{"name":"reveal","type":{"text":"boolean"},"default":"false","description":"Whether to animate showing the badge","fieldName":"reveal"},{"name":"delayed","type":{"text":"boolean"},"default":"false","description":"Whether to delay showing the badge","fieldName":"delayed"},{"name":"limit","type":{"text":"number"},"default":"99","description":"Limit for count truncation. Set to Infinity for no truncation.","fieldName":"limit"},{"name":"title","type":{"text":"string"},"default":"\"\"","description":"Optional hover text. No tooltip is shown unless explicitly provided.","fieldName":"title"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-badge","customElement":true}],"exports":[{"kind":"js","name":"WyBadge","declaration":{"name":"WyBadge","module":"lib/components/ui/wy-badge.ts"}},{"kind":"custom-element-definition","name":"wy-badge","declaration":{"name":"WyBadge","module":"lib/components/ui/wy-badge.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-button.ts","declarations":[{"kind":"class","description":"Button component. Handles both slotted icon and text children. Can be configured with various appearances.","name":"WyButton","cssParts":[{"name":"wy-button"},{"description":"When `active` state.","name":"wy-active"},{"description":"When `disabled` state.","name":"wy-disabled"},{"description":"When `kind` is `inline`.","name":"wy-button-inline"},{"description":"When `kind` is `icon`.","name":"wy-button-icon"},{"description":"When `kind` is `icon-inline`.","name":"wy-button-icon-inline"},{"description":"When `kind` is `link`.","name":"wy-button-link"},{"description":"when `color` is `primary`.","name":"wy-button-primary"},{"description":"When `color` is `primary-text`.","name":"wy-button-primary-text"},{"description":"When `color` is `inherit`.","name":"wy-button-inherit-color"},{"description":"When `color` is `none`.","name":"wy-button-no-color"},{"description":"When `color` is `variant`.","name":"wy-button-variant"},{"description":"When `type` is `submit`.","name":"wy-button-type-submit"},{"description":"When `type` is `reset`.","name":"wy-button-type-reset\""},{"description":"When the button has a state layer.","name":"wy-button-state-layer"},{"description":"When the button is small.","name":"wy-button-sm"},{"description":"When `kind` is `tab`.","name":"wy-tab"},{"description":"When `kind` is `tab` and button is small,","name":"wy-tab-sm"}],"slots":[{"description":"Default slot for icons and text.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this, false)"},{"kind":"field","name":"type","type":{"text":"\"submit\" | \"reset\" | undefined"},"description":"Optional type role for use in forms.","attribute":"type"},{"kind":"field","name":"kind","type":{"text":"\"filled\" | \"inline\" | \"icon\" | \"icon-inline\" | \"link\" | \"tab\" | undefined"},"default":"\"filled\"","description":"Button kind which sets the appearance.","attribute":"kind"},{"kind":"field","name":"active","type":{"text":"boolean | undefined"},"default":"false","description":"Sets active state of the button.","attribute":"active"},{"kind":"field","name":"color","type":{"text":"\"primary\" | \"variant\" | \"primary-text\" | \"inherit\" | \"none\" | undefined"},"description":"Color token name.","attribute":"color"},{"kind":"field","name":"small","type":{"text":"boolean | undefined"},"default":"false","description":"Smaller size button.","attribute":"small"},{"kind":"field","name":"disabled","type":{"text":"boolean | undefined"},"default":"false","description":"Sets disabled state of the button.","attribute":"disabled","reflects":true},{"kind":"field","name":"href","type":{"text":"string | undefined"},"description":"Optional href attribute to render the button using `<a>`.","attribute":"href"},{"kind":"field","name":"target","type":{"text":"string | undefined"},"description":"Optional target window when using the `href` attribute.","attribute":"target"},{"kind":"field","name":"download","type":{"text":"string | undefined"},"description":"Optional download attribute when using the `href` attribute.","attribute":"download"}],"attributes":[{"name":"type","type":{"text":"\"submit\" | \"reset\" | undefined"},"description":"Optional type role for use in forms.","fieldName":"type"},{"name":"kind","type":{"text":"\"filled\" | \"inline\" | \"icon\" | \"icon-inline\" | \"link\" | \"tab\" | undefined"},"default":"\"filled\"","description":"Button kind which sets the appearance.","fieldName":"kind"},{"name":"active","type":{"text":"boolean | undefined"},"default":"false","description":"Sets active state of the button.","fieldName":"active"},{"name":"color","type":{"text":"\"primary\" | \"variant\" | \"primary-text\" | \"inherit\" | \"none\" | undefined"},"description":"Color token name.","fieldName":"color"},{"name":"small","type":{"text":"boolean | undefined"},"default":"false","description":"Smaller size button.","fieldName":"small"},{"name":"disabled","type":{"text":"boolean | undefined"},"default":"false","description":"Sets disabled state of the button.","fieldName":"disabled"},{"name":"href","type":{"text":"string | undefined"},"description":"Optional href attribute to render the button using `<a>`.","fieldName":"href"},{"name":"target","type":{"text":"string | undefined"},"description":"Optional target window when using the `href` attribute.","fieldName":"target"},{"name":"download","type":{"text":"string | undefined"},"description":"Optional download attribute when using the `href` attribute.","fieldName":"download"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-button","customElement":true},{"kind":"class","description":"Button group. Provides layout and styling.","name":"WyButtons","cssParts":[{"description":"Regular button group","name":"wy-buttons"},{"description":"When button order is reversed.","name":"wy-buttons-reverse"},{"description":"Tab style button group.","name":"wy-tabs"},{"description":"Floating positioning of the group.","name":"wy-buttons-floating"},{"description":"Sticky positioning of the group.","name":"wy-buttons-sticky"}],"slots":[{"description":"Default slot for buttons.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"tabs","type":{"text":"boolean"},"default":"false","description":"Display the buttons as tabs.","attribute":"tabs"},{"kind":"field","name":"position","type":{"text":"\"normal\" | \"floating\" | \"sticky\""},"default":"\"normal\"","description":"Button group positioning.","attribute":"position"},{"kind":"field","name":"reverse","type":{"text":"boolean"},"default":"false","description":"Reverse the order of the buttons.","attribute":"reverse"}],"attributes":[{"name":"tabs","type":{"text":"boolean"},"default":"false","description":"Display the buttons as tabs.","fieldName":"tabs"},{"name":"position","type":{"text":"\"normal\" | \"floating\" | \"sticky\""},"default":"\"normal\"","description":"Button group positioning.","fieldName":"position"},{"name":"reverse","type":{"text":"boolean"},"default":"false","description":"Reverse the order of the buttons.","fieldName":"reverse"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-buttons","customElement":true}],"exports":[{"kind":"js","name":"WyButton","declaration":{"name":"WyButton","module":"lib/components/ui/wy-button.ts"}},{"kind":"custom-element-definition","name":"wy-button","declaration":{"name":"WyButton","module":"lib/components/ui/wy-button.ts"}},{"kind":"js","name":"WyButtons","declaration":{"name":"WyButtons","module":"lib/components/ui/wy-button.ts"}},{"kind":"custom-element-definition","name":"wy-buttons","declaration":{"name":"WyButtons","module":"lib/components/ui/wy-button.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-container.ts","declarations":[{"kind":"class","description":"Container for content.\n\nCan have positioning, scrolling and padding.","name":"WyContainer","cssParts":[{"description":"Content wrapper with flex and positioning.","name":"wy-container"},{"description":"Padded content.","name":"wy-container-padded"},{"description":"Using outer styling.","name":"wy-container-outer"},{"description":"Horizontally scrollable content.","name":"wy-scroll-x"},{"description":"Vertically scrollable content.","name":"wy-scroll-y"},{"description":"Both horizontally and vertically scrollable content.","name":"wy-scroll-x-y"},{"description":"Modifier for always showing horizontal scrollbar.","name":"wy-scroll-x-always"},{"description":"Modifier for always showing vertical scrollbar.","name":"wy-scroll-y-always"}],"slots":[{"description":"Content.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"scrollX","type":{"text":"boolean"},"default":"false","description":"Whether to scroll horizontally","attribute":"scrollX"},{"kind":"field","name":"scrollY","type":{"text":"boolean"},"default":"false","description":"Whether to scroll vertically","attribute":"scrollY"},{"kind":"field","name":"padded","type":{"text":"boolean"},"default":"false","description":"Add padding in the area","attribute":"padded"},{"kind":"field","name":"outer","type":{"text":"boolean"},"default":"false","description":"Add outer padding in the area","attribute":"outer"},{"kind":"field","name":"scrollbars","type":{"text":"boolean"},"default":"false","description":"Always show scrollbars when scroll is enabled","attribute":"scrollbars"},{"kind":"field","name":"gap","type":{"text":"\"md\" | \"lg\" | \"xl\""},"default":"\"md\"","description":"The gap between items in the container","attribute":"gap"},{"kind":"field","name":"fill","type":{"text":"boolean"},"default":"false","description":"Whether the container should fill it's parent","attribute":"fill"},{"kind":"field","name":"overflow","type":{"text":"boolean"},"default":"false","description":"Whether the container should overflow it's minimum size","attribute":"overflow"},{"kind":"field","name":"direction","type":{"text":"\"vertical\" | \"horizontal\" | \"auto\""},"default":"\"vertical\"","description":"Flex layout direction. \"auto\" is responsive to what fits better.","attribute":"direction"}],"attributes":[{"name":"scrollX","type":{"text":"boolean"},"default":"false","description":"Whether to scroll horizontally","fieldName":"scrollX"},{"name":"scrollY","type":{"text":"boolean"},"default":"false","description":"Whether to scroll vertically","fieldName":"scrollY"},{"name":"padded","type":{"text":"boolean"},"default":"false","description":"Add padding in the area","fieldName":"padded"},{"name":"outer","type":{"text":"boolean"},"default":"false","description":"Add outer padding in the area","fieldName":"outer"},{"name":"scrollbars","type":{"text":"boolean"},"default":"false","description":"Always show scrollbars when scroll is enabled","fieldName":"scrollbars"},{"name":"gap","type":{"text":"\"md\" | \"lg\" | \"xl\""},"default":"\"md\"","description":"The gap between items in the container","fieldName":"gap"},{"name":"fill","type":{"text":"boolean"},"default":"false","description":"Whether the container should fill it's parent","fieldName":"fill"},{"name":"overflow","type":{"text":"boolean"},"default":"false","description":"Whether the container should overflow it's minimum size","fieldName":"overflow"},{"name":"direction","type":{"text":"\"vertical\" | \"horizontal\" | \"auto\""},"default":"\"vertical\"","description":"Flex layout direction. \"auto\" is responsive to what fits better.","fieldName":"direction"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-container","customElement":true}],"exports":[{"kind":"js","name":"WyContainer","declaration":{"name":"WyContainer","module":"lib/components/ui/wy-container.ts"}},{"kind":"custom-element-definition","name":"wy-container","declaration":{"name":"WyContainer","module":"lib/components/ui/wy-container.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-dropdown.ts","declarations":[{"kind":"class","description":"Dropdown button with menu.\n\nUses the native Popover API.\nSee [MDN: Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API).\n\n**Used sub components**\n\n- [`<wy-button>`](./wy-button.ts)\n- [`<wy-icon>`](./wy-icon.ts)","name":"WyDropdown","cssParts":[{"description":"Wrapper for the dropdown","name":"wy-dropdown"},{"description":"Container for the dropdown button.","name":"wy-dropdown-button-container"},{"description":"The button for the dropdown.","name":"wy-dropdown-button"},{"description":"The icon for the dropdown button.","name":"wy-dropdown-button-icon"},{"description":"The menu for the dropdown.","name":"wy-dropdown-menu"}],"slots":[{"description":"Default menu items.","name":""},{"description":"The dropdown button content.","name":"button-content"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"directionX","type":{"text":"\"left\" | \"right\""},"default":"\"right\"","description":"Horizontal direction of the menu.","attribute":"directionX"},{"kind":"field","name":"directionY","type":{"text":"\"up\" | \"down\""},"default":"\"down\"","description":"Vertical direction of the menu.","attribute":"directionY"},{"kind":"field","name":"icon","type":{"text":"iconNamesType"},"default":"\"dots-vertical\"","description":"Name of the icon for the dropdown button.","attribute":"icon"},{"kind":"field","name":"small","type":{"text":"boolean"},"default":"false","description":"Smaller dropdown button.","attribute":"small"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Set disabled state.","attribute":"disabled"},{"kind":"field","name":"active","type":{"text":"boolean | undefined"},"description":"Overrides the highlight state of the dropdown button.","attribute":"active"},{"kind":"field","name":"showMenu","type":{"text":"boolean"},"default":"false","description":"Is the menu shown?"},{"kind":"field","name":"buttonRef","type":{"text":"Ref<Element>"},"privacy":"private"},{"kind":"field","name":"menuRef","type":{"text":"Ref<HTMLSlotElement>"},"privacy":"private"},{"kind":"field","name":"_documentClickHandler","privacy":"private"},{"kind":"method","name":"handleClose","privacy":"private","parameters":[{"name":"e","type":{"text":"ToggleEvent"}}]},{"kind":"method","name":"handleClickToggle","privacy":"private","parameters":[{"name":"e","type":{"text":"Event"}}]}],"events":[{"name":"close","type":{"text":"CustomEvent"}}],"attributes":[{"name":"directionX","type":{"text":"\"left\" | \"right\""},"default":"\"right\"","description":"Horizontal direction of the menu.","fieldName":"directionX"},{"name":"directionY","type":{"text":"\"up\" | \"down\""},"default":"\"down\"","description":"Vertical direction of the menu.","fieldName":"directionY"},{"name":"icon","type":{"text":"iconNamesType"},"default":"\"dots-vertical\"","description":"Name of the icon for the dropdown button.","fieldName":"icon"},{"name":"small","type":{"text":"boolean"},"default":"false","description":"Smaller dropdown button.","fieldName":"small"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Set disabled state.","fieldName":"disabled"},{"name":"active","type":{"text":"boolean | undefined"},"description":"Overrides the highlight state of the dropdown button.","fieldName":"active"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-dropdown","customElement":true},{"kind":"class","description":"Item with text and optional icon for the dropdown menu.","name":"WyDropdownItem","cssParts":[{"description":"The container for the dropdown item.","name":"wy-dropdown-item"},{"description":"Active state for the dropdown item.","name":"wy-active"},{"description":"Disabled state for the dropdown item.","name":"wy-disabled"}],"slots":[{"description":"Default slot for icon and text.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"active","type":{"text":"boolean"},"default":"false","description":"Sets the state to active.","attribute":"active"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables interactions.","attribute":"disabled"}],"attributes":[{"name":"active","type":{"text":"boolean"},"default":"false","description":"Sets the state to active.","fieldName":"active"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables interactions.","fieldName":"disabled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-dropdown-item","customElement":true},{"kind":"class","description":"Item with a selected state icon for the dropdown menu.\n\nDefaults to a check mark as selected icon.\n\n## Used sub components\n\n- [`<wy-icon>`](./wy-icon)","name":"WyDropdownOption","cssParts":[{"description":"The container for the dropdown item.","name":"wy-dropdown-item"},{"description":"Option styling for the dropdown item.","name":"wy-dropdown-option"},{"description":"The icon for the dropdown option.","name":"wy-dropdown-option-icon"},{"description":"Active state for the dropdown item.","name":"wy-active"},{"description":"State when the dropdown item is the currently selected option.","name":"wy-selected"}],"slots":[{"description":"Default slot for text.","name":""},{"description":"Slot for selected icon.","name":"icon"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"active","type":{"text":"boolean"},"default":"false","description":"Sets the active state for the item.","attribute":"active"},{"kind":"field","name":"selected","type":{"text":"boolean"},"default":"false","description":"Sets selected state for the item. This shows the icon.","attribute":"selected"}],"attributes":[{"name":"active","type":{"text":"boolean"},"default":"false","description":"Sets the active state for the item.","fieldName":"active"},{"name":"selected","type":{"text":"boolean"},"default":"false","description":"Sets selected state for the item. This shows the icon.","fieldName":"selected"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-dropdown-option","customElement":true},{"kind":"class","description":"Horizontal dropdown item divider.","name":"WyDropdownDivider","cssParts":[{"description":"Horizontal ruler.","name":"wy-dropdown-divider"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-dropdown-divider","customElement":true}],"exports":[{"kind":"js","name":"WyDropdown","declaration":{"name":"WyDropdown","module":"lib/components/ui/wy-dropdown.ts"}},{"kind":"custom-element-definition","name":"wy-dropdown","declaration":{"name":"WyDropdown","module":"lib/components/ui/wy-dropdown.ts"}},{"kind":"js","name":"WyDropdownItem","declaration":{"name":"WyDropdownItem","module":"lib/components/ui/wy-dropdown.ts"}},{"kind":"custom-element-definition","name":"wy-dropdown-item","declaration":{"name":"WyDropdownItem","module":"lib/components/ui/wy-dropdown.ts"}},{"kind":"js","name":"WyDropdownOption","declaration":{"name":"WyDropdownOption","module":"lib/components/ui/wy-dropdown.ts"}},{"kind":"custom-element-definition","name":"wy-dropdown-option","declaration":{"name":"WyDropdownOption","module":"lib/components/ui/wy-dropdown.ts"}},{"kind":"js","name":"WyDropdownDivider","declaration":{"name":"WyDropdownDivider","module":"lib/components/ui/wy-dropdown.ts"}},{"kind":"custom-element-definition","name":"wy-dropdown-divider","declaration":{"name":"WyDropdownDivider","module":"lib/components/ui/wy-dropdown.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-icon.ts","declarations":[{"kind":"class","description":"Icon provider with optional overlay icon.\n\n**Used sub components**\n\n- [`<wy-icon-stack>`](./wy-icon.ts)","name":"WyIcon","cssParts":[{"description":"Wrapper around the icon.","name":"wy-icon-wrapper"},{"description":"SVG icon.","name":"wy-icon"},{"description":"When using inherited color for fill.","name":"wy-icon-current-color"},{"description":"Dynamic part set when using `kind` property.","name":"wy-kind-{kind}"},{"description":"Dynamic part set when using `ext` property.","name":"wy-ext-{ext}"},{"description":"Dynamic part set when using `color` property.","name":"wy-icon-color-{color}"},{"description":"When defined as `first`.","name":"wy-icon-first"},{"description":"When defined as `last`.","name":"wy-icon-last"},{"description":"When defined as `inline`.","name":"wy-icon-inline"},{"description":"When defined with `layer`.","name":"wy-icon-stack-layer"},{"description":"When defined with `state`.","name":"wy-icon-state"},{"description":"When defined as active.","name":"wy-active"}],"slots":[{"description":"Any content to display within the icon area.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"name","type":{"text":"iconNamesType | \"\" | undefined"},"description":"Name of the predefined icon to use.","attribute":"name"},{"kind":"field","name":"overlayName","type":{"text":"iconNamesType | \"\" | undefined"},"description":"Name of any overlay icon to use.","attribute":"overlayName"},{"kind":"field","name":"color","type":{"text":"string"},"default":"\"\"","description":"Color token name.\nSet to `native` to use original colors in SVG icons.","attribute":"color"},{"kind":"field","name":"size","type":{"text":"number"},"default":"24","description":"The size of the icon in pixels. The pixels are translated to rem size with a base of 16px/rem.","attribute":"size"},{"kind":"field","name":"kind","type":{"text":"FileKindType | undefined"},"description":"Kind of icon or file type.","attribute":"kind"},{"kind":"field","name":"ext","type":{"text":"string | undefined"},"description":"Any file extension. Sets what color to use for some extensions.","attribute":"ext"},{"kind":"field","name":"inline","type":{"text":"boolean"},"default":"false","description":"Adjust rendering to fit in inline layout.","attribute":"inline"},{"kind":"field","name":"first","type":{"text":"boolean"},"default":"false","description":"Adjust rendering to fit when placed first.","attribute":"first"},{"kind":"field","name":"last","type":{"text":"boolean"},"default":"false","description":"Adjust rendering to fit when placed last.","attribute":"last"},{"kind":"field","name":"layer","type":{"text":"boolean"},"default":"false","description":"Adjust rendering so that the icon is placed in an overlaying layer.","attribute":"layer"},{"kind":"field","name":"state","type":{"text":"boolean"},"default":"false","description":"Make the icon have a visible state that can be toggled by setting the `active` property.","attribute":"state"},{"kind":"field","name":"active","type":{"text":"boolean"},"default":"false","description":"Active state of the icon. Makes the icon visible when state mode is enabled.","attribute":"active"},{"kind":"field","name":"uniqueId","privacy":"protected","default":"`wy-icon-${S4()}`"}],"attributes":[{"name":"name","type":{"text":"iconNamesType | \"\" | undefined"},"description":"Name of the predefined icon to use.","fieldName":"name"},{"name":"overlayName","type":{"text":"iconNamesType | \"\" | undefined"},"description":"Name of any overlay icon to use.","fieldName":"overlayName"},{"name":"color","type":{"text":"string"},"default":"\"\"","description":"Color token name.\nSet to `native` to use original colors in SVG icons.","fieldName":"color"},{"name":"size","type":{"text":"number"},"default":"24","description":"The size of the icon in pixels. The pixels are translated to rem size with a base of 16px/rem.","fieldName":"size"},{"name":"kind","type":{"text":"FileKindType | undefined"},"description":"Kind of icon or file type.","fieldName":"kind"},{"name":"ext","type":{"text":"string | undefined"},"description":"Any file extension. Sets what color to use for some extensions.","fieldName":"ext"},{"name":"inline","type":{"text":"boolean"},"default":"false","description":"Adjust rendering to fit in inline layout.","fieldName":"inline"},{"name":"first","type":{"text":"boolean"},"default":"false","description":"Adjust rendering to fit when placed first.","fieldName":"first"},{"name":"last","type":{"text":"boolean"},"default":"false","description":"Adjust rendering to fit when placed last.","fieldName":"last"},{"name":"layer","type":{"text":"boolean"},"default":"false","description":"Adjust rendering so that the icon is placed in an overlaying layer.","fieldName":"layer"},{"name":"state","type":{"text":"boolean"},"default":"false","description":"Make the icon have a visible state that can be toggled by setting the `active` property.","fieldName":"state"},{"name":"active","type":{"text":"boolean"},"default":"false","description":"Active state of the icon. Makes the icon visible when state mode is enabled.","fieldName":"active"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-icon","customElement":true},{"kind":"class","description":"Set of stacked icons. Used for state icons or overlayed icons.","name":"WyIconStack","slots":[{"description":"Any icons to stack.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-icon-stack","customElement":true},{"kind":"class","description":"Displays a large icon with optional text and meta content.","name":"WyIconDisplay","cssParts":[{"description":"The icon container.","name":"wy-icon-display"},{"description":"The icon.","name":"wy-icon-display-icon"},{"description":"Any text.","name":"wy-icon-display-text"},{"description":"Any meta content.","name":"wy-icon-display-meta"}],"slots":[{"description":"The icon to display.","name":""},{"description":"Any text to display.","name":"text"},{"description":"Any meta content to display.","name":"meta"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"fill","type":{"text":"boolean"},"default":"false","description":"Fills the flex area.","attribute":"fill"}],"attributes":[{"name":"fill","type":{"text":"boolean"},"default":"false","description":"Fills the flex area.","fieldName":"fill"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-icon-display","customElement":true}],"exports":[{"kind":"js","name":"WyIcon","declaration":{"name":"WyIcon","module":"lib/components/ui/wy-icon.ts"}},{"kind":"custom-element-definition","name":"wy-icon","declaration":{"name":"WyIcon","module":"lib/components/ui/wy-icon.ts"}},{"kind":"js","name":"WyIconStack","declaration":{"name":"WyIconStack","module":"lib/components/ui/wy-icon.ts"}},{"kind":"custom-element-definition","name":"wy-icon-stack","declaration":{"name":"WyIconStack","module":"lib/components/ui/wy-icon.ts"}},{"kind":"js","name":"WyIconDisplay","declaration":{"name":"WyIconDisplay","module":"lib/components/ui/wy-icon.ts"}},{"kind":"custom-element-definition","name":"wy-icon-display","declaration":{"name":"WyIconDisplay","module":"lib/components/ui/wy-icon.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-image-grid.ts","declarations":[{"kind":"class","description":"Image grid with evenly layouted heights on each row.","name":"WyImageGrid","cssParts":[{"description":"The grid container.","name":"wy-image-grid"},{"description":"Modifier class for outer styling.","name":"wy-image-grid-outer"},{"description":"Image wrapper.","name":"wy-image"},{"description":"Expanding the image wrapper to the area where it's placed.","name":"wy-image-filled"},{"description":"Image wrapper in full with.","name":"wy-image-full-width"},{"description":"Area to render the image.","name":"wy-image-area"},{"description":"The image.","name":"wy-image-content"},{"description":"The image when it's an icon.","name":"wy-image-icon"},{"description":"Overlay on the last image in the limited span.","name":"wy-image-grid-more"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"images","type":{"text":"FileType[]"},"default":"[]","description":"Array of images to display. Displays an overflow graphic on the last image in the limited span."},{"kind":"field","name":"limit","type":{"text":"number"},"default":"3","description":"The maximum number of images to display. The last image will get an graphic overlay indication there is more.\n\nSet to `Infinity` to disable the limit.","attribute":"limit"},{"kind":"field","name":"outer","type":{"text":"boolean"},"default":"false","description":"Display the image grid with outer styling.","attribute":"outer","reflects":true},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEvent"},"description":"When opening a file in preview is requested.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"limit","type":{"text":"number"},"default":"3","description":"The maximum number of images to display. The last image will get an graphic overlay indication there is more.\n\nSet to `Infinity` to disable the limit.","fieldName":"limit"},{"name":"outer","type":{"text":"boolean"},"default":"false","description":"Display the image grid with outer styling.","fieldName":"outer"}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-image-grid","customElement":true}],"exports":[{"kind":"js","name":"WyImageGrid","declaration":{"name":"WyImageGrid","module":"lib/components/ui/wy-image-grid.ts"}},{"kind":"custom-element-definition","name":"wy-image-grid","declaration":{"name":"WyImageGrid","module":"lib/components/ui/wy-image-grid.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-item.ts","declarations":[{"kind":"class","description":"Item with image, content and actions.\nMay be multi-row and interactive.","name":"WyItem","cssParts":[{"description":"The component itself.","name":"wy-item"},{"description":"Inner wrapper for the item.","name":"wy-item-inner"},{"description":"Inner wrapper without padding.","name":"wy-item-inner-no-padding"},{"description":"When the item wrapper is rounded.","name":"wy-item-rounded"},{"description":"When the item wrapper is using outer roundness.","name":"wy-item-rounded-outer"},{"description":"When the item wrapper is using interactive hover states.","name":"wy-item-interactive"},{"description":"When the item wrapper is `sm` size.","name":"wy-item-sm"},{"description":"When the item wrapper is `md` size.","name":"wy-item-md"},{"description":"When the  item wrapper id `lg` size.","name":"wy-item-lg"},{"description":"When the item wrapper content has `top` alignment.","name":"wy-item-top"},{"description":"When the item wrapper content has `middle` alignment.","name":"wy-item-middle"},{"description":"When the item wrapper content has `bottom` alignment.","name":"wy-item-bottom"},{"description":"When the item wrapper has `read` status.","name":"wy-read"},{"description":"When the item wrapper has `unread` status.","name":"wy-unread"},{"description":"When the item wrapper has `selected` state.","name":"wy-selected"},{"description":"When the item wrapper has `disabled` state.","name":"wy-disabled"},{"description":"The image content section of the item wrapper. Containing the `image` slot.","name":"wy-item-image"},{"description":"The main content section of the item wrapper. Containing the `content` slot.","name":"wy-item-body"},{"description":"Row layout wrapper of the item body. Contains 1-2 layout rows.","name":"wy-item-rows"},{"description":"Layout row in the row layout wrapper.","name":"wy-item-row"},{"description":"The first (top-most) layout row.","name":"wy-item-row-first"},{"description":"Any optional second (bottom-most) layout row.","name":"wy-item-row-second"},{"description":"The title section of the first layout row. Contains the `title` slot.","name":"wy-item-title"},{"description":"Left aligned sections of a layout row.","name":"wy-item-left"},{"description":"Meta section in the end of the first layout row. Contains the `meta` slot.","name":"wy-item-meta"},{"description":"Meta styled content in the meta section.","name":"wy-meta"},{"description":"Smaller meta styled content in the meta section.","name":"wy-meta-sm"},{"description":"Text content section of the second layout row. Contains the `text` slot.","name":"wy-item-text"},{"description":"More compact styling of the text content section used when size is `auto`.","name":"wy-item-text-sm"},{"description":"Section for any actions. May be after the item body or in the end of the second layout row. Contains the `actions` slot.","name":"wy-item-actions"},{"description":"The actions section when placed in the second layout row.","name":"wy-item-actions-bottom"},{"description":"The actions sections whe align is `top`ot action align is `top`.","name":"wy-item-actions-top"}],"slots":[{"description":"The image in the start of the item. Typically an icon or avatar.","name":"image"},{"description":"The full content body. Contains `title`, `meta` and `text`.","name":"content"},{"description":"Title of the item. Placed in top row in `content`.","name":"title"},{"description":"Meta text for the item. Placed in the end of the top row in. `content`.","name":"meta"},{"description":"Secondary text. Placed in the bottom row in `content`.","name":"text"},{"description":"Actions. Typically icons, buttons or dropdowns.","name":"actions"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"size","type":{"text":"\"auto\" | \"sm\" | \"md\" | \"lg\""},"default":"\"auto\"","description":"Size of the item.\n- `auto` is dynamic height.\n- `sm` is fixed for 1 line.\n- `md` is fixed for 1-2 lines.\n- `lg` is fixed for 2-3 lines.","attribute":"size"},{"kind":"field","name":"align","type":{"text":"\"top\" | \"middle\" | \"bottom\""},"default":"\"middle\"","description":"How to align the image/content/actions.","attribute":"align"},{"kind":"field","name":"actionsPosition","type":{"text":"\"end\" | \"bottom\" | \"top\""},"default":"\"end\"","description":"How to position the actions.\n- `end` is in the middle end of the item.\n- `bottom` is in the end of the bottom line.\n- `top` is in the top end corner.","attribute":"actionsPosition"},{"kind":"field","name":"rounded","type":{"text":"boolean"},"default":"false","description":"Display the item with roundness.","attribute":"rounded","reflects":true},{"kind":"field","name":"noPadding","type":{"text":"boolean"},"default":"false","description":"Display the item without padding.","attribute":"noPadding","reflects":true},{"kind":"field","name":"outer","type":{"text":"boolean"},"default":"false","description":"Display the item using outer roundness, when placed as the outermost component.","attribute":"outer","reflects":true},{"kind":"field","name":"interactive","type":{"text":"boolean"},"default":"false","description":"Add interactive hover states, for use when the item is clickable.","attribute":"interactive","reflects":true},{"kind":"field","name":"selected","type":{"text":"boolean"},"default":"false","description":"Set the item in a selected state.","attribute":"selected","reflects":true},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Set the item in a disabled state and prevent interaction.","attribute":"disabled","reflects":true},{"kind":"field","name":"url","type":{"text":"string | undefined"},"default":"undefined","description":"Link URL for the item.","attribute":"url","reflects":true},{"kind":"field","name":"trashed","type":{"text":"boolean"},"default":"false","description":"Display the item in a state indicating that it has been trashed.","attribute":"trashed","reflects":true},{"kind":"field","name":"status","type":{"text":"\"read\" | \"unread\" | undefined"},"description":"Set the read status of the item.","attribute":"status"},{"kind":"method","name":"handleLinkClick","privacy":"private","parameters":[{"name":"e","type":{"text":"MouseEvent"}},{"description":"MouseEvent","name":"event"}],"description":"If it has an url; handles ctrl click event for the item."}],"attributes":[{"name":"size","type":{"text":"\"auto\" | \"sm\" | \"md\" | \"lg\""},"default":"\"auto\"","description":"Size of the item.\n- `auto` is dynamic height.\n- `sm` is fixed for 1 line.\n- `md` is fixed for 1-2 lines.\n- `lg` is fixed for 2-3 lines.","fieldName":"size"},{"name":"align","type":{"text":"\"top\" | \"middle\" | \"bottom\""},"default":"\"middle\"","description":"How to align the image/content/actions.","fieldName":"align"},{"name":"actionsPosition","type":{"text":"\"end\" | \"bottom\" | \"top\""},"default":"\"end\"","description":"How to position the actions.\n- `end` is in the middle end of the item.\n- `bottom` is in the end of the bottom line.\n- `top` is in the top end corner.","fieldName":"actionsPosition"},{"name":"rounded","type":{"text":"boolean"},"default":"false","description":"Display the item with roundness.","fieldName":"rounded"},{"name":"noPadding","type":{"text":"boolean"},"default":"false","description":"Display the item without padding.","fieldName":"noPadding"},{"name":"outer","type":{"text":"boolean"},"default":"false","description":"Display the item using outer roundness, when placed as the outermost component.","fieldName":"outer"},{"name":"interactive","type":{"text":"boolean"},"default":"false","description":"Add interactive hover states, for use when the item is clickable.","fieldName":"interactive"},{"name":"selected","type":{"text":"boolean"},"default":"false","description":"Set the item in a selected state.","fieldName":"selected"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Set the item in a disabled state and prevent interaction.","fieldName":"disabled"},{"name":"url","type":{"text":"string | undefined"},"default":"undefined","description":"Link URL for the item.","fieldName":"url"},{"name":"trashed","type":{"text":"boolean"},"default":"false","description":"Display the item in a state indicating that it has been trashed.","fieldName":"trashed"},{"name":"status","type":{"text":"\"read\" | \"unread\" | undefined"},"description":"Set the read status of the item.","fieldName":"status"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-item","customElement":true},{"kind":"class","description":"Item list. Provides list layout and styling for items.","name":"WyItemList","cssParts":[{"description":"Regular item list.","name":"wy-item-list"},{"description":"Border styling.","name":"wy-item-list-bordered"},{"description":"Rounded styling.","name":"wy-item-list-rounded"},{"description":"Using outer rounded styling.","name":"wy-item-list-outer"},{"description":"Using filled background.","name":"wy-item-list-filled"}],"slots":[{"description":"Default slot for items.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"outer","type":{"text":"boolean"},"default":"false","description":"Add outer roundness to the list when the component is placed as outermost component.","attribute":"outer"},{"kind":"field","name":"bordered","type":{"text":"boolean"},"default":"false","description":"Add border to the list.","attribute":"bordered"},{"kind":"field","name":"rounded","type":{"text":"boolean"},"default":"false","description":"Add roundness to the list.","attribute":"rounded"},{"kind":"field","name":"filled","type":{"text":"boolean"},"default":"false","description":"Filled background.","attribute":"filled"}],"attributes":[{"name":"outer","type":{"text":"boolean"},"default":"false","description":"Add outer roundness to the list when the component is placed as outermost component.","fieldName":"outer"},{"name":"bordered","type":{"text":"boolean"},"default":"false","description":"Add border to the list.","fieldName":"bordered"},{"name":"rounded","type":{"text":"boolean"},"default":"false","description":"Add roundness to the list.","fieldName":"rounded"},{"name":"filled","type":{"text":"boolean"},"default":"false","description":"Filled background.","fieldName":"filled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-item-list","customElement":true}],"exports":[{"kind":"js","name":"WyItem","declaration":{"name":"WyItem","module":"lib/components/ui/wy-item.ts"}},{"kind":"custom-element-definition","name":"wy-item","declaration":{"name":"WyItem","module":"lib/components/ui/wy-item.ts"}},{"kind":"js","name":"WyItemList","declaration":{"name":"WyItemList","module":"lib/components/ui/wy-item.ts"}},{"kind":"custom-element-definition","name":"wy-item-list","declaration":{"name":"WyItemList","module":"lib/components/ui/wy-item.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-overlay.ts","declarations":[{"kind":"class","description":"Modal overlay based on `<dialog>` element.\nSee [MDN: Dialog](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog).\n\nUses the native Popover API.\nSee [MDN: Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API).\n\n**Used sub components**\n\n- [`<wy-titlebar>`](./wy-titlebar.ts)\n- [`<wy-button>`](./wy-button.ts)\n- [`<wy-icon>`](./wy-icon.ts)","name":"WyOverlay","cssParts":[{"description":"Base for all dialogs.","name":"wy-dialog"},{"description":"Dialog with modal backdrop.","name":"wy-dialog-modal"},{"description":"Dialog content.","name":"wy-overlay"},{"description":"Dialog titlebar.","name":"wy-overlay-titlebar"},{"description":"Modal overlay content with full viewport size.","name":"wy-modal"},{"description":"Modal overlay with limited size in the center of the viewport.","name":"wy-modal-centered"},{"description":"Overlay in the bottom.","name":"wy-sheet"},{"description":"Overlay in the right side.","name":"wy-drawer"},{"description":"When dialog content is shown.","name":"wy-open"},{"description":"When modal is maximized size.","name":"wy-maximized"}],"slots":[{"description":"Default overlay content.","name":""},{"description":"The full header when `header' is enabled.","name":"header"},{"description":"Text in the `header`.","name":"title"},{"description":"Buttons in the `header`.","name":"actions"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"viewportRef","privacy":"private"},{"kind":"field","name":"show","type":{"text":"boolean"},"default":"true","description":"Whether the overlay should be shown.","attribute":"show","reflects":true},{"kind":"field","name":"type","type":{"text":"OverlayAppearanceType"},"default":"\"modal\"","description":"Appearance of the overlay.\n\n- \"modal\" - Centered overlay with blocked background.\n- \"modal-input\" - Centered smaller overlay with blocked background.\n- \"sheet\" - Bottom overlay without background blocking.\n- \"drawer\" - Side overlay without background blocking.\n- \"full\" - Full window overlay.\n- \"none\" - No rendering.","attribute":"type"},{"kind":"field","name":"maximized","type":{"text":"boolean"},"default":"false","description":"Maximized layout for the modal.","attribute":"maximized"},{"kind":"field","name":"noHeader","type":{"text":"boolean"},"default":"false","description":"Remove the header.","attribute":"noHeader"},{"kind":"method","name":"close","description":"Close the modal."},{"kind":"method","name":"isModal","parameters":[{"name":"type","optional":true,"type":{"text":"OverlayAppearanceType"},"description":"Optional type to check"}],"description":"Checks whether the overlay is using the modal api.","return":{"type":{"text":""}}},{"kind":"method","name":"setFocus"}],"events":[{"type":{"text":"ShownEventType"},"description":"When overlay is shown.","name":"shown"},{"type":{"text":"CloseEventType"},"description":"When overlay is closed.","name":"close"}],"attributes":[{"name":"show","type":{"text":"boolean"},"default":"true","description":"Whether the overlay should be shown.","fieldName":"show"},{"name":"type","type":{"text":"OverlayAppearanceType"},"default":"\"modal\"","description":"Appearance of the overlay.\n\n- \"modal\" - Centered overlay with blocked background.\n- \"modal-input\" - Centered smaller overlay with blocked background.\n- \"sheet\" - Bottom overlay without background blocking.\n- \"drawer\" - Side overlay without background blocking.\n- \"full\" - Full window overlay.\n- \"none\" - No rendering.","fieldName":"type"},{"name":"maximized","type":{"text":"boolean"},"default":"false","description":"Maximized layout for the modal.","fieldName":"maximized"},{"name":"noHeader","type":{"text":"boolean"},"default":"false","description":"Remove the header.","fieldName":"noHeader"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-overlay","customElement":true}],"exports":[{"kind":"js","name":"WyOverlay","declaration":{"name":"WyOverlay","module":"lib/components/ui/wy-overlay.ts"}},{"kind":"custom-element-definition","name":"wy-overlay","declaration":{"name":"WyOverlay","module":"lib/components/ui/wy-overlay.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-presence.ts","declarations":[{"kind":"class","description":"Presence indicator for avatars or text.","name":"WyPresence","cssParts":[{"name":"wy-presence"},{"description":"When presence status is `active`.","name":"wy-presence-active"},{"description":"When placement is in text.","name":"wy-presence-in-text"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"placement","type":{"text":"\"avatar\" | \"text\""},"default":"\"avatar\"","description":"Where the indicator should be placed relative to.","attribute":"placement"},{"kind":"field","name":"status","type":{"text":"PresenceType | undefined"},"description":"Sets the current status of the presence indicator.","attribute":"status"}],"attributes":[{"name":"placement","type":{"text":"\"avatar\" | \"text\""},"default":"\"avatar\"","description":"Where the indicator should be placed relative to.","fieldName":"placement"},{"name":"status","type":{"text":"PresenceType | undefined"},"description":"Sets the current status of the presence indicator.","fieldName":"status"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-presence","customElement":true}],"exports":[{"kind":"js","name":"WyPresence","declaration":{"name":"WyPresence","module":"lib/components/ui/wy-presence.ts"}},{"kind":"custom-element-definition","name":"wy-presence","declaration":{"name":"WyPresence","module":"lib/components/ui/wy-presence.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-progress-circular.ts","declarations":[{"kind":"class","description":"Progress bar with percentage indicator, indeterminate, error and warning states.","name":"WyProgressCircular","cssParts":[{"description":"Base for progress.","name":"wy-progress"},{"description":"When in revealing mode.","name":"wy-progress-reveal"},{"description":"When in overlay layer.","name":"wy-progress-overlay"},{"description":"When padded.","name":"wy-progress-padded"},{"description":"Progress wrapper.","name":"wy-progress-circular"},{"description":"Modifier for primary color.","name":"wy-primary"},{"description":"When in indeterminate state.","name":"wy-progress-indeterminate"},{"description":"Progress circle.","name":"wy-progress-circle"},{"description":"The circle when in indeterminate state.","name":"wy-progress-indeterminate-circle"},{"description":"The remainder circle when in progress state.","name":"wy-progress-remaining"},{"description":"The done circle when in progress state.","name":"wy-progress-done"}],"members":[{"kind":"field","name":"shadowParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"size","type":{"text":"number"},"default":"24","description":"The size of the progress in pixels. The pixels are translated to rem size with a base of 16px/rem.","attribute":"size"},{"kind":"field","name":"indeterminate","type":{"text":"boolean"},"default":"false","description":"Indeterminate state. Whether or not to display indeterminate progress, which gives no indication\nto how long an activity will take. Overrides progress indication.","attribute":"indeterminate"},{"kind":"field","name":"padded","type":{"text":"boolean"},"default":"false","description":"Use padding around the progress bar.","attribute":"padded"},{"kind":"field","name":"overlay","type":{"text":"boolean"},"default":"false","description":"Overlayed positioning.","attribute":"overlay"},{"kind":"field","name":"value","type":{"text":"number"},"default":"0","description":"Progress to display, a fraction between 0 and `max`.","attribute":"value"},{"kind":"field","name":"max","type":{"text":"number"},"default":"1","description":"Maximum progress to display, defaults to 1.","attribute":"max"},{"kind":"field","name":"reveal","type":{"text":"boolean"},"default":"false","description":"Reveals the progress after a delay. This makes the progress stay hidden when it has a rapid completion.","attribute":"reveal"}],"attributes":[{"name":"size","type":{"text":"number"},"default":"24","description":"The size of the progress in pixels. The pixels are translated to rem size with a base of 16px/rem.","fieldName":"size"},{"name":"indeterminate","type":{"text":"boolean"},"default":"false","description":"Indeterminate state. Whether or not to display indeterminate progress, which gives no indication\nto how long an activity will take. Overrides progress indication.","fieldName":"indeterminate"},{"name":"padded","type":{"text":"boolean"},"default":"false","description":"Use padding around the progress bar.","fieldName":"padded"},{"name":"overlay","type":{"text":"boolean"},"default":"false","description":"Overlayed positioning.","fieldName":"overlay"},{"name":"value","type":{"text":"number"},"default":"0","description":"Progress to display, a fraction between 0 and `max`.","fieldName":"value"},{"name":"max","type":{"text":"number"},"default":"1","description":"Maximum progress to display, defaults to 1.","fieldName":"max"},{"name":"reveal","type":{"text":"boolean"},"default":"false","description":"Reveals the progress after a delay. This makes the progress stay hidden when it has a rapid completion.","fieldName":"reveal"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-progress-circular","customElement":true}],"exports":[{"kind":"js","name":"WyProgressCircular","declaration":{"name":"WyProgressCircular","module":"lib/components/ui/wy-progress-circular.ts"}},{"kind":"custom-element-definition","name":"wy-progress-circular","declaration":{"name":"WyProgressCircular","module":"lib/components/ui/wy-progress-circular.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-progress-linear.ts","declarations":[{"kind":"class","description":"Progress bar with percentage indicator, indeterminate, error and warning states.","name":"WyProgressLinear","cssParts":[{"description":"Base for progress.","name":"wy-progress"},{"description":"Progress wrapper.","name":"wy-progress-linear"},{"description":"When in overlay layer.","name":"wy-progress-overlay"},{"description":"When padded.","name":"wy-progress-padded"},{"description":"When in revealing mode.","name":"wy-progress-reveal"},{"description":"When in indeterminate state.","name":"wy-progress-indeterminate"},{"description":"When in warning state.","name":"wy-progress-warning"},{"description":"When in error state.","name":"wy-progress-error"},{"description":"Track background.","name":"wy-inactive-track"},{"description":"Wrapper for a bar.","name":"wy-bar"},{"description":"Inner content of a bar.","name":"wy-bar-inner"},{"description":"First bar, used for progress and indeterminate state.","name":"wy-primary-bar"},{"description":"Second bar, used for indeterminate state.","name":"wy-secondary-bar"}],"members":[{"kind":"field","name":"shadowParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"padded","type":{"text":"boolean"},"default":"false","description":"Use padding around the progress bar.","attribute":"padded"},{"kind":"field","name":"overlay","type":{"text":"boolean"},"default":"false","description":"Overlayed positioning.","attribute":"overlay"},{"kind":"field","name":"reveal","type":{"text":"boolean"},"default":"false","description":"Reveals the progress after a delay. This makes the progress stay hidden when it has a rapid completion.","attribute":"reveal"},{"kind":"field","name":"value","type":{"text":"number"},"default":"0","description":"Progress to display, a fraction between 0 and `max`.","attribute":"value"},{"kind":"field","name":"max","type":{"text":"number"},"default":"1","description":"Maximum progress to display, defaults to 1.","attribute":"max"},{"kind":"field","name":"indeterminate","type":{"text":"boolean"},"default":"false","description":"Indeterminate state. Whether or not to display indeterminate progress, which gives no indication\nto how long an activity will take. Overrides progress indication.","attribute":"indeterminate"},{"kind":"field","name":"warning","type":{"text":"boolean"},"default":"false","description":"Warning state. Overrides normal states.","attribute":"warning"},{"kind":"field","name":"error","type":{"text":"boolean"},"default":"false","description":"Error state. Overrides all states.","attribute":"error"}],"attributes":[{"name":"padded","type":{"text":"boolean"},"default":"false","description":"Use padding around the progress bar.","fieldName":"padded"},{"name":"overlay","type":{"text":"boolean"},"default":"false","description":"Overlayed positioning.","fieldName":"overlay"},{"name":"reveal","type":{"text":"boolean"},"default":"false","description":"Reveals the progress after a delay. This makes the progress stay hidden when it has a rapid completion.","fieldName":"reveal"},{"name":"value","type":{"text":"number"},"default":"0","description":"Progress to display, a fraction between 0 and `max`.","fieldName":"value"},{"name":"max","type":{"text":"number"},"default":"1","description":"Maximum progress to display, defaults to 1.","fieldName":"max"},{"name":"indeterminate","type":{"text":"boolean"},"default":"false","description":"Indeterminate state. Whether or not to display indeterminate progress, which gives no indication\nto how long an activity will take. Overrides progress indication.","fieldName":"indeterminate"},{"name":"warning","type":{"text":"boolean"},"default":"false","description":"Warning state. Overrides normal states.","fieldName":"warning"},{"name":"error","type":{"text":"boolean"},"default":"false","description":"Error state. Overrides all states.","fieldName":"error"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-progress-linear","customElement":true}],"exports":[{"kind":"js","name":"WyProgressLinear","declaration":{"name":"WyProgressLinear","module":"lib/components/ui/wy-progress-linear.ts"}},{"kind":"custom-element-definition","name":"wy-progress-linear","declaration":{"name":"WyProgressLinear","module":"lib/components/ui/wy-progress-linear.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-search.ts","declarations":[{"kind":"class","description":"Search input component with an integrated search/clear button.\n\n**Used sub components**\n\n- [`<wy-button>`](./wy-button.ts)\n- [`<wy-icon>`](./wy-icon.ts)","name":"WySearch","cssParts":[{"description":"Input field.","name":"wy-input"},{"description":"Wrapper for the inputs.","name":"wy-input-group"},{"description":"Input field part of an input group.","name":"wy-input-group-input"},{"description":"Filled appearance of the input field.","name":"wy-input-filled"},{"description":"Input field when input and button are combined.","name":"wy-input-group-input-with-overlay"},{"description":"Button part of an input group.","name":"wy-input-group-button-icon"},{"description":"Button  when input and button are combined.","name":"wy-input-group-button-icon-overlay"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"inputRef","type":{"text":"Ref<HTMLInputElement>"},"privacy":"private"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Text for the input placeholder.","attribute":"placeholder"},{"kind":"field","name":"#tags","privacy":"private","type":{"text":"Set<string>"},"default":"new Set()"},{"kind":"field","name":"tags","description":"Query tags","attribute":"tags"},{"kind":"field","name":"#query","privacy":"private","type":{"text":"string"},"default":"''"},{"kind":"field","name":"query","description":"Query text.","type":{"text":"string | undefined"},"attribute":"query"},{"kind":"method","name":"focusInput","description":"Put focus on the input field."},{"kind":"method","name":"clear","description":"Clear the input field."},{"kind":"field","name":"throttledSearch","privacy":"private"}],"events":[{"type":{"text":"SearchEventType"},"description":"Query text when the search is updated. Throttled change as the user is typing.","name":"search"}],"attributes":[{"name":"placeholder","type":{"text":"string | undefined"},"description":"Text for the input placeholder.","fieldName":"placeholder"},{"name":"tags","description":"Query tags","fieldName":"tags"},{"name":"query","description":"Query text.","type":{"text":"string | undefined"},"fieldName":"query"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-search","customElement":true}],"exports":[{"kind":"js","name":"WySearch","declaration":{"name":"WySearch","module":"lib/components/ui/wy-search.ts"}},{"kind":"custom-element-definition","name":"wy-search","declaration":{"name":"WySearch","module":"lib/components/ui/wy-search.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-skeleton.ts","declarations":[{"kind":"class","description":"Masked text content placeholder.","name":"WySkeleton","cssParts":[{"description":"Wrapper for the whole skeleton text.","name":"wy-skeleton"},{"description":"Each line in the text.","name":"wy-placeholder-line"},{"description":"Placeholder for each word in the text.","name":"wy-placeholder"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"text","type":{"text":"string"},"default":"\"\"","description":"The text to mask.","attribute":"text"}],"attributes":[{"name":"text","type":{"text":"string"},"default":"\"\"","description":"The text to mask.","fieldName":"text"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-skeleton","customElement":true}],"exports":[{"kind":"js","name":"WySkeleton","declaration":{"name":"WySkeleton","module":"lib/components/ui/wy-skeleton.ts"}},{"kind":"custom-element-definition","name":"wy-skeleton","declaration":{"name":"WySkeleton","module":"lib/components/ui/wy-skeleton.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-titlebar.ts","declarations":[{"kind":"class","description":"Header title bar for dialogs.","name":"WyTitlebar","cssParts":[{"description":"Wrapper for the titlebar.","name":"wy-titlebar"},{"description":"Wrapper when size is `lg`.","name":"wy-titlebar-lg"},{"description":"The icon in the first section.","name":"wy-titlebar-icon"},{"description":"The title text in the middle section.","name":"wy-titlebar-title"},{"description":"The actions in the last section.","name":"wy-titlebar-actions"},{"description":"Normal section; the middle section.","name":"wy-titlebar-section"},{"description":"Sections with buttons; the icon section and the actions section.","name":"wy-titlebar-buttons"},{"description":"Button section placed in the first section.","name":"wy-titlebar-buttons-first"},{"description":"Button section placed in the last section.","name":"wy-titlebar-buttons-last"},{"description":"Outer wrapper when titlebar is defined as header.","name":"wy-header"},{"description":"Applies floating positioning to wy-header.","name":"wy-header-floating"},{"description":"Applies outer paddings for wy-header.","name":"wy-header-outer"}],"slots":[{"description":"The first section, which contains `icon`.","name":"first"},{"description":"The middle section, which contains `title`.","name":"middle"},{"description":"The last section, which contains `actions`.","name":"last"},{"description":"Icon, avatar or button in the `first` section.","name":"icon"},{"description":"Title in the `middle` section.","name":"title-section"},{"description":"Text in the `title`.","name":"title"},{"description":"Action buttons in the `last` section.","name":"actions"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"header","type":{"text":"boolean"},"default":"false","description":"Whether the titlebar is wrapped in a header.","attribute":"header"},{"kind":"field","name":"floating","type":{"text":"boolean"},"default":"false","description":"Whether the wrapped header titlebar is floating.","attribute":"floating"},{"kind":"field","name":"outer","type":{"text":"boolean"},"default":"false","description":"Whether the wrapped header titlebar should be treated with outer padding and outer border radius.","attribute":"outer"},{"kind":"field","name":"trashed","type":{"text":"boolean"},"default":"false","description":"Use trashed visual style for the titlebar text.","attribute":"trashed"},{"kind":"field","name":"size","type":{"text":"\"md\" | \"lg\""},"default":"\"md\"","description":"Size of the titlebar. Defaults to `md`.","attribute":"size"},{"kind":"field","name":"wrapping","type":{"text":"boolean"},"default":"false","description":"Allow titlebar layout to wrap.","attribute":"wrapping"},{"kind":"field","name":"iconSlotRef","type":{"text":"Ref<HTMLElement>"},"privacy":"protected"},{"kind":"field","name":"actionsSlotRef","type":{"text":"Ref<HTMLElement>"},"privacy":"protected"},{"kind":"field","name":"iconFillRef","type":{"text":"Ref<HTMLElement>"},"privacy":"protected"},{"kind":"field","name":"actionsFillRef","type":{"text":"Ref<HTMLElement>"},"privacy":"protected"},{"kind":"field","name":"resizeObserver","default":"new ResizeObserver(() => { const iconSlotWidth = this.iconSlotRef.value?.offsetWidth || 0; const actionsSlotWidth = this.actionsSlotRef.value?.offsetWidth || 0; const maxSlotWidth = Math.max(iconSlotWidth, actionsSlotWidth); if (this.iconFillRef.value) { this.iconFillRef.value.dataset.fill = iconSlotWidth < maxSlotWidth ? `${maxSlotWidth - iconSlotWidth}` : \"0\"; } if (this.actionsFillRef.value) { this.actionsFillRef.value.dataset.fill = actionsSlotWidth < maxSlotWidth ? `${maxSlotWidth - actionsSlotWidth}` : \"0\"; } })"}],"attributes":[{"name":"header","type":{"text":"boolean"},"default":"false","description":"Whether the titlebar is wrapped in a header.","fieldName":"header"},{"name":"floating","type":{"text":"boolean"},"default":"false","description":"Whether the wrapped header titlebar is floating.","fieldName":"floating"},{"name":"outer","type":{"text":"boolean"},"default":"false","description":"Whether the wrapped header titlebar should be treated with outer padding and outer border radius.","fieldName":"outer"},{"name":"trashed","type":{"text":"boolean"},"default":"false","description":"Use trashed visual style for the titlebar text.","fieldName":"trashed"},{"name":"size","type":{"text":"\"md\" | \"lg\""},"default":"\"md\"","description":"Size of the titlebar. Defaults to `md`.","fieldName":"size"},{"name":"wrapping","type":{"text":"boolean"},"default":"false","description":"Allow titlebar layout to wrap.","fieldName":"wrapping"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-titlebar","customElement":true},{"kind":"class","description":"Title text for title bar.","name":"WyTitlebarText","cssParts":[{"description":"Truncated title text.","name":"wy-titlebar-text"},{"description":"State text style when title is trashed.","name":"wy-titlebar-text-trashed"}],"slots":[{"description":"Text for the title.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"trashed","type":{"text":"boolean"},"default":"false","attribute":"trashed"}],"attributes":[{"name":"trashed","type":{"text":"boolean"},"default":"false","fieldName":"trashed"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-titlebar-text","customElement":true}],"exports":[{"kind":"js","name":"WyTitlebar","declaration":{"name":"WyTitlebar","module":"lib/components/ui/wy-titlebar.ts"}},{"kind":"custom-element-definition","name":"wy-titlebar","declaration":{"name":"WyTitlebar","module":"lib/components/ui/wy-titlebar.ts"}},{"kind":"js","name":"WyTitlebarText","declaration":{"name":"WyTitlebarText","module":"lib/components/ui/wy-titlebar.ts"}},{"kind":"custom-element-definition","name":"wy-titlebar-text","declaration":{"name":"WyTitlebarText","module":"lib/components/ui/wy-titlebar.ts"}}]},{"kind":"javascript-module","path":"lib/components/ui/wy-toast.ts","declarations":[{"kind":"class","description":"Wrapper for displaying and handling toasts as popovers.","name":"WyToasts","cssParts":[{"description":"Popover layer for toasts.","name":"wy-toasts"}],"slots":[{"description":"Any `wy-toasts` to show.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"show","type":{"text":"boolean"},"default":"false","description":"Whether the popover layer is shown.","attribute":"show"},{"kind":"field","name":"viewportRef","privacy":"private"},{"kind":"method","name":"close","description":"Close the popover layer."}],"events":[{"type":{"text":"HideEventType"},"description":"Fired when the popover layer is hidden.","name":"hide"}],"attributes":[{"name":"show","type":{"text":"boolean"},"default":"false","description":"Whether the popover layer is shown.","fieldName":"show"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-toasts","customElement":true},{"kind":"class","description":"Toast for displaying information, messages and alerts. May be handled by `wy-toasts` for popover capability.","name":"WyToast","cssParts":[{"description":"The wrapper for the toast.","name":"wy-toast"},{"description":"State for using fade effects.","name":"wy-fade"},{"description":"State when the toast is shown.","name":"wy-show"}],"slots":[{"description":"Content for the toast.","name":""}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"toastRef","privacy":"private"},{"kind":"field","name":"defaultDuration","type":{"text":"number"},"static":true,"default":"5000"},{"kind":"field","name":"duration","type":{"text":"number"},"description":"Duration for the toast to show.\nDefaults to 5000ms.","attribute":"duration"},{"kind":"field","name":"timeout","type":{"text":"number | undefined"},"privacy":"private"},{"kind":"method","name":"hide","description":"Hide the toast."},{"kind":"method","name":"close","parameters":[{"name":"silent","default":"false","type":{"text":"boolean"},"description":"Indicates that the toast should close silently."}],"description":"Hide and close the toast."}],"events":[{"type":{"text":"ClosedEventType"},"description":"When the toast has closed.","name":"closed"}],"attributes":[{"name":"duration","type":{"text":"number"},"description":"Duration for the toast to show.\nDefaults to 5000ms.","fieldName":"duration"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-toast","customElement":true}],"exports":[{"kind":"js","name":"WyToasts","declaration":{"name":"WyToasts","module":"lib/components/ui/wy-toast.ts"}},{"kind":"custom-element-definition","name":"wy-toasts","declaration":{"name":"WyToasts","module":"lib/components/ui/wy-toast.ts"}},{"kind":"js","name":"WyToast","declaration":{"name":"WyToast","module":"lib/components/ui/wy-toast.ts"}},{"kind":"custom-element-definition","name":"wy-toast","declaration":{"name":"WyToast","module":"lib/components/ui/wy-toast.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-annotation.ts","declarations":[{"kind":"class","description":"Annotation displayed as a small button.\n\n**Used sub components**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)","name":"WyAnnotation","cssParts":[{"description":"Annotation button.","name":"wy-annotation"},{"description":"The icon of the annotation button.","name":"wy-annotation-icon"},{"description":"The text of the annotation button.","name":"wy-annotation-text"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"file","type":{"text":"FileType"},"description":"The annotation file to display."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an entity.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-annotation","customElement":true},{"kind":"class","description":"List of annotations. Displayed as inline buttons.\n\n**Used sub components**\n\n- [`<wy-annotation>`](./wy-annotation.ts)","name":"WyAnnotationList","cssParts":[{"description":"Wrapper for the annotations.","name":"wy-annotations"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"files","type":{"text":"FileType[]"},"default":"[]","description":"The annotations file list to display."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an entity.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-annotation-list","customElement":true}],"exports":[{"kind":"js","name":"WyAnnotation","declaration":{"name":"WyAnnotation","module":"lib/components/wy-annotation.ts"}},{"kind":"custom-element-definition","name":"wy-annotation","declaration":{"name":"WyAnnotation","module":"lib/components/wy-annotation.ts"}},{"kind":"js","name":"WyAnnotationList","declaration":{"name":"WyAnnotationList","module":"lib/components/wy-annotation.ts"}},{"kind":"custom-element-definition","name":"wy-annotation-list","declaration":{"name":"WyAnnotationList","module":"lib/components/wy-annotation.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-attachment.ts","declarations":[{"kind":"class","description":"Attachment displayed as list item.\n\n**Used sub components:**\n\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)","name":"WyAttachment","members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"file","type":{"text":"FileType"},"description":"Attachment file to display."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an entity.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-attachment","customElement":true},{"kind":"class","description":"List for displaying attachments.\n\n**Used sub components:**\n\n- [`<wy-attachment>`](./wy-attachment.ts)\n- [`<wy-item-list>`](./ui/wy-item.ts)","name":"WyAttachmentList","members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"files","type":{"text":"FileType[]"},"default":"[]","description":"List of files to display in list."},{"kind":"field","name":"filled","type":{"text":"boolean"},"default":"false","description":"Filled background.","attribute":"filled"}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an entity.","name":"wy-action"}],"attributes":[{"name":"filled","type":{"text":"boolean"},"default":"false","description":"Filled background.","fieldName":"filled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-attachment-list","customElement":true}],"exports":[{"kind":"js","name":"WyAttachment","declaration":{"name":"WyAttachment","module":"lib/components/wy-attachment.ts"}},{"kind":"custom-element-definition","name":"wy-attachment","declaration":{"name":"WyAttachment","module":"lib/components/wy-attachment.ts"}},{"kind":"js","name":"WyAttachmentList","declaration":{"name":"WyAttachmentList","module":"lib/components/wy-attachment.ts"}},{"kind":"custom-element-definition","name":"wy-attachment-list","declaration":{"name":"WyAttachmentList","module":"lib/components/wy-attachment.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-cloud-files.ts","declarations":[{"kind":"class","description":"File picker for cloud services. Depends on Weavy filebrowser server to function.\n\n**Used sub components**\n\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)","name":"WyCloudFiles","cssParts":[{"description":"The overlay modal.","name":"wy-cloud-files-overlay"},{"description":"Progress shown when the iframe is loading.","name":"wy-cloud-files-progress"},{"description":"The iframe for the Weavy filebrowser.","name":"wy-cloud-files-frame"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"method","name":"open","description":"Open the file picker overlay."},{"kind":"method","name":"close","description":"Close the file picker overlay."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"ExternalBlobsEventType"},"name":"external-blobs"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-cloud-files","customElement":true}],"exports":[{"kind":"js","name":"WyCloudFiles","declaration":{"name":"WyCloudFiles","module":"lib/components/wy-cloud-files.ts"}},{"kind":"custom-element-definition","name":"wy-cloud-files","declaration":{"name":"WyCloudFiles","module":"lib/components/wy-cloud-files.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-comment-list.ts","declarations":[{"kind":"class","description":"Comment list component rendering a list of comments and an editor to create comments.\n\n**Used sub components:**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-comment>`](./wy-comment.ts)\n- [`<wy-editor-comment>`](./wy-editor-comment.ts)\n- [`<wy-empty>`](./wy-empty.ts)","name":"WyCommentList","cssParts":[{"description":"Container for the comments list","name":"wy-comments"},{"description":"Pager container element","name":"wy-pager"},{"description":"Bottom pager modifier","name":"wy-pager-bottom"}],"slots":[{"description":"Content when no comments are available.","name":"empty"}],"members":[{"kind":"field","name":"parentId","type":{"text":"number | undefined"},"description":"Id of the parent entity (post/file/app) to which comments belong.\n\nSet this to load comments for a specific parent.","attribute":"parentId"},{"kind":"field","name":"location","type":{"text":"\"posts\" | \"files\" | \"apps\""},"default":"\"apps\"","description":"Location where the comments are stored."},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"placeholder"},{"kind":"field","name":"reveal","type":{"text":"boolean"},"default":"false","description":"Whether comments should be revealed (expanded) by default.","attribute":"reveal","reflects":true},{"kind":"field","name":"padded","type":{"text":"boolean"},"default":"false","description":"Adds padding to the comment list container.","attribute":"padded","reflects":true},{"kind":"field","name":"previousPaging","type":{"text":"\"infinite\" | \"paged\""},"default":"\"paged\"","description":"Paging behavior for loading previous comments.\n\n- \"infinite\" is recommended when the component is placed in an overflowing/scrollable area.","attribute":"previousPaging"},{"kind":"field","name":"nextPaging","type":{"text":"\"infinite\" | \"paged\""},"default":"\"paged\"","description":"Paging behavior for loading next comments.\n\n- \"infinite\" is recommended when the component is placed in an overflowing/scrollable area.","attribute":"nextPaging"},{"kind":"field","name":"#whenParentId","privacy":"private","default":"new Promise<number>((r) => { this.#resolveParentId = r; })"},{"kind":"method","name":"whenParentId","description":"Resolves when `parentId` is available.","return":{"type":{"text":""}}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"parentId","type":{"text":"number | undefined"},"description":"Id of the parent entity (post/file/app) to which comments belong.\n\nSet this to load comments for a specific parent.","fieldName":"parentId"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"placeholder"},{"name":"reveal","type":{"text":"boolean"},"default":"false","description":"Whether comments should be revealed (expanded) by default.","fieldName":"reveal"},{"name":"padded","type":{"text":"boolean"},"default":"false","description":"Adds padding to the comment list container.","fieldName":"padded"},{"name":"previousPaging","type":{"text":"\"infinite\" | \"paged\""},"default":"\"paged\"","description":"Paging behavior for loading previous comments.\n\n- \"infinite\" is recommended when the component is placed in an overflowing/scrollable area.","fieldName":"previousPaging"},{"name":"nextPaging","type":{"text":"\"infinite\" | \"paged\""},"default":"\"paged\"","description":"Paging behavior for loading next comments.\n\n- \"infinite\" is recommended when the component is placed in an overflowing/scrollable area.","fieldName":"nextPaging"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-comment-list","customElement":true}],"exports":[{"kind":"js","name":"WyCommentList","declaration":{"name":"WyCommentList","module":"lib/components/wy-comment-list.ts"}},{"kind":"custom-element-definition","name":"wy-comment-list","declaration":{"name":"WyCommentList","module":"lib/components/wy-comment-list.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-comment.ts","declarations":[{"kind":"class","description":"Displays or edits a comment.\n\n**Used sub components**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-image-grid>`](./ui/wy-image-grid.ts)\n- [`<wy-skeleton>`](./ui/wy-skeleton.ts)\n- [`<wy-annotation-list>`](./wy-annotation.ts)\n- [`<wy-attachment-list>`](./wy-attachment.ts)\n- [`<wy-embed>`](./wy-embed.ts)\n- [`<wy-meeting-card>`](./wy-meeting-card.ts)\n- [`<wy-poll>`](./wy-poll.ts)\n- [`<wy-preview>`](./wy-preview.ts)\n- [`<wy-reactions>`](./wy-reactions.ts)","name":"WyComment","cssParts":[{"description":"When the comment component should be briefly highlighted","name":"wy-highlight"},{"description":"Root comment container","name":"wy-comment"},{"description":"When a comment has reveal transition","name":"wy-comment-reveal"},{"description":"When the comment should render as a skeleton during optimistic updates.","name":"wy-comment-skeleton"},{"description":"Header area (avatar, title, actions)","name":"wy-comment-header"},{"description":"Body wrapper for comment content.","name":"wy-comment-body"},{"description":"The title section of the comment body.","name":"wy-comment-title"},{"description":"Images section.","name":"wy-comment-images"},{"description":"Section for reactions, attachments and annotations.","name":"wy-comment-footer"},{"description":"When comment is trashed.","name":"wy-trashed"},{"description":"HTML content area","name":"wy-content"},{"description":"Meta section.","name":"wy-meta"},{"description":"The filled flag in the meta section shown once the reader has reported the comment. Hide it with `::part(wy-comment-reported)` if reporting should be fire-and-forget.","name":"wy-comment-reported"}],"members":[{"kind":"field","name":"comment","type":{"text":"CommentType"},"description":"The comment data."},{"kind":"field","name":"parentId","type":{"text":"number"},"description":"The parent entity id the comment belongs to.\n\nSet this to ensure actions (edit/trash/restore) operate against the correct parent.","attribute":"parentId"},{"kind":"field","name":"location","type":{"text":"\"posts\" | \"files\" | \"apps\""},"default":"\"apps\"","description":"The place where the comment is located.","deprecated":"Use contextual app info instead."},{"kind":"field","name":"reveal","type":{"text":"boolean"},"default":"false","description":"Whether to use a reveal transition when showing the comment.","attribute":"reveal","reflects":true},{"kind":"field","name":"previewAttachmentsRef","type":{"text":"Ref<WyPreview>"},"privacy":"private"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"PollVoteEventType"},"description":"Emitted when a poll option is voted","name":"vote"},{"type":{"text":"CommentTrashEventType"},"description":"Emitted when the comment is trashed","name":"trash"},{"type":{"text":"CommentRestoreEventType"},"description":"Emitted when the comment is restored","name":"restore"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"parentId","type":{"text":"number"},"description":"The parent entity id the comment belongs to.\n\nSet this to ensure actions (edit/trash/restore) operate against the correct parent.","fieldName":"parentId"},{"name":"reveal","type":{"text":"boolean"},"default":"false","description":"Whether to use a reveal transition when showing the comment.","fieldName":"reveal"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-comment","customElement":true}],"exports":[{"kind":"js","name":"WyComment","declaration":{"name":"WyComment","module":"lib/components/wy-comment.ts"}},{"kind":"custom-element-definition","name":"wy-comment","declaration":{"name":"WyComment","module":"lib/components/wy-comment.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-context-data.ts","declarations":[{"kind":"class","description":"Linear progress display for context data upload. Checks for any context data uploads in the current Weavy component.\n\n**Used sub components**\n\n- [`<wy-progress-linear>`](./ui/wy-progress-linear.ts)","name":"WyContextDataProgress","members":[{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-context-data-progress","customElement":true,"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]}],"exports":[{"kind":"js","name":"WyContextDataProgress","declaration":{"name":"WyContextDataProgress","module":"lib/components/wy-context-data.ts"}},{"kind":"custom-element-definition","name":"wy-context-data-progress","declaration":{"name":"WyContextDataProgress","module":"lib/components/wy-context-data.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-conversation-header.ts","declarations":[{"kind":"class","description":"Header section for a conversation. Displays title and optional conversation details with possibility to edit.\n\n**Used sub components**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-avatar-header>`](./ui/wy-avatar.ts)\n- [`<wy-avatar-group>`](./ui/wy-avatar.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-item>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-item-list>`](./ui/wy-item.ts)\n- [`<wy-presence>`](./ui/wy-presence.ts)\n- [`<wy-titlebar>`](./ui/wy-titlebar.ts)\n- [`<wy-titlebar-text>`](./ui/wy-titlebar.ts)\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-upload>`](./wy-upload.ts)\n- [`<wy-users-search>`](./wy-users-search.ts)","name":"WyConversationHeader","cssParts":[{"description":"The titlebar for the conversation.","name":"wy-conversation-titlebar"},{"description":"The conversation details overlay modal.","name":"wy-conversation-details"},{"description":"The add members overlay modal.","name":"wy-conversation-add-members"},{"description":"Scrollable content area inside the details overlay.","name":"wy-scroll-y"},{"description":"Grouping wrapper for room details fields.","name":"wy-pane-group"},{"description":"Labels for inputs in the details view.","name":"wy-label"},{"description":"Inputs (room name) in the details view.","name":"wy-input"},{"description":"Description/help text in the details view.","name":"wy-description"},{"description":"Menu item for opening the add-members flow.","name":"wy-conversation-details-add-members-action"}],"slots":[{"description":"Icon or button to display in the beginning of the header.","name":"icon"}],"members":[{"kind":"field","name":"conversationId","type":{"text":"number | undefined"},"description":"The id of the current conversation.\n\nSet this to load or target a specific conversation."},{"kind":"field","name":"conversation","type":{"text":"AppType | undefined"},"description":"Conversation data object for the current conversation."},{"kind":"method","name":"isAgentChat","privacy":"protected","parameters":[{"name":"conversation","optional":true,"type":{"text":"AppType"}}],"description":"Checks whether the current or provided conversation is an agent chat."},{"kind":"method","name":"isChatRoom","privacy":"protected","parameters":[{"name":"conversation","optional":true,"type":{"text":"AppType"}}],"description":"Checks whether the current or provided conversation is a chat room."},{"kind":"method","name":"isPrivateChat","privacy":"protected","parameters":[{"name":"conversation","optional":true,"type":{"text":"AppType"}}],"description":"Checks whether the current or provided conversation is a private chat."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when the conversation is deselected/cleared.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-conversation-header","customElement":true}],"exports":[{"kind":"js","name":"WyConversationHeader","declaration":{"name":"WyConversationHeader","module":"lib/components/wy-conversation-header.ts"}},{"kind":"custom-element-definition","name":"wy-conversation-header","declaration":{"name":"WyConversationHeader","module":"lib/components/wy-conversation-header.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-conversation-item.ts","declarations":[{"kind":"class","description":"Item display of a conversation for use in lists.\n\n**Used sub components**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-item>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-avatar-group>`](./ui/wy-avatar.ts)\n- [`<wy-typing>`](./wy-typing.ts)","name":"WyConversationItem","cssParts":[{"description":"The conversation item container (applied on the inner wy-item)","name":"wy-conversation-item"},{"description":"The conversation avatar, whichever of the three variants is rendered.","name":"wy-conversation-item-avatar"}],"members":[{"kind":"field","name":"conversationId","type":{"text":"number | undefined"},"description":"The id of the conversation.\n\nUse this to identify which conversation the item represents.","attribute":"conversationId"},{"kind":"field","name":"unread","type":{"text":"boolean"},"default":"false","description":"Whether the conversation is unread.","attribute":"unread","reflects":true},{"kind":"field","name":"avatarUrl","type":{"text":"string | undefined"},"default":"\"\"","description":"Url to any custom avatar for the conversation. If omitted, member avatars are used.","attribute":"avatarUrl"},{"kind":"field","name":"hideAvatar","type":{"text":"boolean"},"default":"false","description":"Whether the avatar should be hidden.","attribute":"hideAvatar","reflects":true},{"kind":"field","name":"name","type":{"text":"string"},"default":"\"\"","description":"Any custom title for the conversation item.","attribute":"name"},{"kind":"field","name":"type","type":{"text":"AppTypeGuid"},"description":"The type guid of the conversation.","attribute":"type"},{"kind":"field","name":"selected","type":{"text":"boolean"},"default":"false","description":"Whether the conversation item is selected.","attribute":"selected","reflects":true},{"kind":"field","name":"starred","type":{"text":"boolean"},"default":"false","description":"Whether the conversation is starred.","attribute":"starred","reflects":true},{"kind":"field","name":"pinned","type":{"text":"boolean"},"default":"false","description":"Whether the conversation is pinned.","attribute":"pinned","reflects":true},{"kind":"field","name":"blocked","type":{"text":"boolean"},"default":"false","description":"Whether this is a private chat with a blocked user.\n\nA blocked conversation goes quiet: it is dimmed, shows no preview or unread, and offers unblock as its only action.\nIt still opens, onto the blocked notice rather than the chat. Nothing is deleted -- unblocking brings it all back.","attribute":"blocked","reflects":true},{"kind":"field","name":"canBlock","type":{"text":"boolean"},"default":"false","description":"Whether blocking is offered for this conversation.\n\nSet by the parent list, since this component has no feature policy of its own. Gates blocking only -- unblock\nstays available, so turning the feature off cannot strand someone with a block they can no longer undo.","attribute":"canBlock","reflects":true},{"kind":"method","name":"dispatchSelected","description":"Trigger `selected` event.","return":{"type":{"text":""}}},{"kind":"method","name":"dispatchStar","parameters":[{"name":"star","type":{"text":"boolean"},"description":"Whether the conversation should be starred."}],"description":"Trigger `star` event.","return":{"type":{"text":""}}}],"events":[{"type":{"text":"SelectedEventType"},"description":"Emitted when the conversation item is selected.","name":"selected"},{"type":{"text":"StarEventType"},"description":"Emitted when the star/unstar action is requested.","name":"star"},{"type":{"text":"PinEventType"},"description":"Emitted when the pin/unpin action is requested.","name":"pin"},{"type":{"text":"MessagesMarkEventType"},"description":"Emitted when the conversation should be marked read/unread.","name":"mark"},{"type":{"text":"LeaveEventType"},"description":"Emitted when the current user requests to leave the conversation.","name":"leave"},{"type":{"text":"RemoveEventType"},"description":"Emitted when the conversation should be removed/deleted.","name":"remove"},{"type":{"text":"TrashEventType"},"description":"Emitted when the conversation should be trashed.","name":"trash"},{"type":{"text":"BlockEventType"},"description":"Emitted when the other user in a private chat should be blocked or unblocked.","name":"block"}],"attributes":[{"name":"conversationId","type":{"text":"number | undefined"},"description":"The id of the conversation.\n\nUse this to identify which conversation the item represents.","fieldName":"conversationId"},{"name":"unread","type":{"text":"boolean"},"default":"false","description":"Whether the conversation is unread.","fieldName":"unread"},{"name":"avatarUrl","type":{"text":"string | undefined"},"default":"\"\"","description":"Url to any custom avatar for the conversation. If omitted, member avatars are used.","fieldName":"avatarUrl"},{"name":"hideAvatar","type":{"text":"boolean"},"default":"false","description":"Whether the avatar should be hidden.","fieldName":"hideAvatar"},{"name":"name","type":{"text":"string"},"default":"\"\"","description":"Any custom title for the conversation item.","fieldName":"name"},{"name":"type","type":{"text":"AppTypeGuid"},"description":"The type guid of the conversation.","fieldName":"type"},{"name":"selected","type":{"text":"boolean"},"default":"false","description":"Whether the conversation item is selected.","fieldName":"selected"},{"name":"starred","type":{"text":"boolean"},"default":"false","description":"Whether the conversation is starred.","fieldName":"starred"},{"name":"pinned","type":{"text":"boolean"},"default":"false","description":"Whether the conversation is pinned.","fieldName":"pinned"},{"name":"blocked","type":{"text":"boolean"},"default":"false","description":"Whether this is a private chat with a blocked user.\n\nA blocked conversation goes quiet: it is dimmed, shows no preview or unread, and offers unblock as its only action.\nIt still opens, onto the blocked notice rather than the chat. Nothing is deleted -- unblocking brings it all back.","fieldName":"blocked"},{"name":"canBlock","type":{"text":"boolean"},"default":"false","description":"Whether blocking is offered for this conversation.\n\nSet by the parent list, since this component has no feature policy of its own. Gates blocking only -- unblock\nstays available, so turning the feature off cannot strand someone with a block they can no longer undo.","fieldName":"canBlock"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-conversation-item","customElement":true}],"exports":[{"kind":"js","name":"WyConversationItem","declaration":{"name":"WyConversationItem","module":"lib/components/wy-conversation-item.ts"}},{"kind":"custom-element-definition","name":"wy-conversation-item","declaration":{"name":"WyConversationItem","module":"lib/components/wy-conversation-item.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-conversation-list.ts","declarations":[{"kind":"class","description":"Displays a list of conversation items, with search and create conversation button.\n\n**Used sub components**\n\n- [`<wy-buttons>`](./ui/wy-button.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-search>`](./ui/wy-search.ts)\n- [`<wy-conversation-item>`](./wy-conversation-item.ts)\n- [`<wy-empty>`](./wy-empty.ts)","name":"WyConversationList","cssParts":[{"description":"Outer wrapper for the conversation list.","name":"wy-conversations"},{"description":"Inner wrapper for the conversation list.","name":"wy-conversation-list"},{"description":"Search/new/actions toolbar in the top of the list","name":"wy-conversations-toolbar"},{"description":"Body for empty state.","name":"wy-pane"},{"description":"Body for list empty state.","name":"wy-pane-body"},{"description":"Body section for the list empty state.","name":"wy-pane-group"},{"description":"Pager element for infinite scroll.","name":"wy-pager"},{"description":"Bottom styling for the pager element.","name":"wy-pager-bottom"}],"slots":[{"description":"Any navigation actions placed in front of the search.","name":"navigation"},{"description":"Any actions placed next to the search.","name":"actions"}],"members":[{"kind":"field","name":"conversationId","type":{"text":"number | undefined"},"description":"The id of the currently selected conversation","attribute":"conversationId"},{"kind":"field","name":"aroundConversationId","type":{"text":"number | undefined"},"description":"The id of a conversation to load items around","attribute":"aroundConversationId"},{"kind":"field","name":"conversationTypes","type":{"text":"AppTypeGuid[] | undefined"},"default":"[AppTypeGuid.ChatRoom, AppTypeGuid.PrivateChat]","description":"The conversation type guids to show in the list.","attribute":"conversationTypes"},{"kind":"field","name":"searchText","type":{"text":"string | undefined"},"privacy":"private","default":"\"\"","description":"Input text to search for."},{"kind":"method","name":"selectConversation","parameters":[{"name":"conversation","type":{"text":"AppType | null"},"description":"The conversation to select."}],"description":"Selects a conversation and triggers an action event."},{"kind":"field","name":"handleRefresh","privacy":"private","description":"Refresh the conversation query"},{"kind":"field","name":"handlePresenceChange","privacy":"private","description":"Updates member data when realtime presence is received.","parameters":[{"description":"Realtime presence event data","name":"data"}]},{"kind":"method","name":"handleMark","privacy":"private","parameters":[{"name":"app","type":{"text":"AppType"}},{"name":"messageId","optional":true,"type":{"text":"number | null"},"description":"Optional message id to set the marker to."},{"description":"The id of the conversation to mark.","name":"appId"}],"description":"Marks a conversation as read."},{"kind":"method","name":"handleStar","privacy":"private","parameters":[{"name":"appId","type":{"text":"number"},"description":" The id of the conversation to star."},{"name":"star","type":{"text":"boolean"},"description":"Whether to make the conversation starred."}],"description":"Sets a conversation as starred."},{"kind":"method","name":"handleBlock","privacy":"private","parameters":[{"name":"userId","type":{"text":"number"},"description":"The id of the user to block or unblock."},{"name":"block","type":{"text":"boolean"},"description":"Whether the user should be blocked or unblocked."}],"description":"Blocks or unblocks the other member of a private chat.\n\nBuilt per user rather than held as a single tracked mutation, since the endpoint is keyed on the user being\nblocked and each row in the list is a different one."},{"kind":"method","name":"handlePin","privacy":"private","parameters":[{"name":"appId","type":{"text":"number"},"description":"The id of the conversation to pin."},{"name":"pin","type":{"text":"boolean"},"description":"Whether to make the conversation pinned."}],"description":"Sets a conversation as pinned."},{"kind":"method","name":"handleLeaveConversation","privacy":"private","parameters":[{"name":"appId","type":{"text":"number"},"description":"The id of the conversation to leave."}],"description":"Leave a conversation (for the current user)."},{"kind":"method","name":"handleRemoveConversation","privacy":"private","parameters":[{"name":"appId","type":{"text":"number"},"description":"The id of the conversation to remove."}],"description":"Remove a conversation."},{"kind":"method","name":"handleTrashConversation","privacy":"private","parameters":[{"name":"appId","type":{"text":"number"},"description":"The id of the conversation to trash."}],"description":"Trash a conversation."},{"kind":"method","name":"renderConversations","privacy":"private","parameters":[{"name":"infiniteData","optional":true,"type":{"text":"InfiniteData<AppsResultType>"}}]},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a conversation is selected (detail: { action: \"select\", app: { ... } })","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"conversationId","type":{"text":"number | undefined"},"description":"The id of the currently selected conversation","fieldName":"conversationId"},{"name":"aroundConversationId","type":{"text":"number | undefined"},"description":"The id of a conversation to load items around","fieldName":"aroundConversationId"},{"name":"conversationTypes","type":{"text":"AppTypeGuid[] | undefined"},"default":"[AppTypeGuid.ChatRoom, AppTypeGuid.PrivateChat]","description":"The conversation type guids to show in the list.","fieldName":"conversationTypes"}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-conversation-list","customElement":true}],"exports":[{"kind":"js","name":"WyConversationList","declaration":{"name":"WyConversationList","module":"lib/components/wy-conversation-list.ts"}},{"kind":"custom-element-definition","name":"wy-conversation-list","declaration":{"name":"WyConversationList","module":"lib/components/wy-conversation-list.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-conversation-new.ts","declarations":[{"kind":"class","description":"Button and dialog for creating new conversations.\n\n**Used sub components**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-titlebar>`](./ui/wy-titlebar.ts)\n- [`<wy-users-search>`](./wy-users-search.ts)","name":"WyConversationNew","cssParts":[{"description":"The button for creating a new conversation.","name":"wy-conversation-new-button"},{"description":"The dialog overlay for creating a conversation.","name":"wy-conversation-new-dialog"}],"slots":[{"description":"Anything to replace the default button.","name":""}],"members":[{"kind":"method","name":"whenMembers","description":"Resolves when members are selected from the modal.","return":{"type":{"text":""}}},{"kind":"field","name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"modal\"","description":"Overlay appearance used for the create conversation dialog.","attribute":"overlay"},{"kind":"method","name":"selectMembers","description":"Open the new conversation dialog and return selected members.","return":{"type":{"text":""}}},{"kind":"method","name":"submit","privacy":"private","parameters":[{"name":"members","default":"[]","type":{"text":"MemberIdType[]"},"description":"Array of members by id/uid for a new conversation."}],"description":"Create a conversation by dispatching a `create` event and closing the dialog."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"CreateConversationEventType"},"description":"Emitted when a conversation should be created.","name":"create"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"modal\"","description":"Overlay appearance used for the create conversation dialog.","fieldName":"overlay"}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-conversation-new","customElement":true}],"exports":[{"kind":"js","name":"WyConversationNew","declaration":{"name":"WyConversationNew","module":"lib/components/wy-conversation-new.ts"}},{"kind":"custom-element-definition","name":"wy-conversation-new","declaration":{"name":"WyConversationNew","module":"lib/components/wy-conversation-new.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-conversation.ts","declarations":[{"kind":"class","description":"Displays a single conversation with a message editor and an optional start avatar.\n\n**Used sub components**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-avatar-header>`](./ui/wy-avatar.ts)\n- [`<wy-avatar-group>`](./ui/wy-avatar.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-empty>`](./wy-empty.ts)\n- [`<wy-editor-message>`](./wy-editor-message.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-message>`](./wy-message.ts)\n- [`<wy-message-typing>`](./wy-message-typing.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-skeleton>`](./ui/wy-skeleton.ts)","name":"WyConversation","cssParts":[{"description":"Pager for message infinite scroll.","name":"wy-pager"},{"description":"Pager styling for top placement.","name":"wy-pager-top"},{"description":"Wrapper for the conversation messages.","name":"wy-messages"},{"description":"Pane for the empty state.","name":"wy-pane"},{"description":"The footerbar where the editor is placed.","name":"wy-footerbar"},{"description":"Styles for making the footerbar sticky.","name":"wy-footerbar-sticky"},{"description":"Styles for making the footerbar floating.","name":"wy-footerbar-floating"},{"description":"Wrapper for the messages list.","name":"wy-messages"},{"description":"Date separator shown between message days.","name":"wy-message-date-separator"},{"description":"Unread marker toast wrapper.","name":"wy-banner"},{"description":"Modifier part for the unread marker action.","name":"wy-banner-action"},{"description":"Modifier part used when fading the unread marker.","name":"wy-fade"},{"description":"Modifier part used when the unread marker is shown.","name":"wy-show"}],"slots":[{"description":"Content in the empty state.","name":"empty"},{"description":"Content in the footerbar.","name":"footerbar"}],"members":[{"kind":"field","name":"conversation","type":{"text":"AppType | undefined"},"description":"Conversation object provided to the component (overrides AppContext)."},{"kind":"field","name":"conversationId","type":{"text":"number | undefined"},"description":"Id of the conversation to load and display.","attribute":"conversationId"},{"kind":"field","name":"editMessage","type":{"text":"MessageType | undefined"},"description":"Any Message to edit"},{"kind":"field","name":"header","type":{"text":"boolean"},"default":"false","description":"Whether to render the header area for the conversation.","attribute":"header"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the message editor. Used by hosts such as `<wy-chat>` when no conversation is selected, since a missing\nconversation alone can't disable it: Messenger creates the conversation on the first submit.","attribute":"disabled"},{"kind":"field","name":"agentInstructions","type":{"text":"string | undefined"},"description":"Optional instructions passed to an AI agent for the conversation.","attribute":"agentInstructions"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor.","attribute":"placeholder"},{"kind":"method","name":"isPrivateChat","parameters":[{"name":"conversation","optional":true,"type":{"text":"AppType"}}]},{"kind":"method","name":"isBlocked","parameters":[{"name":"conversation","optional":true,"type":{"text":"AppType"}}],"description":"Whether this is a private chat with a user the authenticated user has blocked.\n\nPrivate chats only -- blocks govern directed contact, not shared spaces, so the server never sets `is_blocked` on\na group. The view has to act on it: the server still delivers realtime, so nothing quiets an open conversation\nunless this component does."},{"kind":"method","name":"isChatRoom","parameters":[{"name":"conversation","optional":true,"type":{"text":"AppType"}}]},{"kind":"method","name":"handleEditLast","privacy":"protected","parameters":[{"name":"_e","type":{"text":"CustomEvent"}}]},{"kind":"method","name":"renderConversationHeader"},{"kind":"method","name":"renderMessages"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an embed action button is triggered.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"conversationId","type":{"text":"number | undefined"},"description":"Id of the conversation to load and display.","fieldName":"conversationId"},{"name":"header","type":{"text":"boolean"},"default":"false","description":"Whether to render the header area for the conversation.","fieldName":"header"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the message editor. Used by hosts such as `<wy-chat>` when no conversation is selected, since a missing\nconversation alone can't disable it: Messenger creates the conversation on the first submit.","fieldName":"disabled"},{"name":"agentInstructions","type":{"text":"string | undefined"},"description":"Optional instructions passed to an AI agent for the conversation.","fieldName":"agentInstructions"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor.","fieldName":"placeholder"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-conversation","customElement":true}],"exports":[{"kind":"js","name":"WyConversation","declaration":{"name":"WyConversation","module":"lib/components/wy-conversation.ts"}},{"kind":"custom-element-definition","name":"wy-conversation","declaration":{"name":"WyConversation","module":"lib/components/wy-conversation.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-editor-comment.ts","declarations":[{"kind":"class","description":"Comment editor used for composing comments.\n\n**Used sub components:**\n\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-item>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-button>`](./ui/wy-button.ts)","name":"WyEditorComment","cssParts":[{"description":"Container for the editor inputs and add menu","name":"wy-editor-comment-inputs"},{"description":"Wrapper for the editor text area","name":"wy-editor-comment-text"},{"description":"Applied to the editor text wrapper when there is a validation/error state","name":"wy-is-invalid"},{"description":"Root editor container","name":"wy-editor","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Applied when dragging files over the editor","name":"wy-dragging","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Container for inputs/buttons","name":"wy-editor-msg-inputs","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Container for action buttons","name":"wy-editor-msg-buttons","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Poll options container","name":"wy-poll-form","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Inputs inside poll options","name":"wy-input","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}}],"members":[{"kind":"field","name":"editorType","type":{"text":"\"messages\" | \"posts\" | \"comments\""},"default":"\"comments\"","description":"Editor usage context, used to adjust behavior and styling.","attribute":"editorType","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"editorClass","type":{"text":"string"},"default":"\"wy-editor-comment\"","description":"CSS class applied to the editor container.","attribute":"editorClass","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","attribute":"disabled","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"parentId","type":{"text":"number | undefined"},"description":"Parent id for context (message/comment/post).","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","attribute":"placeholder","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content).","attribute":"text","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"metadata","type":{"text":"MetadataType | undefined"},"default":"{}","description":"Metadata associated with the editor content (e.g. agent instructions).","attribute":"metadata","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"embed","type":{"text":"EmbedType | undefined"},"description":"Optional single embed to prefill the editor.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"pollOptions","type":{"text":"PollOptionType[]"},"default":"[]","description":"Poll option templates passed to the editor.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"attachments","type":{"text":"FileType[]"},"default":"[]","description":"Attached file references (ids/resolved) shown in the editor.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"meeting","type":{"text":"MeetingType | undefined"},"description":"Meeting object attached to the editor (if any).","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"buttonText","type":{"text":"string"},"default":"\"\"","description":"Text for the submit button.","attribute":"buttonText","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"typing","type":{"text":"boolean"},"default":"true","description":"Whether typing indicators should be emitted.","attribute":"typing","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether this instance should persist drafts.","attribute":"draft","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"editorLocation","type":{"text":"\"messages\" | \"posts\" | \"apps\" | \"files\""},"default":"\"apps\"","description":"Location context to use for file uploads and embeds.","attribute":"editorLocation","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"selectAllContent","description":"Select all content in the editor.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"setCursorLast","description":"Place cursor at the end of the editor content.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"focusInput","description":"Focus the editor input.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"embeds","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"whenEditor","description":"Resolves when the editor is available.","return":{"type":{"text":"Promise<WyEditorCore>"}},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"#resolveEditor","privacy":"private","type":{"text":"(editor: WyEditorCore) => void | undefined"},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"#whenEditor","privacy":"private","default":"new Promise<WyEditorCore>((r) => { this.#resolveEditor = r; })","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"authWindow","type":{"text":"WindowProxy | null | undefined"},"privacy":"protected","description":"Reference to oauth authentication window when attaching meetings.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"handleRemoveMeeting","privacy":"protected","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"editLast","privacy":"protected","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"renderEditor","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"renderTopSlot","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"renderMiddleSlot","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WyEditorMsg","module":"/lib/components/wy-editor-msg"},"tagName":"wy-editor-comment","customElement":true,"attributes":[{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","fieldName":"disabled","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","fieldName":"placeholder","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content).","fieldName":"text","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"metadata","type":{"text":"MetadataType | undefined"},"default":"{}","description":"Metadata associated with the editor content (e.g. agent instructions).","fieldName":"metadata","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"buttonText","type":{"text":"string"},"default":"\"\"","description":"Text for the submit button.","fieldName":"buttonText","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"typing","type":{"text":"boolean"},"default":"true","description":"Whether typing indicators should be emitted.","fieldName":"typing","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether this instance should persist drafts.","fieldName":"draft","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"editorType","type":{"text":"\"messages\" | \"posts\" | \"comments\""},"default":"\"posts\"","description":"Editor usage context, used to adjust behavior and styling.","fieldName":"editorType","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"editorClass","type":{"text":"string"},"default":"\"wy-editor-msg\"","description":"CSS class applied to the editor container.","fieldName":"editorClass","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"editorLocation","type":{"text":"\"messages\" | \"posts\" | \"apps\" | \"files\""},"default":"\"apps\"","description":"Location context to use for file uploads and embeds.","fieldName":"editorLocation","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}}],"events":[{"type":{"text":"MsgEditorSubmitEventType"},"description":"Emitted when the editor content is submitted","name":"submit","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"type":{"text":"CustomEvent"},"description":"Emitted when the last message should be edited.","name":"edit-last","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]}],"exports":[{"kind":"js","name":"WyEditorComment","declaration":{"name":"WyEditorComment","module":"lib/components/wy-editor-comment.ts"}},{"kind":"custom-element-definition","name":"wy-editor-comment","declaration":{"name":"WyEditorComment","module":"lib/components/wy-editor-comment.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-editor-core.ts","declarations":[{"kind":"class","description":"Rich text editor used for posts, messages and comments.\n\n**Used sub components:**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-item>`](./ui/wy-item.ts)","name":"WyEditorCore","cssParts":[{"description":"Wrapper for the editor","name":"wy-core-editor"}],"members":[{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","attribute":"disabled"},{"kind":"field","name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","attribute":"placeholder"},{"kind":"field","name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content).","attribute":"text"},{"kind":"field","name":"typing","type":{"text":"boolean"},"default":"true","description":"Whether typing indicators should be emitted.","attribute":"typing"},{"kind":"field","name":"appearance","type":{"text":"\"line\" | \"multiline\" | \"full\""},"default":"\"multiline\"","description":"Editor usage context, used to adjust behavior and styling.","attribute":"appearance"},{"kind":"field","name":"ignoreFileDrops","type":{"text":"boolean"},"default":"false","description":"Leave dropped files to the host's drop zone instead of inserting their text. Set by the message editors.","attribute":"ignoreFileDrops"},{"kind":"field","name":"filename","type":{"text":"string | undefined"},"attribute":"filename"},{"kind":"field","name":"showTooltips","type":{"text":"boolean"},"default":"false"},{"kind":"method","name":"whenEditor","description":"Resolves when the editor is available.","return":{"type":{"text":"Promise<EditorView>"}}},{"kind":"field","name":"#resolveEditor","privacy":"private","type":{"text":"(editor: EditorView) => void | undefined"}},{"kind":"field","name":"#whenEditor","privacy":"private","default":"new Promise<EditorView>((r) => { this.#resolveEditor = r; })"},{"kind":"field","name":"keymapFacet","type":{"text":"Facet<readonly KeyBinding[], readonly (readonly KeyBinding[])[]> | undefined"},"privacy":"protected"},{"kind":"field","name":"keymaps","type":{"text":"{\n    weavyEnterSendKeymap: KeyBinding[];\n    weavyModifierEnterSendKeymap: KeyBinding[];\n    weavySaveKeymap: KeyBinding[];\n    weavyKeymap: KeyBinding[];\n    markdownKeymap: KeyBinding[];\n    defaultKeymap: KeyBinding[];\n    historyKeymap: KeyBinding[];\n  } | undefined"},"privacy":"protected"},{"kind":"field","name":"placeholderExtension","type":{"text":"(content: string | HTMLElement | ((view: EditorView) => HTMLElement)) => Extension | undefined"},"privacy":"protected"},{"kind":"field","name":"editorInitialized","type":{"text":"boolean"},"privacy":"protected","default":"false"},{"kind":"field","name":"tooltipsRef","type":{"text":"Ref<HTMLElement>"},"privacy":"protected"},{"kind":"method","name":"submit","description":"Submit the editor content by dispatching a `submit` event.\n\nValidates that there is content to submit and that no uploads/embeds are still processing."},{"kind":"method","name":"editLast","privacy":"protected"},{"kind":"method","name":"clear","description":"Clear the editor UI and internal state (text, embeds, attachments, metadata)."},{"kind":"method","name":"dispatchSelection","privacy":"protected","parameters":[{"name":"text","type":{"text":"string"}},{"name":"selection","type":{"text":"SelectionRange"}}]},{"kind":"method","name":"dispatchChange","privacy":"protected","parameters":[{"name":"text","type":{"text":"string"}}]},{"kind":"method","name":"dispatchFiles","privacy":"protected","parameters":[{"name":"files","type":{"text":"File[]"}}]},{"kind":"method","name":"renderEditorDummy","privacy":"protected","return":{"type":{"text":"TemplateResult | typeof nothing"}},"description":"Editor loading fallback dummy.\nHard copy of the rendered nodes when the editor is empty. Cleaned up to not be editable."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"EditorLoadedEventType"},"description":"Emitted when the editor is loaded","name":"loaded"},{"type":{"text":"EditorSubmitEventType"},"description":"Emitted when the editor content is submitted","name":"submit"},{"type":{"text":"EditorEditEventType"},"description":"When an edit of a previous text is requested.","name":"edit"},{"type":{"text":"EditorChangeEventType"},"description":"When the text changes.","name":"change"},{"type":{"text":"EditorSelectEventType"},"description":"When the selection changes.","name":"select"},{"type":{"text":"EditorClearEventType"},"description":"When clearing of the editor is requested.","name":"clear"},{"type":{"text":"DropFilesEventType"},"description":"When files are pasted into the editor.","name":"drop-files"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","fieldName":"disabled"},{"name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","fieldName":"placeholder"},{"name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content).","fieldName":"text"},{"name":"typing","type":{"text":"boolean"},"default":"true","description":"Whether typing indicators should be emitted.","fieldName":"typing"},{"name":"appearance","type":{"text":"\"line\" | \"multiline\" | \"full\""},"default":"\"multiline\"","description":"Editor usage context, used to adjust behavior and styling.","fieldName":"appearance"},{"name":"ignoreFileDrops","type":{"text":"boolean"},"default":"false","description":"Leave dropped files to the host's drop zone instead of inserting their text. Set by the message editors.","fieldName":"ignoreFileDrops"},{"name":"filename","type":{"text":"string | undefined"},"fieldName":"filename"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-editor-core","customElement":true}],"exports":[{"kind":"js","name":"WyEditorCore","declaration":{"name":"WyEditorCore","module":"lib/components/wy-editor-core.ts"}},{"kind":"custom-element-definition","name":"wy-editor-core","declaration":{"name":"WyEditorCore","module":"lib/components/wy-editor-core.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-editor-file.ts","declarations":[{"kind":"class","description":"Rich text editor used for posts, messages and comments.\n\n**Used sub components:**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)","name":"WyEditorFile","cssParts":[{"description":"Root editor container","name":"wy-editor"},{"description":"Container for inputs/buttons","name":"wy-editor-msg-inputs"},{"description":"Container for action buttons","name":"wy-editor-msg-buttons"}],"members":[{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","attribute":"disabled"},{"kind":"field","name":"parentId","type":{"text":"number | undefined"},"description":"Parent id for context (message/comment/post)."},{"kind":"field","name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","attribute":"placeholder"},{"kind":"field","name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content)."},{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"The file info if applicable. Required for full functionality."},{"kind":"field","name":"fileContent","type":{"text":"string | undefined"},"description":"Current file text content (loaded content)."},{"kind":"field","name":"appearance","type":{"text":"\"default\" | \"code\" | \"document\" | \"text\""},"default":"\"default\"","description":"Optionally display the editor as a code editor or as a document layout.","attribute":"appearance"},{"kind":"field","name":"mode","type":{"text":"ThemeModeType"},"default":"\"auto\"","description":"Override the theme mode.","attribute":"mode"},{"kind":"field","name":"metadata","type":{"text":"MetadataType | undefined"},"default":"{}","description":"Metadata associated with the editor content (e.g. agent instructions).","attribute":"metadata"},{"kind":"field","name":"buttonText","type":{"text":"string"},"default":"\"\"","description":"Text for the submit button.","attribute":"buttonText"},{"kind":"field","name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether this instance should persist drafts.","attribute":"draft"},{"kind":"field","name":"draftText","type":{"text":"string | undefined"},"description":"Initial draft text."},{"kind":"field","name":"markdownIsLoading","description":"Reactive state for markdown loading.","readonly":true},{"kind":"method","name":"selectAllContent","description":"Select all content in the editor."},{"kind":"method","name":"setCursorFirst","description":"Place cursor at the end of the editor content."},{"kind":"method","name":"setCursorLast","description":"Place cursor at the end of the editor content."},{"kind":"method","name":"focusInput","description":"Focus the editor input."},{"kind":"method","name":"whenEditor","description":"Resolves when the editor is available.","return":{"type":{"text":"Promise<WyEditorCore>"}}},{"kind":"field","name":"#resolveEditor","privacy":"private","type":{"text":"(editor: WyEditorCore) => void | undefined"}},{"kind":"field","name":"#whenEditor","privacy":"private","default":"new Promise<WyEditorCore>((r) => { this.#resolveEditor = r; })"},{"kind":"field","name":"showLive","type":{"text":"boolean"},"default":"false","description":"Whether to show a live markdown preview in an overlay.","attribute":"showLive"},{"kind":"field","name":"liveRender","type":{"text":"Uint8Array<ArrayBufferLike> | string | null | undefined"},"description":"Markdown text rendered as a html string."},{"kind":"method","name":"getText","description":"Gets the displayed document, including restored drafts and edits not yet saved by the draft throttle."},{"kind":"method","name":"renderEditor","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}}},{"kind":"method","name":"renderLiveView","privacy":"protected"},{"kind":"method","name":"renderTopSlot","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}}},{"kind":"method","name":"renderMiddleSlot","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"MsgEditorSubmitEventType"},"description":"Emitted when the editor content is submitted","name":"submit"},{"type":{"text":"CustomEvent"},"description":"Emitted when the last message should be edited.","name":"edit-last"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","fieldName":"disabled"},{"name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","fieldName":"placeholder"},{"name":"appearance","type":{"text":"\"default\" | \"code\" | \"document\" | \"text\""},"default":"\"default\"","description":"Optionally display the editor as a code editor or as a document layout.","fieldName":"appearance"},{"name":"mode","type":{"text":"ThemeModeType"},"default":"\"auto\"","description":"Override the theme mode.","fieldName":"mode"},{"name":"metadata","type":{"text":"MetadataType | undefined"},"default":"{}","description":"Metadata associated with the editor content (e.g. agent instructions).","fieldName":"metadata"},{"name":"buttonText","type":{"text":"string"},"default":"\"\"","description":"Text for the submit button.","fieldName":"buttonText"},{"name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether this instance should persist drafts.","fieldName":"draft"},{"name":"showLive","type":{"text":"boolean"},"default":"false","description":"Whether to show a live markdown preview in an overlay.","fieldName":"showLive"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-editor-file","customElement":true}],"exports":[{"kind":"js","name":"WyEditorFile","declaration":{"name":"WyEditorFile","module":"lib/components/wy-editor-file.ts"}},{"kind":"custom-element-definition","name":"wy-editor-file","declaration":{"name":"WyEditorFile","module":"lib/components/wy-editor-file.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-editor-message.ts","declarations":[{"kind":"class","description":"Message editor used inside conversations for composing messages.\n\n**Used sub components:**\n\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-item>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-button>`](./ui/wy-button.ts)","name":"WyEditorMessage","cssParts":[{"description":"Container for the editor inputs and add menu","name":"wy-editor-message-inputs"},{"description":"Wrapper for the editor text area","name":"wy-editor-message-text"},{"description":"Root editor container","name":"wy-editor","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Applied when dragging files over the editor","name":"wy-dragging","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Container for inputs/buttons","name":"wy-editor-msg-inputs","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Container for action buttons","name":"wy-editor-msg-buttons","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Poll options container","name":"wy-poll-form","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"description":"Inputs inside poll options","name":"wy-input","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}}],"members":[{"kind":"field","name":"editorType","type":{"text":"\"messages\" | \"posts\" | \"comments\""},"default":"\"messages\"","description":"Editor usage context, used to adjust behavior and styling.","attribute":"editorType","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"editorClass","type":{"text":"string"},"default":"\"wy-editor-message\"","description":"CSS class applied to the editor container.","attribute":"editorClass","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","attribute":"disabled","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"parentId","type":{"text":"number | undefined"},"description":"Parent id for context (message/comment/post).","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","attribute":"placeholder","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content).","attribute":"text","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"metadata","type":{"text":"MetadataType | undefined"},"default":"{}","description":"Metadata associated with the editor content (e.g. agent instructions).","attribute":"metadata","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"embed","type":{"text":"EmbedType | undefined"},"description":"Optional single embed to prefill the editor.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"pollOptions","type":{"text":"PollOptionType[]"},"default":"[]","description":"Poll option templates passed to the editor.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"attachments","type":{"text":"FileType[]"},"default":"[]","description":"Attached file references (ids/resolved) shown in the editor.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"meeting","type":{"text":"MeetingType | undefined"},"description":"Meeting object attached to the editor (if any).","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"buttonText","type":{"text":"string"},"default":"\"\"","description":"Text for the submit button.","attribute":"buttonText","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"typing","type":{"text":"boolean"},"default":"true","description":"Whether typing indicators should be emitted.","attribute":"typing","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether this instance should persist drafts.","attribute":"draft","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"editorLocation","type":{"text":"\"messages\" | \"posts\" | \"apps\" | \"files\""},"default":"\"apps\"","description":"Location context to use for file uploads and embeds.","attribute":"editorLocation","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"selectAllContent","description":"Select all content in the editor.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"setCursorLast","description":"Place cursor at the end of the editor content.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"focusInput","description":"Focus the editor input.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"embeds","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"whenEditor","description":"Resolves when the editor is available.","return":{"type":{"text":"Promise<WyEditorCore>"}},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"#resolveEditor","privacy":"private","type":{"text":"(editor: WyEditorCore) => void | undefined"},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"#whenEditor","privacy":"private","default":"new Promise<WyEditorCore>((r) => { this.#resolveEditor = r; })","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"authWindow","type":{"text":"WindowProxy | null | undefined"},"privacy":"protected","description":"Reference to oauth authentication window when attaching meetings.","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"handleRemoveMeeting","privacy":"protected","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"editLast","privacy":"protected","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"renderEditor","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"renderTopSlot","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"method","name":"renderMiddleSlot","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}},"inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WyEditorMsg","module":"/lib/components/wy-editor-msg"},"tagName":"wy-editor-message","customElement":true,"attributes":[{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","fieldName":"disabled","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","fieldName":"placeholder","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content).","fieldName":"text","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"metadata","type":{"text":"MetadataType | undefined"},"default":"{}","description":"Metadata associated with the editor content (e.g. agent instructions).","fieldName":"metadata","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"buttonText","type":{"text":"string"},"default":"\"\"","description":"Text for the submit button.","fieldName":"buttonText","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"typing","type":{"text":"boolean"},"default":"true","description":"Whether typing indicators should be emitted.","fieldName":"typing","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether this instance should persist drafts.","fieldName":"draft","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"editorType","type":{"text":"\"messages\" | \"posts\" | \"comments\""},"default":"\"posts\"","description":"Editor usage context, used to adjust behavior and styling.","fieldName":"editorType","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"editorClass","type":{"text":"string"},"default":"\"wy-editor-msg\"","description":"CSS class applied to the editor container.","fieldName":"editorClass","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"editorLocation","type":{"text":"\"messages\" | \"posts\" | \"apps\" | \"files\""},"default":"\"apps\"","description":"Location context to use for file uploads and embeds.","fieldName":"editorLocation","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}}],"events":[{"type":{"text":"MsgEditorSubmitEventType"},"description":"Emitted when the editor content is submitted","name":"submit","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"type":{"text":"CustomEvent"},"description":"Emitted when the last message should be edited.","name":"edit-last","inheritedFrom":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]}],"exports":[{"kind":"js","name":"WyEditorMessage","declaration":{"name":"WyEditorMessage","module":"lib/components/wy-editor-message.ts"}},{"kind":"custom-element-definition","name":"wy-editor-message","declaration":{"name":"WyEditorMessage","module":"lib/components/wy-editor-message.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-editor-msg.ts","declarations":[{"kind":"class","description":"Rich text editor used for posts, messages and comments.\n\n**Used sub components:**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-file-item>`](./wy-file-item.ts)\n- [`<wy-embed>`](./wy-embed.ts)\n- [`<wy-cloud-files>`](./wy-cloud-files.ts)\n- [`<wy-embed-select>`](./wy-embed.ts)","name":"WyEditorMsg","cssParts":[{"description":"Root editor container","name":"wy-editor"},{"description":"Applied when dragging files over the editor","name":"wy-dragging"},{"description":"Container for inputs/buttons","name":"wy-editor-msg-inputs"},{"description":"Container for action buttons","name":"wy-editor-msg-buttons"},{"description":"Poll options container","name":"wy-poll-form"},{"description":"Inputs inside poll options","name":"wy-input"}],"members":[{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","attribute":"disabled"},{"kind":"field","name":"parentId","type":{"text":"number | undefined"},"description":"Parent id for context (message/comment/post)."},{"kind":"field","name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","attribute":"placeholder"},{"kind":"field","name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content).","attribute":"text"},{"kind":"field","name":"metadata","type":{"text":"MetadataType | undefined"},"default":"{}","description":"Metadata associated with the editor content (e.g. agent instructions).","attribute":"metadata"},{"kind":"field","name":"embed","type":{"text":"EmbedType | undefined"},"description":"Optional single embed to prefill the editor."},{"kind":"field","name":"pollOptions","type":{"text":"PollOptionType[]"},"default":"[]","description":"Poll option templates passed to the editor."},{"kind":"field","name":"attachments","type":{"text":"FileType[]"},"default":"[]","description":"Attached file references (ids/resolved) shown in the editor."},{"kind":"field","name":"meeting","type":{"text":"MeetingType | undefined"},"description":"Meeting object attached to the editor (if any)."},{"kind":"field","name":"buttonText","type":{"text":"string"},"default":"\"\"","description":"Text for the submit button.","attribute":"buttonText"},{"kind":"field","name":"typing","type":{"text":"boolean"},"default":"true","description":"Whether typing indicators should be emitted.","attribute":"typing"},{"kind":"field","name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether this instance should persist drafts.","attribute":"draft"},{"kind":"field","name":"editorType","type":{"text":"\"messages\" | \"posts\" | \"comments\""},"default":"\"posts\"","description":"Editor usage context, used to adjust behavior and styling.","attribute":"editorType"},{"kind":"field","name":"editorClass","type":{"text":"string"},"default":"\"wy-editor-msg\"","description":"CSS class applied to the editor container.","attribute":"editorClass"},{"kind":"field","name":"editorLocation","type":{"text":"\"messages\" | \"posts\" | \"apps\" | \"files\""},"default":"\"apps\"","description":"Location context to use for file uploads and embeds.","attribute":"editorLocation"},{"kind":"method","name":"selectAllContent","description":"Select all content in the editor."},{"kind":"method","name":"setCursorLast","description":"Place cursor at the end of the editor content."},{"kind":"method","name":"focusInput","description":"Focus the editor input."},{"kind":"field","name":"embeds"},{"kind":"method","name":"whenEditor","description":"Resolves when the editor is available.","return":{"type":{"text":"Promise<WyEditorCore>"}}},{"kind":"field","name":"#resolveEditor","privacy":"private","type":{"text":"(editor: WyEditorCore) => void | undefined"}},{"kind":"field","name":"#whenEditor","privacy":"private","default":"new Promise<WyEditorCore>((r) => { this.#resolveEditor = r; })"},{"kind":"field","name":"authWindow","type":{"text":"WindowProxy | null | undefined"},"privacy":"protected","description":"Reference to oauth authentication window when attaching meetings."},{"kind":"method","name":"handleRemoveMeeting","privacy":"protected"},{"kind":"method","name":"editLast","privacy":"protected"},{"kind":"method","name":"renderEditor","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}}},{"kind":"method","name":"renderTopSlot","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}}},{"kind":"method","name":"renderMiddleSlot","privacy":"protected","return":{"type":{"text":"(TemplateResult | typeof nothing)[] | TemplateResult | typeof nothing"}}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"MsgEditorSubmitEventType"},"description":"Emitted when the editor content is submitted","name":"submit"},{"type":{"text":"CustomEvent"},"description":"Emitted when the last message should be edited.","name":"edit-last"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the editor is disabled.","fieldName":"disabled"},{"name":"placeholder","type":{"text":"string"},"default":"\"\"","description":"Placeholder text for the editor input.","fieldName":"placeholder"},{"name":"text","type":{"text":"string"},"default":"\"\"","description":"Initial editor text content (draft or loaded content).","fieldName":"text"},{"name":"metadata","type":{"text":"MetadataType | undefined"},"default":"{}","description":"Metadata associated with the editor content (e.g. agent instructions).","fieldName":"metadata"},{"name":"buttonText","type":{"text":"string"},"default":"\"\"","description":"Text for the submit button.","fieldName":"buttonText"},{"name":"typing","type":{"text":"boolean"},"default":"true","description":"Whether typing indicators should be emitted.","fieldName":"typing"},{"name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether this instance should persist drafts.","fieldName":"draft"},{"name":"editorType","type":{"text":"\"messages\" | \"posts\" | \"comments\""},"default":"\"posts\"","description":"Editor usage context, used to adjust behavior and styling.","fieldName":"editorType"},{"name":"editorClass","type":{"text":"string"},"default":"\"wy-editor-msg\"","description":"CSS class applied to the editor container.","fieldName":"editorClass"},{"name":"editorLocation","type":{"text":"\"messages\" | \"posts\" | \"apps\" | \"files\""},"default":"\"apps\"","description":"Location context to use for file uploads and embeds.","fieldName":"editorLocation"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-editor-msg","customElement":true}],"exports":[{"kind":"js","name":"WyEditorMsg","declaration":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}},{"kind":"custom-element-definition","name":"wy-editor-msg","declaration":{"name":"WyEditorMsg","module":"lib/components/wy-editor-msg.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-embed.ts","declarations":[{"kind":"class","description":"Embed card for displaying external content (photo, video, link, rich).\n\n**Used sub components:**\n\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)","name":"WyEmbed","cssParts":[{"description":"Root embed container","name":"wy-embed"},{"description":"Modifier when embed is clickable","name":"wy-embed-interactive"},{"description":"Modifier when embed is disabled","name":"wy-disabled"},{"description":"Area containing media (video/photo)","name":"wy-embed-area"},{"description":"Content wrapper for video/rich embeds","name":"wy-embed-content"},{"description":"Modifier for video embeds","name":"wy-embed-video"},{"description":"Modifier for rich embeds","name":"wy-embed-rich"},{"description":"Photo variant container","name":"wy-embed-photo"},{"description":"Photo variant with text description","name":"wy-embed-photo-with-description"},{"description":"Image element for photo embeds","name":"wy-embed-image"},{"description":"Thumbnail/icon element","name":"wy-embed-icon"},{"description":"Provider meta text","name":"wy-embed-provider"}],"slots":[{"description":"Slot rendered before the embed content (e.g. action buttons)","name":"before"}],"members":[{"kind":"field","name":"embed","type":{"text":"EmbedType"},"description":"Embed data to render inside the card."},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the embed is disabled (non-interactive).","attribute":"disabled","reflects":true},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action button is triggered.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the embed is disabled (non-interactive).","fieldName":"disabled"}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-embed","customElement":true},{"kind":"class","description":"Embed selector for multiple embeds (renders `<wy-embed>` instances with per-embed actions).\n\n**Used sub components:**\n\n- [`<wy-embed>`](./wy-embed.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)","name":"WyEmbedSelect","cssParts":[{"description":"Wrapper for embed selections","name":"wy-embed-select"},{"description":"Slot for action buttons shown before each embed","name":"wy-embed-actions"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"embeds","type":{"text":"EmbedType[]"},"description":"Array of embeds to render in the selector."}],"events":[{"type":{"text":"EmbedRemoveEventType"},"description":"Emitted when an embed is removed.","name":"embed-remove"},{"type":{"text":"EmbedSwapEventType"},"description":"Emitted when embeds should be swapped/rotated.","name":"embed-swap"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-embed-select","customElement":true}],"exports":[{"kind":"js","name":"WyEmbed","declaration":{"name":"WyEmbed","module":"lib/components/wy-embed.ts"}},{"kind":"custom-element-definition","name":"wy-embed","declaration":{"name":"WyEmbed","module":"lib/components/wy-embed.ts"}},{"kind":"js","name":"WyEmbedSelect","declaration":{"name":"WyEmbedSelect","module":"lib/components/wy-embed.ts"}},{"kind":"custom-element-definition","name":"wy-embed-select","declaration":{"name":"WyEmbedSelect","module":"lib/components/wy-embed.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-empty.ts","declarations":[{"kind":"class","description":"Generic empty state display used across the UI.\n\n**Used sub components:**\n\n- [`<wy-icon-display>`](./ui/wy-icon.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)","name":"WyEmpty","cssParts":[{"description":"Root container for the empty state display.","name":"wy-empty"}],"slots":[{"description":"Default slot for empty-state content (replaces internal default icon+text).","name":""},{"description":"Named slot used inside the default content for the title/text.","name":"title"}],"members":[{"kind":"field","name":"noNetwork","type":{"text":"boolean"},"default":"false","description":"Hide network status messaging.","attribute":"noNetwork"}],"attributes":[{"name":"noNetwork","type":{"text":"boolean"},"default":"false","description":"Hide network status messaging.","fieldName":"noNetwork"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-empty","customElement":true}],"exports":[{"kind":"js","name":"WyEmpty","declaration":{"name":"WyEmpty","module":"lib/components/wy-empty.ts"}},{"kind":"custom-element-definition","name":"wy-empty","declaration":{"name":"WyEmpty","module":"lib/components/wy-empty.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-create.ts","declarations":[{"kind":"class","description":"Button menu for creating or uploading files.\n\n**Used sub components:**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-container>`](./ui/wy-container.ts)\n- [`<wy-file-item>`](./wy-file-item.ts)\n- [`<wy-cloud-files>`](./wy-cloud-files.ts)\n- [`<wy-empty>`](./wy-empty.ts)\n- [`<wy-filename-input>`](./wy-filename-input.ts)","name":"WyFileCreate","cssParts":[{"description":"Button group","name":"wy-files-create-buttons"}],"slots":[{"description":"Buttons placed in the toolbar.","name":"actions"}],"members":[{"kind":"field","name":"filenameInputRef","privacy":"private"},{"kind":"field","name":"promptedFilename","type":{"text":"string | undefined"},"privacy":"private","description":"Name currently being created from the filename prompt. A conflict for this name is reported inline in the prompt\ninstead of opening the upload sheet, and is removed from the mutation cache by the controller."},{"kind":"field","name":"whenFileUploadInput","type":{"text":"Promise<(FileType | undefined)[] | undefined> | undefined"},"privacy":"protected"},{"kind":"field","name":"resolveFileUploadInput","type":{"text":"(\n    value: (FileType | undefined)[] | undefined | PromiseLike<(FileType | undefined)[] | undefined>,\n  ) => void | undefined"},"privacy":"protected"},{"kind":"field","name":"whenCloudFileInput","type":{"text":"Promise<(FileType | undefined)[] | undefined> | undefined"},"privacy":"protected"},{"kind":"field","name":"resolveCloudFileInput","type":{"text":"(\n    value: (FileType | undefined)[] | undefined | PromiseLike<(FileType | undefined)[] | undefined>,\n  ) => void | undefined"},"privacy":"protected"},{"kind":"method","name":"getFileInput","description":"Open the native file picker."},{"kind":"method","name":"getCloudFiles","description":"Open the cloud files picker."},{"kind":"method","name":"handleUploadFiles","privacy":"protected","parameters":[{"name":"files","type":{"text":"File[] | FileList | null"},"description":"Files chosen from the native picker."}],"description":"Handle uploading of files."},{"kind":"method","name":"handleExternalBlobs","privacy":"protected","parameters":[{"name":"blobs","type":{"text":"ExternalBlobType[] | null"},"description":"Blobs chosen from the cloud picker."}],"description":"Handle adding blobs from the cloud picker."},{"kind":"method","name":"createFile","parameters":[{"name":"ext","optional":true,"type":{"text":"string"},"description":"Suggested initial extension; the submitted filename is used unchanged."}],"description":"Prompt for a filename and create a file. The prompt stays open with an inline error when the name is already\ntaken in the app, so the user can choose a different name.\nEmits `wy-action` with `edit` for editable text and code files, otherwise `select`.","return":{"type":{"text":""}}},{"kind":"method","name":"renderFileMutation","privacy":"private","parameters":[{"name":"mutation","type":{"text":"MutationState<BlobType | FileType, Error, unknown, FileMutationContextType>"}}]},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a file is created. Editable files use the `edit` action and should be opened in edit mode, other files use `select`.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-file-create","customElement":true}],"exports":[{"kind":"js","name":"WyFileCreate","declaration":{"name":"WyFileCreate","module":"lib/components/wy-file-create.ts"}},{"kind":"custom-element-definition","name":"wy-file-create","declaration":{"name":"WyFileCreate","module":"lib/components/wy-file-create.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-draft-badge.ts","declarations":[{"kind":"class","description":"\"Draft\" badge shown next to a file name while the file has unsaved edits.\n\nThe badge is only shown when the user can act on the draft, i.e. when the file is editable for them. A draft is\ncached per file in the browser tab and can outlive the right to edit (revoked permission, file editing turned off),\nand then it is better left unmentioned than advertised without a way to publish or discard it.\n\nEach badge observes the draft query of its own file, so file lists can drop one into every row and let the badge\nappear and disappear as the editor saves or discards the draft, without the list tracking drafts itself.\n\n**Used sub components:**\n\n- [`<wy-badge>`](./ui/wy-badge.ts)","name":"WyFileDraftBadge","cssParts":[{"description":"The badge element.","name":"wy-badge"}],"members":[{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"File whose draft is indicated.","attribute":"file"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"file","type":{"text":"FileType | undefined"},"description":"File whose draft is indicated.","fieldName":"file"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-file-draft-badge","customElement":true,"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]}],"exports":[{"kind":"js","name":"WyFileDraftBadge","declaration":{"name":"WyFileDraftBadge","module":"lib/components/wy-file-draft-badge.ts"}},{"kind":"custom-element-definition","name":"wy-file-draft-badge","declaration":{"name":"WyFileDraftBadge","module":"lib/components/wy-file-draft-badge.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-item.ts","declarations":[{"kind":"class","description":"File list item showing file icon, name and actions.\n\n**Used sub components:**\n\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-file-menu>`](./wy-file-menu.ts)","name":"WyFileItem","cssParts":[{"description":"Input used when renaming a file.","name":"wy-input"}],"slots":[{"description":"Custom title content for the item.","name":"title"},{"description":"Actions slot (e.g. buttons / menus).","name":"actions"}],"members":[{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"File data displayed in the list item.","attribute":"file"},{"kind":"field","name":"status","type":{"text":"FileStatusType"},"default":"{ state: \"ok\", }","description":"Current status metadata for the file item.","attribute":"status"},{"kind":"field","name":"interactive","type":{"text":"boolean"},"default":"false","description":"Enable interactive hover/focus styling.","attribute":"interactive"},{"kind":"field","name":"rounded","type":{"text":"boolean"},"default":"false","description":"Render the item with rounded corners.","attribute":"rounded"},{"kind":"field","name":"hasEditName","type":{"text":"boolean"},"default":"false","description":"Allow renaming.","attribute":"hasEditName"},{"kind":"field","name":"isRenaming","type":{"text":"boolean"},"default":"false","description":"Enable renaming mode.","attribute":"isRenaming"},{"kind":"method","name":"dispatchEditName","parameters":[{"name":"file","type":{"text":"FileType"},"description":"File that should enter rename mode."},{"name":"editName","type":{"text":"boolean"}}],"description":"Emit an `edit-name` event requesting rename mode for the provided file.","return":{"type":{"text":""}}},{"kind":"method","name":"dispatchRename","parameters":[{"name":"file","type":{"text":"FileType"},"description":"File being renamed."},{"name":"name","type":{"text":"string"},"description":"New filename to apply."}],"description":"Emit a `rename` event with a new filename.","return":{"type":{"text":""}}},{"kind":"method","name":"dispatchTrash","parameters":[{"name":"file","type":{"text":"FileType"},"description":"File slated for trashing."}],"description":"Emit a `trash` event to move the file to the recycle bin.","return":{"type":{"text":""}}},{"kind":"method","name":"dispatchRestore","parameters":[{"name":"file","type":{"text":"FileType"},"description":"File to restore from trash."}],"description":"Emit a `restore` event to recover the provided file.","return":{"type":{"text":""}}},{"kind":"method","name":"dispatchDeleteForever","parameters":[{"name":"file","type":{"text":"FileType"},"description":"File targeted for permanent deletion."}],"description":"Emit a `delete-forever` event to permanently remove the file.","return":{"type":{"text":""}}},{"kind":"method","name":"dispatchSubscribe","parameters":[{"name":"file","type":{"text":"FileType"},"description":"File whose subscription changes."},{"name":"subscribe","type":{"text":"boolean"},"description":"Desired subscription state."}],"description":"Emit a `subscribe` event toggling subscription for the file.","return":{"type":{"text":""}}}],"events":[{"type":{"text":"FileEditNameEventType"},"description":"Emitted when rename mode is requested.","name":"edit-name"},{"type":{"text":"FileRenameEventType"},"description":"Emitted when a file rename is confirmed.","name":"rename"},{"type":{"text":"FileTrashEventType"},"description":"Emitted when a file is trashed.","name":"trash"},{"type":{"text":"FileRestoreEventType"},"description":"Emitted when a file is restored.","name":"restore"},{"type":{"text":"FileDeleteForeverEventType"},"description":"Emitted when a file is permanently deleted.","name":"delete-forever"},{"type":{"text":"FileSubscribeEventType"},"description":"Emitted when subscribe state is toggled.","name":"subscribe"}],"attributes":[{"name":"file","type":{"text":"FileType | undefined"},"description":"File data displayed in the list item.","fieldName":"file"},{"name":"status","type":{"text":"FileStatusType"},"default":"{ state: \"ok\", }","description":"Current status metadata for the file item.","fieldName":"status"},{"name":"interactive","type":{"text":"boolean"},"default":"false","description":"Enable interactive hover/focus styling.","fieldName":"interactive"},{"name":"rounded","type":{"text":"boolean"},"default":"false","description":"Render the item with rounded corners.","fieldName":"rounded"},{"name":"hasEditName","type":{"text":"boolean"},"default":"false","description":"Allow renaming.","fieldName":"hasEditName"},{"name":"isRenaming","type":{"text":"boolean"},"default":"false","description":"Enable renaming mode.","fieldName":"isRenaming"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-file-item","customElement":true}],"exports":[{"kind":"js","name":"WyFileItem","declaration":{"name":"WyFileItem","module":"lib/components/wy-file-item.ts"}},{"kind":"custom-element-definition","name":"wy-file-item","declaration":{"name":"WyFileItem","module":"lib/components/wy-file-item.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-menu.ts","declarations":[{"kind":"class","description":"File actions, with Publish and Discard while editing. Publish is disabled until the editor has produced a draft,\nand Discard both drops the draft and leaves edit mode, so it doubles as the way to close an unchanged edit.\n\nIn preview mode with an unsaved draft, the dropdown starts with Publish and Discard, which act on the draft\nwithout opening the editor, and the toolbar has a single \"Continue editing\" button while the draft itself is the\nviewed entry (`draftActive`); a stored version viewed alongside the draft gets no toolbar button. Without a draft,\nediting starts from\nthe Edit item first in the dropdown instead, which is hidden while an older version (`oldVersionActive`) is viewed\nsince editing always starts from the current version. Comments are a toolbar button without a draft and move\ninto the dropdown while a draft exists, so the toolbar holds only \"Continue editing\" then.\n\n**Used sub components:**\n\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-item>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-divider>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)","name":"WyFileMenu","slots":[{"description":"Additional file menu items","name":""}],"members":[{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"File to operate on when rendering menu actions.","attribute":"file"},{"kind":"field","name":"small","type":{"text":"boolean"},"default":"false","description":"Render the dropdown using compact button styling.","attribute":"small"},{"kind":"field","name":"hasEdit","type":{"text":"boolean"},"default":"false","attribute":"hasEdit"},{"kind":"field","name":"hasComments","type":{"text":"boolean"},"default":"false","attribute":"hasComments"},{"kind":"field","name":"hasVersions","type":{"text":"boolean"},"default":"false","attribute":"hasVersions"},{"kind":"field","name":"hasSubscribe","type":{"text":"boolean"},"default":"true","description":"Whether the subscribe/unsubscribe item may be shown. Defaults to true since the item is otherwise gated by\na `subscribe` listener; set to false for attachments, which cannot be subscribed to on their own.","attribute":"hasSubscribe"},{"kind":"field","name":"hasRename","type":{"text":"boolean"},"default":"true","description":"Whether the rename item may be shown. Defaults to true since the item is otherwise gated by an `edit-name`\nlistener and the file rename feature; set to false for attachments, which inherit the features of the block\nthat opened them (e.g. file rename from the Files block) but are not renamable.","attribute":"hasRename"},{"kind":"field","name":"editActive","type":{"text":"boolean"},"default":"false","description":"Indicates edit mode if available.","attribute":"editActive"},{"kind":"field","name":"editNameActive","type":{"text":"boolean"},"default":"false","description":"Indicates edit mode if available.","attribute":"editNameActive"},{"kind":"field","name":"draftActive","type":{"text":"boolean"},"default":"false","description":"Whether the unsaved draft is the viewed entry in preview mode. \"Continue editing\" is only offered while the\ndraft itself is on screen, not while a stored version is viewed alongside it.","attribute":"draftActive"},{"kind":"field","name":"oldVersionActive","type":{"text":"boolean"},"default":"false","description":"Whether an older stored version is shown instead of the current one. Editing always starts from the current\nversion, so the Edit item is hidden to avoid suggesting that the shown version would be edited.","attribute":"oldVersionActive"},{"kind":"field","name":"commentsActive","type":{"text":"boolean"},"default":"false","attribute":"commentsActive"},{"kind":"field","name":"versionsActive","type":{"text":"boolean"},"default":"false","attribute":"versionsActive"},{"kind":"field","name":"hasEventListener","type":{"text":"{ [key: string]: boolean }"},"default":"{ save: false, edit: false, \"edit-name\": false, subscribe: false, trash: false, restore: false, \"delete-forever\": false, }","description":"Tracks which action events have listeners attached.","attribute":"hasEventListener"},{"kind":"method","name":"addEventListener","return":{"type":{"text":"void"}},"parameters":[{"name":"type","type":{"text":"string"}},{"name":"listener","type":{"text":"EventListenerOrEventListenerObject"}},{"name":"options","optional":true,"type":{"text":"boolean | AddEventListenerOptions"}}]},{"kind":"method","name":"dispatchComments","privacy":"protected","parameters":[{"name":"show","type":{"text":"boolean"},"description":"Whether comments should be shown."}],"description":"Emit a `comments` event containing for showing or hiding file comments.","return":{"type":{"text":""}}},{"kind":"method","name":"dispatchVersions","privacy":"protected","parameters":[{"name":"show","type":{"text":"boolean"},"description":"Whether versions should be shown."}],"description":"Emit a `versions` event for showing or hiding file versions.","return":{"type":{"text":""}}},{"kind":"method","name":"toggleEdit","privacy":"protected"},{"kind":"method","name":"toggleEditName","privacy":"protected"},{"kind":"method","name":"toggleComments","privacy":"protected"},{"kind":"method","name":"toggleVersions","privacy":"protected"},{"kind":"method","name":"removeDraft","description":"Removes any draft for the current file."},{"kind":"method","name":"isNotTemp"}],"events":[{"type":{"text":"FileSaveEventType"},"description":"Emitted when file save is requested.","name":"save"},{"type":{"text":"FileEditEventType"},"description":"Emitted when file edit mode change is requested.","name":"edit"},{"type":{"text":"FileEditNameEventType"},"description":"Emitted when rename mode should be activated.","name":"edit-name"},{"type":{"text":"FileSubscribeEventType"},"description":"Emitted when subscribe/unsubscribe is requested.","name":"subscribe"},{"type":{"text":"FileTrashEventType"},"description":"Emitted when a file should be moved to trash.","name":"trash"},{"type":{"text":"FileRestoreEventType"},"description":"Emitted when a trashed file should be restored.","name":"restore"},{"type":{"text":"FileDeleteForeverEventType"},"description":"Emitted when a file should be permanently deleted.","name":"delete-forever"},{"type":{"text":"FileCommentsEventType"},"description":"Emitted when file comments should be opened.","name":"comments"},{"type":{"text":"FileVersionsEventType"},"description":"Emitted when file versions should be opened.","name":"versions"}],"attributes":[{"name":"file","type":{"text":"FileType | undefined"},"description":"File to operate on when rendering menu actions.","fieldName":"file"},{"name":"small","type":{"text":"boolean"},"default":"false","description":"Render the dropdown using compact button styling.","fieldName":"small"},{"name":"hasEdit","type":{"text":"boolean"},"default":"false","fieldName":"hasEdit"},{"name":"hasComments","type":{"text":"boolean"},"default":"false","fieldName":"hasComments"},{"name":"hasVersions","type":{"text":"boolean"},"default":"false","fieldName":"hasVersions"},{"name":"hasSubscribe","type":{"text":"boolean"},"default":"true","description":"Whether the subscribe/unsubscribe item may be shown. Defaults to true since the item is otherwise gated by\na `subscribe` listener; set to false for attachments, which cannot be subscribed to on their own.","fieldName":"hasSubscribe"},{"name":"hasRename","type":{"text":"boolean"},"default":"true","description":"Whether the rename item may be shown. Defaults to true since the item is otherwise gated by an `edit-name`\nlistener and the file rename feature; set to false for attachments, which inherit the features of the block\nthat opened them (e.g. file rename from the Files block) but are not renamable.","fieldName":"hasRename"},{"name":"editActive","type":{"text":"boolean"},"default":"false","description":"Indicates edit mode if available.","fieldName":"editActive"},{"name":"editNameActive","type":{"text":"boolean"},"default":"false","description":"Indicates edit mode if available.","fieldName":"editNameActive"},{"name":"draftActive","type":{"text":"boolean"},"default":"false","description":"Whether the unsaved draft is the viewed entry in preview mode. \"Continue editing\" is only offered while the\ndraft itself is on screen, not while a stored version is viewed alongside it.","fieldName":"draftActive"},{"name":"oldVersionActive","type":{"text":"boolean"},"default":"false","description":"Whether an older stored version is shown instead of the current one. Editing always starts from the current\nversion, so the Edit item is hidden to avoid suggesting that the shown version would be edited.","fieldName":"oldVersionActive"},{"name":"commentsActive","type":{"text":"boolean"},"default":"false","fieldName":"commentsActive"},{"name":"versionsActive","type":{"text":"boolean"},"default":"false","fieldName":"versionsActive"},{"name":"hasEventListener","type":{"text":"{ [key: string]: boolean }"},"default":"{ save: false, edit: false, \"edit-name\": false, subscribe: false, trash: false, restore: false, \"delete-forever\": false, }","description":"Tracks which action events have listeners attached.","fieldName":"hasEventListener"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-file-menu","customElement":true}],"exports":[{"kind":"js","name":"WyFileMenu","declaration":{"name":"WyFileMenu","module":"lib/components/wy-file-menu.ts"}},{"kind":"custom-element-definition","name":"wy-file-menu","declaration":{"name":"WyFileMenu","module":"lib/components/wy-file-menu.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-title.ts","declarations":[{"kind":"class","description":"File list item showing file icon, name and actions.\n\n**Used sub components:**\n\n- [`<wy-file-item>`](./wy-file-item.ts)\n- [`<wy-file-draft-badge>`](./wy-file-draft-badge.ts)","name":"WyFileTitle","slots":[{"description":"Custom title content for the item.","name":"title"},{"description":"Actions slot (e.g. buttons / menus).","name":"actions"}],"members":[{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"File data displayed in the list item.","attribute":"file"},{"kind":"field","name":"hasEditName","type":{"text":"boolean"},"default":"false","description":"Indicates if edit name mode is available.","attribute":"hasEditName"},{"kind":"field","name":"editName","type":{"text":"boolean"},"default":"false","description":"Puts the current file in edit mode if available.","attribute":"editName"},{"kind":"field","name":"rounded","type":{"text":"boolean"},"default":"false","description":"Render the item with rounded corners.","attribute":"rounded"},{"kind":"field","name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether the unsaved draft of the file is shown or edited. A \"Draft\" badge is then displayed next to the name\nonce a draft exists, so the title says what is on screen rather than only hinting at unsaved changes.","attribute":"draft"},{"kind":"method","name":"dispatchEditName","parameters":[{"name":"file","type":{"text":"FileType"},"description":"File that should be renamed."},{"name":"editName","type":{"text":"boolean"}}],"description":"Emit an `edit-name` event to enter rename mode for the given file.","return":{"type":{"text":""}}},{"kind":"method","name":"dispatchRename","parameters":[{"name":"file","type":{"text":"FileType"},"description":"File being renamed."},{"name":"name","type":{"text":"string"},"description":"New filename."}],"description":"Emit a `rename` event containing the updated file name.","return":{"type":{"text":""}}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"FileEditEventType"},"description":"Emitted when file edit mode change is requested.","name":"edit"},{"type":{"text":"FileEditNameEventType"},"description":"Emitted when rename mode is activated.","name":"edit-name"},{"type":{"text":"FileRenameEventType"},"description":"Emitted when a file is renamed.","name":"rename"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"hasEditName","type":{"text":"boolean"},"default":"false","description":"Indicates if edit name mode is available.","fieldName":"hasEditName","attribute":"hasEditName"},{"name":"editName","type":{"text":"boolean"},"default":"false","description":"Puts the current file in edit mode if available.","fieldName":"editName","attribute":"editName"},{"name":"file","type":{"text":"FileType | undefined"},"description":"File data displayed in the list item.","fieldName":"file"},{"name":"rounded","type":{"text":"boolean"},"default":"false","description":"Render the item with rounded corners.","fieldName":"rounded"},{"name":"draft","type":{"text":"boolean"},"default":"false","description":"Whether the unsaved draft of the file is shown or edited. A \"Draft\" badge is then displayed next to the name\nonce a draft exists, so the title says what is on screen rather than only hinting at unsaved changes.","fieldName":"draft"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-file-title","customElement":true}],"exports":[{"kind":"js","name":"WyFileTitle","declaration":{"name":"WyFileTitle","module":"lib/components/wy-file-title.ts"}},{"kind":"custom-element-definition","name":"wy-file-title","declaration":{"name":"WyFileTitle","module":"lib/components/wy-file-title.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-versions.ts","declarations":[{"kind":"class","description":"File versions list for a file — displays available versions and actions (download, revert, remove).\n\n**Used sub components:**\n\n- [`<wy-item-list>`](./ui/wy-item.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-divider>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-item>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-empty>`](./wy-empty.ts)","name":"WyFileVersions","cssParts":[{"description":"Wrapper for the versions list.","name":"wy-versions"}],"members":[{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"Source file whose version timeline should be displayed."},{"kind":"field","name":"activeVersion","type":{"text":"FileType | undefined"},"description":"Currently selected version. Falls back to the latest when unset."},{"kind":"field","name":"activeDraft","type":{"text":"boolean"},"default":"false","description":"Whether the unsaved draft is the selected entry rather than a stored version.","attribute":"activeDraft"},{"kind":"method","name":"selectVersion","parameters":[{"name":"versionFile","type":{"text":"FileType"},"description":"Version to select."}],"description":"Selects the provided version and emits `file-version-select`."},{"kind":"method","name":"selectDraft","description":"Selects the unsaved draft and emits `file-version-select` with `draft` set, so the host can show the draft\nwithout entering edit mode."},{"kind":"method","name":"removeDraft","description":"Removes any draft for the current file."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"FileVersionSelectEventType"},"description":"Emitted when a file version, or the unsaved draft (`draft` set), is selected.","name":"file-version-select"},{"type":{"text":"FileEditEventType"},"description":"Emitted when the file/draft should be edited.","name":"edit"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"activeDraft","type":{"text":"boolean"},"default":"false","description":"Whether the unsaved draft is the selected entry rather than a stored version.","fieldName":"activeDraft"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-file-versions","customElement":true}],"exports":[{"kind":"js","name":"WyFileVersions","declaration":{"name":"WyFileVersions","module":"lib/components/wy-file-versions.ts"}},{"kind":"custom-element-definition","name":"wy-file-versions","declaration":{"name":"WyFileVersions","module":"lib/components/wy-file-versions.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-view-embed.ts","declarations":[{"kind":"class","description":"Lightweight preview wrapper for embedded content.\n\n**Used sub components:**\n\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-file-view-icon>`](./wy-file-view-icon.ts)","name":"WyFileViewEmbed","cssParts":[{"description":"Object/embed container for the preview.","name":"wy-content-embed"},{"description":"Progress indicator shown while loading.","name":"wy-content-progress"},{"description":"Fallback view shown when embed cannot load.","name":"wy-content-embed-fallback"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"Source file."},{"kind":"method","name":"dispatchLoaded","privacy":"protected","description":"Emit `file-preview-loaded` once the preview has finished loading.","return":{"type":{"text":"boolean"}}}],"events":[{"type":{"text":"FilePreviewLoadedEventType"},"description":"The file preview is considered loaded.","name":"file-preview-loaded"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-file-view-embed","customElement":true}],"exports":[{"kind":"js","name":"WyFileViewEmbed","declaration":{"name":"WyFileViewEmbed","module":"lib/components/wy-file-view-embed.ts"}},{"kind":"custom-element-definition","name":"wy-file-view-embed","declaration":{"name":"WyFileViewEmbed","module":"lib/components/wy-file-view-embed.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-view-icon.ts","declarations":[{"kind":"class","description":"Fallback preview display used when no inline preview is available.\nDisplays an icon and an optional link to open the source.\n\n**Used sub components:**\n\n- [`<wy-icon-display>`](./ui/wy-icon.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-button>`](./ui/wy-button.ts)","name":"WyFileViewIcon","members":[{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"Source file."},{"kind":"method","name":"dispatchLoaded","privacy":"protected","description":"Dispatch `file-preview-loaded` when the fallback content is ready.","return":{"type":{"text":"boolean"}}}],"events":[{"type":{"text":"FilePreviewLoadedEventType"},"description":"The file preview is considered loaded.","name":"file-preview-loaded"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-file-view-icon","customElement":true}],"exports":[{"kind":"js","name":"WyFileViewIcon","declaration":{"name":"WyFileViewIcon","module":"lib/components/wy-file-view-icon.ts"}},{"kind":"custom-element-definition","name":"wy-file-view-icon","declaration":{"name":"WyFileViewIcon","module":"lib/components/wy-file-view-icon.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-view-image.ts","declarations":[{"kind":"class","description":"Image preview component used inside file preview overlays.\n\n**Used sub components:**\n\n- [`<wy-container>`](./ui/wy-container.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)","name":"WyFileViewImage","cssParts":[{"description":"Root image wrapper.","name":"wy-content-image"},{"description":"Modifier when dimensions are not provided.","name":"wy-intrinsic-image"},{"description":"The <img> element for the preview.","name":"wy-content-image-img"},{"description":"Progress indicator shown while the image loads.","name":"wy-content-progress"}],"members":[{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"Source file."}],"events":[{"type":{"text":"FilePreviewLoadedEventType"},"description":"The file preview is considered loaded.","name":"file-preview-loaded"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-file-view-image","customElement":true}],"exports":[{"kind":"js","name":"WyFileViewImage","declaration":{"name":"WyFileViewImage","module":"lib/components/wy-file-view-image.ts"}},{"kind":"custom-element-definition","name":"wy-file-view-image","declaration":{"name":"WyFileViewImage","module":"lib/components/wy-file-view-image.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-view-media.ts","declarations":[{"kind":"class","description":"Media preview component for audio/video files.\n\nRenders a <video> or <audio> element with fallbacks and loading UI.\n\n**Used sub components:**\n\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-file-view-icon>`](./wy-file-view-icon.ts)","name":"WyFileViewMedia","cssParts":[{"description":"Video element container / element.","name":"wy-content-video"},{"description":"Audio element container / element.","name":"wy-content-audio"},{"description":"Progress indicator shown while media loads.","name":"wy-content-progress"}],"members":[{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"Source file."},{"kind":"field","name":"play","type":{"text":"boolean"},"default":"false","description":"Toggles playback when the preview item is marked as current.","attribute":"play"}],"events":[{"type":{"text":"FilePreviewLoadedEventType"},"description":"The file preview is considered loaded.","name":"file-preview-loaded"}],"attributes":[{"name":"play","type":{"text":"boolean"},"default":"false","description":"Toggles playback when the preview item is marked as current.","fieldName":"play"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-file-view-media","customElement":true}],"exports":[{"kind":"js","name":"WyFileViewMedia","declaration":{"name":"WyFileViewMedia","module":"lib/components/wy-file-view-media.ts"}},{"kind":"custom-element-definition","name":"wy-file-view-media","declaration":{"name":"WyFileViewMedia","module":"lib/components/wy-file-view-media.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-view-text.ts","declarations":[{"kind":"class","description":"Text / code / HTML preview component used in file previews.\n\n**Used sub components:**\n\n- [`<wy-empty>`](./wy-empty.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-container>`](./ui/wy-container.ts)","name":"WyFileViewText","cssParts":[{"description":"Progress indicator shown while loading.","name":"wy-content-progress"},{"description":"Container for rendered code content.","name":"wy-content-code"},{"description":"Modifier for code styling.","name":"wy-code"},{"description":"Document wrapper used for HTML/text rendering.","name":"wy-document"},{"description":"Container for rendered HTML.","name":"wy-content-html"},{"description":"Container for plain text content.","name":"wy-content-text"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"file","type":{"text":"FileType | undefined"},"description":"Source file."},{"kind":"field","name":"edit","type":{"text":"boolean"},"default":"false","attribute":"edit"},{"kind":"field","name":"draft","type":{"text":"boolean"},"default":"false","description":"Show the unsaved draft instead of the stored content. Ignored while editing, since the editor loads the draft itself.","attribute":"draft"},{"kind":"field","name":"display","type":{"text":"\"text\" | \"code\" | \"document\""},"default":"\"text\""},{"kind":"field","name":"contentKey","type":{"text":"string | undefined"},"privacy":"private","description":"Identifies the loaded revision and representation independently of mutable query-cache file objects."},{"kind":"field","name":"contentRequest","type":{"text":"number"},"privacy":"private","default":"0","description":"Prevents an older content response from overwriting a newer revision or representation."},{"kind":"method","name":"setFocus","description":"Puts focus to the editor if available."},{"kind":"method","name":"save","description":"Publishes the current text edit, or the unsaved draft when called outside the editor (from the preview menu)."},{"kind":"method","name":"renderText","privacy":"protected","return":{"type":{"text":"TemplateResult | DirectiveResult | string"}},"parameters":[{"name":"content","optional":true,"type":{"text":"string"},"description":"Raw text, shown as is for plain text and while a markdown draft is being rendered."},{"name":"contentHtml","optional":true,"type":{"text":"string"},"description":"Rendered HTML, used for documents and server-highlighted code."},{"name":"isDraft","default":"false","type":{"text":"boolean"},"description":"Whether the content is the unsaved draft rather than stored content."}],"description":"Renders the content to show, either the stored file content or the unsaved draft."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"FilePreviewLoadedEventType"},"description":"The file preview is considered loaded.","name":"file-preview-loaded"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"edit","type":{"text":"boolean"},"default":"false","fieldName":"edit"},{"name":"draft","type":{"text":"boolean"},"default":"false","description":"Show the unsaved draft instead of the stored content. Ignored while editing, since the editor loads the draft itself.","fieldName":"draft"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-file-view-text","customElement":true}],"exports":[{"kind":"js","name":"WyFileViewText","declaration":{"name":"WyFileViewText","module":"lib/components/wy-file-view-text.ts"}},{"kind":"custom-element-definition","name":"wy-file-view-text","declaration":{"name":"WyFileViewText","module":"lib/components/wy-file-view-text.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-file-view.ts","declarations":[{"kind":"class","description":"Preview item that selects and renders the appropriate preview component for a file.\nRenders a child preview component depending on format and metadata.\n\n**Used sub components:**\n\n- [`<wy-file-view-image>`](./wy-file-view-image.ts)\n- [`<wy-pdf-viewer>`](./wy-pdf-viewer.ts)\n- [`<wy-file-view-media>`](./wy-file-view-media.ts)\n- [`<wy-file-view-text>`](./wy-file-view-text.ts)\n- [`<wy-file-view-embed>`](./wy-file-view-embed.ts)\n- [`<wy-file-view-icon>`](./wy-file-view-icon.ts)","name":"WyFileView","members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"edit","type":{"text":"boolean"},"default":"false","description":"Edit file if edit mode is available.","attribute":"edit"},{"kind":"field","name":"draft","type":{"text":"boolean"},"default":"false","description":"Show the unsaved draft of the file instead of its stored content (text files only).","attribute":"draft"},{"kind":"method","name":"save","description":"Saves the current edit."},{"kind":"method","name":"setFocus"}],"events":[{"type":{"text":"FilePreviewLoadedEventType"},"description":"The file preview is considered loaded.","name":"file-preview-loaded"}],"attributes":[{"name":"edit","type":{"text":"boolean"},"default":"false","description":"Edit file if edit mode is available.","fieldName":"edit"},{"name":"draft","type":{"text":"boolean"},"default":"false","description":"Show the unsaved draft of the file instead of its stored content (text files only).","fieldName":"draft"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-file-view","customElement":true}],"exports":[{"kind":"js","name":"WyFileView","declaration":{"name":"WyFileView","module":"lib/components/wy-file-view.ts"}},{"kind":"custom-element-definition","name":"wy-file-view","declaration":{"name":"WyFileView","module":"lib/components/wy-file-view.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-filename-input.ts","declarations":[{"kind":"class","description":"Internal filename prompt shared by file creation components.","name":"WyFilenameInput","members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"show","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"pending","type":{"text":"boolean"},"privacy":"private","default":"false","description":"A submit handler is running; input and button are disabled until it settles."},{"kind":"field","name":"error","type":{"text":"string | undefined"},"privacy":"private","description":"Message from the last rejected submission, shown inline until the input changes."},{"kind":"field","name":"inputRef","privacy":"private"},{"kind":"field","name":"resolveFilename","type":{"text":"(filename: string | undefined) => void | undefined"},"privacy":"private"},{"kind":"field","name":"rejectFilename","type":{"text":"(reason: unknown) => void | undefined"},"privacy":"private"},{"kind":"field","name":"submitHandler","type":{"text":"FilenameSubmitHandler | undefined"},"privacy":"private"},{"kind":"field","name":"initialFilename","type":{"text":"string"},"privacy":"private","default":"\"untitled\""},{"kind":"method","name":"open","return":{"type":{"text":""}},"parameters":[{"name":"ext","optional":true,"type":{"text":"string"},"description":"Suggested initial extension, not a restriction."},{"name":"submit","optional":true,"type":{"text":"FilenameSubmitHandler"},"description":"Optional handler run on submit while the prompt stays open, e.g. to create the file and report a taken name."}],"description":"Prompt for a filename, replacing any previous pending prompt."},{"kind":"method","name":"focusInput","privacy":"private","description":"Focus and select the basename, leaving the extension editable.\nDotfiles such as `.env` have no basename to select, so the whole name is selected instead."},{"kind":"method","name":"close","privacy":"private","parameters":[{"name":"filename","optional":true,"type":{"text":"string"},"description":"Accepted filename, or undefined to cancel."}],"description":"Settle the pending prompt and hide the modal."},{"kind":"method","name":"fail","privacy":"private","parameters":[{"name":"reason","type":{"text":"unknown"},"description":"The thrown error."}],"description":"Hide the modal and reject the pending prompt with the submit handler's error."},{"kind":"method","name":"handleSubmit","privacy":"private","parameters":[{"name":"e","type":{"text":"SubmitEvent"}}],"description":"Run the submit handler, keeping the prompt open with an inline error when the name is rejected."}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-filename-input","customElement":true}],"exports":[{"kind":"js","name":"WyFilenameInput","declaration":{"name":"WyFilenameInput","module":"lib/components/wy-filename-input.ts"}},{"kind":"custom-element-definition","name":"wy-filename-input","declaration":{"name":"WyFilenameInput","module":"lib/components/wy-filename-input.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-files-grid.ts","declarations":[{"kind":"class","description":"Grid view renderer for files (card view).\n\n**Used sub components:**\n\n- [`<wy-file-menu>`](./wy-file-menu.ts)\n- [`<wy-file-draft-badge>`](./wy-file-draft-badge.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-button>`](./ui/wy-button.ts)","name":"WyFilesGrid","cssParts":[{"description":"Card grid layout","name":"wy-grid"},{"description":"Card root container","name":"wy-card"},{"description":"Modifier for trashed cards","name":"wy-trashed"},{"description":"Hoverable card modifier","name":"wy-card-interactive"},{"description":"Highlighted card modifier","name":"wy-highlight"},{"description":"Container for per-card actions","name":"wy-card-actions"},{"description":"Thumbnail image area","name":"wy-card-image"},{"description":"Modifier for image top area","name":"wy-card-image-top"},{"description":"Icon area for non-image files","name":"wy-card-icon"},{"description":"Card title area","name":"wy-card-title"},{"description":"Text in the card","name":"wy-card-text"},{"description":"Title action / badge","name":"wy-card-button-icon"},{"description":"Badge used for comment counts","name":"wy-badge"},{"description":"Pager anchor for infinite scrolling detection.","name":"wy-pager"},{"description":"Modifier for overlaying pager.","name":"wy-pager-overlay"},{"description":"Modifier for pager placed in the top.","name":"wy-pager-top"},{"description":"Modifier for pager placed in the bottom.","name":"wy-pager-bottom"}],"members":[{"kind":"field","name":"selectedId","type":{"text":"number | undefined"},"default":"NaN","description":"File id that is selected.","attribute":"selectedId"},{"kind":"field","name":"previousPagerRef","type":{"text":"RefOrCallback<Element>"},"description":"Reference to the pager element for loading previous items."},{"kind":"field","name":"nextPagerRef","type":{"text":"RefOrCallback<Element>"},"description":"Reference to the pager element for loading next items."},{"kind":"method","name":"dispatchOrder","parameters":[{"name":"order","type":{"text":"FileOrderType"},"description":"Order to apply."}],"description":"Emit an `order` event with the selected sort order.","return":{"type":{"text":""}}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an entity.","name":"wy-action"},{"type":{"text":"OrderEventType<FileOrderType>"},"description":"Emitted when the user changes sort order.","name":"order"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"selectedId","type":{"text":"number | undefined"},"default":"NaN","description":"File id that is selected.","fieldName":"selectedId"}],"superclass":{"name":"WeavySubTypeComponent","module":"/lib/classes/weavy-sub-type-component"},"tagName":"wy-files-grid","customElement":true}],"exports":[{"kind":"js","name":"WyFilesGrid","declaration":{"name":"WyFilesGrid","module":"lib/components/wy-files-grid.ts"}},{"kind":"custom-element-definition","name":"wy-files-grid","declaration":{"name":"WyFilesGrid","module":"lib/components/wy-files-grid.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-files-header.ts","declarations":[{"kind":"class","description":"Header toolbar for the files view — actions for uploading, sorting, view options and notifications.\n\n**Used sub components:**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-container>`](./ui/wy-container.ts)\n- [`<wy-cloud-files>`](./wy-cloud-files.ts)\n- [`<wy-context-data-progress>`](./wy-context-data.ts)","name":"WyFilesHeader","cssParts":[{"description":"Root header container","name":"wy-files-header"},{"description":"Header area","name":"wy-header"},{"description":"Outer styling for header area.","name":"wy-header-outer"},{"description":"Toolbar in the header","name":"wy-files-header-toolbar"},{"description":"Toolbar container for header actions","name":"wy-toolbar"},{"description":"Group for toolbar buttons","name":"wy-toolbar-buttons"},{"description":"Right aligned toolbar button group","name":"wy-toolbar-buttons-last"}],"slots":[{"description":"Title placed in the toolbar.","name":"title"},{"description":"Buttons placed in the toolbar.","name":"actions"}],"members":[{"kind":"field","name":"header","type":{"text":"\"interactive\" | \"empty\" | \"none\""},"default":"\"interactive\"","description":"Appearance of the file list header","attribute":"header"},{"kind":"field","name":"order","type":{"text":"FileOrderType"},"default":"{ by: \"name\", descending: false }","description":"Active sort order for the list.","attribute":"order"},{"kind":"field","name":"view","type":{"text":"\"grid\" | \"list\""},"default":"\"list\"","description":"Active layout for rendering files.","attribute":"view"},{"kind":"field","name":"showTrashed","type":{"text":"boolean"},"default":"false","description":"Show trashed files when enabled.","attribute":"showTrashed"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a file is created. Editable files use `edit` and are opened in edit mode, other files use `select` and are selected.","name":"wy-action"},{"type":{"text":"OrderEventType<FileOrderType>"},"description":"Emitted when the user changes sort order.","name":"order"},{"type":{"text":"ViewEventType<FileViewType>"},"description":"Emitted when the user changes the view mode (list/grid).","name":"view"},{"type":{"text":"ShowTrashedEventType"},"description":"Emitted when the show/hide trashed toggle is changed.","name":"show-trashed"},{"type":{"text":"SubscribeEventType"},"description":"Emitted when the app subscribe/unsubscribe action is triggered.","name":"subscribe"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"header","type":{"text":"\"interactive\" | \"empty\" | \"none\""},"default":"\"interactive\"","description":"Appearance of the file list header","fieldName":"header"},{"name":"order","type":{"text":"FileOrderType"},"default":"{ by: \"name\", descending: false }","description":"Active sort order for the list.","fieldName":"order"},{"name":"view","type":{"text":"\"grid\" | \"list\""},"default":"\"list\"","description":"Active layout for rendering files.","fieldName":"view"},{"name":"showTrashed","type":{"text":"boolean"},"default":"false","description":"Show trashed files when enabled.","fieldName":"showTrashed"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-files-header","customElement":true}],"exports":[{"kind":"js","name":"WyFilesHeader","declaration":{"name":"WyFilesHeader","module":"lib/components/wy-files-header.ts"}},{"kind":"custom-element-definition","name":"wy-files-header","declaration":{"name":"WyFilesHeader","module":"lib/components/wy-files-header.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-files-list.ts","declarations":[{"kind":"class","description":"Container that renders files either in a grid or a table (list) view and proxies file events.\n\n**Used sub components:**\n\n- [`<wy-files-grid>`](./wy-files-grid.ts)\n- [`<wy-files-table>`](./wy-files-table.ts)\n- [`<wy-preview>`](./wy-preview.ts)\n- [`<wy-empty>`](./wy-empty.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)","name":"WyFilesList","cssParts":[{"description":"Root wrapper (applies host styles from hostContentsCss).","name":"wy-files-list"}],"members":[{"kind":"field","name":"order","type":{"text":"FileOrderType"},"default":"{ by: \"name\", descending: false }","description":"File order in the list. Order by combined with direction.","attribute":"order"},{"kind":"field","name":"view","type":{"text":"FileViewType"},"default":"\"list\"","description":"The view for showing the file list.","attribute":"view"},{"kind":"field","name":"showTrashed","type":{"text":"boolean"},"default":"false","description":"Enable showing trashed files.","attribute":"showTrashed"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"placeholder"},{"kind":"field","name":"selectedId","type":{"text":"number | undefined"},"default":"NaN","description":"File id that is selected.","attribute":"selectedId"},{"kind":"method","name":"preview","parameters":[{"name":"fileId","type":{"text":"number"},"description":"The id of the file to open"},{"name":"options","type":{"text":"{ edit?: boolean; tab?: \"comments\" | \"versions\" }"}},{"description":"Optional edit mode","name":"options.edit"},{"description":"Optional tab to open in preview","name":"options.tab"}],"description":"Open a file in preview/edit"},{"kind":"field","name":"previousPager","type":{"text":"Element | undefined"},"description":"Reference to the pager element for loading previous items."},{"kind":"field","name":"nextPager","type":{"text":"Element | undefined"},"description":"Reference to the pager element for loading next items."},{"kind":"field","name":"handleRealtimeFileCreated","privacy":"protected","description":"Handler for realtime file creation events"},{"kind":"method","name":"dispatchOrder","parameters":[{"name":"order","type":{"text":"FileOrderType"},"description":"Order to apply."}],"description":"Emit an `order` event with the provided sort order.","return":{"type":{"text":"boolean"}}},{"kind":"method","name":"handleActionEvent","privacy":"protected","parameters":[{"name":"e","type":{"text":"WyActionEventType"}}]},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an entity.","name":"wy-action"},{"type":{"text":"OrderEventType<FileOrderType>"},"description":"Emitted when the user changes sort order.","name":"order"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"order","type":{"text":"FileOrderType"},"default":"{ by: \"name\", descending: false }","description":"File order in the list. Order by combined with direction.","fieldName":"order"},{"name":"view","type":{"text":"FileViewType"},"default":"\"list\"","description":"The view for showing the file list.","fieldName":"view"},{"name":"showTrashed","type":{"text":"boolean"},"default":"false","description":"Enable showing trashed files.","fieldName":"showTrashed"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"placeholder"},{"name":"selectedId","type":{"text":"number | undefined"},"default":"NaN","description":"File id that is selected.","fieldName":"selectedId"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-files-list","customElement":true}],"exports":[{"kind":"js","name":"WyFilesList","declaration":{"name":"WyFilesList","module":"lib/components/wy-files-list.ts"}},{"kind":"custom-element-definition","name":"wy-files-list","declaration":{"name":"WyFilesList","module":"lib/components/wy-files-list.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-files-table.ts","declarations":[{"kind":"class","description":"Table view for file lists.\n\n**Used sub components:**\n\n- [`<wy-file-menu>`](./wy-file-menu.ts)\n- [`<wy-file-draft-badge>`](./wy-file-draft-badge.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-button>`](./ui/wy-button.ts)","name":"WyFilesTable","cssParts":[{"description":"Table root element","name":"wy-table"},{"description":"Modifier for hoverable rows","name":"wy-table-interactive"},{"description":"Table rows","name":"wy-tr"},{"description":"Table header cells","name":"wy-th"},{"description":"Cells that contain icons/actions","name":"wy-col-icon"},{"description":"Content in icon/action cells","name":"wy-col-icon-content"},{"description":"Cells that contain name","name":"wy-col-name"},{"description":"Cells that contain time","name":"wy-col-time"},{"description":"Cells that contain kind","name":"wy-col-kind"},{"description":"Cells that contain size","name":"wy-col-size"},{"description":"Sortable table header cell","name":"wy-sort-link"},{"description":"Input field for file rename.","name":"wy-input"},{"description":"Modifier for highlighted row","name":"wy-highlight"},{"description":"Modifier for trashed row.","name":"wy-trashed"},{"description":"Badge used for comment counts","name":"wy-badge"},{"description":"Pager anchor for infinite scrolling detection.","name":"wy-pager"},{"description":"Modifier for overlaying pager.","name":"wy-pager-overlay"},{"description":"Modifier for pager placed in the top.","name":"wy-pager-top"},{"description":"Modifier for pager placed in the bottom.","name":"wy-pager-bottom"}],"members":[{"kind":"field","name":"order","type":{"text":"FileOrderType"},"default":"{ by: \"name\", descending: false }","description":"Active sort order for the table."},{"kind":"field","name":"selectedId","type":{"text":"number | undefined"},"default":"NaN","description":"File id that is selected.","attribute":"selectedId"},{"kind":"field","name":"previousPagerRef","type":{"text":"RefOrCallback<Element>"},"description":"Reference to the pager element for loading previous items."},{"kind":"field","name":"nextPagerRef","type":{"text":"RefOrCallback<Element>"},"description":"Reference to the pager element for loading next items."},{"kind":"method","name":"dispatchOrder","parameters":[{"name":"order","type":{"text":"FileOrderType"},"description":"Order to apply."}],"description":"Emit an `order` event with the provided sort order.","return":{"type":{"text":""}}},{"kind":"method","name":"renderFileTable","parameters":[{"name":"files","type":{"text":"FileType[]"},"description":"Files to render."},{"name":"order","optional":true,"type":{"text":"FileOrderType"},"description":"Current table order."},{"name":"isRenamingId","optional":true,"type":{"text":"number"},"description":"File id in rename mode."},{"name":"highlightId","optional":true,"type":{"text":"number"},"description":"File id to highlight."},{"description":"Reference for scrolling highlighted rows.","name":"highlightRef"}],"description":"Render the complete file table layout."},{"kind":"method","name":"renderFileTableHeaders","parameters":[{"name":"order","optional":true,"type":{"text":"FileOrderType"},"description":"Current sort order."}],"description":"Render table header cells with sorting affordances."},{"kind":"method","name":"renderFileTableRow","parameters":[{"name":"weavy","type":{"text":"WeavyType | undefined"},"description":"Current Weavy context."},{"name":"{ file }","type":{"text":"{ file: FileType }"}},{"name":"isRenamingId","optional":true,"type":{"text":"number"},"description":"File id in rename mode."},{"name":"highlightId","optional":true,"type":{"text":"number"},"description":"File id to highlight."},{"description":"Row data containing the file.","name":"row"}],"description":"Render a single file table row."},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an entity.","name":"wy-action"},{"type":{"text":"OrderEventType<FileOrderType>"},"description":"Emitted when the user changes sort order.","name":"order"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"selectedId","type":{"text":"number | undefined"},"default":"NaN","description":"File id that is selected.","fieldName":"selectedId"}],"superclass":{"name":"WeavySubTypeComponent","module":"/lib/classes/weavy-sub-type-component"},"tagName":"wy-files-table","customElement":true}],"exports":[{"kind":"js","name":"WyFilesTable","declaration":{"name":"WyFilesTable","module":"lib/components/wy-files-table.ts"}},{"kind":"custom-element-definition","name":"wy-files-table","declaration":{"name":"WyFilesTable","module":"lib/components/wy-files-table.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-meeting-card.ts","declarations":[{"kind":"class","description":"Card display for a meeting (e.g. Zoom, Google Meet, Teams).\n\n**Used sub components:**\n\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)","name":"WyMeetingCard","cssParts":[{"description":"Meeting card item","name":"wy-meeting"}],"members":[{"kind":"field","name":"meeting","type":{"text":"MeetingType"},"description":"Meeting data rendered by the card."}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-meeting-card","customElement":true}],"exports":[{"kind":"js","name":"WyMeetingCard","declaration":{"name":"WyMeetingCard","module":"lib/components/wy-meeting-card.ts"}},{"kind":"custom-element-definition","name":"wy-meeting-card","declaration":{"name":"WyMeetingCard","module":"lib/components/wy-meeting-card.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-message-typing.ts","declarations":[{"kind":"class","description":"Displays typing indicator for messages in a conversation.\n\n**Used sub components:**\n\n- [`<wy-avatar-group>`](./ui/wy-avatar.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)","name":"WyMessageTyping","cssParts":[{"description":"Root container for typing indicator.","name":"wy-message-typing"},{"description":"Message container.","name":"wy-message"},{"description":"Modifier for message container when author is agent .","name":"wy-message-agent"},{"description":"Message section for the author avatar.","name":"wy-message-author"},{"description":"Message section for the content.","name":"wy-message-content"},{"description":"Message content section for author names and time.","name":"wy-message-meta"},{"description":"Message content section for the text bubble containing the bouncer.","name":"wy-message-bubble"},{"description":"SVG bouncing graphic.","name":"wy-bouncer"},{"description":"Dot in the SVG bouncer.","name":"wy-bouncer-dot"},{"description":"The first dot.","name":"wy-bouncer-dot-start"},{"description":"The second dot.","name":"wy-bouncer-dot-middle"},{"description":"The last dot.","name":"wy-bouncer-dot-end"}],"members":[{"kind":"field","name":"conversationId","type":{"text":"number | undefined"},"description":"Conversation id to bind typing updates to.","attribute":"conversationId"},{"kind":"field","name":"userId","type":{"text":"number | undefined"},"description":"Current user id used to filter typing updates.","attribute":"userId"},{"kind":"field","name":"isPrivateChat","type":{"text":"boolean"},"default":"false","description":"Render the typing indicator using private chat layout.","attribute":"isPrivateChat"},{"kind":"field","name":"members","type":{"text":"MemberType[]"},"default":"[]","description":"Members participating in the conversation."}],"events":[{"type":{"text":"TypingEventType"},"description":"Emitted when typing state changes.","name":"typing"}],"attributes":[{"name":"conversationId","type":{"text":"number | undefined"},"description":"Conversation id to bind typing updates to.","fieldName":"conversationId"},{"name":"userId","type":{"text":"number | undefined"},"description":"Current user id used to filter typing updates.","fieldName":"userId"},{"name":"isPrivateChat","type":{"text":"boolean"},"default":"false","description":"Render the typing indicator using private chat layout.","fieldName":"isPrivateChat"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-message-typing","customElement":true}],"exports":[{"kind":"js","name":"WyMessageTyping","declaration":{"name":"WyMessageTyping","module":"lib/components/wy-message-typing.ts"}},{"kind":"custom-element-definition","name":"wy-message-typing","declaration":{"name":"WyMessageTyping","module":"lib/components/wy-message-typing.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-message.ts","declarations":[{"kind":"class","description":"Displays a single message in a conversation.\n\n**Used sub components:**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-skeleton>`](./ui/wy-skeleton.ts)\n- [`<wy-attachment-list>`](./wy-attachment.ts)\n- [`<wy-annotation>`](./wy-annotation.ts)\n- [`<wy-annotation-list>`](./wy-annotation.ts)\n- [`<wy-embed>`](./wy-embed.ts)\n- [`<wy-image-grid>`](./ui/wy-image-grid.ts)\n- [`<wy-meeting-card>`](./wy-meeting-card.ts)\n- [`<wy-poll>`](./wy-poll.ts)\n- [`<wy-reactions>`](./wy-reactions.ts)\n- [`<wy-preview>`](./wy-preview.ts)","name":"WyMessage","cssParts":[{"description":"Root message container.","name":"wy-message"},{"description":"Modifier for messages from the current user.","name":"wy-message-me"},{"description":"Modifier for agent messages.","name":"wy-message-agent"},{"description":"Modifier used when a message is highlighted.","name":"wy-highlight"},{"description":"Author/avatar area.","name":"wy-message-author"},{"description":"Content wrapper.","name":"wy-message-content"},{"description":"Meta area (name/time).","name":"wy-message-meta"},{"description":"Message bubble.","name":"wy-message-bubble"},{"description":"Bubble modifier for emoji-only messages.","name":"wy-message-bubble-emoji"},{"description":"Sections inside the bubble (images, attachments, annotations).","name":"wy-message-bubble-section"},{"description":"Modifier for a message whose blocked author's content is held back.","name":"wy-message-blocked"},{"description":"The report flag in the meta row.","name":"wy-message-report"},{"description":"Modifier once the reader has reported it, carrying no action of its own.","name":"wy-message-report-reported"},{"description":"HTML/text content area.","name":"wy-content"},{"description":"Content modifier for emoji-only content.","name":"wy-content-emoji"},{"description":"Seen-by avatars area.","name":"wy-message-seenby"},{"description":"Wrapper for annotation buttons (from wy-annotation-list).","name":"wy-annotations"},{"description":"Annotation button (from wy-annotation).","name":"wy-annotation"},{"description":"Icon inside an annotation button.","name":"wy-annotation-icon"},{"description":"Text inside an annotation button.","name":"wy-annotation-text"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"conversation","type":{"text":"AppType | undefined"},"description":"App context owning the message."},{"kind":"field","name":"messageId","type":{"text":"number"},"description":"Unique identifier for the rendered message.","attribute":"messageId"},{"kind":"field","name":"author","type":{"text":"UserOrAgentType"},"description":"The author of the message.","attribute":"author"},{"kind":"field","name":"me","description":"True when the message was authored by the current user.","readonly":true},{"kind":"field","name":"isPrivateChat","type":{"text":"boolean"},"default":"false","description":"Render the message using private-conversation layout.","attribute":"isPrivateChat"},{"kind":"field","name":"authorIsBlocked","type":{"text":"boolean"},"default":"false","description":"True when the viewer has blocked the author of this message.\n\nPassed in rather than read from `author.is_blocked`, because a message author never carries that flag -- authors\nare mapped minimally, and the same payload is broadcast over realtime after being mapped once in the sender's\nrequest, so caller-relative fields are left out of it. wy-conversation answers from the viewer's own block list\nand, where the app has one, its member list.","attribute":"authorIsBlocked"},{"kind":"field","name":"createdAt","type":{"text":"string"},"default":"\"\"","description":"ISO timestamp when the message was created.","attribute":"createdAt"},{"kind":"field","name":"html","type":{"text":"string"},"default":"\"\"","description":"HTML formatted message content.","attribute":"html"},{"kind":"field","name":"text","type":{"text":"string"},"default":"\"\"","description":"Plain-text message content.","attribute":"text"},{"kind":"field","name":"annotations","type":{"text":"FileType[] | undefined"},"default":"[]","description":"Annotation files attached to the message.","attribute":"annotations"},{"kind":"field","name":"attachments","type":{"text":"FileType[] | undefined"},"default":"[]","description":"Attachment files associated with the message.","attribute":"attachments"},{"kind":"field","name":"meeting","type":{"text":"MeetingType | undefined"},"description":"Meeting information attached to the message."},{"kind":"field","name":"pollOptions","type":{"text":"PollOptionType[] | undefined"},"default":"[]","description":"Poll options available on the message.","attribute":"pollOptions"},{"kind":"field","name":"embed","type":{"text":"EmbedType | undefined"},"description":"Embed metadata attached to the message."},{"kind":"field","name":"reactions","type":{"text":"ReactableType[] | undefined"},"default":"[]","description":"Reactions applied to the message.","attribute":"reactions"},{"kind":"field","name":"seenBy","type":{"text":"MemberDetailType[]"},"default":"[]","description":"Members who have seen the message.","attribute":"seenBy"},{"kind":"field","name":"highlight","type":{"text":"boolean"},"default":"false","description":"Highlight the message bubble when true.","attribute":"highlight"},{"kind":"field","name":"reported","type":{"text":"boolean"},"default":"false","description":"Whether the authenticated user has already reported this message.\n\nKept visible rather than hidden once set: the flag is the only record the reporter ever sees, since weavy stores no\nreport history and exposes no read API. Hosts that would rather reporting be fire-and-forget can hide it with\n`::part(wy-message-report-reported)` -- shown by default, opt out per integration.","attribute":"reported"},{"kind":"field","name":"reportedAt","type":{"text":"string | undefined"},"description":"When the authenticated user reported this message, used for the title on the report flag.","attribute":"reportedAt"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"PollVoteEventType"},"description":"Emitted when a poll option is voted.","name":"vote"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an entity action is triggered.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"messageId","type":{"text":"number"},"description":"Unique identifier for the rendered message.","fieldName":"messageId"},{"name":"author","type":{"text":"UserOrAgentType"},"description":"The author of the message.","fieldName":"author"},{"name":"isPrivateChat","type":{"text":"boolean"},"default":"false","description":"Render the message using private-conversation layout.","fieldName":"isPrivateChat"},{"name":"authorIsBlocked","type":{"text":"boolean"},"default":"false","description":"True when the viewer has blocked the author of this message.\n\nPassed in rather than read from `author.is_blocked`, because a message author never carries that flag -- authors\nare mapped minimally, and the same payload is broadcast over realtime after being mapped once in the sender's\nrequest, so caller-relative fields are left out of it. wy-conversation answers from the viewer's own block list\nand, where the app has one, its member list.","fieldName":"authorIsBlocked"},{"name":"createdAt","type":{"text":"string"},"default":"\"\"","description":"ISO timestamp when the message was created.","fieldName":"createdAt"},{"name":"html","type":{"text":"string"},"default":"\"\"","description":"HTML formatted message content.","fieldName":"html"},{"name":"text","type":{"text":"string"},"default":"\"\"","description":"Plain-text message content.","fieldName":"text"},{"name":"annotations","type":{"text":"FileType[] | undefined"},"default":"[]","description":"Annotation files attached to the message.","fieldName":"annotations"},{"name":"attachments","type":{"text":"FileType[] | undefined"},"default":"[]","description":"Attachment files associated with the message.","fieldName":"attachments"},{"name":"pollOptions","type":{"text":"PollOptionType[] | undefined"},"default":"[]","description":"Poll options available on the message.","fieldName":"pollOptions"},{"name":"reactions","type":{"text":"ReactableType[] | undefined"},"default":"[]","description":"Reactions applied to the message.","fieldName":"reactions"},{"name":"seenBy","type":{"text":"MemberDetailType[]"},"default":"[]","description":"Members who have seen the message.","fieldName":"seenBy"},{"name":"highlight","type":{"text":"boolean"},"default":"false","description":"Highlight the message bubble when true.","fieldName":"highlight"},{"name":"reported","type":{"text":"boolean"},"default":"false","description":"Whether the authenticated user has already reported this message.\n\nKept visible rather than hidden once set: the flag is the only record the reporter ever sees, since weavy stores no\nreport history and exposes no read API. Hosts that would rather reporting be fire-and-forget can hide it with\n`::part(wy-message-report-reported)` -- shown by default, opt out per integration.","fieldName":"reported"},{"name":"reportedAt","type":{"text":"string | undefined"},"description":"When the authenticated user reported this message, used for the title on the report flag.","fieldName":"reportedAt"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-message","customElement":true}],"exports":[{"kind":"js","name":"WyMessage","declaration":{"name":"WyMessage","module":"lib/components/wy-message.ts"}},{"kind":"custom-element-definition","name":"wy-message","declaration":{"name":"WyMessage","module":"lib/components/wy-message.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-notification-list-item.ts","declarations":[{"kind":"class","description":"Notification list item used in lists or standalone toasts.\n\n**Used sub components:**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)","name":"WyNotificationListItem","cssParts":[{"description":"Root notification container.","name":"wy-notification"},{"description":"Notification text.","name":"wy-notification-text"},{"description":"Meta/time area.","name":"wy-meta"},{"description":"Quoted notification text.","name":"wy-quote"}],"members":[{"kind":"field","name":"notificationId","type":{"text":"number"},"description":"Identifier of the notification being rendered.","attribute":"notificationId"},{"kind":"field","name":"selected","type":{"text":"boolean"},"default":"false","description":"Highlight the item when it matches the current selection.","attribute":"selected","reflects":true},{"kind":"field","name":"standalone","type":{"text":"boolean"},"default":"false","description":"Render as a standalone toast (enables dismiss actions).","attribute":"standalone"},{"kind":"field","name":"notification","type":{"text":"NotificationType"},"description":"Notification data shown in the item."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"NotificationSelectEventType"},"description":"Emitted when the notification is selected.","name":"select"},{"type":{"text":"NotificationMarkEventType"},"description":"Emitted when the notification is marked read/unread.","name":"mark"},{"type":{"text":"NotificationHideEventType"},"description":"Emitted when a standalone notification should be hidden.","name":"hide"},{"type":{"text":"NotificationCloseEventType"},"description":"Emitted when a standalone notification should be closed.","name":"close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"notificationId","type":{"text":"number"},"description":"Identifier of the notification being rendered.","fieldName":"notificationId"},{"name":"selected","type":{"text":"boolean"},"default":"false","description":"Highlight the item when it matches the current selection.","fieldName":"selected"},{"name":"standalone","type":{"text":"boolean"},"default":"false","description":"Render as a standalone toast (enables dismiss actions).","fieldName":"standalone"}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-notification-list-item","customElement":true}],"exports":[{"kind":"js","name":"WyNotificationListItem","declaration":{"name":"WyNotificationListItem","module":"lib/components/wy-notification-list-item.ts"}},{"kind":"custom-element-definition","name":"wy-notification-list-item","declaration":{"name":"WyNotificationListItem","module":"lib/components/wy-notification-list-item.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-notification-list.ts","declarations":[{"kind":"class","description":"Displays a list of notifications with tabs and paging.\n\n**Used sub components:**\n\n- [`<wy-buttons>`](./ui/wy-buttons.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-notification-list-item>`](./wy-notification-list-item.ts)\n- [`<wy-empty>`](./wy-empty.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-presence>`](./ui/wy-presence.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)","name":"WyNotificationList","cssParts":[{"description":"Toolbar area containing tabs and actions.","name":"wy-pane-toolbar"},{"description":"Body wrapper for the list.","name":"wy-pane-body"},{"description":"Group wrapper inside the pane body.","name":"wy-pane-group"},{"description":"Pager container.","name":"wy-pager"},{"description":"Pager modifier for bottom placement.","name":"wy-pager-bottom"}],"slots":[{"description":"Extra buttons to render in the toolbar.","name":"buttons"},{"description":"Fallback content when there are no notifications.","name":"empty"}],"members":[{"kind":"field","name":"notificationId","type":{"text":"number | undefined"},"description":"Identifier of the notification that should appear selected.","attribute":"notificationId"},{"kind":"field","name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Active notification filter.","default":"\"\"","attribute":"typeFilter"},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope the notification list.\nWhen set, only notifications from apps belonging to this directory are shown.","attribute":"directory"},{"kind":"method","name":"markAsRead","parameters":[{"name":"notificationId","type":{"text":"number"},"description":"Target notification id."},{"name":"markAsRead","default":"true","type":{"text":"boolean"},"description":"Desired read state."}],"description":"Mark or unmark a notification as read."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a notification is selected.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"notificationId","type":{"text":"number | undefined"},"description":"Identifier of the notification that should appear selected.","fieldName":"notificationId"},{"name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Active notification filter.","default":"\"\"","fieldName":"typeFilter"},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope the notification list.\nWhen set, only notifications from apps belonging to this directory are shown.","fieldName":"directory"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-notification-list","customElement":true},{"kind":"class","description":"A header with filtering for notifications.\n\n**Used sub components:**\n\n- [`<wy-buttons>`](./ui/wy-button.ts)\n- [`<wy-button>`](./ui/wy-button.ts)","name":"WyNotificationHeader","cssParts":[{"description":"Toolbar area containing tabs and actions.","name":"wy-pane-toolbar"}],"slots":[{"description":"Content to override the filtering buttons.","name":""},{"description":"Additional action buttons next to the filtering buttons.","name":"actions"}],"members":[{"kind":"field","name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"The selected filtering.","default":"\"\"","attribute":"typeFilter"},{"kind":"method","name":"dispatchFilter","parameters":[{"name":"typeFilter","type":{"text":"NotificationTypes"},"description":"Filter to emit."}],"description":"Trigger `filter` event.","return":{"type":{"text":""}}}],"events":[{"type":{"text":"NotificationFilterEventType"},"description":"Any user selected filter. Can be prevented.","name":"filter"}],"attributes":[{"name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"The selected filtering.","default":"\"\"","fieldName":"typeFilter"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-notification-header","customElement":true}],"exports":[{"kind":"js","name":"WyNotificationList","declaration":{"name":"WyNotificationList","module":"lib/components/wy-notification-list.ts"}},{"kind":"custom-element-definition","name":"wy-notification-list","declaration":{"name":"WyNotificationList","module":"lib/components/wy-notification-list.ts"}},{"kind":"js","name":"WyNotificationHeader","declaration":{"name":"WyNotificationHeader","module":"lib/components/wy-notification-list.ts"}},{"kind":"custom-element-definition","name":"wy-notification-header","declaration":{"name":"WyNotificationHeader","module":"lib/components/wy-notification-list.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-pdf-viewer.ts","declarations":[{"kind":"class","description":"PDF Viewer component based on pdf.js examples.","name":"WyPdfViewer","cssParts":[{"description":"Bottom toolbar wrapper.","name":"wy-toolbars-bottom"},{"description":"Toolbar container.","name":"wy-toolbar"},{"description":"Centered toolbar area.","name":"wy-toolbar-center"},{"description":"Button group inside toolbar.","name":"wy-toolbar-buttons"},{"description":"Inputs in toolbars (page number / zoom).","name":"wy-input"},{"description":"Centered text in toolbar.","name":"wy-toolbar-center-text"},{"description":"Text elements in the toolbar.","name":"wy-toolbar-text"},{"description":"Viewer container for PDF pages.","name":"wy-pdf-container"}],"members":[{"kind":"method","name":"dispatchLoaded","privacy":"protected","description":"Emit `file-preview-loaded` once the viewer has initialized.","return":{"type":{"text":"boolean"}}},{"kind":"field","name":"MAX_CANVAS_PIXELS","type":{"text":"number"},"default":"0"},{"kind":"field","name":"TEXT_LAYER_MODE","type":{"text":"number"},"default":"0"},{"kind":"field","name":"MAX_IMAGE_SIZE","type":{"text":"number"},"default":"-1"},{"kind":"field","name":"CMAP_URL","type":{"text":"URL | undefined"}},{"kind":"field","name":"CMAP_PACKED","type":{"text":"boolean"},"default":"true"},{"kind":"field","name":"DEFAULT_SCALE_DELTA","type":{"text":"number"},"default":"1.1"},{"kind":"field","name":"MIN_SCALE","type":{"text":"number"},"default":"0.25"},{"kind":"field","name":"MAX_SCALE","type":{"text":"number"},"default":"10.0"},{"kind":"field","name":"DEFAULT_SCALE_VALUE","type":{"text":"string"},"default":"\"auto\""},{"kind":"field","name":"ENABLE_XFA","type":{"text":"boolean"},"default":"true"},{"kind":"field","name":"DEFAULT_WORKER_URL","type":{"text":"string"},"default":"\"/pdfjs/pdf.worker.min.mjs\""},{"kind":"field","name":"DEFAULT_CMAPS_URL","type":{"text":"string"},"default":"\"/pdfjs/cmaps/\""},{"kind":"field","name":"DEFAULT_WASM_URL","type":{"text":"string"},"default":"\"/pdfjs/wasm/\""},{"kind":"field","name":"DEFAULT_ICC_URL","type":{"text":"string"},"default":"\"/pdfjs/iccs/\""},{"kind":"field","name":"DEFAULT_FONTS_URL","type":{"text":"string"},"default":"\"/pdfjs/fonts/\""},{"kind":"field","name":"WORKER_URL","type":{"text":"URL | undefined"}},{"kind":"field","name":"WASM_URL","type":{"text":"URL | undefined"}},{"kind":"field","name":"ICC_URL","type":{"text":"URL | undefined"}},{"kind":"field","name":"FONTS_URL","type":{"text":"URL | undefined"}},{"kind":"field","name":"src","type":{"text":"string | undefined"},"description":"Source URL for the PDF to display.","attribute":"src"},{"kind":"field","name":"size","type":{"text":"number | undefined"},"description":"The length of the pdf file, used to enhance loading.","attribute":"size"},{"kind":"field","name":"pdfDocument","type":{"text":"PDFDocumentProxy | undefined"}},{"kind":"field","name":"pdfLoadingTask","type":{"text":"PDFDocumentLoadingTask | undefined"},"privacy":"protected"},{"kind":"field","name":"progress","type":{"text":"OnProgressParameters | undefined"},"default":"{ loaded: NaN, total: NaN, percent: NaN }"},{"kind":"field","name":"delayedResize","type":{"text":"number | undefined"},"privacy":"protected"},{"kind":"field","name":"resizer","type":{"text":"ResizeObserver"},"privacy":"protected","default":"new ResizeObserver(() => { if (this.pdfViewer) { if (this.delayedResize) { clearTimeout(this.delayedResize); this.delayedResize = undefined; } this.delayedResize = window.setTimeout(() => { if (this.pdfViewer) { // Update/Set scale this.pdfViewer.currentScaleValue = this.pdfViewer._currentScaleValue as string; } }, 100); } })"},{"kind":"method","name":"setPage","parameters":[{"name":"pageNumber","type":{"text":"number"},"description":"One-based page index."}],"description":"Navigate to the provided page number."},{"kind":"method","name":"zoomIn","parameters":[{"name":"ticks","default":"1","type":{"text":"number"},"description":"Number of zoom steps to apply."}],"description":"Increase zoom level by the configured delta."},{"kind":"method","name":"zoomOut","parameters":[{"name":"ticks","default":"1","type":{"text":"number"},"description":"Number of zoom steps to apply."}],"description":"Decrease zoom level by the configured delta."},{"kind":"method","name":"setScale","parameters":[{"name":"scale","type":{"text":"number | string"},"description":"Numeric zoom or preset name."}],"description":"Apply an absolute zoom level or named scale preset."},{"kind":"method","name":"updatePage","description":"Validate and update the current page based on the input value."},{"kind":"method","name":"select","parameters":[{"name":"e","type":{"text":"Event"},"description":"Input focus event."}],"description":"Select all text inside an input, aiding quick replacement."},{"kind":"method","name":"fitToPage","description":"Fit the PDF to the current viewport height."},{"kind":"method","name":"fitToWidth","description":"Fit the PDF to the current viewport width."},{"kind":"method","name":"updateZoom","description":"Validate and persist zoom level from the input field."}],"events":[{"type":{"text":"FilePreviewLoadedEventType"},"description":"The file preview is considered loaded.","name":"file-preview-loaded"}],"attributes":[{"name":"src","type":{"text":"string | undefined"},"description":"Source URL for the PDF to display.","fieldName":"src"},{"name":"size","type":{"text":"number | undefined"},"description":"The length of the pdf file, used to enhance loading.","fieldName":"size"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-pdf-viewer","customElement":true}],"exports":[{"kind":"js","name":"WyPdfViewer","declaration":{"name":"WyPdfViewer","module":"lib/components/wy-pdf-viewer.ts"}},{"kind":"custom-element-definition","name":"wy-pdf-viewer","declaration":{"name":"WyPdfViewer","module":"lib/components/wy-pdf-viewer.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-poll.ts","declarations":[{"kind":"class","description":"Poll container rendering a list of poll options.\n\n**Used sub components:**\n\n- [`<wy-poll-option>`](./wy-poll.ts)","name":"WyPoll","cssParts":[{"description":"Root poll container.","name":"wy-poll"}],"members":[{"kind":"field","name":"pollOptions","type":{"text":"PollOptionType[]"},"default":"[]","description":"Poll options displayed in the list."},{"kind":"method","name":"dispatchVote","privacy":"private","parameters":[{"name":"optionId","type":{"text":"number"},"description":"Identifier of the option to vote for."}],"description":"Dispatch a `vote` event for the specified option.","return":{"type":{"text":"boolean"}}}],"events":[{"type":{"text":"PollVoteEventType"},"description":"Emitted when a poll option is voted.","name":"vote"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-poll","customElement":true},{"kind":"class","description":"Poll option item showing vote meter, label and optional voter list sheet.\n\n**Used sub components:**\n\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-container>`](./ui/wy-container.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-badge>`](./ui/wy-badge.ts)","name":"WyPollOption","cssParts":[{"description":"Root poll option container.","name":"wy-poll-option"},{"description":"Visual meter showing vote ratio.","name":"wy-poll-meter"},{"description":"Icon/indicator area.","name":"wy-poll-image"},{"description":"Option label.","name":"wy-poll-title"},{"description":"Vote count badge with the share as hover text (clickable to open voter sheet).","name":"wy-poll-amount"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"totalVotes","type":{"text":"number"},"default":"0","description":"Total number of votes across all options."},{"kind":"field","name":"option","type":{"text":"PollOptionType | undefined"},"description":"Poll option rendered by this card."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"PollVoteEventType"},"description":"Emitted when this option is voted.","name":"vote"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-poll-option","customElement":true}],"exports":[{"kind":"js","name":"WyPoll","declaration":{"name":"WyPoll","module":"lib/components/wy-poll.ts"}},{"kind":"custom-element-definition","name":"wy-poll","declaration":{"name":"WyPoll","module":"lib/components/wy-poll.ts"}},{"kind":"js","name":"WyPollOption","declaration":{"name":"WyPollOption","module":"lib/components/wy-poll.ts"}},{"kind":"custom-element-definition","name":"wy-poll-option","declaration":{"name":"WyPollOption","module":"lib/components/wy-poll.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-post-edit.ts","declarations":[{"kind":"class","description":"Post edit UI for editing an existing post.\n\n**Used sub components:**\n\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-editor-msg>`](./wy-editor-msg.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)","name":"WyPostEdit","cssParts":[{"description":"Root post container.","name":"wy-post"},{"description":"Header area with avatar and close button.","name":"wy-post-header"}],"members":[{"kind":"field","name":"post","type":{"text":"PostType"},"description":"Post data."},{"kind":"method","name":"dispatchEdit","privacy":"private","parameters":[{"name":"edit","type":{"text":"boolean"},"description":"Desired edit state."}],"description":"Emit an `edit` event toggling edit mode for the post.","return":{"type":{"text":"boolean"}}},{"kind":"method","name":"handleSubmit","privacy":"private","parameters":[{"name":"e","type":{"text":"MsgEditorSubmitEventType"},"description":"Editor submit detail containing updated content."}],"description":"Handle editor submit events and trigger the post update mutation."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"PostEditEventType"},"description":"Emitted when editable state should change.","name":"edit"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-post-edit","customElement":true}],"exports":[{"kind":"js","name":"WyPostEdit","declaration":{"name":"WyPostEdit","module":"lib/components/wy-post-edit.ts"}},{"kind":"custom-element-definition","name":"wy-post-edit","declaration":{"name":"WyPostEdit","module":"lib/components/wy-post-edit.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-post-form.ts","declarations":[{"kind":"class","description":"List container rendering a post editor and a paginated feed of posts.\n\n**Used sub components:**\n\n- [`<wy-editor-msg>`](./wy-editor-msg.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-option>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-context-data-progress>`](./ui/wy-context-data.ts)","name":"WyPostForm","cssParts":[{"description":"Root post editor container.","name":"wy-posts-header"}],"slots":[{"description":"Extra buttons.","name":"actions"}],"members":[{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text shown in the post editor input.","attribute":"placeholder"},{"kind":"method","name":"handleSubmit","privacy":"private","parameters":[{"name":"e","type":{"text":"MsgEditorSubmitEventType"},"description":"Submitted editor data."}],"description":"Handle editor submissions by dispatching the create-post mutation."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text shown in the post editor input.","fieldName":"placeholder"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-post-form","customElement":true,"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]}],"exports":[{"kind":"js","name":"WyPostForm","declaration":{"name":"WyPostForm","module":"lib/components/wy-post-form.ts"}},{"kind":"custom-element-definition","name":"wy-post-form","declaration":{"name":"WyPostForm","module":"lib/components/wy-post-form.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-post-list.ts","declarations":[{"kind":"class","description":"List container rendering a paginated list of posts.\n\n**Used sub components:**\n\n- [`<wy-post>`](./wy-post.ts)\n- [`<wy-empty>`](./wy-empty.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)","name":"WyPostList","cssParts":[{"description":"Wrapper for each post/editor block.","name":"wy-post"},{"description":"Pager container.","name":"wy-pager"},{"description":"Pager modifier for bottom placement.","name":"wy-pager-bottom"}],"slots":[{"description":"Content when no posts are available.","name":"empty"}],"members":[{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"placeholder"},{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread conversation count.","readonly":true},{"kind":"field","name":"feed","type":{"text":"boolean"},"default":"false","description":"Whether the post list a feed of posts.","attribute":"feed"},{"kind":"field","name":"filter","type":{"text":"PostQueryFilterType"},"default":"{ app: undefined, q: \"\", tag: \"\", trashed: false, following: false, order_by: undefined, }","description":"Which posts to show.","attribute":"filter"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an embed action button is triggered.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"placeholder"},{"name":"feed","type":{"text":"boolean"},"default":"false","description":"Whether the post list a feed of posts.","fieldName":"feed"},{"name":"filter","type":{"text":"PostQueryFilterType"},"default":"{ app: undefined, q: \"\", tag: \"\", trashed: false, following: false, order_by: undefined, }","description":"Which posts to show.","fieldName":"filter"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-post-list","customElement":true}],"exports":[{"kind":"js","name":"WyPostList","declaration":{"name":"WyPostList","module":"lib/components/wy-post-list.ts"}},{"kind":"custom-element-definition","name":"wy-post-list","declaration":{"name":"WyPostList","module":"lib/components/wy-post-list.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-post-trashed.ts","declarations":[{"kind":"class","description":"Trashed post placeholder shown when a post has been moved to trash.\n\n**Used sub components:**\n\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-button>`](./ui/wy-button.ts)","name":"WyPostTrashed","cssParts":[{"description":"Root post container.","name":"wy-post"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"post","type":{"text":"PostType"},"description":"Post data."},{"kind":"method","name":"dispatchRestore","privacy":"private","description":"Emit a `restore` event requesting restoration of the trashed post.","return":{"type":{"text":"boolean"}}}],"events":[{"type":{"text":"PostRestoreEventType"},"description":"Emitted when the trashed post should be restored.","name":"restore"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-post-trashed","customElement":true}],"exports":[{"kind":"js","name":"WyPostTrashed","declaration":{"name":"WyPostTrashed","module":"lib/components/wy-post-trashed.ts"}},{"kind":"custom-element-definition","name":"wy-post-trashed","declaration":{"name":"WyPostTrashed","module":"lib/components/wy-post-trashed.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-post-view.ts","declarations":[{"kind":"class","description":"Post view that renders the post content, attachments, polls, embeds and footer/meta.\n\n**Used sub components:**\n\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-image-grid>`](./ui/wy-image-grid.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-skeleton>`](./ui/wy-skeleton.ts)\n- [`<wy-annotation-list>`](./wy-annotation.ts)\n- [`<wy-attachment-list>`](./wy-attachment.ts)\n- [`<wy-embed>`](./wy-embed.ts)\n- [`<wy-poll>`](./wy-poll.ts)\n- [`<wy-meeting-card>`](./wy-meeting-card.ts)\n- [`<wy-comment-list>`](./wy-comment-list.ts)\n- [`<wy-preview>`](./wy-preview.ts)","name":"WyPostView","cssParts":[{"description":"Root post container.","name":"wy-post"},{"description":"Highlight modifier for linked posts.","name":"wy-highlight"},{"description":"Main post header wrapper.","name":"wy-post-header"},{"description":"Main post body wrapper.","name":"wy-post-body"},{"description":"Footer meta/actions area.","name":"wy-post-footer"},{"description":"HTML/content area.","name":"wy-content"},{"description":"Comments container.","name":"wy-post-comments"},{"description":"Attachments area list.","name":"wy-post-attachment-list"},{"description":"The filled flag in the header shown once the reader has reported the post. Hide it with `::part(wy-post-reported)` if reporting should be fire-and-forget.","name":"wy-post-reported"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"post","type":{"text":"PostType"},"description":"Post data."},{"kind":"field","name":"highlight","type":{"text":"boolean"},"default":"false","description":"Highlight the post when it matches the active deep link.","attribute":"highlight"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"placeholder"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"PollVoteEventType"},"description":"Emitted when a poll option is voted.","name":"vote"},{"type":{"text":"PostSubscribeEventType"},"description":"Emitted when subscribe/unsubscribe is requested.","name":"subscribe"},{"type":{"text":"PostTrashEventType"},"description":"Emitted when the post should be trashed.","name":"trash"},{"type":{"text":"PostEditEventType"},"description":"Emitted when edit mode is requested.","name":"edit"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an embed action button is triggered.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"highlight","type":{"text":"boolean"},"default":"false","description":"Highlight the post when it matches the active deep link.","fieldName":"highlight"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"placeholder"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-post-view","customElement":true}],"exports":[{"kind":"js","name":"WyPostView","declaration":{"name":"WyPostView","module":"lib/components/wy-post-view.ts"}},{"kind":"custom-element-definition","name":"wy-post-view","declaration":{"name":"WyPostView","module":"lib/components/wy-post-view.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-post.ts","declarations":[{"kind":"class","description":"Wrapper component for a single post, delegating rendering to view/edit/trashed subcomponents.\n\n**Used sub components:**\n\n- [`<wy-post-trashed>`](./wy-post-trashed.ts)\n- [`<wy-post-edit>`](./wy-post-edit.ts)\n- [`<wy-post-view>`](./wy-post-view.ts)","name":"WyPost","members":[{"kind":"field","name":"post","type":{"text":"PostType"},"description":"Post data"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data. Must be directly specified or by using the `uid` property."},{"kind":"field","name":"uid","type":{"text":"number | string | null | undefined"},"description":"Optional appId to specify post specific app context","attribute":"uid"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"placeholder"},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })"},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)"},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"PollVoteEventType"},"description":"Emitted when a poll option is voted.","name":"vote"},{"type":{"text":"PostSubscribeEventType"},"description":"Emitted when subscribe/unsubscribe is requested.","name":"subscribe"},{"type":{"text":"PostTrashEventType"},"description":"Emitted when the post should be trashed.","name":"trash"},{"type":{"text":"PostRestoreEventType"},"description":"Emitted when the post should be restored.","name":"restore"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an embed action button is triggered.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"uid","type":{"text":"number | string | null | undefined"},"description":"Optional appId to specify post specific app context","fieldName":"uid"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"placeholder"}],"superclass":{"name":"WeavySubTypeComponent","module":"/lib/classes/weavy-sub-type-component"},"tagName":"wy-post","customElement":true}],"exports":[{"kind":"js","name":"WyPost","declaration":{"name":"WyPost","module":"lib/components/wy-post.ts"}},{"kind":"custom-element-definition","name":"wy-post","declaration":{"name":"WyPost","module":"lib/components/wy-post.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-preview.ts","declarations":[{"kind":"class","description":"Preview component.\nConsumes WeavyComponent contexts.\n\n**Used sub components:**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-container>`](./ui/wy-container.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)\n- [`<wy-titlebar>`](./ui/wy-titlebar.ts)\n- [`<wy-file-view>`](./wy-file-view.ts)\n- [`<wy-file-menu>`](./wy-file-menu.ts)\n- [`<wy-comment-list>`](./wy-comment-list.ts)\n- [`<wy-file-versions>`](./wy-file-versions.ts)\n- [`<wy-user-card>`](./wy-user-card.ts)\n- [`<wy-file-title>`](./wy-file-title.ts)\n- [`<wy-file-view>`](./wy-file-view.ts)","name":"WyPreview","cssParts":[{"description":"Overlay dark/root modifier.","name":"wy-dark"},{"description":"Layout wrapper for the preview.","name":"wy-preview-layout"},{"description":"Main preview content area.","name":"wy-preview-main"},{"description":"Sidebar container for comments/versions.","name":"wy-sidebar"},{"description":"Pane wrapper inside sidebars.","name":"wy-pane"},{"description":"Preview container for content.","name":"wy-preview"},{"description":"Swiper container for multiple preview panes.","name":"wy-preview-swiper"},{"description":"Individual preview area for a single file.","name":"wy-preview-area"},{"description":"Previous navigation control.","name":"wy-nav-prev"},{"description":"Next navigation control.","name":"wy-nav-next"}],"members":[{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"placeholder"},{"kind":"field","name":"files","type":{"text":"FileType[] | undefined"},"description":"Files available to render inside the preview carousel."},{"kind":"field","name":"currentId","type":{"text":"number"},"default":"NaN","description":"Identifier of the file currently displayed in the overlay.","attribute":"currentId"},{"kind":"field","name":"isAttachment","type":{"text":"boolean"},"default":"false","description":"Treat provided files as attachments, disabling contextual sidebars.","attribute":"isAttachment"},{"kind":"field","name":"filled","type":{"text":"boolean"},"default":"false","description":"Forces the overlay to use the full-screen layout.","attribute":"filled"},{"kind":"field","name":"edit","type":{"text":"boolean"},"default":"false","description":"Puts the current file in edit mode if available.","attribute":"edit"},{"kind":"field","name":"editName","type":{"text":"boolean"},"default":"false","description":"Puts the current file in edit filename mode if available.","attribute":"editName"},{"kind":"method","name":"open","parameters":[{"name":"fileId","type":{"text":"number"},"description":"File to display."},{"name":"options","default":"{}","type":{"text":"{ edit?: boolean; tab?: \"comments\" | \"versions\" }"}},{"description":"Optional sidebar tab to activate.","name":"showTab"}],"description":"Opens the overlay for the provided file identifier."},{"kind":"method","name":"close","description":"Closes the preview overlay."},{"kind":"method","name":"save","description":"Saves the current document and returns to preview after a successful save."},{"kind":"method","name":"setFocus"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an embed action button is triggered.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"currentId","type":{"text":"number"},"default":"NaN","description":"Identifier of the file currently displayed in the overlay.","fieldName":"currentId","attribute":"currentId"},{"name":"isAttachment","type":{"text":"boolean"},"default":"false","description":"Treat provided files as attachments, disabling contextual sidebars.","fieldName":"isAttachment","attribute":"isAttachment"},{"name":"filled","type":{"text":"boolean"},"default":"false","description":"Forces the overlay to use the full-screen layout.","fieldName":"filled","attribute":"filled"},{"name":"edit","type":{"text":"boolean"},"default":"false","description":"Puts the current file in edit mode if available.","fieldName":"edit","attribute":"edit"},{"name":"editName","type":{"text":"boolean"},"default":"false","description":"Puts the current file in edit filename mode if available.","fieldName":"editName","attribute":"editName"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"placeholder"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-preview","customElement":true}],"exports":[{"kind":"js","name":"WyPreview","declaration":{"name":"WyPreview","module":"lib/components/wy-preview.ts"}},{"kind":"custom-element-definition","name":"wy-preview","declaration":{"name":"WyPreview","module":"lib/components/wy-preview.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-reactions.ts","declarations":[{"kind":"class","description":"Reaction controls for entities (messages/posts/comments).\n\n**Used sub components:**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-container>`](./ui/wy-container.ts)\n- [`<wy-reaction-item>`](./wy-reactions.ts)","name":"WyReactions","cssParts":[{"description":"Wrapper for reactions display.","name":"wy-reactions"},{"description":"Reaction menu container.","name":"wy-reaction-menu"},{"description":"Reaction picker area.","name":"wy-reaction-picker"},{"description":"Button that opens reaction menu.","name":"wy-reaction-menu-button"},{"description":"Emoji icon wrapper.","name":"wy-emoji-icon"},{"description":"Count badge for reactions.","name":"wy-reaction-count"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"directionX","type":{"text":"\"left\" | \"right\""},"default":"\"left\"","description":"Horizontal alignment for the reaction picker.","attribute":"directionX"},{"kind":"field","name":"directionY","type":{"text":"\"up\" | \"down\""},"default":"\"up\"","description":"Vertical alignment for the reaction picker.","attribute":"directionY"},{"kind":"field","name":"small","type":{"text":"boolean"},"default":"false","description":"Renders a compact version of the controls.","attribute":"small"},{"kind":"field","name":"reactions","type":{"text":"ReactableType[] | undefined"},"default":"[]","description":"Current reactions applied to the host entity."},{"kind":"field","name":"emojis","type":{"text":"string"},"default":"\"\"","description":"Space separated list of emojis available in the picker."},{"kind":"field","name":"parentType","type":{"text":"\"posts\" | \"files\" | \"apps\""},"default":"\"apps\"","description":"Parent collection that owns the entity.","attribute":"parentType"},{"kind":"field","name":"parentId","type":{"text":"number | undefined"},"description":"Identifier of the parent container.","attribute":"parentId"},{"kind":"field","name":"entityType","type":{"text":"\"messages\" | \"posts\" | \"comments\""},"default":"\"messages\"","description":"Entity type targeted by the reactions.","attribute":"entityType"},{"kind":"field","name":"entityId","type":{"text":"number"},"description":"Identifier of the reactable entity.","attribute":"entityId"},{"kind":"field","name":"line","type":{"text":"boolean"},"default":"false","description":"Displays the picker inline with a line layout.","attribute":"line"},{"kind":"field","name":"lineReverse","type":{"text":"boolean"},"default":"false","description":"Reverses the inline layout order.","attribute":"lineReverse"},{"kind":"field","name":"lineBottom","type":{"text":"boolean"},"default":"false","description":"Positions the inline layout at the bottom edge.","attribute":"lineBottom"},{"kind":"field","name":"lineBelow","type":{"text":"boolean"},"default":"false","description":"Positions the inline layout below the trigger.","attribute":"lineBelow"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The app data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"Multiple apps data.","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple app data is available.","return":{"type":{"text":"Promise<AppListType>"}},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavySubAppComponent","module":"lib/classes/weavy-sub-app-component.ts"}},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"CloseEventType"},"description":"Emitted when the reaction menu is closed.","name":"close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"directionX","type":{"text":"\"left\" | \"right\""},"default":"\"left\"","description":"Horizontal alignment for the reaction picker.","fieldName":"directionX"},{"name":"directionY","type":{"text":"\"up\" | \"down\""},"default":"\"up\"","description":"Vertical alignment for the reaction picker.","fieldName":"directionY"},{"name":"small","type":{"text":"boolean"},"default":"false","description":"Renders a compact version of the controls.","fieldName":"small"},{"name":"parentType","type":{"text":"\"posts\" | \"files\" | \"apps\""},"default":"\"apps\"","description":"Parent collection that owns the entity.","fieldName":"parentType"},{"name":"parentId","type":{"text":"number | undefined"},"description":"Identifier of the parent container.","fieldName":"parentId"},{"name":"entityType","type":{"text":"\"messages\" | \"posts\" | \"comments\""},"default":"\"messages\"","description":"Entity type targeted by the reactions.","fieldName":"entityType"},{"name":"entityId","type":{"text":"number"},"description":"Identifier of the reactable entity.","fieldName":"entityId"},{"name":"line","type":{"text":"boolean"},"default":"false","description":"Displays the picker inline with a line layout.","fieldName":"line"},{"name":"lineReverse","type":{"text":"boolean"},"default":"false","description":"Reverses the inline layout order.","fieldName":"lineReverse"},{"name":"lineBottom","type":{"text":"boolean"},"default":"false","description":"Positions the inline layout at the bottom edge.","fieldName":"lineBottom"},{"name":"lineBelow","type":{"text":"boolean"},"default":"false","description":"Positions the inline layout below the trigger.","fieldName":"lineBelow"}],"superclass":{"name":"WeavySubAppComponent","module":"/lib/classes/weavy-sub-app-component"},"tagName":"wy-reactions","customElement":true},{"kind":"class","description":"Individual reaction item used inside the reactions sheet.\n\n**Used sub components:**\n\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)","name":"WyReactionItem","cssParts":[{"description":"Emoji shown for the reaction item.","name":"wy-emoji-icon"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"reaction","type":{"text":"ReactableType"}}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-reaction-item","customElement":true}],"exports":[{"kind":"js","name":"WyReactions","declaration":{"name":"WyReactions","module":"lib/components/wy-reactions.ts"}},{"kind":"custom-element-definition","name":"wy-reactions","declaration":{"name":"WyReactions","module":"lib/components/wy-reactions.ts"}},{"kind":"js","name":"WyReactionItem","declaration":{"name":"WyReactionItem","module":"lib/components/wy-reactions.ts"}},{"kind":"custom-element-definition","name":"wy-reaction-item","declaration":{"name":"WyReactionItem","module":"lib/components/wy-reactions.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-typing.ts","declarations":[{"kind":"class","description":"Displays a short \"is typing\" indicator for a conversation/app.\n\nShows a localized string like \"Alice is typing…\" or \"Alice and Bob are typing…\".","name":"WyTyping","slots":[{"description":"Fallback content when there is no typing activity.","name":""}],"members":[{"kind":"field","name":"appId","type":{"text":"number | undefined"},"description":"Identifier of the app whose typing activity should be displayed.","attribute":"appId"},{"kind":"field","name":"userId","type":{"text":"number | undefined"},"description":"Current viewer id used to filter typing updates.","attribute":"userId"}],"attributes":[{"name":"appId","type":{"text":"number | undefined"},"description":"Identifier of the app whose typing activity should be displayed.","fieldName":"appId"},{"name":"userId","type":{"text":"number | undefined"},"description":"Current viewer id used to filter typing updates.","fieldName":"userId"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-typing","customElement":true}],"exports":[{"kind":"js","name":"WyTyping","declaration":{"name":"WyTyping","module":"lib/components/wy-typing.ts"}},{"kind":"custom-element-definition","name":"wy-typing","declaration":{"name":"WyTyping","module":"lib/components/wy-typing.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-upload.ts","declarations":[{"kind":"class","description":"Component for handling native file input and upload as a blob.\n\n**Used sub components:**\n\n- [`<wy-button>`](./ui/wy-button.ts)","name":"WyUpload","cssParts":[{"description":"The upload component.","name":"wy-upload"},{"description":"Slot for placeholder content.","name":"wy-upload-placeholder"},{"description":"Slot for the button of the input.","name":"wy-upload-action"},{"description":"The default upload button with label.","name":"wy-upload-button"}],"slots":[{"description":"Placeholder content.","name":"placeholder"},{"description":"Slot for replacing the default button.","name":"action"}],"members":[{"kind":"field","name":"label","type":{"text":"string | undefined"}},{"kind":"field","name":"accept","type":{"text":"string | undefined"},"description":"File types to allow in the native file picker."},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"events":[{"type":{"text":"BlobUploadedEventType"},"name":"blob-uploaded"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"superclass":{"name":"WeavySubComponent","module":"/lib/classes/weavy-sub-component"},"tagName":"wy-upload","customElement":true}],"exports":[{"kind":"js","name":"WyUpload","declaration":{"name":"WyUpload","module":"lib/components/wy-upload.ts"}},{"kind":"custom-element-definition","name":"wy-upload","declaration":{"name":"WyUpload","module":"lib/components/wy-upload.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-user-card.ts","declarations":[{"kind":"class","description":"Overlay profile card displaying detailed information about a user. The user can be followed/unfollowed, blocked and reported.\n\n**Used sub components:**\n\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-container>`](./ui/wy-container.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-avatar-header>`](./ui/wy-avatar.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)","name":"WyUserCard","slots":[{"description":"Content to use in a toggle button for the overlay.","name":"toggle"}],"members":[{"kind":"field","name":"#userFollowMutation","privacy":"private","default":"new MutationController<void, Error, MutateUserFollowProps, MutateUserFollowContextType>(this)"},{"kind":"field","name":"#reportMutation","privacy":"private","default":"new MutationController<void, Error, MutateReportProps, void>(this)"},{"kind":"field","name":"#userBlockMutation","privacy":"private","default":"new MutationController<void, Error, MutateUserBlockProps, MutateUserBlockContextType>(this)"},{"kind":"field","name":"#profileQuery","privacy":"private","default":"new QueryController<UserOrAgentDetailType>(this)"},{"kind":"field","name":"uid","type":{"text":"string | number | null | undefined"},"description":"User identifier to get profile details for.","attribute":"uid"},{"kind":"field","name":"profile","type":{"text":"UserOrAgentMinimalType | undefined"},"description":"User profile data"},{"kind":"field","name":"show","type":{"text":"boolean"},"default":"false","description":"Whether the overlay should be shown","attribute":"show"},{"kind":"field","name":"listenTo","type":{"text":"EventTarget | null | undefined"},"description":"Element to listen to `wy-user-profile` events on"},{"kind":"method","name":"follow","parameters":[{"name":"follow","default":"true","type":{"text":"boolean"},"description":"Whether the user should be followed or not.","optional":true}],"description":"Follows the provided user/profile."},{"kind":"method","name":"confirmReport","description":"Confirm and report the profile for moderation.\n\nUses the native confirm rather than an in-app dialog, matching how reporting a message works.\nReporting cannot be undone, so confirmation is required before submitting it."},{"kind":"method","name":"block","parameters":[{"name":"block","default":"true","type":{"text":"boolean"},"description":"Whether the user should be blocked or not.","optional":true}],"description":"Blocks or unblocks the profile.\n\nResolves when the server has it, so callers can act on the outcome; rejects the way the mutation does."},{"kind":"method","name":"confirmBlock","description":"Confirm and block the profile.\n\nThe confirm carries the explanation, not a warning: blocking is reversible and unblock sits right here, so the\npoint is telling people what it actually does. That the blocked user is never told, and can still write to you, is\nthe part nobody expects."},{"kind":"method","name":"unblock","privacy":"private","description":"Unblocks the profile and closes the card.\n\nUnconfirmed, unlike blocking -- it only restores what was there. Closes on the way out for the same reason block\ndoes: the card looks the same either way, so the close is the only sign anything happened."},{"kind":"field","name":"handleUserAction"},{"kind":"field","name":"link","type":{"text":"LinkType | undefined"},"description":"Any provided link that should be loaded, shown and highlighted.","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"method","name":"whenLink","description":"Resolves when a provided link is available.","return":{"type":{"text":"Promise<LinkType>"}},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavySubTypeComponent","module":"lib/classes/weavy-sub-type-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavySubComponent>"}},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavySubComponent) => void | undefined"},"inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavySubComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}],"attributes":[{"name":"uid","type":{"text":"string | number | null | undefined"},"description":"User identifier to get profile details for.","fieldName":"uid"},{"name":"show","type":{"text":"boolean"},"default":"false","description":"Whether the overlay should be shown","fieldName":"show"}],"superclass":{"name":"WeavySubTypeComponent","module":"/lib/classes/weavy-sub-type-component"},"tagName":"wy-user-card","customElement":true,"events":[{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavySubComponent","module":"lib/classes/weavy-sub-component.ts"}}]}],"exports":[{"kind":"js","name":"WyUserCard","declaration":{"name":"WyUserCard","module":"lib/components/wy-user-card.ts"}},{"kind":"custom-element-definition","name":"wy-user-card","declaration":{"name":"WyUserCard","module":"lib/components/wy-user-card.ts"}}]},{"kind":"javascript-module","path":"lib/components/wy-users-search.ts","declarations":[{"kind":"class","description":"User search UI used to find and pick members for apps.\n\n**Used sub components:**\n\n- [`<wy-search>`](./ui/wy-search.ts)\n- [`<wy-item>`](./ui/wy-item.ts)\n- [`<wy-avatar>`](./ui/wy-avatar.ts)\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)","name":"WyUsersSearch","cssParts":[{"description":"Root pane container.","name":"wy-pane"},{"description":"Body area for content.","name":"wy-pane-body"},{"description":"Group wrapper inside pane.","name":"wy-pane-group"},{"description":"Message shown when there are no results.","name":"wy-no-result"},{"description":"A result row for a user the authenticated user has blocked.","name":"wy-users-search-blocked"},{"description":"Footer bar container.","name":"wy-footerbar"},{"description":"Sticky footer modifier.","name":"wy-footerbar-sticky"},{"description":"Pager container.","name":"wy-pager"},{"description":"Pager bottom modifier.","name":"wy-pager-bottom"}],"members":[{"kind":"field","name":"exportParts","privacy":"protected","default":"new ShadowPartsController(this)"},{"kind":"field","name":"appId","type":{"text":"number | undefined"},"description":"App identifier used to scope member searches."},{"kind":"field","name":"buttonTitle","type":{"text":"string | undefined"},"description":"Label for the submit button."},{"kind":"field","name":"canBlock","type":{"text":"boolean"},"default":"false","description":"Whether blocking is available in the host component.\n\nGoverns whether the block list is tracked at all. With the feature off there is no way to block or unblock anyone\nfrom here, so the list would only ever be an empty answer to a question nobody asked."}],"events":[{"type":{"text":"MemberSearchSubmitEventType"},"description":"Emitted when the selected members are submitted.","name":"submit"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-users-search","customElement":true}],"exports":[{"kind":"js","name":"WyUsersSearch","declaration":{"name":"WyUsersSearch","module":"lib/components/wy-users-search.ts"}},{"kind":"custom-element-definition","name":"wy-users-search","declaration":{"name":"WyUsersSearch","module":"lib/components/wy-users-search.ts"}}]},{"kind":"javascript-module","path":"lib/wy-chat.ts","declarations":[{"kind":"class","description":"Weavy chat component to render a single contextual conversation.\n\nThe conversation can show rich messages with markdown formatting including code syntax highlight.\nMessages can have uploaded images, attached files and cloud files with full browser preview of 100+ formats.\nPolls, video meetings, rich link embeds, tags and mentions can be used in messages.\nUsers can react with predefined emojis to each message.\n\nThe editor features markdown preview, including code syntax highlighting.\nIt has buttons for adding polls, video meetings, images, files and cloud files.\nMentions brings up a user selector.\nDrafts are automatically saved for each conversation.\n\nEach chat component requires an app identifier (`uid`), which automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\nIt's also recommended to specify a readable `name` of the chat, to get better readable notifications from the app.\n\n> It's often useful to base the `uid` on something that identifies the location where the component is rendered.\n> Typically you would use something like a product id, page id or path.\n\n> Complement this with the [`<wy-notification-toasts>`](./wy-notification-toasts.ts) component to also get realtime _in-app notifications_ or _browser notifications_ when new messages arrive.\n\n**Component Layout**\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-conversation>`](./components/wy-conversation.ts)\n- [`<wy-buttons>`](./components/ui/wy-button.ts)\n- [`<wy-context-data-progress>`](./components/wy-context-data.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Standard chat</figcaption>\n\nDisplays a conversation, placed in a container using a flex layout which the component adapts to. Authenticated users with access to the component will be added as members in the conversation.\n\nSpecifying the app identifier (`uid`) is required, and automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\nIt's recommended to specify a readable `name` of the chat app, to get better readable notifications from the app.\n\n```html\n<div style=\"display: flex; height: 100%;\">\n<wy-chat uid=\"test-chat\" name=\"Test chat\"></wy-chat>\n</div>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Chat with instructions and contextual data</figcaption>\n\nAny agents added to the chat using the [Web API](https://www.weavy.com/docs/reference/api) gets much more useful if they know about the data and content on your page. You can update this anytime you like to keep it up-to-date. Here we provide data from the DOM to the agent using the `contextualData` property.\n\n```html\n<div id=\"my-sample-content\">\n<h1>ACME</h1>\n<ul>\n<li>Wile E. Coyote</li>\n<li>Daffy Duck</li>\n<li>Porky Pig</li>\n</ul>\n</div>\n\n<wy-chat uid=\"test-chat\" name=\"Test chat\"></wy-chat>\n\n<script>\nconst myContent = document.querySelector(\"#my-sample-content\");\nconst chat = document.querySelector(\"wy-chat\");\nchat.contextualData = myContent.innerHTML;\n</script>\n```\n\n</figure>","name":"WyChat","slots":[{"description":"Floating buttons placed in the top right.","name":"actions"},{"description":"Placeholder shown when no `uid` is set. The message editor is disabled in this state.","name":"empty"}],"members":[{"kind":"field","name":"instructions","type":{"text":"string | undefined"},"description":"Optional agent instructions appended to submitted messages.","attribute":"instructions"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor.","attribute":"placeholder"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an embed.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"instructions","type":{"text":"string | undefined"},"description":"Optional agent instructions appended to submitted messages.","fieldName":"instructions"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor.","fieldName":"placeholder"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-chat","customElement":true}],"exports":[{"kind":"js","name":"WyChat","declaration":{"name":"WyChat","module":"lib/wy-chat.ts"}},{"kind":"custom-element-definition","name":"wy-chat","declaration":{"name":"WyChat","module":"lib/wy-chat.ts"}}]},{"kind":"javascript-module","path":"lib/wy-comments.ts","declarations":[{"kind":"class","description":"Weavy comments component to render a list of comments next to something like a product, page, blog post etc.\n\nThe comment list can show rich comments with markdown formatting including code syntax highlight. Comments can have uploaded images, attached files and cloud files with full browser preview of 100+ formats. Polls, video meetings, rich link embeds, tags and mentions can be used, and users can react with predefined emojis to each comment.\n\nThe editor features markdown preview, including code syntax highlighting. It has buttons for adding polls, video meetings, images, files and cloud files. Mentions brings up a user selector. Drafts are automatically saved for each comment list.\n\nEach comments component requires an app identifier (`uid`), which automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized. It's also recommended to specify a readable `name` of the comment list, to get better readable notifications from the app. It's often useful to base the `uid` on something that identifies the location where the component is rendered. Typically you would use something like a product id, page id or path.\n\n**Component Layout**\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-comment-list>`](./components/wy-comment-list.ts)\n- [`<wy-buttons>`](./components/ui/wy-button.ts)\n- [`<wy-context-data-progress>`](./components/wy-context-data.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Standard comment list</figcaption>\n\nDisplays a comment list beneath a subject item.\n\nSpecifying the app identifier (`uid`) is required, and automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\nIt's recommended to specify a readable `name` of the chat app, to get better readable notifications from the app.\n\n```html\n<div>\n<h2>My subject</h2>\n<p>Some details about the subject</p>\n</div>\n<wy-comments uid=\"my-subject-comments\" name=\"Subject comments\"></wy-comments>\n```\n\n</figure>","name":"WyComments","slots":[{"description":"Floating buttons placed in the top right.","name":"actions"},{"description":"Content when no comments are available.","name":"empty"}],"members":[{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor. Overrides default text.","attribute":"placeholder"},{"kind":"field","name":"previousPaging","type":{"text":"\"infinite\" | \"paged\""},"default":"\"paged\"","description":"Paging behavior for loading previous comments.\n\n- \"infinite\" is recommended when the component is placed in an overflowing/scrollable area.","attribute":"previousPaging"},{"kind":"field","name":"nextPaging","type":{"text":"\"infinite\" | \"paged\""},"default":"\"paged\"","description":"Paging behavior for loading next comments.\n\n- \"infinite\" is recommended when the component is placed in an overflowing/scrollable area.","attribute":"nextPaging"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an embed.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor. Overrides default text.","fieldName":"placeholder"},{"name":"previousPaging","type":{"text":"\"infinite\" | \"paged\""},"default":"\"paged\"","description":"Paging behavior for loading previous comments.\n\n- \"infinite\" is recommended when the component is placed in an overflowing/scrollable area.","fieldName":"previousPaging"},{"name":"nextPaging","type":{"text":"\"infinite\" | \"paged\""},"default":"\"paged\"","description":"Paging behavior for loading next comments.\n\n- \"infinite\" is recommended when the component is placed in an overflowing/scrollable area.","fieldName":"nextPaging"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-comments","customElement":true}],"exports":[{"kind":"js","name":"WyComments","declaration":{"name":"WyComments","module":"lib/wy-comments.ts"}},{"kind":"custom-element-definition","name":"wy-comments","declaration":{"name":"WyComments","module":"lib/wy-comments.ts"}}]},{"kind":"javascript-module","path":"lib/wy-component.ts","declarations":[{"kind":"class","description":"Generic Weavy component wrapper to provide app functionality to any provided sub components.","name":"WyComponent","slots":[{"description":"Generic slot for any consuming sub components.","name":""}],"members":[{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"App guid or component type for the component wrapper.","default":"UnknownApp","attribute":"appType","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"componentFeatures","default":"new ComponentFeatures(featureConfigFromList(allFeatures))","description":"Feature configuration. May be provided as a space separated attribute string.","attribute":"componentFeatures"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed.","name":"wy-action"},{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyLinkEventType"},"description":"Fired when a notification is clicked.","name":"wy-link"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"type":{"text":"WyUnreadEventType"},"description":"Fired when the unread count change.","name":"wy-unread"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"appType","type":{"text":"AppTypeGuid | UnknownAppType | undefined | undefined"},"default":"UnknownApp","description":"App guid or component type for the component wrapper.","fieldName":"appType"},{"name":"componentFeatures","default":"new ComponentFeatures(featureConfigFromList(allFeatures))","description":"Feature configuration. May be provided as a space separated attribute string.","fieldName":"componentFeatures"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-component","customElement":true}],"exports":[{"kind":"js","name":"WyComponent","declaration":{"name":"WyComponent","module":"lib/wy-component.ts"}},{"kind":"custom-element-definition","name":"wy-component","declaration":{"name":"WyComponent","module":"lib/wy-component.ts"}}]},{"kind":"javascript-module","path":"lib/wy-context.ts","declarations":[{"kind":"class","description":"The Weavy context component provides a declarative way of [initializing the Weavy UIKit](https://www.weavy.com/docs/reference/uikit) that does not require creating an instance of the `Weavy` class. \nThis can be useful in some scenarios, for instance in low-code and no-code platforms with limited javascript functionality.\n\nWhen used with child nodes, the Weavy context acts a regular [context provider](https://github.com/webcomponents-cg/community-protocols/blob/main/proposals/context.md), which makes the configuration available to it's child nodes only. \nIf no child nodes are present, the configuration is instead available globally in the DOM.\n\nTo use the context component in the UIKit you need initialize it with the `url` to your [environment](https://www.weavy.com/docs/learn/environment) and `tokenFactory`/`tokenUrl` for [authentication](https://www.weavy.com/docs/learn/authentication).\n\n> For use with React, you can instead use the standard React context provider or the `useWeavy` configuration hook, available in the `@weavy/uikit-react` package. See [Getting started with Weavy using React](https://www.weavy.com/docs/get-started/react) on how to configure Weavy in React. \n\n**Component layout**\n\nThis component does not render or occupy any visual space in the rendering.\n\nYou can add additional styling for _other_ child Weavy components using [CSS Custom Properties](https://www.weavy.com/docs/learn/styling).\n\n## Examples\n\n<figure class=\"example\"><figcaption>Globally available Weavy context</figcaption>\n\nThe context component is place by itself without any children and becomes available to the entire DOM.\n\nIt's configured with a `tokenUrl` endpoint that needs to be implemented and provided at your server.\n\n```html\n<wy-context\nurl=\"{WEAVY-URL}\"\ntokenUrl=\"https://example.com/myapp/token\"\n></wy-context>\n...\n<h1>Messenger with standard weavy configuration</h1>\n<wy-messenger></wy-messenger>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Scoped Weavy context provider</figcaption>\n\nPlacing components as children to the context makes the configuration only available to it's children.\n\nIt's configured with a `tokenUrl` endpoint that needs to be implemented and provided at your server.\n\n```html\n<wy-context url=\"{WEAVY-URL}\" tokenUrl=\"https://example.com/myapp/token\">\n<h1>Messenger inside a weavy context provider</h1>\n<wy-messenger></wy-messenger>\n</wy-context>\n```\n\n</figure>","name":"WyContext","slots":[{"description":"Default slot for any elements that will have access to the Weavy context provider.","name":""}],"members":[{"kind":"field","name":"provider","type":{"text":"boolean"},"default":"false","description":"Enables scoped context mode so only child elements consume the provided context.","attribute":"provider"},{"kind":"field","name":"annotations","description":"Annotation appearance configuration shared with child components.","type":{"text":"\"none\" | \"buttons-inline\""},"attribute":"annotations"},{"kind":"field","name":"cloudFilePickerUrl","description":"URL to the hosted cloud file picker. This usually does not need to be provided unless you intend to host your own Weavy cloud file picker.","type":{"text":"string | URL"},"attribute":"cloudFilePickerUrl"},{"kind":"field","name":"configurationTimeout","description":"Timeout (ms) before configuration is considered to have failed. `Infinity` disables the timeout.","attribute":"configurationTimeout"},{"kind":"field","name":"disableEnvironmentImports","description":"Disables dynamic import of modules from the environment.","attribute":"disableEnvironmentImports"},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"\"never\" | \"modifier\" | \"auto\" | \"always\""},"attribute":"enterToSend"},{"kind":"field","name":"locale","description":"Active locale identifier for localization.","attribute":"locale"},{"kind":"field","name":"locales","description":"List of available locales.","attribute":"locales"},{"kind":"field","name":"gcTime","description":"Garbage-collection interval (ms) applied to caches.","attribute":"gcTime"},{"kind":"field","name":"scrollBehavior","description":"Which [scroll behavior](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll#behavior) to use (where applicable). Note that not all browsers (Chrome) have similar scroll transitions, they may be very slow.","type":{"text":"\"smooth\" | \"instant\" | \"auto\""},"attribute":"scrollBehavior"},{"kind":"field","name":"staleTime","description":"Default stale time (ms) for TanStack Query caches.","attribute":"staleTime"},{"kind":"field","name":"tokenFactory","description":"Token factory used for acquiring user access tokens.","attribute":"tokenFactory"},{"kind":"field","name":"tokenFactoryRetryDelay","description":"Delay (ms) before retrying the token factory.","attribute":"tokenFactoryRetryDelay"},{"kind":"field","name":"tokenFactoryTimeout","description":"Timeout (ms) applied to the token factory promise.","attribute":"tokenFactoryTimeout"},{"kind":"field","name":"tokenUrl","description":"Token endpoint used when no token factory is supplied.","type":{"text":"string | URL | undefined"},"attribute":"tokenUrl"},{"kind":"field","name":"url","description":"Base URL of the Weavy environment.","type":{"text":"string | URL | undefined"},"attribute":"url"},{"kind":"field","name":"reactions","description":"Space separated reaction emoji list.","attribute":"reactions"},{"kind":"field","name":"version","description":"The semver version of the package.","readonly":true},{"kind":"field","name":"sourceName","description":"The Weavy source name; package name.","readonly":true},{"kind":"field","name":"sourceFormat","description":"The Weavy source format; file format.","readonly":true},{"kind":"field","name":"weavy","default":"new Weavy({ host: this.provider ? this : undefined })","description":""}],"attributes":[{"name":"provider","type":{"text":"boolean"},"default":"false","description":"Enables scoped context mode so only child elements consume the provided context.","fieldName":"provider"},{"name":"annotations","description":"Annotation appearance configuration shared with child components.","type":{"text":"\"none\" | \"buttons-inline\""},"fieldName":"annotations"},{"name":"cloudFilePickerUrl","description":"URL to the hosted cloud file picker. This usually does not need to be provided unless you intend to host your own Weavy cloud file picker.","type":{"text":"string | URL"},"fieldName":"cloudFilePickerUrl"},{"name":"configurationTimeout","description":"Timeout (ms) before configuration is considered to have failed. `Infinity` disables the timeout.","fieldName":"configurationTimeout"},{"name":"disableEnvironmentImports","description":"Disables dynamic import of modules from the environment.","fieldName":"disableEnvironmentImports"},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"\"never\" | \"modifier\" | \"auto\" | \"always\""},"fieldName":"enterToSend"},{"name":"locale","description":"Active locale identifier for localization.","fieldName":"locale"},{"name":"locales","description":"List of available locales.","fieldName":"locales"},{"name":"gcTime","description":"Garbage-collection interval (ms) applied to caches.","fieldName":"gcTime"},{"name":"scrollBehavior","description":"Which [scroll behavior](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll#behavior) to use (where applicable). Note that not all browsers (Chrome) have similar scroll transitions, they may be very slow.","type":{"text":"\"smooth\" | \"instant\" | \"auto\""},"fieldName":"scrollBehavior"},{"name":"staleTime","description":"Default stale time (ms) for TanStack Query caches.","fieldName":"staleTime"},{"name":"tokenFactory","description":"Token factory used for acquiring user access tokens.","fieldName":"tokenFactory"},{"name":"tokenFactoryRetryDelay","description":"Delay (ms) before retrying the token factory.","fieldName":"tokenFactoryRetryDelay"},{"name":"tokenFactoryTimeout","description":"Timeout (ms) applied to the token factory promise.","fieldName":"tokenFactoryTimeout"},{"name":"tokenUrl","description":"Token endpoint used when no token factory is supplied.","type":{"text":"string | URL | undefined"},"fieldName":"tokenUrl"},{"name":"url","description":"Base URL of the Weavy environment.","type":{"text":"string | URL | undefined"},"fieldName":"url"},{"name":"reactions","description":"Space separated reaction emoji list.","fieldName":"reactions"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"wy-context","customElement":true}],"exports":[{"kind":"js","name":"WyContext","declaration":{"name":"WyContext","module":"lib/wy-context.ts"}},{"kind":"custom-element-definition","name":"wy-context","declaration":{"name":"WyContext","module":"lib/wy-context.ts"}}]},{"kind":"javascript-module","path":"lib/wy-conversations.ts","declarations":[{"kind":"class","description":"Weavy conversations component to list and select chats, one-to-one conversations or group chats.\n\n**Component Layout**\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border. \nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed, \nbut with proper padding within the scrollable area of the component. \nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead, \nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge. \n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_.\n\n**Used sub components:**\n\n- [`<wy-conversation-list>`](./components/wy-conversation-list.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Standard conversation list</figcaption>\n\nA conversation list placed in a container using a flex layout.\n\n```html\n<div style=\"display: flex; height: 100%;\">\n<wy-conversations></wy-conversations>\n</div>\n```\n\n</figure>","name":"WyConversations","members":[{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"App types included in the conversation list. The attribute accepts whitespace-separated type names or guids.","default":"[AppTypeGuid.ChatRoom, AppTypeGuid.PrivateChat]","attribute":"appTypes","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread conversation count.","readonly":true},{"kind":"field","name":"conversationId","type":{"text":"number | null | undefined"},"default":"null","description":"Active conversation id.","attribute":"conversationId"},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a conversation is selected or an action is performed on a conversation.","name":"wy-action"},{"type":{"text":"WyUnreadEventType"},"description":"Fired when the number of unread notifications change.","name":"wy-unread"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"appTypes","type":{"text":"AppTypeGuid[]"},"default":"[AppTypeGuid.ChatRoom, AppTypeGuid.PrivateChat]","description":"App types included in the conversation list. The attribute accepts whitespace-separated type names or guids.","fieldName":"appTypes"},{"name":"conversationId","type":{"text":"number | null | undefined"},"default":"null","description":"Active conversation id.","fieldName":"conversationId"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyTypeComponent","module":"/lib/classes/weavy-type-component"},"tagName":"wy-conversations","customElement":true}],"exports":[{"kind":"js","name":"WyConversations","declaration":{"name":"WyConversations","module":"lib/wy-conversations.ts"}},{"kind":"custom-element-definition","name":"wy-conversations","declaration":{"name":"WyConversations","module":"lib/wy-conversations.ts"}}]},{"kind":"javascript-module","path":"lib/wy-copilot.ts","declarations":[{"kind":"class","description":"Weavy copilot component to render single, contextual and personal chats with an AI agent.\n\nIt needs to be [configured with an AI agent](https://www.weavy.com/docs/learn/integrations/agent) and can have custom _instructions_ and use any _contextual data_ you provide (as long as it's a string). \nTo get started, you can use Weavy's built-in `\"assistant\"` agent.\n\nThe copilot chat is agent-to-user which means each user has their own chat with the agent. \nEach time the copilot component is loaded a fresh chat is started.\nA fresh conversation can be started at any time by using the `.reset()` method.\nThe component can optionally be configured with a `uid` to persist the conversation. \n\n> If you specify a `uid` it needs to be unique per _user_ and _agent_ (if you intend to use several agents).\n> For ease-of-use, you can do this automatically by specifying the `generateUid` property instead of the `uid` property.\n> It's optional to provide a uid and in many cases not needed. \n> When using a uid it's often useful to base the uid on something that identifies the location where the component is rendered. \n> Typically you would use something like a product id, page id or path.\n\nPredefined elements with the `suggestion` class can be placed in the `suggestion-list` slot to create text hints for the user on what to do.\nWhen clicked, the suggestion text gets automatically placed in the message editor.\n\n> Complement this with the [`<wy-notification-toasts>`](./wy-notification-toasts.ts) component to also get realtime _in-app notifications_ or _browser notifications_ when new messages arrive.\n\n**Component Layout**\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border. \nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed, \nbut with proper padding within the scrollable area of the component. \nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead, \nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge. \n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-buttons>`](./components/ui/wy-button.ts)\n- [`<wy-item-list>`](./components/ui/wy-item.ts)\n- [`<wy-empty>`](./components/ui/wy-empty.ts)\n- [`<wy-icon>`](./components/ui/wy-icon.ts)\n- [`<wy-icon-display>`](./components/ui/wy-icon.ts)\n- [`<wy-context-data-progress>`](./components/wy-context-data.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Generic AI copilot chat</figcaption>\n\nDisplays a chat based AI copilot, placed in a container using a flex layout which the component adapts to. \n\nThe `agent` property is required and should correspond to [agent](https://www.weavy.com/docs/learn/integrations/agents) in your environment. \nYou may switch between agents whenever you like, but remember that the conversation also changes.\n\nHere we use the built-in agent with uid `assistant`.\n\n```html\n<div style=\"display: flex; height: 100%;\">\n<wy-copilot agent=\"assistant\"></wy-copilot>\n</div>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Copilot with instructions and contextual data</figcaption>\n\nThe copilot gets much more useful if it knows about the data and content on your page. \nYou can update this anytime you like to keep it up-to-date.\nHere we provide data from the DOM to the agent using the `contextualData` property.\n\n```html\n<div id=\"my-sample-content\">\n<h1>ACME</h1>\n<ul>\n<li>Wile E. Coyote</li>\n<li>Daffy Duck</li>\n<li>Porky Pig</li>\n</ul>\n</div>\n\n<wy-copilot id=\"my-copilot\" agent=\"assistant\"></wy-copilot>\n\n<script>\nconst copilot = document.querySelector(\"#my-copilot\");\nconst sampleContent = document.querySelector(\"#my-sample-content\");\n\ncopilot.instructions = \"Answer in a whacky way with many emojis.\";\ncopilot.data = [sampleContent.innerHTML];\n</script>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Copilot with a custom button and suggestions</figcaption>\n\nYou may use slots to provide custom functionality to the copilot. This example shows a button to reset the conversation and some custom suggestions.\n\nWhen the suggestions have the `.suggestion` class, they automatically get their text inserted into the editor when clicked.\n\nIn this example we use the pre-styled weavy sub components, but you may use any elements or components you like.\n\n```html\n<wy-copilot id=\"my-copilot\" agent=\"assistant\">\n<wy-button\nslot=\"actions\"\nkind=\"icon\"\nonclick=\"document.querySelector('#my-copilot').reset()\"\n>\n<wy-icon name=\"stars\"></wy-icon>\n</wy-button>\n\n<wy-button slot=\"suggestion-list\" class=\"suggestion\">Summarize this page</wy-button>\n<wy-button slot=\"suggestion-list\" class=\"suggestion\">What keywords are used?</wy-button>\n</wy-copilot>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Preventing child nodes from flashing during load</figcaption>\n\nTo prevent child nodes from rendering before the component has loaded you can hide them using CSS.\n\n```css\nwy-copilot:not(:defined) { display: none; }\n```\n\n</figure>","name":"WyCopilot","slots":[{"description":"Floating buttons placed in the top right.","name":"actions"},{"description":"All the content for the empty state.","name":"empty"},{"description":"Header for the `empty` state.","name":"header"},{"description":"Display icon in the `header`.","name":"icon"},{"description":"Suggestion content in the `empty` state.","name":"suggestions"},{"description":"Items for the list in the `suggestion` content.","name":"suggestion-list"},{"description":"Footer for the `empty` state.","name":"footer"}],"members":[{"kind":"field","name":"instructions","type":{"text":"string | undefined"},"description":"Optional agent instructions appended to submitted messages.","attribute":"instructions"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor. Overrides default text.","attribute":"placeholder"},{"kind":"method","name":"setSuggestion","parameters":[{"name":"text","type":{"text":"string"},"description":"The text suggestion to place in the editor."}],"description":"Sets the editor input to a suggested text. This replaces the text content of the editor. This can be used to create any custom suggestions."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on a conversation or embed.","name":"wy-action"},{"type":{"text":"WyMessageEventType"},"description":"Fired when a message has been appended to the conversation.","name":"wy-message"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"instructions","type":{"text":"string | undefined"},"description":"Optional agent instructions appended to submitted messages.","fieldName":"instructions"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor. Overrides default text.","fieldName":"placeholder"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-copilot","customElement":true}],"exports":[{"kind":"js","name":"WyCopilot","declaration":{"name":"WyCopilot","module":"lib/wy-copilot.ts"}},{"kind":"custom-element-definition","name":"wy-copilot","declaration":{"name":"WyCopilot","module":"lib/wy-copilot.ts"}}]},{"kind":"javascript-module","path":"lib/wy-feed.ts","declarations":[{"kind":"class","description":"Weavy posts component to render a feed of posts with an editor and comments as seen on many social networks. The component includes a fully featured post editor with built in support for markdown, code formatting, images, file attachments, cloud attachments, mentions, links, embeds, and polls.\n\nThe content of each post is built up from the posted text, images, polls, embeds, links, audio, video, file attachments, and cloud files. Each post can be commented on and reacted to with a set of emoji reactions. Images, audio, video, attached files, and cloud files can be previewed with the built-in previewer supporting 100+ file formats including PDF, Office and Google Drive.\n\nThe feed is populated from a single post app or from multiple specified post apps by specifying one or multiple post app identifiers using the `uid` attribute. Specifying only one uid allows automatic creation of a [corresponding post app](https://www.weavy.com/docs/concepts#app) on the server the first time it's accessed. When using multiple uid:s, all the specified post apps must exist prior to loading the feed.\n\n> To show a combined feed of _all_ post apps available to the user, it's recommended to use the [`<wy-posts>`](./wy-posts.ts) component, which has additional configuration options, together with a _separate_ [`<wy-post-editor>`](./wy-posts-editor.ts) component.\n\nWhen using a single `uid`, it's also recommended to specify a readable `name` of the posts app, to get better readable listing and notifications from the app.\n\n> It's often useful to base the `uid` on something that identifies the location where the component is rendered.\n> Typically you would use something like a product id, page id, or path.\n\nThe list of posts can be refined to only show posts by other users that the current user follows using the `following` attribute.\n\nA search field can be enabled for users by adding the `search` attribute. Searching can also be handled programmatically using the `query` property, which also reflects the search field in the UI.\n\n**Component Layout**\n\nThe component has the editor in the top. Below the editor is the post feed with the optional search field in the top of the list. The editor and the feed can alternatively be used and configured separately by using the [`<wy-post-editor>`](./wy-post-editor.ts) component and the [`<wy-posts>`](./wy-posts) component.\n\nEach post had a header in the top with information about the user together with an avatar. Next comes any attached images or embedded content and then the right formatted text. This is followed by polls and file attachments. In the bottom of the post is reactions and an expandable rich comment section.\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-buttons>`](./components/ui/wy-button.ts)\n- [`<wy-container>`](./components/ui/wy-container.ts)\n- [`<wy-search>`](./components/ui/wy-search.ts)\n- [`<wy-post-form>`](./components/wy-post-form.ts)\n- [`<wy-post-list>`](./components/wy-post-list.ts)\n- [`<wy-user-card>`](./components/wy-user-card.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Creating and showing a single app for posts</figcaption>\n\nSpecifying a single app identifier (`uid`), automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized. It's recommended to specify a readable `name` of the posts app, to get better readable notifications from the app.\n\n```html\n<wy-feed uid=\"test-posts\" name=\"Test feed\"></wy-feed>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Multiple post apps feed with a search field</figcaption>\n\nSpecifying multiple app identifiers (`uid`) separated by space, shows posts from several already created post apps. Here the search field is also enabled for the user.\n\n```html\n<wy-feed uid=\"test-posts test-news\" search></wy-feed>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Multiple post apps feed from followed people</figcaption>\n\nA post feed from multiple post apps, displaying only posts made by people the user follows.\n\n```html\n<wy-feed uid=\"test-posts test-news\" following></wy-feed>\n```\n\n</figure>","name":"WyFeed","cssParts":[{"description":"Root layout container.","name":"wy-feed"}],"slots":[{"description":"Floating buttons placed in the top right.","name":"actions"},{"description":"Content when no posts are available.","name":"empty"}],"members":[{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread posts count.","readonly":true},{"kind":"field","name":"search","type":{"text":"boolean"},"default":"false","description":"Show search field.","attribute":"search"},{"kind":"field","name":"following","type":{"text":"boolean"},"default":"false","description":"Only show posts by users followed by the current user.","attribute":"following"},{"kind":"field","name":"query","type":{"text":"string | null | undefined"},"description":"Show post by search query filter","attribute":"query"},{"kind":"field","name":"tag","type":{"text":"string | null | undefined"},"attribute":"tag"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the post editor. Overrides default text.","attribute":"placeholder"},{"kind":"field","name":"commentsPlaceholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"commentsPlaceholder"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an embed.","name":"wy-action"},{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"search","type":{"text":"boolean"},"default":"false","description":"Show search field.","fieldName":"search"},{"name":"following","type":{"text":"boolean"},"default":"false","description":"Only show posts by users followed by the current user.","fieldName":"following"},{"name":"query","type":{"text":"string | null | undefined"},"description":"Show post by search query filter","fieldName":"query"},{"name":"tag","type":{"text":"string | null | undefined"},"fieldName":"tag"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the post editor. Overrides default text.","fieldName":"placeholder"},{"name":"commentsPlaceholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"commentsPlaceholder"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-feed","customElement":true}],"exports":[{"kind":"js","name":"WyFeed","declaration":{"name":"WyFeed","module":"lib/wy-feed.ts"}},{"kind":"custom-element-definition","name":"wy-feed","declaration":{"name":"WyFeed","module":"lib/wy-feed.ts"}}]},{"kind":"javascript-module","path":"lib/wy-file-new.ts","declarations":[{"kind":"class","description":"Weavy file component to create files, upload files or attach cloud files to a files app.\n\nSupports upload of multiple large files at once, upload using drag'n'drop and pasting files to upload. The file upload progress can be monitored and aborted.\n\nPrompts for a filename when creating files, optionally suggesting an extension. Also supports uploading files and adding files from cloud providers such as Google Drive, Dropbox, Box and Microsoft OneDrive.\n\nEach file component requires an app identifier (`uid`), which automatically creates a [corresponding app](https://docs.weavy.com/concepts#app) on your Weavy environment when the component is first initialized. The app identifier must correspond to the app of where you want to save the files. It's also recommended to specify a readable `name` of the files app, to get better readable notifications from the app.\n\n> It's often useful to base the `uid` on something that identifies the location where the component is rendered.\n> Typically you would use something like a product id, page id or path.\n\n**Component Layout**\n\nThe component is displayed as a dropdown menu shown as a button. After the dropdown is a status icon button; shown when creating, uploading, attaching or modifying files in the app. The default height of the buttons is the icon size `1.5rem`/`24px` together with the set `--wy-padding` (which defaults to `0.5rem`/`8px`), which makes a total of `2.5rem`/`40px` per default. The width varies with the length of the text and whether the status is displayed or not.\n\nThe cloud file picker appears as a modal overlay centered in the `top layer`.\n\nThe file name selector when creating files appears as a modal input dialog centered in the `top layer`.\n\nThe status detail dialog renders in a sheet overlay centered in the `top layer`.\n\nAll the overlays does not occupy any visual layout space where they are placed in the DOM, they only render in the [top layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer).\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-file-create>`](./components/wy-file-create.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Standard create new file button</figcaption>\n\nDisplays a file create button for the `test-files` files app with integrated file-creation, uploading and cloud file picker.\n\nSpecifying the app identifier (`uid`) is required, and automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\nIt's recommended to specify a readable `name` of the files app, to get better readable notifications from the app.\n\n```html\n<wy-file-new uid=\"test-files\" name=\"Test files\"></wy-file-new>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Standard create new file button without cloud files</figcaption>\n\nDisplays a create new file button without the possibility to add files from cloud providers.\n\n```html\n<wy-file-new uid=\"test-files\" features=\"-cloud_files\"></wy-file-new>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Connect create new file button to `<wy-file>` view</figcaption>\n\nDisplays a create new file button that displays the added file in a [file view component](https://docs.weavy.com/reference/uikit/file).\n\n```html\n<wy-file-new id=\"file-picker\" uid=\"test-files\"></wy-file-new>\n<wy-file id=\"file-view\" uid=\"test-files\"></wy-file>\n<script>\nconst filePicker = document.getElementById(\"file-picker\");\nconst fileView = document.getElementById(\"file-view\");\n\nfilePicker.addEventListener(\"wy-action\", (e) => {\nif (e.detail.file) {\n// Open the file in the file view;\nfileView.fileId = e.detail.file.id;\n\n// Optionally set edit mode\nfileView.edit = e.detail.action === \"edit\";\n}\n})\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Connect create new file button to `<wy-files>` list</figcaption>\n\nDisplays a create new file button that selects the added file in a [file list component](xref:uikit-files).\n\n```html\n<wy-file-new id=\"file-picker\" uid=\"test-files\"></wy-file-new>\n<wy-files id=\"files-list\" uid=\"test-files\"></wy-files>\n<script>\nconst filePicker = document.getElementById(\"file-picker\");\nconst filesList = document.getElementById(\"files-list\");\n\nfilePicker.addEventListener(\"wy-action\", (e) => {\nif (e.detail.file) {\n// Select the file in the file list;\nfilesList.selectedId = e.detail.file.id;\n\n// Ensure the file is visible in the list and scrolled to\nfilesList.highlightId = e.detail.file.id;\n\n// Optionally open the file in preview\nfilesList.preview(e.detail.file.id, { edit: e.detail.action === \"edit\" })\n}\n})\n```\n\n</figure>","name":"WyFileNew","cssParts":[{"description":"Main container.","name":"wy-file-new"},{"description":"Modifier for the main layout when dragging over.","name":"wy-dragging"}],"slots":[{"description":"Buttons placed in the toolbar.","name":"actions"}],"members":[{"kind":"field","name":"createFilesController","privacy":"private","default":"new CreateFilesController(this)"},{"kind":"field","name":"fileCreateRef","privacy":"private"},{"kind":"method","name":"createFile","parameters":[{"name":"ext","optional":true,"type":{"text":"string"},"description":"Suggested initial extension; the submitted filename is used unchanged."}],"description":"Prompt for a filename and create a new file.","return":{"type":{"text":""}}},{"kind":"method","name":"uploadFile","parameters":[{"name":"files","type":{"text":"File[]"},"description":"Optional files to upload."}],"description":"Upload one or more files. If no file is provided, the user will be prompted to select a file.","return":{"type":{"text":""}}},{"kind":"method","name":"selectCloudFiles","description":"Request files via user input from a configured cloud file provider.","return":{"type":{"text":""}}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an embed.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-file-new","customElement":true,"attributes":[{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}]}],"exports":[{"kind":"js","name":"WyFileNew","declaration":{"name":"WyFileNew","module":"lib/wy-file-new.ts"}},{"kind":"custom-element-definition","name":"wy-file-new","declaration":{"name":"WyFileNew","module":"lib/wy-file-new.ts"}}]},{"kind":"javascript-module","path":"lib/wy-file.ts","declarations":[{"kind":"class","description":"Weavy file component to render a view or editor for a specific file.\n\nSupports viewing files from cloud providers such as Google Drive, Dropbox, Box and Microsoft OneDrive.\nFiles can be viewed for 100+ formats including streamed audio/video, PDF, Office and Google Drive.\n\nEach file can be discussed with rich comments with support for attachments, mentions, embedded links and more.\nFiles can also be accessed via versions, with possibility to preview all versions and rollback to a specific version.\nOffice documents and spreadsheets can be opened and edited directly in Office using built-in [WebDAV](https://www.weavy.com/docs/learn/integrations/webdav) integration to automatically save new version back to the app.\n\nEach file component requires the file identifier (`fileId`) of the file you want to view or edit. It also requires an app identifier (`uid`), which automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\nThe app identifier must correspond to the app of the file you want to open. It's also recommended to specify a readable `name` of the files app, to get better readable notifications from the app.\n\n> It's often useful to base the `uid` on something that identifies the location where the component is rendered.\n> Typically you would use something like a product id, page id or path.\n\n**Component Layout**\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-titlebar>`](./components/wy-titlebar.ts)\n- [`<wy-file-title>`](./components/wy-file-title.ts)\n- [`<wy-file-menu>`](./components/wy-file-menu.ts)\n- [`<wy-overlay>`](./components/ui/wy-overlay.ts)\n- [`<wy-button>`](./components/ui/wy-button.ts)\n- [`<wy-icon>`](./components/ui/wy-icon.ts)\n- [`<wy-icon-display>`](./components/ui/wy-icon.ts)\n- [`<wy-comment-list>`](./components/wy-comment-list.ts)\n- [`<wy-file-versions>`](./components/wy-file-versions.ts)\n- [`<wy-progress-circular>`](./components/ui/wy-progress-circular.ts)\n- [`<wy-file-view>`](./components/wy-file-view.ts)\n- [`<wy-empty>`](./components/wy-empty.ts)\n- [`<wy-user-card>`](./components/wy-user-card.ts)\n- [`<wy-filename-input>`](./components/wy-filename-input.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Standard file preview with comments</figcaption>\n\nDisplays a file preview with integrated comments and versioning.\n\nSpecifying the app identifier (`uid`) is required, and automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\n\n```html\n<wy-file uid=\"test-files\" fileId=\"12345\"></wy-file>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>File preview with edit mode</figcaption>\n\nDisplays a file preview in edit mode.\n\n```html\n<wy-file\nuid=\"test-files\"\nfileId=\"12345\"\nedit\n></wy-file>\n```\n\n</figure>","name":"WyFile","cssParts":[{"description":"Modifier for the main layout when dragging over.","name":"wy-dragging"},{"description":"Part of the tab content area.","name":"wy-pane"},{"description":"Part of the tab content area.","name":"wy-scroll-y"},{"description":"Part of the version tab.","name":"wy-pane-body"},{"description":"Small metadata in the header.","name":"wy-meta-sm"}],"slots":[{"description":"Buttons placed in the toolbar.","name":"actions"},{"description":"Empty state content.","name":"empty"},{"description":"Empty state title.","name":"title"}],"members":[{"kind":"field","name":"createFilesController","privacy":"protected","default":"new CreateFilesController(this)"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"placeholder"},{"kind":"field","name":"fileId","type":{"text":"number | null | undefined"},"description":"The ID of the file to be displayed.","attribute":"fileId"},{"kind":"field","name":"edit","type":{"text":"boolean"},"default":"false","description":"Whether the component is in edit mode. Sidebars are hidden while editing.","attribute":"edit"},{"kind":"field","name":"editName","type":{"text":"boolean"},"default":"false","description":"Whether the name of the file is being edited.","attribute":"editName"},{"kind":"field","name":"tab","type":{"text":"\"comments\" | \"versions\" | undefined"},"description":"The currently selected tab.","attribute":"tab"},{"kind":"field","name":"header","type":{"text":"\"interactive\" | \"empty\" | \"none\""},"default":"\"interactive\"","description":"Appearance of the file list header.","attribute":"header"},{"kind":"field","name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"drawer\"","description":"Overlay appearance used for the conversation list.","attribute":"overlay"},{"kind":"method","name":"open","parameters":[{"name":"fileId","type":{"text":"number"},"description":"The id of the file to open."},{"name":"edit","optional":true,"type":{"text":"boolean"},"description":"Whether to open in edit mode."}],"description":"Open a file in preview/edit."},{"kind":"method","name":"save","description":"Saves the current file view and returns to preview after a successful save."},{"kind":"method","name":"createFile","parameters":[{"name":"ext","optional":true,"type":{"text":"string"},"description":"Suggested initial extension; the submitted filename is used unchanged."}],"description":"Prompt for a filename, create a new file and open it. The prompt stays open with an inline error when the name\nis already taken in the app, so the user can choose a different name.","return":{"type":{"text":""}}},{"kind":"method","name":"uploadFile","parameters":[{"name":"file","type":{"text":"File"}},{"description":"Files to upload.","name":"files"}],"description":"Upload a file and open it.","return":{"type":{"text":""}}},{"kind":"field","name":"isAttachment","type":{"text":"boolean"},"description":"Whether the component is acting as an attachment.","readonly":true},{"kind":"field","name":"filenameInputRef","privacy":"private"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an embed.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"placeholder"},{"name":"fileId","type":{"text":"number | null | undefined"},"description":"The ID of the file to be displayed.","fieldName":"fileId"},{"name":"edit","type":{"text":"boolean"},"default":"false","description":"Whether the component is in edit mode. Sidebars are hidden while editing.","fieldName":"edit"},{"name":"editName","type":{"text":"boolean"},"default":"false","description":"Whether the name of the file is being edited.","fieldName":"editName"},{"name":"tab","type":{"text":"\"comments\" | \"versions\" | undefined"},"description":"The currently selected tab.","fieldName":"tab"},{"name":"header","type":{"text":"\"interactive\" | \"empty\" | \"none\""},"default":"\"interactive\"","description":"Appearance of the file list header.","fieldName":"header"},{"name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"drawer\"","description":"Overlay appearance used for the conversation list.","fieldName":"overlay"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-file","customElement":true}],"exports":[{"kind":"js","name":"WyFile","declaration":{"name":"WyFile","module":"lib/wy-file.ts"}},{"kind":"custom-element-definition","name":"wy-file","declaration":{"name":"WyFile","module":"lib/wy-file.ts"}}]},{"kind":"javascript-module","path":"lib/wy-files.ts","declarations":[{"kind":"class","description":"Weavy files component to render a list of uploaded files and linked files from cloud providers such as Google Drive, Dropbox, Box and Microsoft OneDrive.\n\nSupports upload of multiple large files at once, upload using drag'n'drop and pasting files to upload.\nFile upload progress can be monitored and aborted.\nThe files can be downloaded individually or as a compressed archive.\n\nIncludes file picker to link files from Cloud providers such as Google Drive, Dropbox, Box and Microsoft OneDrive, which are pre configured when using default weavy.io hosting for the Weavy environment.\n\nImages, audio, video, documents, code, and cloud files can be previewed with the built-in previewer for 100+ formats including streamed audio/video, PDF, Office and Google Drive.\nFiles can also be listed with miniature thumbnails for visual overview.\n\nThe list can be displayed as a table or as a grid with sorting capabilities.\nFiles can renamed directly in the list.\n\nEach file can be discussed with rich comments with support for attachments, mentions, embedded links and more.\n\nFile uploads are automatically versioned with possibility to preview all versions and rollback to a specific version.\n\nOffice documents and spreadsheets can be opened and edited directly in Office using built-in [WebDAV](https://www.weavy.com/docs/learn/integrations/webdav) integration to automatically save new version back to the app.\n\nEach files component requires an app identifier (`uid`), which automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\nIt's also recommended to specify a readable `name` of the files app, to get better readable notifications from the app.\n\n> It's often useful to base the `uid` on something that identifies the location where the component is rendered.\n> Typically you would use something like a product id, page id or path.\n\n**Component Layout**\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-files-header>`](./components/wy-files-header.ts)\n- [`<wy-files-list>`](./components/wy-files-list.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Standard files list with upload</figcaption>\n\nDisplays a table files list with integrated uploading, cloud picker, previews, comments and versioning.\n\nSpecifying the app identifier (`uid`) is required, and automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\nIt's recommended to specify a readable `name` of the files app, to get better readable notifications from the app.\n\n```html\n<wy-files uid=\"test-files\" name=\"Test files\"></wy-files>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Files list with grid display sorted by date</figcaption>\n\nDisplays a `grid` view with miniature thumbnails for each file. Files ar sorted by `updated_at` in reverse order.\n\n```html\n<wy-files\nuid=\"test-files\"\nname=\"Test files\"\nview=\"grid\"\norder=\"{ by: 'updated_at', descending: true }\"\n></wy-files>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Files list without header connected to a `<wy-file>` view</figcaption>\n\nDisplays a table files list without the header bar (`header=\"none\"` attribute). Instead of opening the preview, all files are opened in a separate [file view](xref:uikit-file).\n\nSpecifying the app identifier (`uid`) is required, and automatically creates a [corresponding app](xref:concepts#app) on your Weavy environment when the component is first initialized. It's recommended to specify a readable `name` of the posts app, to get better readable notifications from the app.\n\n```html\n<wy-files id=\"files-list\" uid=\"test-files\" header=\"none\"></wy-files>\n<wy-file id=\"file-view\" uid=\"test-files\"></wy-file>\n<script>\nconst filesList = document.getElementById(\"files-list\");\nconst fileView = document.getElementById(\"file-view\");\nfilesList.addEventListener(\"wy-action\", (e) => {\nif (\n// Check for `file`\ne.detail.file &&\n// Check for file specific actions\n/select|preview|edit|comment|history/.test(e.detail.action)\n) {\n// Prevent default to stop the preview overlay from showing\n// Note: This _must_ be done in the `capture` phase of the event\ne.preventDefault();\n\n// Set the file id to show\nfileView.fileId = e.detail.file.id;\n\n// Set edit mode to enable opening directly into edit\nfileView.edit = e.detail.action === \"edit\";\n\n// Optionally set tab to \"comments\" or \"versions\" to open these panels directly.\nfileView.tab =\n e.detail.action === \"comment\"\n   ? \"comments\"\n   : e.detail.action === \"history\"\n     ? \"versions\"\n     : undefined;\n}\n},\n// It's important to use the `capture` phase to be able to prevent the default event action.\n{ capture: true },\n);\n</script>\n```\n\n</figure>","name":"WyFiles","cssParts":[{"description":"Main layout wrapper.","name":"wy-files"},{"description":"Modifier for the main layout when dragging over.","name":"wy-dragging"}],"slots":[{"description":"Buttons placed in the toolbar.","name":"actions"}],"members":[{"kind":"field","name":"view","type":{"text":"\"grid\" | \"list\""},"default":"\"list\"","description":"The view for showing the file list. Persisted in sessionStorage.","attribute":"view"},{"kind":"field","name":"header","type":{"text":"\"interactive\" | \"empty\" | \"none\""},"default":"\"interactive\"","description":"Appearance of the file list header.","attribute":"header"},{"kind":"field","name":"order","type":{"text":"FileOrderType"},"default":"{ by: \"name\", descending: false }","description":"File order in the list. Persisted in sessionStorage.","attribute":"order"},{"kind":"field","name":"showTrashed","type":{"text":"boolean"},"default":"false","description":"Enables showing trashed files. Persisted in sessionStorage.","attribute":"showTrashed"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","attribute":"placeholder"},{"kind":"field","name":"selectedId","type":{"text":"number | undefined"},"default":"NaN","description":"File id that is selected.","attribute":"selectedId"},{"kind":"field","name":"highlightId","type":{"text":"number | undefined"},"default":"NaN","description":"File id to load, scroll into view and highlight.","attribute":"highlightId"},{"kind":"field","name":"createFilesController","privacy":"private","default":"new CreateFilesController(this)"},{"kind":"method","name":"preview","parameters":[{"name":"fileId","type":{"text":"number"},"description":"The id of the file to open"},{"name":"options","type":{"text":"{ edit?: boolean; tab?: \"comments\" | \"versions\" }"}},{"description":"Optional edit mode","name":"options.edit"},{"description":"Optional tab to open in preview","name":"options.tab"}],"description":"Open a file in preview/edit. Optionally opens \"comment\" tab or \"versions\" tab."},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an entity.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"view","type":{"text":"\"grid\" | \"list\""},"default":"\"list\"","description":"The view for showing the file list. Persisted in sessionStorage.","fieldName":"view"},{"name":"header","type":{"text":"\"interactive\" | \"empty\" | \"none\""},"default":"\"interactive\"","description":"Appearance of the file list header.","fieldName":"header"},{"name":"order","type":{"text":"FileOrderType"},"default":"{ by: \"name\", descending: false }","description":"File order in the list. Persisted in sessionStorage.","fieldName":"order"},{"name":"showTrashed","type":{"text":"boolean"},"default":"false","description":"Enables showing trashed files. Persisted in sessionStorage.","fieldName":"showTrashed"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the comment editor input.","fieldName":"placeholder"},{"name":"selectedId","type":{"text":"number | undefined"},"default":"NaN","description":"File id that is selected.","fieldName":"selectedId"},{"name":"highlightId","type":{"text":"number | undefined"},"default":"NaN","description":"File id to load, scroll into view and highlight.","fieldName":"highlightId"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-files","customElement":true}],"exports":[{"kind":"js","name":"WyFiles","declaration":{"name":"WyFiles","module":"lib/wy-files.ts"}},{"kind":"custom-element-definition","name":"wy-files","declaration":{"name":"WyFiles","module":"lib/wy-files.ts"}}]},{"kind":"javascript-module","path":"lib/wy-messenger-badge.ts","declarations":[{"kind":"class","description":"Weavy Messenger badge component that renders a realtime badge for the number of unread conversations.\nThe badge fits well into a button or similar.\nThe badge is automatically updated when new messages awaits and when messages have been read.\n\nWhen the `unread` count property changes, the component fires a `\"wy-unread\"` event with the updated count.\nYou can listen to the event to use the unread count for something else, and you can also turn off the component rendering by setting the `badge` property to `\"none\"`.\n\n** Component layout **\n\nThe badge displays as an inline badge, matching normal text per default.\nIt has a filled background with rounded edge.\nThe badge scales with the current font-size where it's placed, using `0.75em` for the badge `font-size`.\nThe badge is only displayed when there is an unread count of 1 or higher.\n\n> When placing the badge in a `<button>` element, note that buttons initially have a `font-size` of `13.3333px` instead of inheriting font-size from it's parents.\n\nSetting the `badge` property to `\"dot\"` removes the text, only indicating that there is unread conversations without any count.\n\nThe `badgePosition` property can be changed from `\"inline\"` to `\"top-right\"` or any other corner,\nto give it absolute positioning over the top-right corner.\nThe absolute positioning is relative to the closest parent element with set CSS `position`, for instance `relative` positioning.\n\n**Used sub components:**\n\n- [`<wy-badge>`](./components/ui/wy-badge.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Inline Messenger badge in a text</figcaption>\n\nDisplay a badge that shows unread count and tracks messages and conversations for the authenticated user.\n\n```html\n<div>Messenger <wy-messenger-badge></wy-messenger-badge></div>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Cornered Messenger badge</figcaption>\n\nDisplays a badge in the top-right corner of a button with adjusted font-size.\nNote that the badge position is relative to its closest positioned ancestor element, therefore we need to set CSS `position` on the button.\n\n```html\n<button style=\"position: relative; font-size: 1rem;\">\n<span>Messenger</span>\n<wy-messenger-badge badgePosition=\"top-right\"></wy-messenger-badge>\n</button>\n```\n\n</figure>","name":"WyMessengerBadge","members":[{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Conversation types included in the unread count.","default":"[AppTypeGuid.ChatRoom, AppTypeGuid.PrivateChat]","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"badge","type":{"text":"\"count\" | \"dot\" | \"none\""},"default":"\"count\"","description":"Display size of the badge.","attribute":"badge"},{"kind":"field","name":"badgePosition","type":{"text":"\"inline\" | \"top-right\" | \"bottom-right\" | \"bottom-left\" | \"top-left\""},"default":"\"inline\"","description":"Positioning of the badge.","attribute":"badgePosition"},{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread conversation count.","readonly":true},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyUnreadEventType"},"description":"Fired when the number of unread conversations change.","name":"wy-unread"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"badge","type":{"text":"\"count\" | \"dot\" | \"none\""},"default":"\"count\"","description":"Display size of the badge.","fieldName":"badge"},{"name":"badgePosition","type":{"text":"\"inline\" | \"top-right\" | \"bottom-right\" | \"bottom-left\" | \"top-left\""},"default":"\"inline\"","description":"Positioning of the badge.","fieldName":"badgePosition"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyTypeComponent","module":"/lib/classes/weavy-type-component"},"tagName":"wy-messenger-badge","customElement":true}],"exports":[{"kind":"js","name":"WyMessengerBadge","declaration":{"name":"WyMessengerBadge","module":"lib/wy-messenger-badge.ts"}},{"kind":"custom-element-definition","name":"wy-messenger-badge","declaration":{"name":"WyMessengerBadge","module":"lib/wy-messenger-badge.ts"}}]},{"kind":"javascript-module","path":"lib/wy-messenger-button.ts","declarations":[{"kind":"class","description":"The Weavy Messenger button component renders a Messenger button complete with a realtime badge for the number of unread conversations. When clicked, the button opens a built in overlay displaying the full [`<wy-messenger>`](./wy-messenger.ts) component for multiple one-to-one conversations and group chats.\n\nThe Messenger displays a list of all conversations with possibility to pin, star and mark conversations as read.\nEach conversation item displays an avatar, the participants or the room name as title, a line with the latest message.\nIt also indicates if the conversation is read/unread and if anyone in the conversation is typing.\n\nThe list has a search in the top and can open a modal for creating new conversations where the user can search for other people or agents to create private chats or chat rooms.\n\nWhen a user clicks a conversation item, the conversation is loaded.\nThe conversation can show rich messages with markdown formatting including code syntax highlight.\nMessages can have uploaded images, attached files and cloud files with full browser preview of 100+ formats.\nPolls, video meetings, rich link embeds, tags and mentions can be used in messages.\nUsers can react with predefined emojis to each message.\n\nRead receipts indicate which messages that has been sent and read.\nThe online presence for users is indicated both in the conversation list as well as in the conversation.\n\nTyping indicators are shown when other users are typing in a conversation.\n\nNew messages are indicated as new when received.\n\nFor chat rooms, the name and avatar for the chat room can be edited. Members can be added or removed from the chat room.\n\nThe editor features markdown preview, including code syntax highlighting.\nIt has buttons for adding polls, video meetings, images, files and cloud files.\nMentions brings up a user selector.\nDrafts are automatically saved for each conversation.\n\n> Complement this with the [`<wy-notification-toasts>`](./wy-notification-toasts.ts) component to also get realtime _in-app notifications_ or _browser notifications_ when new messages arrive.\n\n** Component layout **\n\nThe button is displayed as a clickable icon that acts as a button.\nThe default size of the button is the icon size `1.5rem`/`24px` together with the set `--wy-padding` (which defaults to `0.5rem`/`8px`) on every side of the icon, which makes a total of `2.5rem`/`40px` per default.\n\nThe openable Messenger renders in a drawer overlay on the right side in the [top layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer).\nThat means that the Messenger does not occupy any visual layout space where it's placed in the DOM, it only renders in the top layer.\nThe drawer can be maximized by the user to get more visual space for the Messenger.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-badge>`](./components/ui/wy-badge.ts)\n- [`<wy-button>`](./components/ui/wy-button.ts)\n- [`<wy-conversation>`](./components/wy-conversation.ts)\n- [`<wy-conversation-header>`](./components/wy-conversation-header.ts)\n- [`<wy-conversation-list>`](./components/wy-conversation-list.ts)\n- [`<wy-conversation-new>`](./components/wy-conversation-new.ts)\n- [`<wy-context-data-progress>`](./components/wy-context-data.ts)\n- [`<wy-empty>`](./components/wy-empty.ts)\n- [`<wy-icon>`](./components/ui/wy-icon.ts)\n- [`<wy-overlay>`](./components/wy-overlay.ts)\n- [`<wy-titlebar>`](./components/wy-titlebar.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Messenger button with openable Messenger overlay</figcaption>\n\nDisplays a button with a badge that tracks unread conversations and can open a side drawer overlay with the Messenger on click.\n\n```html\n<wy-messenger-button></wy-messenger-button>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Messenger button with a dot badge</figcaption>\n\nDisplay a button that shows a dot instead of a count when there are unread conversations.\n\n```html\n<wy-messenger-button badge=\"dot\"></wy-messenger-button>\n```\n\n</figure>","name":"WyMessengerButton","cssParts":[{"description":"Container for the Messenger within the overlay.","name":"wy-messenger-overlay-container"},{"description":"Outermost messenger layout wrapper inside the overlay.","name":"wy-messenger-layout"},{"description":"Container that positions the messenger content in the overlay.","name":"wy-messenger-overlay-container"},{"description":"Scrollable surface used by list and conversation sections.","name":"wy-scroll-y"},{"description":"Container for conversation list.","name":"wy-messenger-conversation-list"},{"description":"Container for the active conversation.","name":"wy-messenger-conversation"},{"description":"Wrapper for the close-conversation icon and badge.","name":"wy-close-conversation"}],"slots":[{"description":"Header content rendered at the top of the conversation list overlay.","name":"header"},{"description":"Title content displayed within the overlay header.","name":"title"},{"description":"Buttons placed in the top right of the conversation list.","name":"actions"},{"description":"Custom content for the new-conversation button.","name":"conversation-new"}],"members":[{"kind":"field","name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"drawer\"","description":"Overlay appearance used for the conversation list.","attribute":"overlay"},{"kind":"field","name":"badge","type":{"text":"\"count\" | \"dot\" | \"none\""},"default":"\"count\"","description":"Badge appearance variant.","attribute":"badge"},{"kind":"field","name":"badgePosition","type":{"text":"\"inline\" | \"top-right\" | \"bottom-right\" | \"bottom-left\" | \"top-left\""},"default":"\"top-right\"","description":"Badge position relative to the messenger button.","attribute":"badgePosition"},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Conversation types included in the messenger list.","default":"[AppTypeGuid.ChatRoom, AppTypeGuid.PrivateChat]","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Check visibility on the Messenger","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread conversation count.","readonly":true},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor.","attribute":"placeholder"},{"kind":"field","name":"conversationId","type":{"text":"number | null | undefined"},"default":"null","description":"Active conversation id.","attribute":"conversationId"},{"kind":"method","name":"createConversation","parameters":[{"name":"members","optional":true,"type":{"text":"(number|string)[] | undefined"},"description":"Optional array of member id or member uid."}],"description":"Creates a new conversation."},{"kind":"method","name":"selectMembers","description":"Opens the select member dialog to let the user select members for creating a conversation.","return":{"type":{"text":""}}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a conversation is created or an action is performed on a conversation.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"type":{"text":"WyUnreadEventType"},"description":"Emitted when the number of unread notifications change.","name":"wy-unread"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"drawer\"","description":"Overlay appearance used for the conversation list.","fieldName":"overlay"},{"name":"badge","type":{"text":"\"count\" | \"dot\" | \"none\""},"default":"\"count\"","description":"Badge appearance variant.","fieldName":"badge"},{"name":"badgePosition","type":{"text":"\"inline\" | \"top-right\" | \"bottom-right\" | \"bottom-left\" | \"top-left\""},"default":"\"top-right\"","description":"Badge position relative to the messenger button.","fieldName":"badgePosition"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor.","fieldName":"placeholder"},{"name":"conversationId","type":{"text":"number | null | undefined"},"default":"null","description":"Active conversation id.","fieldName":"conversationId"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyTypeComponent","module":"/lib/classes/weavy-type-component"},"tagName":"wy-messenger-button","customElement":true}],"exports":[{"kind":"js","name":"WyMessengerButton","declaration":{"name":"WyMessengerButton","module":"lib/wy-messenger-button.ts"}},{"kind":"custom-element-definition","name":"wy-messenger-button","declaration":{"name":"WyMessengerButton","module":"lib/wy-messenger-button.ts"}}]},{"kind":"javascript-module","path":"lib/wy-messenger-new.ts","declarations":[{"kind":"class","description":"Weavy messenger component to render a create conversation button with dialogs.\n\nWhen a conversation is created, the component fires a `\"wy-action\"` event with the action type `\"select\"` and details about the conversation.\n\n** Component layout **\n\nThe button is displayed as a clickable icon that acts as a button. The default size of the button is the icon size `1.5rem`/`24px` together with the set `--wy-padding` (which defaults to `0.5rem`/`8px`) on every side of the icon, which makes a total of `2.5rem`/`40px` per default.\n\nThe select member dialog renders in a modal overlay centered in the [top layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer). That means that the dialog does not occupy any visual layout space where it's placed in the DOM, it only renders in the top layer.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-conversation-new>`](./components/wy-conversation-new.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Inline new conversation button in a text</figcaption>\n\nDisplay an icon button that opens a dialog to select users for a new conversation.\n\n```html\n<div>Create conversation <wy-messenger-new></wy-messenger-new></div>\n```\n\n</figure>","name":"WyMessengerNew","members":[{"kind":"field","name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"modal\"","description":"Overlay appearance used for the create conversation dialog.","attribute":"overlay"},{"kind":"method","name":"createConversation","parameters":[{"name":"members","optional":true,"type":{"text":"MemberIdType[]"},"description":"Optional array of member ids or member uids."}],"description":"Creates a new conversation."},{"kind":"method","name":"selectMembers","description":"Opens the select-member dialog.","return":{"type":{"text":""}}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a conversation app is created and should be selected.","name":"wy-action"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"modal\"","description":"Overlay appearance used for the create conversation dialog.","fieldName":"overlay"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyTypeComponent","module":"/lib/classes/weavy-type-component"},"tagName":"wy-messenger-new","customElement":true}],"exports":[{"kind":"js","name":"WyMessengerNew","declaration":{"name":"WyMessengerNew","module":"lib/wy-messenger-new.ts"}},{"kind":"custom-element-definition","name":"wy-messenger-new","declaration":{"name":"WyMessengerNew","module":"lib/wy-messenger-new.ts"}}]},{"kind":"javascript-module","path":"lib/wy-messenger.ts","declarations":[{"kind":"class","description":"The Weavy Messenger component renders a full featured chat interface for private messaging and chat rooms.\n\nIt displays a list of all conversations with possibility to pin, star and mark conversations as read.\nEach conversation item displays an avatar, the participants or the room name as title, a line with the latest message.\nIt also indicates if the conversation is read/unread and if anyone in the conversation is typing.\n\nThe list has a search in the top and can open a modal for creating new conversations where the user can search for other people or agents to create private chats or chat rooms.\n\nWhen a user clicks a conversation item, the conversation is loaded.\nThe conversation can show rich messages with markdown formatting including code syntax highlight.\nMessages can have uploaded images, attached files and cloud files with full browser preview of 100+ formats.\nPolls, video meetings, rich link embeds, tags and mentions can be used in messages.\nUsers can react with predefined emojis to each message.\n\nRead receipts indicate which messages that has been sent and read.\nThe online presence for users is indicated both in the conversation list as well as in the conversation.\n\nTyping indicators are shown when other users are typing in a conversation.\n\nNew messages are indicated as new when received.\n\nFor chat rooms, the name and avatar for the chat room can be edited. Members can be added or removed from the chat room.\n\nThe editor features markdown preview, including code syntax highlighting.\nIt has buttons for adding polls, video meetings, images, files and cloud files.\nMentions brings up a user selector.\nDrafts are automatically saved for each conversation.\n\n> Complement this with the [`<wy-notification-toasts>`](./wy-notification-toasts.ts) component to also get realtime _in-app notifications_ or _browser notifications_ when new messages arrive.\n\n** Component layout **\n\nThe layout depends on the width of its container, which has a breakpoint at `768px`.\n\n- In narrow layouts, the conversation list and chat will be stacked and clicking on a conversation in the list will navigate to the chat.\n- In wider layouts, the component has a side-by-side layout with the conversation list on the left hand side and the chat window on the right hand side.\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-badge>`](./components/ui/wy-badge.ts)\n- [`<wy-button>`](./components/ui/wy-button.ts)\n- [`<wy-container>`](./components/ui/wy-container.ts)\n- [`<wy-conversation>`](./components/wy-conversation.ts)\n- [`<wy-conversation-header>`](./components/wy-conversation-header.ts)\n- [`<wy-conversation-list>`](./components/wy-conversation-list.ts)\n- [`<wy-conversation-new>`](./components/wy-conversation-new.ts)\n- [`<wy-context-data-progress>`](./components/wy-context-data.ts)\n- [`<wy-empty>`](./components/wy-empty.ts)\n- [`<wy-icon>`](./components/ui/wy-icon.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Standard Messenger</figcaption>\n\nA messenger placed in a container using a flex layout.\n\n```html\n<div style=\"display: flex; height: 100%;\">\n<wy-messenger></wy-messenger>\n</div>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Messenger adapting to edges</figcaption>\n\nMessenger that adapts to fit nicely with the edges of a panel.\n\n```html\n<style>\n.messenger-panel {\ndisplay: flex;\nheight: 100%;\nwidth: 32rem;\nborder: 1px solid gray;\n--wy-padding-outer: 0;\n--wy-border-radius-outer: 0;\n}\n</style>\n<div class=\"messenger-panel\">\n<wy-messenger></wy-messenger>\n</div>\n```\n\n</figure>","name":"WyMessenger","cssParts":[{"description":"Main messenger layout.","name":"wy-messenger-layout"},{"description":"Scrollable surface used by list and conversation sections.","name":"wy-scroll-y"},{"description":"Container for the conversation list.","name":"wy-messenger-conversation-list"},{"description":"Container for the active conversation.","name":"wy-messenger-conversation"},{"description":"Wrapper around the close button and unread badge.","name":"wy-close-conversation"}],"slots":[{"description":"Header content rendered above the conversation list.","name":"header"},{"description":"Action buttons for the conversation list toolbar.","name":"actions"},{"description":"Custom content for the new-conversation action.","name":"conversation-new"}],"members":[{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Conversation types included in the messenger list.","default":"[AppTypeGuid.ChatRoom, AppTypeGuid.PrivateChat]","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread conversation count.","readonly":true},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor.","attribute":"placeholder"},{"kind":"field","name":"conversationId","type":{"text":"number | null | undefined"},"default":"null","description":"Active conversation id.","attribute":"conversationId"},{"kind":"method","name":"createConversation","parameters":[{"name":"members","optional":true,"type":{"text":"MemberIdType[]"},"description":"Optional array of member ids or member uids."}],"description":"Creates a new conversation."},{"kind":"method","name":"selectMembers","description":"Opens the select member dialog to let the user select members for creating a conversation.","return":{"type":{"text":""}}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a conversation is created or an action is performed on a conversation.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"type":{"text":"WyUnreadEventType"},"description":"Emitted when the number of unread notifications change.","name":"wy-unread"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the message editor.","fieldName":"placeholder"},{"name":"conversationId","type":{"text":"number | null | undefined"},"default":"null","description":"Active conversation id.","fieldName":"conversationId"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyTypeComponent","module":"/lib/classes/weavy-type-component"},"tagName":"wy-messenger","customElement":true}],"exports":[{"kind":"js","name":"WyMessenger","declaration":{"name":"WyMessenger","module":"lib/wy-messenger.ts"}},{"kind":"custom-element-definition","name":"wy-messenger","declaration":{"name":"WyMessenger","module":"lib/wy-messenger.ts"}}]},{"kind":"javascript-module","path":"lib/wy-notification-badge.ts","declarations":[{"kind":"class","description":"Weavy notification badge component that renders a realtime badge for the number of unread notifications.\nThe badge fits well into a button or similar.\nWeavy automatically creates notifications for reactions, mentions and other activities.\n\nThe badge can optionally be provided with an app `uid` or a `typeFilter` to only display the unread count of a given app or a given notification type, such as _mention_, _reaction_ or _activity_.\n \nWhen the `unread` count property changes, the component fires a `\"wy-unread\"` event with the updated count.\nYou can listen to the event to use the unread count for something else, and you can also turn off the component rendering by setting the `badge` property to `\"none\"`.\n\n** Component layout **\n\nThe badge displays as an inline badge, matching normal text per default.\nIt has a filled background with rounded edge.\nThe badge scales with the current font-size where it's placed, using `0.75em` for the badge `font-size`.\nThe badge is only displayed when there is an unread count of 1 or higher.\n\n> When placing the badge in a `<button>` element, note that buttons initially have a `font-size` of `13.3333px` instead of inheriting font-size from it's parents.\n\nSetting the `badge` property to `\"dot\"` removes the text, only indicating that there is unread notifications without any count.\n\nThe `badgePosition` property can be changed from `\"inline\"` to `\"top-right\"` or any other corner,\nto give it absolute positioning over the top-right corner.\nThe absolute positioning is relative to the closest parent element with set CSS `position`, for instance `relative` positioning.\n\n**Used sub components:**\n\n- [`<wy-badge>`](./components/ui/wy-badge.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Inline notification badge in a text</figcaption>\n\nDisplay a badge that shows unread count and tracks notifications for the authenticated user.\n\n```html\n<div>Notifications <wy-notification-badge></wy-notification-badge></div>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Filtered notification badge</figcaption>\n\nOnly displays the count for _reactions_ that originated from the `\"test-chat\"` app component.\n\n```html\n<wy-notification-badge uid=\"test-chat\" typeFilter=\"reaction\"></wy-notification-badge>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Cornered notification badge</figcaption>\n\nDisplays a badge in the top-right corner of a button with adjusted font-size.\nNote that the badge position is relative to its closest positioned ancestor element, therefore we need to set CSS `position` on the button.\n\n```html\n<button style=\"position: relative; font-size: 1rem;\">\n<span>Notifications</span>\n<wy-notification-badge badgePosition=\"top-right\"></wy-notification-badge>\n</button>\n```\n\n</figure>","name":"WyNotificationBadge","members":[{"kind":"field","name":"badge","type":{"text":"\"count\" | \"dot\" | \"none\""},"default":"\"count\"","description":"Display size of the badge.","attribute":"badge"},{"kind":"field","name":"badgePosition","type":{"text":"\"inline\" | \"top-right\" | \"bottom-right\" | \"bottom-left\" | \"top-left\""},"default":"\"inline\"","description":"Positioning of the badge.","attribute":"badgePosition"},{"kind":"field","name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Notification type filter used when tracking unread notifications.","default":"\"\"","attribute":"typeFilter"},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope the unread count.\nWhen set, only unread notifications from apps belonging to this directory are counted.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread notification count.","readonly":true},{"kind":"method","name":"markAllAsRead","description":"Marks all tracked notifications as read."},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"The appType is always \"unknown\" for optional apps, since the app will be fetched from the server.","default":"UnknownApp","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyUnreadEventType"},"description":"Fired when the number of unread notifications change.","name":"wy-unread"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"badge","type":{"text":"\"count\" | \"dot\" | \"none\""},"default":"\"count\"","description":"Display size of the badge.","fieldName":"badge"},{"name":"badgePosition","type":{"text":"\"inline\" | \"top-right\" | \"bottom-right\" | \"bottom-left\" | \"top-left\""},"default":"\"inline\"","description":"Positioning of the badge.","fieldName":"badgePosition"},{"name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Notification type filter used when tracking unread notifications.","default":"\"\"","fieldName":"typeFilter"},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope the unread count.\nWhen set, only unread notifications from apps belonging to this directory are counted.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyOptionalAppComponent","module":"/lib/classes/weavy-optional-app-component"},"tagName":"wy-notification-badge","customElement":true}],"exports":[{"kind":"js","name":"WyNotificationBadge","declaration":{"name":"WyNotificationBadge","module":"lib/wy-notification-badge.ts"}},{"kind":"custom-element-definition","name":"wy-notification-badge","declaration":{"name":"WyNotificationBadge","module":"lib/wy-notification-badge.ts"}}]},{"kind":"javascript-module","path":"lib/wy-notification-button.ts","declarations":[{"kind":"class","description":"Weavy notification button component to render a button complete with a realtime badge for the number of unread notifications. When clicking the button, it opens a built in overlay displaying the full list of notifications.\n\nWeavy automatically creates notifications for reactions, mentions and other activities.\n\nThe notifications can be clicked or marked as read or unread. When clicked the notification fires a `\"wy-link\"` event with information about the originating Weavy component for the notification.\nThis can be used to [handle navigation](https://www.weavy.com/docs/learn/notifications) in the app, back to where the originating Weavy component is placed.\n\nThe notification button component can optionally be tailored to only show notifications for a specific app or notifications of a specific type, such as _mentions_ or _reactions_. \nWhen setting a predefined notification type, it removes the possibility for the user to filter the list by type in the UI.\n\n> Complement this with the [`<wy-notification-toasts>`](./wy-notification-toasts.ts) component to also get realtime _in-app notifications_ or _browser notifications_.\n\n**Component Layout**\n\nThe button is displayed as a clickable icon that acts as a button.\nThe default size of the button is the icon size `1.5rem`/`24px` together with the set `--wy-padding` (which defaults to `0.5rem`/`8px`) on every side of the icon, which makes a total of `2.5rem`/`40px` per default.\n\nThe openable notification list renders in an overlay in the [top layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer).\nThat means that the notification list does not occupy any visual layout space where it's placed in the DOM, it only renders in the top layer.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-button>`](./ui/wy-button.ts)\n- [`<wy-container>`](./ui/wy-container.ts)\n- [`<wy-icon>`](./ui/wy-icon.ts)\n- [`<wy-overlay>`](./ui/wy-overlay.ts)\n- [`<wy-notification-header>`](./wy-notification-list.ts)\n- [`<wy-notification-list>`](./wy-notification-list.ts)\n- [`<wy-badge>`](./ui/wy-badge.ts)\n- [`<wy-dropdown>`](./ui/wy-dropdown.ts)\n- [`<wy-dropdown-item>`](./ui/wy-dropdown.ts)\n- [`<wy-empty>`](./wy-empty.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Notification button with notification list overlay</figcaption>\n\nDisplay notification button with a badge that tracks notifications for the authenticated user and can open an overlay with a notification list on click.\n\n```html\n<wy-notification-button></wy-notification-button>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Filter notifications by app</figcaption>\n\nDisplay notifications for the authenticated user that originated from app with the specified `uid`. Also, show a dot instead of a count when there are unread notifications.\n\n```html\n<wy-notification-button uid=\"test-chat\" badge=\"dot\"></wy-notification-button>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Styling the badge</figcaption>\n\nChanges the styles of the badge in the notification button.  Set the background color of the `wy-badge` CSS shadow part.\n\n```css\nwy-notification-button::part(wy-badge) {\nbackground-color: violet;\n}\n```\n\n</figure>","name":"WyNotificationButton","slots":[{"description":"Slot for action buttons in the notification list header.","name":"actions"},{"description":"Slot for title in the notification list header.","name":"title"}],"members":[{"kind":"field","name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"sheet\"","description":"Overlay appearance used for the notification list.","attribute":"overlay"},{"kind":"field","name":"list","attribute":"list"},{"kind":"field","name":"badge","type":{"text":"\"count\" | \"dot\" | \"none\""},"default":"\"count\"","description":"Notification badge appearance variant.","attribute":"badge"},{"kind":"field","name":"badgePosition","type":{"text":"\"inline\" | \"top-right\" | \"bottom-right\" | \"bottom-left\" | \"top-left\""},"default":"\"top-right\"","description":"Set the position of the badge. `\"inline\"` means no positioning.","attribute":"badgePosition"},{"kind":"field","name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Notification type filter. No filter (`\"\"`) will allow the user to filter.","default":"\"\"","attribute":"typeFilter"},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope the notification list.\nWhen set, only notifications from apps belonging to this directory are shown.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread notification count.","readonly":true},{"kind":"method","name":"markAllAsRead","description":"Marks all tracked notifications as read."},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"The appType is always \"unknown\" for optional apps, since the app will be fetched from the server.","default":"UnknownApp","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a notification is selected.","name":"wy-action"},{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyLinkEventType"},"description":"Fired when a notification is clicked.","name":"wy-link"},{"type":{"text":"WyUnreadEventType"},"description":"Fired when the number of unread notifications change.","name":"wy-unread"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"overlay","type":{"text":"\"modal\" | \"sheet\" | \"drawer\" | \"full\" | \"none\""},"default":"\"sheet\"","description":"Overlay appearance used for the notification list.","fieldName":"overlay"},{"name":"list","fieldName":"list"},{"name":"badge","type":{"text":"\"count\" | \"dot\" | \"none\""},"default":"\"count\"","description":"Notification badge appearance variant.","fieldName":"badge"},{"name":"badgePosition","type":{"text":"\"inline\" | \"top-right\" | \"bottom-right\" | \"bottom-left\" | \"top-left\""},"default":"\"top-right\"","description":"Set the position of the badge. `\"inline\"` means no positioning.","fieldName":"badgePosition"},{"name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Notification type filter. No filter (`\"\"`) will allow the user to filter.","default":"\"\"","fieldName":"typeFilter"},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope the notification list.\nWhen set, only notifications from apps belonging to this directory are shown.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyOptionalAppComponent","module":"/lib/classes/weavy-optional-app-component"},"tagName":"wy-notification-button","customElement":true}],"exports":[{"kind":"js","name":"WyNotificationButton","declaration":{"name":"WyNotificationButton","module":"lib/wy-notification-button.ts"}},{"kind":"custom-element-definition","name":"wy-notification-button","declaration":{"name":"WyNotificationButton","module":"lib/wy-notification-button.ts"}}]},{"kind":"javascript-module","path":"lib/wy-notification-toasts.ts","declarations":[{"kind":"class","description":"Weavy notification toast component to show overlay toasts in realtime when notifications are received. It shows in-app rendered notifications, native [browser notifications](https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API) or just provide notification events without rendering.\n\nWhen in-app notifications are used, each notification is displayed with an avatar, a title, and additional summary/details with formatted text.\nWhen clicked the notification fires a `\"wy-link\"` event with information about the originating Weavy component for the notification.\nThis can be used to [handle navigation](https://www.weavy.com/docs/learn/notifications) in the app, and navigate back to where the originating Weavy component is placed.\n\nSet `directory` to a directory ID or name to only deliver notifications originating from apps in that directory.\nFiltering applies to in-app toasts, native browser notifications, and `wy-notification` events, including with `appearance=\"none\"`.\nConfigure the directory independently on this component and any notification list, button, or badge.\n\n**Component Layout**\n\nWhen used with _in-app_ notifications, the notifications renders as overlays in the lower right corner of the [top layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer).\nThat means that the component does not occupy any visual layout space where it's placed in the DOM, it only renders in the top layer.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-toasts>`](./components/ui/wy-toast.ts)\n- [`<wy-toast>`](./components/ui/wy-toast.ts)\n- [`<wy-notification-list-item>`](./components/wy-notification-list-item.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>In-app notifications</figcaption>\n\nDisplay rich html notification toasts on your page.\n\n```html\n<wy-notification-toasts></wy-notification-toasts>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Browser notifications</figcaption>\n\nDisplay notifications using the native browser notification API.\n\n```html\n<wy-notification-toasts appearance=\"native\"></wy-notification-toasts>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Directory-filtered notifications</figcaption>\n\nScope both the notification list and realtime toasts to the same directory.\n\n```html\n<wy-notifications directory=\"acme\"></wy-notifications>\n<wy-notification-toasts directory=\"acme\"></wy-notification-toasts>\n```\n\n</figure>","name":"WyNotificationToasts","members":[{"kind":"field","name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Notification types to display.","default":"\"\"","attribute":"typeFilter"},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope notifications.\nOnly notifications originating from apps in this directory are displayed or emitted as `wy-notification`.\nNotifications without an originating app or whose membership cannot be verified are not delivered.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appearance","type":{"text":"\"internal\" | \"native\" | \"none\""},"default":"\"internal\"","description":"Notification delivery mode.\n\n- `internal` renders in-app toasts.\n- `native` uses browser notifications.\n- `none` only emits notification events.","attribute":"appearance"},{"kind":"field","name":"requestUserPermission","type":{"text":"boolean"},"default":"false","description":"Require user consent before showing internal notifications. Native notifications always prompt automatically.","attribute":"requestUserPermission"},{"kind":"field","name":"duration","type":{"text":"number"},"description":"Duration in milliseconds for internal toast visibility.","attribute":"duration"},{"kind":"field","name":"#scopeGeneration","privacy":"private","type":{"text":"number"},"default":"0"},{"kind":"field","name":"#pendingNotifications","privacy":"private","default":"new Map<number, Promise<void>>()"},{"kind":"method","name":"hasUserPermission","description":"Checks if the user has granted permission for desktop notifications. A request will be made if permission has not yet been granted."},{"kind":"method","name":"clearNotifications","description":"Clears queued internal toast notifications."},{"kind":"method","name":"markAsRead","parameters":[{"name":"notificationId","type":{"text":"number"},"description":"The ID of the notification to mark."},{"name":"markAsRead","default":"true","type":{"text":"boolean"},"description":"Whether to mark the notification as read (true) or unread (false).","optional":true}],"description":"Marks a notification as read or unread."},{"kind":"field","name":"#unsubscribeToRealtime","privacy":"private","type":{"text":"() => void | undefined"}},{"kind":"method","name":"resetNotificationScope","privacy":"private","description":"Invalidates in-flight deliveries and removes notifications from the previous scope."},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"The appType is always \"unknown\" for optional apps, since the app will be fetched from the server.","default":"UnknownApp","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyLinkEventType"},"description":"Fired when a notification is clicked.","name":"wy-link"},{"type":{"text":"WyNotificationEventType"},"description":"Fired when a notification should be shown.","name":"wy-notification"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Notification types to display.","default":"\"\"","fieldName":"typeFilter"},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope notifications.\nOnly notifications originating from apps in this directory are displayed or emitted as `wy-notification`.\nNotifications without an originating app or whose membership cannot be verified are not delivered.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"appearance","type":{"text":"\"internal\" | \"native\" | \"none\""},"default":"\"internal\"","description":"Notification delivery mode.\n\n- `internal` renders in-app toasts.\n- `native` uses browser notifications.\n- `none` only emits notification events.","fieldName":"appearance"},{"name":"requestUserPermission","type":{"text":"boolean"},"default":"false","description":"Require user consent before showing internal notifications. Native notifications always prompt automatically.","fieldName":"requestUserPermission"},{"name":"duration","type":{"text":"number"},"description":"Duration in milliseconds for internal toast visibility.","fieldName":"duration"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyOptionalAppComponent","module":"/lib/classes/weavy-optional-app-component"},"tagName":"wy-notification-toasts","customElement":true}],"exports":[{"kind":"js","name":"WyNotificationToasts","declaration":{"name":"WyNotificationToasts","module":"lib/wy-notification-toasts.ts"}},{"kind":"custom-element-definition","name":"wy-notification-toasts","declaration":{"name":"WyNotificationToasts","module":"lib/wy-notification-toasts.ts"}}]},{"kind":"javascript-module","path":"lib/wy-notifications.ts","declarations":[{"kind":"class","description":"Weavy notifications component to render a list of notifications.\nWeavy automatically creates notifications for reactions, mentions and other activities.\n\nThe notifications can be clicked or marked as read or unread. When clicked the notification fires a `\"wy-link\"` event with information about the originating Weavy component for the notification.\nThis can be used to [handle navigation](https://www.weavy.com/docs/learn/notifications) in the app, back to where the originating Weavy component is placed.\n\nThe notification button component can optionally be tailored to only show notifications for a specific app or notifications of a specific type, such as _mentions_ or _reactions_.\nWhen setting a predefined notification type, it removes the possibility for the user to filter the list by type in the UI.\n\n> Complement this with the [`<wy-notification-toasts>`](./wy-notification-toasts.ts) component to also get realtime _in-app notifications_ or _browser notifications_.\n\n**Component Layout**\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-notification-header>`](./components/wy-notification-list.ts)\n- [`<wy-notification-list>`](./components/wy-notification-list.ts)\n- [`<wy-button>`](./components/ui/wy-button.ts)\n- [`<wy-icon>`](./components/ui/wy-icon.ts)\n- [`<wy-empty>`](./components/wy-empty.ts)\n- [`<wy-progress-circular>`](./components/ui/wy-progress-circular.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Standard notification list</figcaption>\n\nDisplay a list of all notifications for the authenticated user, placed in a container using a flex layout which the component adapts to.\n\n```html\n<div style=\"display: flex; height: 100%;\">\n<wy-notifications></wy-notifications>\n</div>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Filtered notification list by app</figcaption>\n\nDisplay notifications for the authenticated user that originated from app with the specified `uid`.\n\n```html\n<wy-notifications uid=\"test-chat\"></wy-notifications>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Filtered notification list by type</figcaption>\n\nDisplay notifications that is of type _mention_ only.\n\n```html\n<wy-notifications typeFilter=\"mention\"></wy-notifications>\n```\n\n</figure>","name":"WyNotifications","slots":[{"description":"Slot for action buttons in the notification list header. Replaces the default actions.","name":"actions"}],"members":[{"kind":"field","name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Notification type filter applied when loading notifications.","default":"\"\"","attribute":"typeFilter"},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope the notification list.\nWhen set, only notifications from apps belonging to this directory are shown.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread notification count.","readonly":true},{"kind":"method","name":"markAllAsRead","description":"Marks all tracked notifications as read."},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"The appType is always \"unknown\" for optional apps, since the app will be fetched from the server.","default":"UnknownApp","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when a notification is selected.","name":"wy-action"},{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"type":{"text":"WyLinkEventType"},"description":"Fired when a notification is clicked.","name":"wy-link"},{"type":{"text":"WyUnreadEventType"},"description":"Emitted when the number of unread notifications change.","name":"wy-unread"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"typeFilter","type":{"text":"\"\" | \"activity\" | \"mention\" | \"reaction\""},"description":"Notification type filter applied when loading notifications.","default":"\"\"","fieldName":"typeFilter"},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) to scope the notification list.\nWhen set, only notifications from apps belonging to this directory are shown.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyOptionalAppComponent","module":"/lib/classes/weavy-optional-app-component"},"tagName":"wy-notifications","customElement":true}],"exports":[{"kind":"js","name":"WyNotifications","declaration":{"name":"WyNotifications","module":"lib/wy-notifications.ts"}},{"kind":"custom-element-definition","name":"wy-notifications","declaration":{"name":"WyNotifications","module":"lib/wy-notifications.ts"}}]},{"kind":"javascript-module","path":"lib/wy-post-editor.ts","declarations":[{"kind":"class","description":"Posts editor component to create posts in specific post apps. This component _does not_ render the feed itself, but can be used together with `<wy-posts>` to build a complete feed with post creation capabilities.\n\nThe component is a rich post editor with built in support for markdown, code formatting, images, file attachments, cloud attachments, mentions, links, embeds, and polls.\n\nThe post editor needs the app identifier (`uid`) of a single post app or a space separated string of multiple uid:s for pre-created post apps that the user can choose from. Specifying only one uid allows automatic creation of a [corresponding post app](xref:concepts#app) on the server the first time it's accessed. When using multiple uid:s, all the specified post apps must exist prior to loading the editor.\n\n> It's often useful to base the `uid` on something that identifies the location where the component is rendered.\n> Typically you would use something like a product id, page id, or path.\n\nThis component is great if you want to decouple the [`<wy-posts>`](./wy-posts.ts) feed from the editor, for instance to place the editor in a different part of the screen or to use the feed without an editor.\n\n**Component Layout**\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt well to flex- and grid-layouts as well as traditional flow-layouts.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-post-form>`](./wy-post-form.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>Post editor for a posts app</figcaption>\n\nDisplay a post editor that posts to a specific posts app.\n\nSpecifying the app identifier (`uid`) is required, and automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized.\nIt's recommended to specify a readable `name` of the posts app, to get better readable notifications from the app.\n\n```html\n<wy-post-editor uid=\"test-posts\" name=\"Test feed\"></wy-post-editor>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Post editor for multiple posts apps</figcaption>\n\nDisplay a post editor that has a selector for choosing a predefined post app to post to.\n\nSpecifying more than one app identifier (`uid`) separated by space is required.\n\n```html\n<wy-post-editor uid=\"test-posts test-news\"></wy-post-editor>\n```\n\n</figure>","name":"WyPostEditor","slots":[{"description":"Extra buttons.","name":"actions"}],"members":[{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the post editor. Overrides default text.","attribute":"placeholder"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyAppEventType"},"description":"Fired whenever the app property changes.","name":"wy-app"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the post editor. Overrides default text.","fieldName":"placeholder"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-post-editor","customElement":true}],"exports":[{"kind":"js","name":"WyPostEditor","declaration":{"name":"WyPostEditor","module":"lib/wy-post-editor.ts"}},{"kind":"custom-element-definition","name":"wy-post-editor","declaration":{"name":"WyPostEditor","module":"lib/wy-post-editor.ts"}}]},{"kind":"javascript-module","path":"lib/wy-posts.ts","declarations":[{"kind":"class","description":"Weavy posts component to render a feed of posts and comments as seen on many social networks. This component _does not_ include a post editor, but can be used together with the [`<wy-post-editor>`](./wy-post-editor.ts) component to build a complete feed with post creation capabilities.\n\nThe content of each post is built up from the posted text, images, polls, embeds, links, audio, video, file attachments, and cloud files. Each post can be commented on and reacted to with a set of emoji reactions. Images, audio, video, attached files, and cloud files can be previewed with the built-in previewer supporting 100+ file formats including PDF, Office and Google Drive.\n\nThe posts component can be configured with or without app identifiers (`uid`) to show either an aggregated feed from _all_ post apps that are available to the user, or by configuring one or multiple post app identifiers using the `uid` attribute to show only specific post apps.\n\nSpecifying only one `uid` allows automatic creation of a [corresponding post app](https://www.weavy.com/docs/concepts#app) on the server the first time it's accessed. When using multiple uid:s, all the specified post apps must exist prior to loading the feed.\n\nWhen using a single `uid`, it's also recommended to specify a readable `name` of the posts app, to get better readable listing and notifications from the app.\n\n> It's often useful to base the `uid` on something that identifies the location where the component is rendered.\n> Typically you would use something like a product id, page id, or path.\n\nThe list of posts can be refined to only show posts by other users that the current user follows using the `following` attribute.\n\nA search field can be enabled for users by adding the `search` attribute. Searching can also be handled programmatically using the `query` property, which also reflects the search field in the UI.\n\nThis component is great if you want to decouple the feed from the editor, for instance to place [`<wy-post-editor>`](./wy-post-editor.ts) in a different part of the screen or to use the feed without an editor.\n\n**Component Layout**\n\nThe component displays a list of posts with an optional search field in the top of the list. The feed is without a post editor, which can be used and configured separately by using the [`<wy-post-editor>`](./wy-post-editor.ts) component or in combination using the [`<wy-feed>`](./wy-feed) component.\n\nEach post had a header in the top with information about the user together with an avatar. Next comes any attached images or embedded content and then the right formatted text. This is followed by polls and file attachments. In the bottom of the post is reactions and an expandable rich comment section.\n\nThe component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts.\nIt's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration.\n\nThe height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling).\nIf placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable.\n\nThe content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border.\nIt's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed,\nbut with proper padding within the scrollable area of the component.\nIf you want to make the component go all the way to the edges without padding or any outermost roundness instead,\nset `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge.\n\nYou can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_.\n\n**Used sub components:**\n\n- [`<wy-buttons>`](./components/ui/wy-button.ts)\n- [`<wy-container>`](./components/ui/wy-container.ts)\n- [`<wy-search>`](./components/ui/wy-search.ts)\n- [`<wy-post-list>`](./components/wy-post-list.ts)\n- [`<wy-user-card>`](./components/wy-user-card.ts)\n\n## Examples\n\n<figure class=\"example\"><figcaption>All posts feed with a search field</figcaption>\n\nDisplay a post feed from all the posts app available to the user, together with a search field at the top.\n\n```html\n<wy-posts search></wy-posts>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Posts feed from followed people</figcaption>\n\nDisplay a feed with all posts from people the user follows.\n\n```html\n<wy-posts following></wy-posts>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Creating and showing a single app for posts</figcaption>\n\nSpecifying a single app identifier (`uid`), automatically creates a [corresponding app](https://www.weavy.com/docs/concepts#app) on your Weavy environment when the component is first initialized. It's recommended to specify a readable `name` of the posts app, to get better readable notifications from the app.\n\n```html\n<wy-posts uid=\"test-posts\" name=\"Test feed\"></wy-posts>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Multiple post apps feed with a search field</figcaption>\n\nSpecifying multiple app identifiers (`uid`) separated by space, shows posts from several already created post apps. Here the search field is also enabled for the user.\n\n```html\n<wy-posts uid=\"test-posts test-news\" search></wy-posts>\n```\n\n</figure>\n\n<figure class=\"example\"><figcaption>Multiple post apps feed from followed people</figcaption>\n\nA post feed from multiple post apps, displaying only posts made by people the user follows.\n\n```html\n<wy-posts uid=\"test-posts test-news\" following></wy-posts>\n```\n\n</figure>","name":"WyPosts","cssParts":[{"description":"Root posts container.","name":"wy-posts"}],"slots":[{"description":"Floating buttons placed in the top right.","name":"actions"},{"description":"Content when no posts are available.","name":"empty"}],"members":[{"kind":"field","name":"unread","type":{"text":"number"},"description":"Current unread posts count.","readonly":true},{"kind":"field","name":"search","type":{"text":"boolean"},"default":"false","description":"Show search field.","attribute":"search"},{"kind":"field","name":"following","type":{"text":"boolean"},"default":"false","description":"Only show posts by users followed by the current user.","attribute":"following"},{"kind":"field","name":"query","type":{"text":"string | null | undefined"},"description":"Show post by search query filter.","attribute":"query"},{"kind":"field","name":"tag","type":{"text":"string | null | undefined"},"attribute":"tag"},{"kind":"field","name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the post editor. Overrides default text.","attribute":"placeholder"},{"kind":"field","name":"app","type":{"text":"AppType | undefined"},"description":"The current app data.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"apps","type":{"text":"AppListType | undefined"},"description":"A list of data for all the apps specified by the `uid` property.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"reset","description":"Sets the component to it's initial state and resets the app state.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"attribute":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appType","type":{"text":"AppTypeGuid | UnknownAppType"},"privacy":"protected","description":"Any app type for the weavy component.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","attribute":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uid","privacy":"private","type":{"text":"string | number | null | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#uids","privacy":"private","type":{"text":"Array<string | number>"},"default":"[]","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","attribute":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"uids","description":"An array of parsed uids from the `uid` property.","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","attribute":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_initialAppName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"_appName","type":{"text":"string | undefined"},"privacy":"private","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"attribute":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","attribute":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appUpsert","privacy":"private","default":"new MutationController<AppType, Error, MutationAbortProps, void>(this)","description":"Upsert that makes sure the app exists. Kept beside the app query rather than inside it, see\n`getEnsureAppMutationOptions()`.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#lastUpsertPayload","privacy":"private","type":{"text":"string | undefined"},"description":"The payload of the last upsert this component sent, used to avoid repeating an identical write.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#trackedApp","privacy":"private","type":{"text":"{ weavy: WeavyType; uid: string | number } | undefined"},"description":"The client and uid the app query is currently tracking, so identical options are not re-tracked.","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"appSubscribeMutation","privacy":"private","default":"new MutationController< void, Error, MutateAppSubscribeProps, MutateAppSubscribeContextType >(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"subscribe","parameters":[{"name":"subscribe","default":"true","type":{"text":"boolean"},"description":"Set to `false` to unsubscribe from updates. Defaults to `true`."}],"description":"Subscribes or unsubscribes to notification updates from the app. Check `.app.is_subscribed` to see current state.\n\n### Examples\n\n<figure class=\"example\"><figcaption>Toggle app subscription</figcaption>\n\n```js\n// Wait for app data\nawait myWeavyComponent.whenApp();\n\n// Get current app subscription state\nconst isSubscribed = myWeavyComponent.app.is_subscribed;\n\n// Toggle the app subscription state\nmyWeavyComponent.subscribe(!isSubscribed);\n```\n\n</figure>","return":{"type":{"text":"Promise<void>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApp","description":"Resolves when app data is available.","return":{"type":{"text":"Promise<AppType>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApp","privacy":"private","type":{"text":"(app: AppType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApp","privacy":"private","default":"new Promise<AppType>((r) => { this.#resolveApp = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"whenApps","description":"Resolves when multiple apps is available.","return":{"type":{"text":"Promise<AppType[]>"}},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#resolveApps","privacy":"private","type":{"text":"(apps: AppListType) => void | undefined"},"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#whenApps","privacy":"private","default":"new Promise<AppListType>((r) => { this.#resolveApps = r; })","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appQuery","privacy":"private","default":"new QueryController<AppType>(this)","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#multipleAppsQueryMap","privacy":"private","default":"new Map<string | number, QueryController<AppType>>()","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"field","name":"#appsQuery","privacy":"private","readonly":true,"inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"kind":"method","name":"setLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType | undefined"}}],"description":"Sets the link value to a new link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"method","name":"provideStorageLink","privacy":"protected","parameters":[{"name":"link","type":{"text":"LinkType"},"description":"The entity to provide."}],"description":"Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"visibilityElement","type":{"text":"Element | undefined"},"privacy":"protected","description":"Element to match visibility on.","readonly":true,"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"appTypes","type":{"text":"AppTypeGuid[]"},"privacy":"protected","description":"Any app types handled by the component.","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","attribute":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"attribute":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.\n\n### Examples","attribute":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#data","privacy":"private","type":{"text":"ContextDataType[] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#annotations","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"annotations\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","attribute":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#enterToSend","privacy":"private","type":{"text":"EnterToSend | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","attribute":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#reactions","privacy":"private","type":{"text":"WeavyComponentSettingProps[\"reactions\"] | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"attribute":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveContextDataBlobs","privacy":"private","type":{"text":"(blobs: ContextDataBlobsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenContextDataBlobs","privacy":"private","default":"new Promise<ContextDataBlobsType>((r) => { this.#resolveContextDataBlobs = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveComponentFeatures","privacy":"private","type":{"text":"(componentFeatures: ComponentFeaturePolicy) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenComponentFeatures","privacy":"private","default":"new Promise<ComponentFeaturePolicy>((r) => { this.#resolveComponentFeatures = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveLink","privacy":"private","type":{"text":"(link: LinkType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenLink","privacy":"private","default":"new Promise<LinkType>((r) => { this.#resolveLink = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#resolveSettings","privacy":"private","type":{"text":"(settings: WeavyComponentSettingsType) => void | undefined"},"inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#whenSettings","privacy":"private","default":"new Promise<WeavyComponentSettingsType>((r) => { this.#resolveSettings = r; })","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#contextDataRefs","privacy":"private","type":{"text":"Map<ContextDataType, DataRefType>"},"default":"new Map()","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#uploadContextDataMutation","privacy":"private","default":"new MutationController<BlobType, Error, MutateFileProps, FileMutationContextType>(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"#mutatingContextData","privacy":"private","default":"new MutationStateController< BlobType | FileType | EmbedType, Error, MutateFileProps, FileMutationContextType >(this)","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"kind":"field","name":"weavy","type":{"text":"WeavyType | undefined"},"description":"The consumed weavy context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"contextId","type":{"text":"ContextIdType"},"description":"Contextual guid that is unique for the client context.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"user","type":{"text":"UserType | undefined"},"description":"The current user.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveContextId","privacy":"private","type":{"text":"(contextId: ContextIdType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenContextId","privacy":"private","default":"new Promise<ContextIdType>((r) => { this.#resolveContextId = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenUser","description":"Resolves when current user data is available.","return":{"type":{"text":"Promise<UserType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveUser","privacy":"private","type":{"text":"(user: UserType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenUser","privacy":"private","default":"new Promise<UserType>((r) => { this.#resolveUser = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenWeavy","description":"Resolves when a weavy context is available.","return":{"type":{"text":"Promise<WeavyType>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveWeavy","privacy":"private","type":{"text":"(weavy: WeavyType) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenWeavy","privacy":"private","default":"new Promise<WeavyType>((r) => { this.#resolveWeavy = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"whenReady","description":"Resolves when the component has rendered first time.","return":{"type":{"text":"Promise<WeavyComponent>"}},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#resolveReady","privacy":"private","type":{"text":"(component: WeavyComponent) => void | undefined"},"inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#whenReady","privacy":"private","default":"new Promise<WeavyComponent>((r) => { this.#resolveReady = r; })","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"method","name":"dispatchAction","return":{"type":{"text":"boolean"}},"parameters":[{"name":"detail","type":{"text":"WyActionEventDetailType"}}],"description":"Dispatch a `wy-action` event on the component.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}},{"kind":"field","name":"#userQuery","privacy":"private","default":"new QueryController<UserType>(this)","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"events":[{"type":{"text":"WyActionEventType"},"description":"Emitted when an action is performed on an embed.","name":"wy-action"},{"type":{"text":"WyPreviewOpenEventType"},"description":"Fired when a preview overlay is about to open.","name":"wy-preview-open"},{"type":{"text":"WyPreviewCloseEventType"},"description":"Fired when a preview overlay is closed.","name":"wy-preview-close"},{"name":"ready","type":{"text":"CustomEvent"},"description":"When the component has rendered.","inheritedFrom":{"name":"WeavyComponent","module":"lib/classes/weavy-component.ts"}}],"attributes":[{"name":"search","type":{"text":"boolean"},"default":"false","description":"Show search field.","fieldName":"search"},{"name":"following","type":{"text":"boolean"},"default":"false","description":"Only show posts by users followed by the current user.","fieldName":"following"},{"name":"query","type":{"text":"string | null | undefined"},"description":"Show post by search query filter.","fieldName":"query"},{"name":"tag","type":{"text":"string | null | undefined"},"fieldName":"tag"},{"name":"placeholder","type":{"text":"string | undefined"},"description":"Placeholder text for the post editor. Overrides default text.","fieldName":"placeholder"},{"name":"link","description":"Any provided link that should be loaded, shown and highlighted.","type":{"text":"LinkType | undefined"},"fieldName":"link","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"generateUid","type":{"text":"string | null | undefined"},"description":"Sets the uid property to a single uid with automatically appended user and agent name (where applicable).","fieldName":"generateUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"uid","description":"One or multiple unique app identifiers or app id:s. When a single uid is provided, the app gets automatically created on the server upon first request.","fieldName":"uid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"currentUid","type":{"text":"string | number | null | undefined"},"default":"undefined","description":"The currently selected app uid when multiple `uid` is provided. Defaults to the first uid from the `uid` property.","fieldName":"currentUid","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"name","description":"Optional display name for the app (used in notifications etc.)","type":{"text":"string | undefined"},"fieldName":"name","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"directory","type":{"text":"string | number | undefined"},"description":"Optional directory identifier (`id` or `name`) for the app.","fieldName":"directory","inheritedFrom":{"name":"WeavyAppComponent","module":"lib/classes/weavy-app-component.ts"}},{"name":"features","type":{"text":"string | undefined"},"description":"Config for enabling/disabling specific features in the weavy component.\nPrefix a feature with minus to disable it.","fieldName":"features","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"agent","description":"The configured uid of the agent for the weavy component.","type":{"text":"string | undefined"},"fieldName":"agent","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"contextualData","type":{"text":"string | undefined"},"description":"Contextual data for agents to reference. Provide descriptive data for optimal results.","fieldName":"contextualData","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"annotations","description":"Appearance of annotations.","type":{"text":"AnnotationsAppearanceType"},"default":"\"buttons-inline\"","fieldName":"annotations","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"enterToSend","description":"Enter-to-send keymap in the editor. `\"modifier\"` is `Enter` combined with `Ctrl` or `Cmd`.","type":{"text":"EnterToSend"},"default":"\"auto\"","fieldName":"enterToSend","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}},{"name":"reactions","description":"A space separated string of available reaction emojis in unicode.","default":"\"😍 😎 😉 😜 👍\"","type":{"text":"string"},"fieldName":"reactions","inheritedFrom":{"name":"WeavyTypeComponent","module":"lib/classes/weavy-type-component.ts"}}],"superclass":{"name":"WeavyAppComponent","module":"/lib/classes/weavy-app-component"},"tagName":"wy-posts","customElement":true}],"exports":[{"kind":"js","name":"WyPosts","declaration":{"name":"WyPosts","module":"lib/wy-posts.ts"}},{"kind":"custom-element-definition","name":"wy-posts","declaration":{"name":"WyPosts","module":"lib/wy-posts.ts"}}]}]}