ViewOutlet constant

Module @runic-artifex/vue in @runic-artifex/vue 0.23.0

const ViewOutlet: new <R extends PageReference>(props: (ViewOutletProps<R> & ({
    [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
} | {
    [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
})) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<ViewOutletProps<R> & ({
    [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
} | {
    [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
    P: {};
    B: {};
    D: {};
    C: {};
    M: {};
    Defaults: {};
}, (ViewOutletProps<R> & {
    [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
}) | (ViewOutletProps<R> & {
    [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
}), {}, {}, {}, {}, {}>;

Renders the registered component for a generated View reference and passes the reference as its page prop. A different reference remounts the component. The default slot renders while there is no content. A kind without a component renders the missing slot, which receives { content }, for example for localized text. Without the slot, a development build renders an English alert, and a production build renders nothing and reports the kind (installErrorReporting, onBridgeDiagnostic):

<ViewOutlet :content="state?.main" :registry="pages">
  <template #missing="{ content }"><p role="alert">{{ t("missingView", content.kind) }}</p></template>
</ViewOutlet>