wizards 0.2.48 → 0.2.50
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/README.md +2 -1
- package/apps/runtime/dist/apple/wizards-apple +0 -0
- package/apps/runtime/dist/cli/status.js +1 -1
- package/apps/runtime/dist/db/migrations/tenant/0013_run_origin.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0013_snapshot.json +3139 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
- package/apps/runtime/dist/db/schema.js +5 -0
- package/apps/runtime/dist/docs/user/meta.json +1 -0
- package/apps/runtime/dist/docs/user/models.md +25 -0
- package/apps/runtime/dist/docs/user/test-and-share.md +7 -1
- package/apps/runtime/dist/docs/user/wordpress.md +103 -0
- package/apps/runtime/dist/engine/device.js +182 -0
- package/apps/runtime/dist/engine/events.js +3 -0
- package/apps/runtime/dist/engine/input.js +3 -0
- package/apps/runtime/dist/engine/prepare.js +1 -0
- package/apps/runtime/dist/engine/requirements.js +6 -109
- package/apps/runtime/dist/engine/runner.js +1 -0
- package/apps/runtime/dist/engine/steps.js +2 -1
- package/apps/runtime/dist/env.js +1 -1
- package/apps/runtime/dist/harness/apple.js +258 -0
- package/apps/runtime/dist/harness/model.js +3 -1
- package/apps/runtime/dist/mcp/auth.js +3 -0
- package/apps/runtime/dist/mcp/scopes.js +11 -2
- package/apps/runtime/dist/media/transcribe.js +6 -1
- package/apps/runtime/dist/models.js +63 -9
- package/apps/runtime/dist/routes/api.js +232 -1
- package/apps/runtime/dist/routes/plugins.js +6 -2
- package/apps/runtime/dist/routes/runs.js +65 -3
- package/apps/runtime/dist/routes/studio.js +11 -1
- package/apps/runtime/dist/services/api.js +244 -0
- package/apps/runtime/dist/services/engenty-shapes.js +1 -1
- package/apps/runtime/dist/services/package.js +77 -9
- package/apps/runtime/dist/services/runs.js +4 -3
- package/apps/runtime/dist/services/site.js +262 -0
- package/apps/web/dist/assets/AboutDialog-BRjyFW7N.js +1 -0
- package/apps/web/dist/assets/ChangelogDialog-DU-fYMNG.js +1 -0
- package/apps/web/dist/assets/ChatView-Chv8rH9v.js +10 -0
- package/apps/web/dist/assets/EditorPage-BEEiRjpL.js +3 -0
- package/apps/web/dist/assets/FlowPreview-911P5v6v.js +1 -0
- package/apps/web/dist/assets/{Harness-DAR1u4Dk.js → Harness-DE9pS-ZP.js} +2 -2
- package/apps/web/dist/assets/Marketplace-DfoRgS49.js +2 -0
- package/apps/web/dist/assets/NewWizardPage-BwZ39he_.js +1 -0
- package/apps/web/dist/assets/ProjectPage-BB8feiW1.js +2 -0
- package/apps/web/dist/assets/PublicRunner-JsgGibnC.js +1 -0
- package/apps/web/dist/assets/ReadOnly-ClY8xMQS.js +1 -0
- package/apps/web/dist/assets/RunDrawer-CxJtIQlP.js +4 -0
- package/apps/web/dist/assets/RunnerView-DvIBDzr1.js +1 -0
- package/apps/web/dist/assets/SettingsPage-DJBQvyom.js +1 -0
- package/apps/web/dist/assets/SetupPage-BVqbshmT.js +1 -0
- package/apps/web/dist/assets/SharePage-ChQxeHFC.js +1 -0
- package/apps/web/dist/assets/brand-CNF5NxD9.js +2 -0
- package/apps/web/dist/assets/changelog-OdE5-SsX.js +1 -0
- package/apps/web/dist/assets/circle-alert-r2qc1Vej.js +1 -0
- package/apps/web/dist/assets/engenty-eXZ-EAwd.js +1 -0
- package/apps/web/dist/assets/esm-cYET-omK.js +7 -0
- package/apps/web/dist/assets/{fluffy-engenty-D7rFrNcJ.js → fluffy-engenty-ClRou7yu.js} +1 -1
- package/apps/web/dist/assets/index-CDgxPZY_.js +11 -0
- package/apps/web/dist/assets/jsx-runtime-BNakU3Ej.js +1 -0
- package/apps/web/dist/assets/lock-N-C6-ZeG.js +1 -0
- package/apps/web/dist/assets/logo-C4V2_3Ar.js +1 -0
- package/apps/web/dist/assets/oss-credits-BQQX0kvk.js +1 -0
- package/apps/web/dist/assets/pdfmake-Cx9scTbD.js +228 -0
- package/apps/web/dist/assets/rolldown-runtime-hePW80VL.js +1 -0
- package/apps/web/dist/assets/session-Cpg5S8B3.js +1 -0
- package/apps/web/dist/assets/settings-menu-B763_KXf.js +1 -0
- package/apps/web/dist/assets/ui-DKcggL84.js +133 -0
- package/apps/web/dist/assets/upload-D24SDj7W.js +1 -0
- package/apps/web/dist/assets/useMutation-DKyQXgyj.js +1 -0
- package/apps/web/dist/assets/vfs_fonts-DllDSYt1.js +1 -0
- package/apps/web/dist/assets/volume-2-C-Y7-S4b.js +1 -0
- package/apps/web/dist/embed.js +57 -8
- package/apps/web/dist/index.html +11 -15
- package/apps/web/dist/mcp/flow.html +434 -206
- package/modules/calls/dist/client.css +1 -1
- package/modules/sms/dist/client.css +1 -1
- package/modules/whatsapp/dist/client.css +1 -1
- package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +2 -0
- package/node_modules/@engenty-wizards/shared/dist/fit.d.ts +71 -0
- package/node_modules/@engenty-wizards/shared/dist/fit.js +381 -0
- package/package.json +1 -1
- package/apps/web/dist/assets/AboutDialog-CuiVGknS.js +0 -1
- package/apps/web/dist/assets/ChangelogDialog-DCEQD3Jd.js +0 -1
- package/apps/web/dist/assets/ChatView-DFxrG2PD.js +0 -10
- package/apps/web/dist/assets/EditorPage-B5rzKNMy.js +0 -3
- package/apps/web/dist/assets/FlowPreview-CYoR5DRY.js +0 -1
- package/apps/web/dist/assets/HomePage-BnYdh_Nx.js +0 -1
- package/apps/web/dist/assets/Marketplace-BDQNwMDB.js +0 -2
- package/apps/web/dist/assets/NewWizardPage-DztTEUlG.js +0 -1
- package/apps/web/dist/assets/ProjectPage-B7-Lqx9a.js +0 -2
- package/apps/web/dist/assets/PublicRunner-CaH3bHHd.js +0 -1
- package/apps/web/dist/assets/ReadOnly-DnB47DQC.js +0 -1
- package/apps/web/dist/assets/RunDrawer-Dv0KRqGA.js +0 -4
- package/apps/web/dist/assets/RunnerView-Bzwv1u4j.js +0 -2
- package/apps/web/dist/assets/SettingsPage-oVO7CKvc.js +0 -1
- package/apps/web/dist/assets/SetupPage-D--8cWA0.js +0 -1
- package/apps/web/dist/assets/SharePage-DjU08q7T.js +0 -1
- package/apps/web/dist/assets/ThemeSwitch-C3EJRN06.js +0 -1
- package/apps/web/dist/assets/arrow-right-F7X_SjK9.js +0 -1
- package/apps/web/dist/assets/changelog-BRoVI_JJ.js +0 -1
- package/apps/web/dist/assets/circle-alert-DdpaAYgd.js +0 -1
- package/apps/web/dist/assets/definition-CHacJYmI.js +0 -56
- package/apps/web/dist/assets/engenty-Cm8yZLON.js +0 -1
- package/apps/web/dist/assets/esm-rJY59Ixx.js +0 -7
- package/apps/web/dist/assets/external-link-Dfc1VFvS.js +0 -1
- package/apps/web/dist/assets/index-CX_yxZVQ.js +0 -79
- package/apps/web/dist/assets/jsx-runtime-D3jfb0Ew.js +0 -1
- package/apps/web/dist/assets/lock-Bu1wDFs8.js +0 -1
- package/apps/web/dist/assets/logo-C80CWCDM.js +0 -1
- package/apps/web/dist/assets/oss-credits-CIxnNZor.js +0 -1
- package/apps/web/dist/assets/react-dom-DenslgJm.js +0 -1
- package/apps/web/dist/assets/refresh-cw-BUDPOT39.js +0 -1
- package/apps/web/dist/assets/session-Blj2os_v.js +0 -1
- package/apps/web/dist/assets/settings-menu-BvxRnNtf.js +0 -1
- package/apps/web/dist/assets/sparkles-DWGJluyV.js +0 -1
- package/apps/web/dist/assets/trash-D9UB6TtS.js +0 -1
- package/apps/web/dist/assets/ui-GsuU9WTj.js +0 -9
- package/apps/web/dist/assets/upload-BngimDBR.js +0 -1
- package/apps/web/dist/assets/useMutation-DKcIz55V.js +0 -1
- package/apps/web/dist/assets/volume-2-BZju_bOP.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{in as e}from"./ui-DKcggL84.js";var t={name:`volume-2`,size:24,node:[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]};t.node;var n=e(t);export{n as t};
|
package/apps/web/dist/embed.js
CHANGED
|
@@ -11,7 +11,13 @@
|
|
|
11
11
|
// chat above it (data-label="…" puts words beside it, data-color="#…" colours that pill and
|
|
12
12
|
// the open button)
|
|
13
13
|
//
|
|
14
|
-
//
|
|
14
|
+
// <script async src="https://…/embed.js" data-wizard="<token>" data-mode="bubble" data-label="Fragen?"></script>
|
|
15
|
+
// a round button at the bottom right of every page that opens it in the window;
|
|
16
|
+
// `data-text` puts a short line beside it, `data-color` gives it the website's colour
|
|
17
|
+
//
|
|
18
|
+
// The button takes the website's own styles: `.engenty-wizard-button`, `.engenty-wizard-launcher`,
|
|
19
|
+
// `.engenty-wizard-bubble`. `data-page`: the address of the page the run is started on, kept with its
|
|
20
|
+
// result (the page's own address when left out).
|
|
15
21
|
(() => {
|
|
16
22
|
const script = document.currentScript;
|
|
17
23
|
const token = script?.dataset.wizard;
|
|
@@ -20,14 +26,19 @@
|
|
|
20
26
|
}
|
|
21
27
|
// The app lives where this file does: https://example.com/wizards/embed.js → …/wizards/w/<token>.
|
|
22
28
|
const app = new URL(".", script.src);
|
|
23
|
-
const mode = ["modal", "popout"].includes(script.dataset.mode)
|
|
29
|
+
const mode = ["modal", "popout", "bubble"].includes(script.dataset.mode)
|
|
30
|
+
? script.dataset.mode
|
|
31
|
+
: "inline";
|
|
24
32
|
// A popout is always a chat.
|
|
25
33
|
const chat = script.dataset.runner === "chat" || mode === "popout";
|
|
26
34
|
const label = script.dataset.label || (mode === "popout" ? "" : "Start");
|
|
35
|
+
const page = (script.dataset.page || location.href).split("#")[0].slice(0, 2000);
|
|
27
36
|
|
|
28
37
|
const frame = () => {
|
|
29
38
|
const el = document.createElement("iframe");
|
|
30
|
-
|
|
39
|
+
// In the bubble the wizard opens in the same window as behind a button.
|
|
40
|
+
const shown = mode === "bubble" ? "modal" : mode;
|
|
41
|
+
el.src = `${app.href}w/${encodeURIComponent(token)}${chat ? "/chat" : ""}?embed=${shown}&page=${encodeURIComponent(page)}`;
|
|
31
42
|
el.title = label;
|
|
32
43
|
// What a page of the wizard may ask the visitor for: photos, voice notes, the position.
|
|
33
44
|
el.allow = "camera; microphone; geolocation; clipboard-write; fullscreen; screen-wake-lock";
|
|
@@ -84,15 +95,53 @@
|
|
|
84
95
|
.engenty-wizard-dialog::backdrop{background:rgba(20,18,16,.5)}
|
|
85
96
|
.engenty-wizard-dialog iframe{display:block;width:100%;height:100%;border:0}
|
|
86
97
|
.engenty-wizard-close{position:absolute;top:10px;right:10px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;color:#fff;background:rgba(20,18,16,.55);cursor:pointer}
|
|
87
|
-
|
|
98
|
+
.engenty-wizard-bubble-wrap{position:fixed;right:20px;bottom:20px;z-index:2147483000;display:flex;align-items:center;gap:10px}
|
|
99
|
+
:where(.engenty-wizard-bubble){display:flex;align-items:center;justify-content:center;width:58px;height:58px;padding:0;border:0;border-radius:50%;color:#fff;background:var(--engenty-bubble,#1c1917);box-shadow:0 8px 24px rgba(0,0,0,.25);cursor:pointer;transition:transform .15s}
|
|
100
|
+
:where(.engenty-wizard-bubble):hover{transform:scale(1.06)}
|
|
101
|
+
:where(.engenty-wizard-bubble-text){font:inherit;font-size:14px;line-height:1.3;max-width:220px;padding:10px 14px;border:0;border-radius:14px;color:#1c1917;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.15);cursor:pointer;text-align:left}
|
|
102
|
+
@media (max-width:640px){.engenty-wizard-dialog{width:100vw;height:100dvh;border-radius:0}.engenty-wizard-bubble-text{display:none}}`;
|
|
88
103
|
document.head.append(style);
|
|
89
104
|
}
|
|
90
105
|
|
|
91
|
-
|
|
106
|
+
let button;
|
|
107
|
+
if (mode === "bubble") {
|
|
108
|
+
// One bubble a page: a second tag for another wizard stays silent.
|
|
109
|
+
if (document.querySelector(".engenty-wizard-bubble")) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
button = document.createElement("button");
|
|
113
|
+
button.className = "engenty-wizard-bubble";
|
|
114
|
+
button.setAttribute("aria-label", label);
|
|
115
|
+
button.title = label;
|
|
116
|
+
if (script.dataset.color) {
|
|
117
|
+
button.style.setProperty("--engenty-bubble", script.dataset.color);
|
|
118
|
+
}
|
|
119
|
+
button.innerHTML =
|
|
120
|
+
'<svg viewBox="0 0 24 24" width="26" height="26" fill="none" aria-hidden="true"><path d="M4 12a8 8 0 1 1 3.4 6.5L4 20l1.2-3.6A7.9 7.9 0 0 1 4 12Z" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/><path d="M8.5 11h7M8.5 14h4.5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>';
|
|
121
|
+
const wrap = document.createElement("div");
|
|
122
|
+
wrap.className = "engenty-wizard-bubble-wrap";
|
|
123
|
+
if (script.dataset.text) {
|
|
124
|
+
const text = document.createElement("button");
|
|
125
|
+
text.type = "button";
|
|
126
|
+
text.className = "engenty-wizard-bubble-text";
|
|
127
|
+
text.textContent = script.dataset.text;
|
|
128
|
+
text.addEventListener("click", () => button.click());
|
|
129
|
+
wrap.append(text);
|
|
130
|
+
}
|
|
131
|
+
wrap.append(button);
|
|
132
|
+
// In the page's <head> the script can run before there is a body to put the bubble in.
|
|
133
|
+
if (document.body) {
|
|
134
|
+
document.body.append(wrap);
|
|
135
|
+
} else {
|
|
136
|
+
addEventListener("DOMContentLoaded", () => document.body.append(wrap));
|
|
137
|
+
}
|
|
138
|
+
} else {
|
|
139
|
+
button = document.createElement("button");
|
|
140
|
+
button.className = "engenty-wizard-button";
|
|
141
|
+
button.textContent = label;
|
|
142
|
+
script.after(button);
|
|
143
|
+
}
|
|
92
144
|
button.type = "button";
|
|
93
|
-
button.className = "engenty-wizard-button";
|
|
94
|
-
button.textContent = label;
|
|
95
|
-
script.after(button);
|
|
96
145
|
|
|
97
146
|
let dialog = null;
|
|
98
147
|
button.addEventListener("click", () => {
|
package/apps/web/dist/index.html
CHANGED
|
@@ -32,22 +32,18 @@
|
|
|
32
32
|
dispatchEvent(new Event("wizard-install"));
|
|
33
33
|
});
|
|
34
34
|
</script>
|
|
35
|
-
<script type="module" crossorigin src="/studio/assets/index-
|
|
36
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
37
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
38
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
39
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
35
|
+
<script type="module" crossorigin src="/studio/assets/index-CDgxPZY_.js"></script>
|
|
36
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/rolldown-runtime-hePW80VL.js">
|
|
37
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/jsx-runtime-BNakU3Ej.js">
|
|
38
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/engenty-eXZ-EAwd.js">
|
|
39
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/logo-C4V2_3Ar.js">
|
|
40
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useMutation-DKyQXgyj.js">
|
|
40
41
|
<link rel="modulepreload" crossorigin href="/studio/assets/preload-helper-CNEI7N0N.js">
|
|
41
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/ui-
|
|
42
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
43
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
44
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/Marketplace-
|
|
45
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
46
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/sparkles-DWGJluyV.js">
|
|
47
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/external-link-Dfc1VFvS.js">
|
|
48
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/session-Blj2os_v.js">
|
|
49
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/ThemeSwitch-C3EJRN06.js">
|
|
50
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/HomePage-BnYdh_Nx.js">
|
|
42
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/ui-DKcggL84.js">
|
|
43
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/brand-CNF5NxD9.js">
|
|
44
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/volume-2-C-Y7-S4b.js">
|
|
45
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Marketplace-DfoRgS49.js">
|
|
46
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/session-Cpg5S8B3.js">
|
|
51
47
|
<link rel="stylesheet" crossorigin href="/studio/assets/index-Dr0bv52Q.css">
|
|
52
48
|
</head>
|
|
53
49
|
<body>
|