@webx-ui/module-inbox 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,11 @@
1
- import { FormOptions } from './types';
1
+ import { CaptchaProvider, CaptchaSite, FormOptions } from './types';
2
+ type __VLS_Props = {
3
+ /** From the form as the server sent it; absent on a server older than this. */
4
+ site?: Record<CaptchaProvider, CaptchaSite>;
5
+ };
2
6
  type __VLS_PublicProps = {
3
7
  modelValue: FormOptions;
4
- };
8
+ } & __VLS_Props;
5
9
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
10
  "update:modelValue": (value: FormOptions) => any;
7
11
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -9,6 +9,10 @@ import { InboxField, InboxForm } from './types';
9
9
  * Under them, the names. A hidden field is filled in by the page it stands on — the address
10
10
  * somebody wrote from, the product they were looking at, the campaign that brought them — and
11
11
  * the only way to fill one in is to know what it is called (§2.6).
12
+ *
13
+ * Where a block's template lives depends on the site: with `module-blocks` it is written in
14
+ * the panel's Blocks section, and a hint pointing at `resources/views/blocks/…` sent people
15
+ * looking for a file that is not there. Without it, a block type is the site's own view.
12
16
  */
13
17
  type __VLS_Props = {
14
18
  form: InboxForm;
package/dist/i18n.d.ts CHANGED
@@ -1,2 +1,12 @@
1
+ import { InboxStatus } from './types';
1
2
  /** Puts this package's English under the panel's dictionary, once per panel. */
2
3
  export declare function useInboxMessages(): void;
4
+ /**
5
+ * A status's name in the language the panel is drawn in.
6
+ *
7
+ * A status is a panel word — "New", "In progress", "Done" — read by whoever works the inbox,
8
+ * never by a visitor, so it follows the interface and not the content language picked for
9
+ * editing; that one only stands in when the status has no line in the panel's language. Then
10
+ * any line it has, then its key.
11
+ */
12
+ export declare function useStatusName(): (status: InboxStatus) => string;