autosolutions-os 0.4.21 → 0.4.22
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/CHANGELOG.md +13 -0
- package/dist/feedback.js +50 -5
- package/dist/feedbackAsk.d.ts +1 -1
- package/dist/feedbackAsk.js +8 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.22 - 2026-12-01
|
|
4
|
+
|
|
5
|
+
The feedback form shows a picture big (Didac, 18 November 2026, feedback e724e723: "when someone attach a
|
|
6
|
+
picture ... they click preview on the attachment and show what it is on big").
|
|
7
|
+
|
|
8
|
+
- A click on a picture in the form opens it big, inside the form: "Picture 1 of 2", Previous and Next when
|
|
9
|
+
there are more, and Close. Escape, Close or a click beside the picture closes it; the arrow keys move.
|
|
10
|
+
- While it is open the form behind it takes no clicks or Tab (`inert`). Closing gives focus back to the
|
|
11
|
+
picture. The small x still removes a picture.
|
|
12
|
+
- The form still takes pictures only (PNG, JPEG, WebP). Documents would need the core's `feedback-submit`
|
|
13
|
+
and its bucket to take them first.
|
|
14
|
+
- Apps change nothing but the version.
|
|
15
|
+
|
|
3
16
|
## 0.4.21 - 2026-12-01
|
|
4
17
|
|
|
5
18
|
Finance Hub go-live. Menu text and marks only; apps change nothing but the version.
|
package/dist/feedback.js
CHANGED
|
@@ -8,7 +8,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
8
8
|
* `core.feedback`, for its TopBar's `actions`.
|
|
9
9
|
*
|
|
10
10
|
* The form asks for a type (Bug, Idea, Question, Other), what happened, and up
|
|
11
|
-
* to three pictures (picked, pasted or dropped).
|
|
11
|
+
* to three pictures (picked, pasted or dropped). A click on a picture shows it
|
|
12
|
+
* big inside the form (0.4.22), with Previous and Next when there are more. When the person presses Send
|
|
12
13
|
* it adds what the page knows: the app, the page's path, title and address,
|
|
13
14
|
* the company the bar shows, the browser, the screen, the language, the time
|
|
14
15
|
* zone, the app's commit (Lovable's `data-commit-sha`) and this package's
|
|
@@ -52,7 +53,12 @@ function FeedbackDialog({ appKey, token, tenant, endpoint, draft, setDraft, onCl
|
|
|
52
53
|
const ref = useRef(null);
|
|
53
54
|
const text = useRef(null);
|
|
54
55
|
const file = useRef(null);
|
|
56
|
+
const form = useRef(null);
|
|
57
|
+
const viewClose = useRef(null);
|
|
55
58
|
const id = useId();
|
|
59
|
+
/* The picture shown big (0.4.22, feedback e724e723), or null. */
|
|
60
|
+
const [view, setView] = useState(null);
|
|
61
|
+
const shown = view !== null ? draft.pictures[view] ?? null : null;
|
|
56
62
|
const [sending, setSending] = useState(false);
|
|
57
63
|
const [error, setError] = useState(null);
|
|
58
64
|
const [sent, setSent] = useState(null);
|
|
@@ -71,6 +77,33 @@ function FeedbackDialog({ appKey, token, tenant, endpoint, draft, setDraft, onCl
|
|
|
71
77
|
live.current = false;
|
|
72
78
|
};
|
|
73
79
|
}, []);
|
|
80
|
+
/* While a picture is shown big, the form behind it takes no clicks or Tab
|
|
81
|
+
(inert, set here so React 18 and 19 both write it), and the Close button
|
|
82
|
+
has focus. Closing gives focus back to the picture that was opened. */
|
|
83
|
+
const opened = useRef(null);
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
form.current?.toggleAttribute("inert", shown !== null);
|
|
86
|
+
if (shown !== null) {
|
|
87
|
+
viewClose.current?.focus();
|
|
88
|
+
}
|
|
89
|
+
else if (opened.current !== null) {
|
|
90
|
+
const back = form.current?.querySelectorAll(".osfb-pic__open")[opened.current];
|
|
91
|
+
opened.current = null;
|
|
92
|
+
back?.focus();
|
|
93
|
+
}
|
|
94
|
+
}, [shown]);
|
|
95
|
+
const openView = (i) => {
|
|
96
|
+
opened.current = i;
|
|
97
|
+
setView(i);
|
|
98
|
+
};
|
|
99
|
+
const step = (by) => {
|
|
100
|
+
const count = draft.pictures.length;
|
|
101
|
+
if (view === null || count < 2)
|
|
102
|
+
return;
|
|
103
|
+
const next = (view + by + count) % count;
|
|
104
|
+
opened.current = next;
|
|
105
|
+
setView(next);
|
|
106
|
+
};
|
|
74
107
|
const addFiles = async (files) => {
|
|
75
108
|
const list = Array.from(files).filter((f) => f.type.startsWith("image/"));
|
|
76
109
|
if (list.length === 0)
|
|
@@ -106,6 +139,11 @@ function FeedbackDialog({ appKey, token, tenant, endpoint, draft, setDraft, onCl
|
|
|
106
139
|
first, and the paste (a picture or text) lands in the form. */
|
|
107
140
|
const onKeyDown = (e) => {
|
|
108
141
|
e.stopPropagation();
|
|
142
|
+
if (shown !== null && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
143
|
+
e.preventDefault();
|
|
144
|
+
step(e.key === "ArrowLeft" ? -1 : 1);
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
109
147
|
if (!(e.metaKey || e.ctrlKey) || e.altKey || e.key.toLowerCase() !== "v")
|
|
110
148
|
return;
|
|
111
149
|
const at = e.target;
|
|
@@ -154,20 +192,27 @@ function FeedbackDialog({ appKey, token, tenant, endpoint, draft, setDraft, onCl
|
|
|
154
192
|
};
|
|
155
193
|
return (_jsxs("dialog", { ref: ref, "data-os-feedback": "dialog", "aria-labelledby": `${id}-title`, onCancel: (e) => {
|
|
156
194
|
e.preventDefault();
|
|
157
|
-
|
|
195
|
+
/* Escape closes the big picture first, then the form. */
|
|
196
|
+
if (shown !== null)
|
|
197
|
+
setView(null);
|
|
198
|
+
else
|
|
199
|
+
close();
|
|
158
200
|
}, onKeyDown: onKeyDown, onPaste: onPaste, onDragOver: (e) => {
|
|
159
201
|
if (e.dataTransfer?.types?.includes("Files"))
|
|
160
202
|
e.preventDefault();
|
|
161
|
-
}, onDrop: onDrop, children: [_jsx("style", { children: CSS }), _jsxs("form", { className: "osfb-form", method: "dialog", onSubmit: (e) => {
|
|
203
|
+
}, onDrop: onDrop, children: [_jsx("style", { children: CSS }), _jsxs("form", { ref: form, className: "osfb-form", method: "dialog", onSubmit: (e) => {
|
|
162
204
|
e.preventDefault();
|
|
163
205
|
if (!sending && !sent)
|
|
164
206
|
void send();
|
|
165
207
|
}, children: [_jsxs("div", { className: "osfb-head", children: [_jsxs("div", { children: [_jsx("h2", { className: "osfb-title", id: `${id}-title`, children: "Send feedback" }), _jsx("p", { className: "osfb-sub", children: "Tell us what went wrong or what would help." })] }), _jsx("button", { type: "button", className: "osfb-close", "aria-label": "Close", onClick: close, children: "\u00D7" })] }), sent ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "osfb-alert is-ok", role: "status", children: ["Thanks. We got your feedback.", sent.warnings.length > 0 && (_jsx("ul", { children: sent.warnings.map((w) => _jsx("li", { children: w }, w)) }))] }), _jsxs("div", { className: "osfb-actions", children: [_jsx("button", { type: "button", className: "osfb-btn", onClick: () => setSent(null), children: "Send more" }), _jsx("button", { type: "button", className: "osfb-btn is-primary", onClick: close, children: "Close" })] })] })) : (_jsxs(_Fragment, { children: [_jsxs("fieldset", { className: "osfb-group", children: [_jsx("legend", { className: "osfb-label", children: "Type" }), _jsx("div", { className: "osfb-types", children: OS_FEEDBACK_TYPES.map((t) => (_jsxs("label", { className: draft.type === t.value ? "osfb-type is-on" : "osfb-type", children: [_jsx("input", { type: "radio", name: `${id}-type`, value: t.value, checked: draft.type === t.value, onChange: () => setDraft((d) => ({ ...d, type: t.value })) }), t.label] }, t.value))) })] }), _jsxs("div", { children: [_jsx("label", { className: "osfb-label", htmlFor: `${id}-text`, children: "What happened?" }), _jsx("textarea", { ref: text, id: `${id}-text`, className: "osfb-text", value: draft.message, maxLength: OS_FEEDBACK_LIMITS.message, placeholder: "What did you do, what did you expect, and what happened instead?", onChange: (e) => {
|
|
166
208
|
const message = e.target.value;
|
|
167
209
|
setDraft((d) => ({ ...d, message }));
|
|
168
|
-
} })] }), _jsxs("div", { children: [_jsx("span", { className: "osfb-label", id: `${id}-pics`, children: "Pictures (optional)" }), _jsxs("div", { className: "osfb-pics", role: "group", "aria-labelledby": `${id}-pics`, children: [draft.pictures.map((p, i) => (_jsxs("div", { className: "osfb-pic", children: [_jsx("img", { src: p.data, alt: `Picture ${i + 1}` }), _jsx("button", { type: "button", "aria-label": `Remove picture ${i + 1}`, onClick: () => setDraft((d) => ({ ...d, pictures: d.pictures.filter((_, j) => j !== i) })), children: "\u00D7" })] }, `${i}-${p.size}`))), draft.pictures.length < OS_FEEDBACK_LIMITS.pictures && (_jsx("button", { type: "button", className: "osfb-btn", onClick: () => file.current?.click(), children: "Add a picture" })), _jsx("input", { ref: file, className: "osfb-sr", type: "file", accept: "image/png,image/jpeg,image/webp", multiple: true, tabIndex: -1, "aria-hidden": "true", onChange: (e) => {
|
|
210
|
+
} })] }), _jsxs("div", { children: [_jsx("span", { className: "osfb-label", id: `${id}-pics`, children: "Pictures (optional)" }), _jsxs("div", { className: "osfb-pics", role: "group", "aria-labelledby": `${id}-pics`, children: [draft.pictures.map((p, i) => (_jsxs("div", { className: "osfb-pic", children: [_jsx("button", { type: "button", className: "osfb-pic__open", "aria-label": `Show picture ${i + 1} big`, title: "Show it big", onClick: () => openView(i), children: _jsx("img", { src: p.data, alt: `Picture ${i + 1}` }) }), _jsx("button", { type: "button", className: "osfb-pic__remove", "aria-label": `Remove picture ${i + 1}`, onClick: () => setDraft((d) => ({ ...d, pictures: d.pictures.filter((_, j) => j !== i) })), children: "\u00D7" })] }, `${i}-${p.size}`))), draft.pictures.length < OS_FEEDBACK_LIMITS.pictures && (_jsx("button", { type: "button", className: "osfb-btn", onClick: () => file.current?.click(), children: "Add a picture" })), _jsx("input", { ref: file, className: "osfb-sr", type: "file", accept: "image/png,image/jpeg,image/webp", multiple: true, tabIndex: -1, "aria-hidden": "true", onChange: (e) => {
|
|
169
211
|
const files = Array.from(e.target.files ?? []);
|
|
170
212
|
e.target.value = "";
|
|
171
213
|
void addFiles(files);
|
|
172
|
-
} })] }), _jsxs("p", { className: "osfb-note", children: ["You can also paste or drop up to ", OS_FEEDBACK_LIMITS.pictures, " pictures here."] })] }), _jsx("p", { className: "osfb-note", children: "We also send the app, this page's address, your company, your name and email, your browser and the time." }), error && _jsx("p", { className: "osfb-alert is-error", role: "alert", children: error }), _jsxs("div", { className: "osfb-actions", children: [_jsx("button", { type: "button", className: "osfb-btn", onClick: close, children: "Cancel" }), _jsx("button", { type: "submit", className: "osfb-btn is-primary", disabled: sending, children: sending ? "Sending" : "Send" })] })] }))] })
|
|
214
|
+
} })] }), _jsxs("p", { className: "osfb-note", children: ["You can also paste or drop up to ", OS_FEEDBACK_LIMITS.pictures, " pictures here. Click a picture to see it big."] })] }), _jsx("p", { className: "osfb-note", children: "We also send the app, this page's address, your company, your name and email, your browser and the time." }), error && _jsx("p", { className: "osfb-alert is-error", role: "alert", children: error }), _jsxs("div", { className: "osfb-actions", children: [_jsx("button", { type: "button", className: "osfb-btn", onClick: close, children: "Cancel" }), _jsx("button", { type: "submit", className: "osfb-btn is-primary", disabled: sending, children: sending ? "Sending" : "Send" })] })] }))] }), shown !== null && view !== null && (_jsxs("div", { className: "osfb-view", role: "group", "aria-label": `Picture ${view + 1} of ${draft.pictures.length}`, "data-os-feedback": "preview", onClick: (e) => {
|
|
215
|
+
if (e.target === e.currentTarget)
|
|
216
|
+
setView(null);
|
|
217
|
+
}, children: [_jsxs("div", { className: "osfb-view__bar", children: [_jsxs("span", { className: "osfb-view__count", children: ["Picture ", view + 1, " of ", draft.pictures.length] }), draft.pictures.length > 1 && (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", className: "osfb-btn", onClick: () => step(-1), children: "Previous" }), _jsx("button", { type: "button", className: "osfb-btn", onClick: () => step(1), children: "Next" })] })), _jsx("button", { type: "button", ref: viewClose, className: "osfb-btn is-primary", onClick: () => setView(null), children: "Close" })] }), _jsx("img", { className: "osfb-view__img", src: shown.data, alt: `Picture ${view + 1}, big` })] }))] }));
|
|
173
218
|
}
|
package/dist/feedbackAsk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const OS_FEEDBACK_ASK_CSS = "\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{width:auto;height:2.25rem;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;gap:.375rem;margin-inline-end:1rem;padding:0 .875rem 0 .6875rem;border:0;border-radius:999px;background:linear-gradient(110deg,#D1007C 0%,#6E3192 50%,#D1007C 100%);background-size:200% 100%;background-position:0% 50%;color:#FFFFFF;font:inherit;font-size:.8125rem;font-weight:600;line-height:1;white-space:nowrap;animation:osfb-ask-drift 6s ease-in-out 1s 10 alternate}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask:hover{filter:brightness(1.1)}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask:active{filter:brightness(.95)}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.is-seen{animation:none}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask--float{position:fixed;top:.75rem;inset-inline-end:1rem;z-index:2147483000;margin:0;padding:0 .875rem 0 .6875rem;width:auto;box-shadow:0 .25rem .75rem rgba(0,0,0,.25)}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask--float .osfb-ask__icon{display:block}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask--float .osfb-ask__word{display:inline}\n.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask .osfb-ask__icon{display:block;flex:0 0 auto}\n@keyframes osfb-ask-drift{from{background-position:0% 50%}to{background-position:100% 50%}}\n@media (max-width:767px){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{margin-inline-end:.5rem;gap:.3125rem;padding:0 .6875rem 0 .5rem}}\n@media (max-width:409px){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{padding:0 .75rem}.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask .osfb-ask__icon{display:none}}\n@media (max-width:379px){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{width:2.25rem;padding:0}.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask .osfb-ask__icon{display:block}.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask .osfb-ask__word{display:none}}\n@media (max-width:359px){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{margin-inline-end:.25rem}}\n@media (prefers-reduced-motion:reduce){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{animation:none}}\n@media (forced-colors:active){.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask.osfb-ask{border:1px solid ButtonText;background:ButtonFace;color:ButtonText;forced-color-adjust:none}}\n";
|
|
2
|
-
export declare const OS_FEEDBACK_DIALOG_CSS = "\ndialog[data-os-feedback=\"dialog\"]{box-sizing:border-box;width:min(34rem,calc(100vw - 2rem));max-width:none;max-height:calc(100vh - 2rem);margin:auto;padding:0;border:1px solid var(--ws-color-panel-stroke,#E6E6E8);border-radius:var(--ws-radius-sheet,1rem);background:var(--ws-color-surface,#FFFFFF);color:var(--ws-color-text,#303030);font-family:var(--ws-font,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif);font-size:.875rem;line-height:1.45;text-align:start;box-shadow:0 1.25rem 3.75rem rgba(0,0,0,.25);overflow:auto}\ndialog[data-os-feedback=\"dialog\"]::backdrop{background:rgba(26,26,26,.45)}\ndialog[data-os-feedback=\"dialog\"] *{box-sizing:border-box}\ndialog[data-os-feedback=\"dialog\"] .osfb-form{display:flex;flex-direction:column;gap:1rem;margin:0;padding:1.25rem 1.5rem 1.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-title{margin:0;font-size:1.125rem;line-height:1.3;font-weight:600;color:inherit}\ndialog[data-os-feedback=\"dialog\"] .osfb-sub,dialog[data-os-feedback=\"dialog\"] .osfb-note{margin:.25rem 0 0;font-size:.8125rem;color:var(--ws-color-text-secondary,#616161)}\ndialog[data-os-feedback=\"dialog\"] .osfb-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin:-.25rem -.5rem 0 0;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-close:hover{background:var(--ws-color-fill-hover,rgba(0,0,0,.05))}\ndialog[data-os-feedback=\"dialog\"] .osfb-label{display:block;margin:0 0 .375rem;font-weight:600;font-size:.8125rem;color:inherit}\ndialog[data-os-feedback=\"dialog\"] fieldset.osfb-group{margin:0;padding:0;border:0;min-width:0}\ndialog[data-os-feedback=\"dialog\"] .osfb-types{display:flex;flex-wrap:wrap;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-type{position:relative;display:inline-flex;align-items:center;height:2rem;padding:0 .875rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:999px;background:var(--ws-color-surface,#FFFFFF);color:inherit;font-weight:550;cursor:pointer;user-select:none}\ndialog[data-os-feedback=\"dialog\"] .osfb-type:hover{background:var(--ws-color-fill-hover,rgba(0,0,0,.05))}\ndialog[data-os-feedback=\"dialog\"] .osfb-type.is-on{border-color:var(--ws-color-pill-ink,#2B5BE3);background:var(--ws-color-pill,#E3EAFD);color:var(--ws-color-pill-ink,#2B5BE3)}\ndialog[data-os-feedback=\"dialog\"] .osfb-type input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-type:has(input:focus-visible){outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:2px}\ndialog[data-os-feedback=\"dialog\"] textarea.osfb-text{display:block;width:100%;min-height:8rem;margin:0;padding:.5rem .75rem;border:1px solid var(--ws-color-sheet-stroke,#D1D1D1);border-radius:.5rem;background:#FFFFFF;color:inherit;font:inherit;line-height:1.45;resize:vertical}\ndialog[data-os-feedback=\"dialog\"] textarea.osfb-text:focus{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:0;border-color:transparent}\ndialog[data-os-feedback=\"dialog\"] .osfb-pics{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic{position:relative;width:4.5rem;height:4.5rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:.5rem;overflow:hidden;background:#F4F4F5}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic img{display:block;width:100%;height:100%;object-fit:cover}\ndialog[data-os-feedback=\"dialog\"] .osfb-
|
|
2
|
+
export declare const OS_FEEDBACK_DIALOG_CSS = "\ndialog[data-os-feedback=\"dialog\"]{box-sizing:border-box;width:min(34rem,calc(100vw - 2rem));max-width:none;max-height:calc(100vh - 2rem);margin:auto;padding:0;border:1px solid var(--ws-color-panel-stroke,#E6E6E8);border-radius:var(--ws-radius-sheet,1rem);background:var(--ws-color-surface,#FFFFFF);color:var(--ws-color-text,#303030);font-family:var(--ws-font,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif);font-size:.875rem;line-height:1.45;text-align:start;box-shadow:0 1.25rem 3.75rem rgba(0,0,0,.25);overflow:auto}\ndialog[data-os-feedback=\"dialog\"]::backdrop{background:rgba(26,26,26,.45)}\ndialog[data-os-feedback=\"dialog\"] *{box-sizing:border-box}\ndialog[data-os-feedback=\"dialog\"] .osfb-form{display:flex;flex-direction:column;gap:1rem;margin:0;padding:1.25rem 1.5rem 1.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-title{margin:0;font-size:1.125rem;line-height:1.3;font-weight:600;color:inherit}\ndialog[data-os-feedback=\"dialog\"] .osfb-sub,dialog[data-os-feedback=\"dialog\"] .osfb-note{margin:.25rem 0 0;font-size:.8125rem;color:var(--ws-color-text-secondary,#616161)}\ndialog[data-os-feedback=\"dialog\"] .osfb-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin:-.25rem -.5rem 0 0;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-close:hover{background:var(--ws-color-fill-hover,rgba(0,0,0,.05))}\ndialog[data-os-feedback=\"dialog\"] .osfb-label{display:block;margin:0 0 .375rem;font-weight:600;font-size:.8125rem;color:inherit}\ndialog[data-os-feedback=\"dialog\"] fieldset.osfb-group{margin:0;padding:0;border:0;min-width:0}\ndialog[data-os-feedback=\"dialog\"] .osfb-types{display:flex;flex-wrap:wrap;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-type{position:relative;display:inline-flex;align-items:center;height:2rem;padding:0 .875rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:999px;background:var(--ws-color-surface,#FFFFFF);color:inherit;font-weight:550;cursor:pointer;user-select:none}\ndialog[data-os-feedback=\"dialog\"] .osfb-type:hover{background:var(--ws-color-fill-hover,rgba(0,0,0,.05))}\ndialog[data-os-feedback=\"dialog\"] .osfb-type.is-on{border-color:var(--ws-color-pill-ink,#2B5BE3);background:var(--ws-color-pill,#E3EAFD);color:var(--ws-color-pill-ink,#2B5BE3)}\ndialog[data-os-feedback=\"dialog\"] .osfb-type input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-type:has(input:focus-visible){outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:2px}\ndialog[data-os-feedback=\"dialog\"] textarea.osfb-text{display:block;width:100%;min-height:8rem;margin:0;padding:.5rem .75rem;border:1px solid var(--ws-color-sheet-stroke,#D1D1D1);border-radius:.5rem;background:#FFFFFF;color:inherit;font:inherit;line-height:1.45;resize:vertical}\ndialog[data-os-feedback=\"dialog\"] textarea.osfb-text:focus{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:0;border-color:transparent}\ndialog[data-os-feedback=\"dialog\"] .osfb-pics{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic{position:relative;width:4.5rem;height:4.5rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:.5rem;overflow:hidden;background:#F4F4F5}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic img{display:block;width:100%;height:100%;object-fit:cover}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic__open{display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic__open:focus-visible{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:-2px}\ndialog[data-os-feedback=\"dialog\"] .osfb-view{position:fixed;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:1rem;background:rgba(16,16,16,.88);color:#FFFFFF}\ndialog[data-os-feedback=\"dialog\"] .osfb-view__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;max-width:100%}\ndialog[data-os-feedback=\"dialog\"] .osfb-view__count{margin-inline-end:.5rem;font-weight:600}\ndialog[data-os-feedback=\"dialog\"] .osfb-view__img{display:block;max-width:100%;max-height:calc(100vh - 6rem);object-fit:contain;border-radius:.5rem;background:#FFFFFF;box-shadow:0 1rem 3rem rgba(0,0,0,.4)}\ndialog[data-os-feedback=\"dialog\"] .osfb-pic__remove{position:absolute;top:.125rem;right:.125rem;display:inline-flex;align-items:center;justify-content:center;width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:999px;background:rgba(26,26,26,.75);color:#FFFFFF;font:inherit;font-size:.875rem;line-height:1;cursor:pointer}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;height:2.25rem;padding:0 1rem;border:0;border-radius:.5rem;background:var(--ws-color-button,#E3E3E3);color:var(--ws-color-text,#303030);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn:hover{background:var(--ws-color-button-hover,#D4D4D4)}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn:disabled{cursor:default;opacity:.6}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn.is-primary{background:var(--ws-color-badge,#303030);color:var(--ws-color-badge-text,#FFFFFF)}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn.is-primary:hover{background:#1A1A1A}\ndialog[data-os-feedback=\"dialog\"] .osfb-btn:focus-visible,dialog[data-os-feedback=\"dialog\"] .osfb-close:focus-visible,dialog[data-os-feedback=\"dialog\"] .osfb-pic__remove:focus-visible{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:2px}\ndialog[data-os-feedback=\"dialog\"] .osfb-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-alert{margin:0;padding:.625rem .75rem;border-radius:.5rem;font-size:.8125rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-alert.is-error{background:#FDECEE;color:var(--ws-color-text-critical,#8E0B21)}\ndialog[data-os-feedback=\"dialog\"] .osfb-alert.is-ok{background:#E7F5EC;color:#14532D}\ndialog[data-os-feedback=\"dialog\"] .osfb-alert ul{margin:.375rem 0 0;padding-inline-start:1.25rem}\ndialog[data-os-feedback=\"dialog\"] .osfb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n";
|
|
3
3
|
export declare const OS_FEEDBACK_SEEN_KEY = "autosolutions-os:feedback-seen";
|
|
4
4
|
export declare function readSeen(): boolean;
|
|
5
5
|
export declare function keepSeen(): void;
|
package/dist/feedbackAsk.js
CHANGED
|
@@ -60,13 +60,19 @@ ${D} textarea.osfb-text:focus{outline:2px solid var(--ws-color-focus,#2B5BE3);ou
|
|
|
60
60
|
${D} .osfb-pics{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
|
|
61
61
|
${D} .osfb-pic{position:relative;width:4.5rem;height:4.5rem;border:1px solid var(--ws-color-border,#E6E6E8);border-radius:.5rem;overflow:hidden;background:#F4F4F5}
|
|
62
62
|
${D} .osfb-pic img{display:block;width:100%;height:100%;object-fit:cover}
|
|
63
|
-
${D} .osfb-
|
|
63
|
+
${D} .osfb-pic__open{display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}
|
|
64
|
+
${D} .osfb-pic__open:focus-visible{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:-2px}
|
|
65
|
+
${D} .osfb-view{position:fixed;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:1rem;background:rgba(16,16,16,.88);color:#FFFFFF}
|
|
66
|
+
${D} .osfb-view__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;max-width:100%}
|
|
67
|
+
${D} .osfb-view__count{margin-inline-end:.5rem;font-weight:600}
|
|
68
|
+
${D} .osfb-view__img{display:block;max-width:100%;max-height:calc(100vh - 6rem);object-fit:contain;border-radius:.5rem;background:#FFFFFF;box-shadow:0 1rem 3rem rgba(0,0,0,.4)}
|
|
69
|
+
${D} .osfb-pic__remove{position:absolute;top:.125rem;right:.125rem;display:inline-flex;align-items:center;justify-content:center;width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:999px;background:rgba(26,26,26,.75);color:#FFFFFF;font:inherit;font-size:.875rem;line-height:1;cursor:pointer}
|
|
64
70
|
${D} .osfb-btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;height:2.25rem;padding:0 1rem;border:0;border-radius:.5rem;background:var(--ws-color-button,#E3E3E3);color:var(--ws-color-text,#303030);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
|
|
65
71
|
${D} .osfb-btn:hover{background:var(--ws-color-button-hover,#D4D4D4)}
|
|
66
72
|
${D} .osfb-btn:disabled{cursor:default;opacity:.6}
|
|
67
73
|
${D} .osfb-btn.is-primary{background:var(--ws-color-badge,#303030);color:var(--ws-color-badge-text,#FFFFFF)}
|
|
68
74
|
${D} .osfb-btn.is-primary:hover{background:#1A1A1A}
|
|
69
|
-
${D} .osfb-btn:focus-visible,${D} .osfb-close:focus-visible,${D} .osfb-
|
|
75
|
+
${D} .osfb-btn:focus-visible,${D} .osfb-close:focus-visible,${D} .osfb-pic__remove:focus-visible{outline:2px solid var(--ws-color-focus,#2B5BE3);outline-offset:2px}
|
|
70
76
|
${D} .osfb-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}
|
|
71
77
|
${D} .osfb-alert{margin:0;padding:.625rem .75rem;border-radius:.5rem;font-size:.8125rem}
|
|
72
78
|
${D} .osfb-alert.is-error{background:#FDECEE;color:var(--ws-color-text-critical,#8E0B21)}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, sent with each feedback message. A test keeps it equal to package.json. */
|
|
2
|
-
export declare const OS_VERSION = "0.4.
|
|
2
|
+
export declare const OS_VERSION = "0.4.22";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, sent with each feedback message. A test keeps it equal to package.json. */
|
|
2
|
-
export const OS_VERSION = "0.4.
|
|
2
|
+
export const OS_VERSION = "0.4.22";
|
package/package.json
CHANGED