@webx-ui/module-inbox 0.6.1 → 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.
- package/dist/FormAntispam.d.ts +6 -2
- package/dist/FormEmbed.d.ts +4 -0
- package/dist/i18n.d.ts +10 -0
- package/dist/index.js +1481 -1383
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +15 -1
- package/package.json +3 -3
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.wx-inbox-field-form[data-v-
|
|
1
|
+
.wx-inbox-field-form[data-v-a3de6c60]{display:flex;flex-direction:column;gap:var(--wx-space-12)}.wx-inbox-field-form__row[data-v-a3de6c60]{display:flex;flex-wrap:wrap;gap:var(--wx-space-12)}.wx-inbox-field-form__row[data-v-a3de6c60]>*{flex:1 1 200px;min-width:0}.wx-inbox-field-form__row[data-v-a3de6c60]:empty{display:none}.wx-inbox-field-form__checks[data-v-a3de6c60]{display:flex;flex-wrap:wrap;gap:var(--wx-space-16)}.wx-inbox-choices[data-v-a3de6c60]{display:flex;flex-direction:column;gap:var(--wx-space-8);align-items:flex-start}.wx-inbox-choices__row[data-v-a3de6c60]{display:flex;align-items:center;gap:var(--wx-space-8);width:100%}.wx-inbox-choices__row[data-v-a3de6c60]>:first-child{flex:0 1 180px;min-width:0}.wx-inbox-choices__row[data-v-a3de6c60]>:nth-child(2){flex:1 1 auto;min-width:0}.wx-inbox-field[data-v-db38e823]{display:flex;flex-direction:column;gap:var(--wx-space-2);flex:1 1 auto;min-width:0}.wx-inbox-field__name[data-v-db38e823]{display:flex;align-items:center;gap:var(--wx-space-6);min-width:0}.wx-inbox-embed[data-v-7f9788ed]{display:flex;flex-direction:column;gap:var(--wx-space-16)}.wx-inbox-embed__snippet[data-v-7f9788ed]{display:flex;align-items:center;gap:var(--wx-space-8);margin-top:var(--wx-space-12);padding:var(--wx-space-10) var(--wx-space-12);border:1px solid var(--wx-border-default);border-radius:var(--wx-radius-md);background:var(--wx-bg-subtle)}.wx-inbox-embed__snippet code[data-v-7f9788ed]{flex:1 1 auto;min-width:0;overflow-x:auto;white-space:pre;font-family:var(--wx-font-family-mono);font-size:var(--wx-font-size-sm)}.wx-inbox-general[data-v-1932aefe]{display:flex;flex-direction:column;gap:var(--wx-space-16)}.wx-inbox-recipients[data-v-caf2e49f]{display:flex;flex-direction:column;gap:var(--wx-space-8);margin-block:var(--wx-space-12);max-width:var(--wx-field-max-width, 640px)}.wx-inbox-recipients__item[data-v-caf2e49f]{display:flex;flex-direction:column;gap:var(--wx-space-4)}.wx-inbox-recipients__row[data-v-caf2e49f]{display:flex;align-items:center;gap:var(--wx-space-8)}.wx-inbox-recipients__row[data-v-caf2e49f]>:first-child{flex:1 1 auto;min-width:0}.wx-inbox-editor[data-v-f7f9e6f4]{display:flex;flex-direction:column;gap:var(--wx-gap, var(--wx-space-16))}.wx-inbox-editor__head[data-v-f7f9e6f4] .wx-screen-head__subtitle{font-family:var(--wx-font-family-mono)}.wx-inbox-editor__tabs[data-v-f7f9e6f4]{flex:1 1 auto}.wx-inbox-create[data-v-55fb40d8],.wx-inbox-by-hand[data-v-72006299]{display:flex;flex-direction:column;gap:var(--wx-space-12)}.wx-submissions[data-v-b23e9ac8]{display:flex;flex-direction:column;gap:var(--wx-gap, var(--wx-space-16));padding:var(--wx-gap, var(--wx-space-16));min-width:0}.wx-submissions__head[data-v-b23e9ac8] .wx-screen-head__subtitle{font-family:var(--wx-font-family-mono)}.wx-submissions__views[data-v-b23e9ac8] .wx-tabs__panels{padding-top:var(--wx-space-8)}.wx-submissions__mass[data-v-b23e9ac8]{display:flex;align-items:center;gap:var(--wx-space-8);flex-wrap:wrap}.wx-submissions[data-v-b23e9ac8] .wx-submissions__when{white-space:nowrap}.wx-submissions__state[data-v-b23e9ac8]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--wx-space-6);min-width:0}.wx-submissions[data-v-b23e9ac8] .is-unread{font-weight:var(--wx-font-weight-medium)}.wx-submissions[data-v-b23e9ac8] .is-unread td:first-child{box-shadow:inset 2px 0 0 0 var(--wx-color-primary)}.wx-inbox>.wx-card__body{display:flex;flex-direction:column;overflow:clip;border-radius:inherit}.wx-inbox__loading{padding:var(--wx-space-16)}.wx-inbox__forms{padding:var(--wx-space-8) var(--wx-space-12)}.wx-inbox__forms.is-panel{padding:0}.wx-inbox__forms.is-plain .wx-sortable-list__row{padding-inline:var(--wx-space-8)}.wx-inbox__forms.is-plain .wx-sortable-list__head{margin-block-end:var(--wx-space-6);padding-inline:var(--wx-space-8)}.wx-inbox-form{display:flex;flex-direction:column;gap:var(--wx-space-2);align-items:flex-start;flex:1 1 auto;min-width:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:start;cursor:pointer}.wx-inbox-form__name{display:flex;align-items:center;gap:var(--wx-space-6);min-width:0;max-width:100%}.wx-inbox-form.is-off .wx-inbox-form__name>.wx-text{text-decoration:line-through}.wx-inbox__forms .wx-sortable-list__row:has(.wx-inbox-form.is-current){background:var(--wx-bg-subtle);border-radius:var(--wx-radius-sm)}.wx-inbox-form.is-current{color:var(--wx-color-primary)}.wx-inbox-form__silent{flex:none;color:var(--wx-color-warning)}.wx-inbox-form__count{flex:0 0 auto}.wx-inbox-status-form[data-v-b520b53b]{display:flex;flex-direction:column;gap:var(--wx-space-12)}.wx-inbox-status-form__checks[data-v-b520b53b]{display:flex;flex-wrap:wrap;gap:var(--wx-space-16)}.wx-inbox-statuses[data-v-ba548af9]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--wx-space-12)}.wx-inbox-statuses>.wx-list-screen[data-v-ba548af9]{align-self:stretch}.wx-inbox-status[data-v-ba548af9]{display:flex;align-items:center;gap:var(--wx-space-8);flex:1 1 auto;min-width:0;flex-wrap:wrap}.wx-submission[data-v-bc5b1b85]{display:flex;flex-direction:column;gap:var(--wx-gap, var(--wx-space-16));min-width:0;container-type:inline-size}.wx-submission__panes[data-v-bc5b1b85],.wx-submission__main[data-v-bc5b1b85],.wx-submission__aside[data-v-bc5b1b85]{display:flex;flex-direction:column;gap:var(--wx-gap, var(--wx-space-16));min-width:0}@container (min-width: 900px){.wx-submission__panes[data-v-bc5b1b85]{flex-direction:row;align-items:flex-start}.wx-submission__main[data-v-bc5b1b85]{flex:1 1 auto}.wx-submission__aside[data-v-bc5b1b85]{flex:0 0 320px;max-width:320px}}.wx-submission__value[data-v-bc5b1b85]{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.wx-submission__detail[data-v-bc5b1b85]{overflow-wrap:anywhere}.wx-submission__recipients[data-v-bc5b1b85]{display:flex;flex-direction:column;gap:var(--wx-space-4);margin:0;padding:0;list-style:none}.wx-submission__recipients li[data-v-bc5b1b85]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-8);overflow-wrap:anywhere}.wx-submission__event[data-v-bc5b1b85]{margin:0}.wx-submission__by[data-v-bc5b1b85]{display:flex;align-items:baseline;gap:var(--wx-space-6);flex-wrap:wrap;margin:0}.wx-submission__files[data-v-bc5b1b85]{display:flex;flex-wrap:wrap;gap:var(--wx-space-8)}.wx-submission__fields[data-v-bc5b1b85]{display:flex;flex-direction:column;gap:var(--wx-space-12)}.wx-submission__field[data-v-bc5b1b85]{display:flex;flex-direction:column;gap:var(--wx-space-4)}
|
package/dist/types.d.ts
CHANGED
|
@@ -110,9 +110,21 @@ export interface InboxForm {
|
|
|
110
110
|
unread_count: number | null;
|
|
111
111
|
/** Only on a form asked for by id, or one just written. */
|
|
112
112
|
fields?: InboxField[];
|
|
113
|
+
/**
|
|
114
|
+
* What the site has for each captcha — the keys and how they are run live in its `.env`,
|
|
115
|
+
* not in the form — so the antispam tab can say which kind of key it expects. Optional
|
|
116
|
+
* because a server older than this field does not send it.
|
|
117
|
+
*/
|
|
118
|
+
captcha?: Record<CaptchaProvider, CaptchaSite>;
|
|
113
119
|
created_at: string | null;
|
|
114
120
|
updated_at: string | null;
|
|
115
121
|
}
|
|
122
|
+
export type CaptchaProvider = 'recaptcha' | 'turnstile';
|
|
123
|
+
/** How a provider runs on this site, and whether both halves of its keys are there. */
|
|
124
|
+
export interface CaptchaSite {
|
|
125
|
+
type: 'checkbox' | 'invisible' | 'v3';
|
|
126
|
+
configured: boolean;
|
|
127
|
+
}
|
|
116
128
|
/** A form as its editor saves it. */
|
|
117
129
|
export interface FormInput {
|
|
118
130
|
slug: string;
|
|
@@ -224,7 +236,9 @@ export interface SubmissionAttachment {
|
|
|
224
236
|
/** One line of what has happened to a submission. Never edited, never deleted. */
|
|
225
237
|
export interface SubmissionEvent {
|
|
226
238
|
id: number;
|
|
227
|
-
type: 'created' | 'status' | 'assignee' | 'note' | 'notified' | 'handled' | 'handler_error' | 'no_recipients' | 'notify_queued' | 'notify_failed' | string;
|
|
239
|
+
type: 'created' | 'status' | 'assignee' | 'note' | 'notified' | 'handled' | 'handler_error' | 'no_recipients' | 'notify_queued' | 'notify_failed' | 'value' | string;
|
|
240
|
+
/** The answer a `value` line is about, by machine name; null on every other line. */
|
|
241
|
+
field?: string | null;
|
|
228
242
|
from: string | null;
|
|
229
243
|
to: string | null;
|
|
230
244
|
/** Null is the system — the submission arriving, the notification going out. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webx-ui/module-inbox",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Forms and submissions for the WebX UI admin panel: the forms of a site, their fields, their statuses, and what has come in through them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vue-router": "^4.5.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@webx-ui/core": "^0.
|
|
48
|
-
"@webx-ui/module-admin": "^0.23.
|
|
47
|
+
"@webx-ui/core": "^0.38.0",
|
|
48
|
+
"@webx-ui/module-admin": "^0.23.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^24.10.1",
|