@tokenoftrust/storefront-runner 7.2.2 → 7.2.4
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/apps/storefront/src/lib/access/shared/viewerGrant.ts +1 -1
- package/apps/storefront/src/lib/publication/shared/routedApiParam.ts +2 -0
- package/package.json +1 -1
- package/packages/feedback/package.json +1 -1
- package/packages/feedback/src/tour/player/player.css +5 -5
- package/packages/feedback/src/tour/player/surface.ts +1 -1
|
@@ -132,7 +132,7 @@ async function resolveRawViewerCapability(
|
|
|
132
132
|
export async function resolveNamedSubjectGrant(
|
|
133
133
|
email: string | null | undefined,
|
|
134
134
|
appDomain: string | null | undefined,
|
|
135
|
-
capability: "customer-contact-read",
|
|
135
|
+
capability: "customer-contact-read" | "content-edit",
|
|
136
136
|
deps: ViewerShipGrantDeps = {},
|
|
137
137
|
): Promise<boolean> {
|
|
138
138
|
const subject = (email ?? "").trim().toLowerCase();
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { APIContext } from "astro";
|
|
2
2
|
|
|
3
3
|
const ROUTES = {
|
|
4
|
+
"tour-draft": { path: /^\/api\/tours\/drafts\/(tour_[a-z0-9][a-z0-9-]{1,62})\/?$/, param: "tourId" },
|
|
5
|
+
"tour-derive": { path: /^\/api\/tours\/drafts\/(tour_[a-z0-9][a-z0-9-]{1,62})\/derive\/?$/, param: "tourId" },
|
|
4
6
|
"checkout-order": { path: /^\/api\/admin\/orders\/([A-Za-z0-9._:-]{1,128})\/?$/, param: "id" },
|
|
5
7
|
"pipeline-job": { path: /^\/api\/pipeline\/jobs\/([A-Za-z0-9._:-]{1,128})\/?$/, param: "jobId" },
|
|
6
8
|
"fulfillment-order": { path: /^\/api\/admin\/fulfillment\/orders\/([A-Za-z0-9._:-]{1,128})\/?$/, param: "id" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/storefront-runner",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.4",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
|
|
6
6
|
"packageManager": "pnpm@11.9.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"build:tour-player": "node scripts/build-player.mjs",
|
|
26
26
|
"test:tour-player-browser": "node --test tests/player.browser.test.mjs",
|
|
27
27
|
"test:tour-player-static": "node --test tests/player-static.test.mjs",
|
|
28
|
-
"test": "tot-gate vitest run
|
|
28
|
+
"test": "tot-gate vitest run"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"happy-dom": "20.11.2",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
.tour-launcher button:hover { background: #193ba3; }
|
|
92
92
|
.tour-launcher button:focus-visible { outline: 3px solid #1447d5; outline-offset: 3px; }
|
|
93
93
|
|
|
94
|
-
.tour-highlight {
|
|
94
|
+
.tour-target-highlight {
|
|
95
95
|
position: fixed;
|
|
96
96
|
border: 3px solid #315cdb;
|
|
97
97
|
border-radius: 8px;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
animation: tour-glow 1.8s ease-in-out infinite alternate;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.tour-highlight-neutral { border-color: #46536b; }
|
|
102
|
+
.tour-target-highlight-neutral { border-color: #46536b; }
|
|
103
103
|
|
|
104
104
|
.tour-arrow {
|
|
105
105
|
position: absolute;
|
|
@@ -120,11 +120,11 @@
|
|
|
120
120
|
to { box-shadow: 0 0 0 7px rgb(49 92 219 / 32%); }
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
:host([data-reduced-motion="true"]) .tour-highlight { animation: none; }
|
|
123
|
+
:host([data-reduced-motion="true"]) .tour-target-highlight { animation: none; }
|
|
124
124
|
@media (prefers-reduced-motion: reduce) {
|
|
125
|
-
.tour-highlight { animation: none; }
|
|
125
|
+
.tour-target-highlight { animation: none; }
|
|
126
126
|
}
|
|
127
127
|
@media (forced-colors: active) {
|
|
128
|
-
.tour-highlight { border-color: Highlight; animation: none; }
|
|
128
|
+
.tour-target-highlight { border-color: Highlight; animation: none; }
|
|
129
129
|
.tour-panel, .tour-controls button { border-color: ButtonText; }
|
|
130
130
|
}
|
|
@@ -222,7 +222,7 @@ export function createSurface(doc: Document, cssUrl: string): PlayerSurface {
|
|
|
222
222
|
}
|
|
223
223
|
if (step.kind === "highlight") {
|
|
224
224
|
border = doc.createElement("div");
|
|
225
|
-
border.className = `tour-highlight tour-highlight-${step.tone ?? "accent"}`;
|
|
225
|
+
border.className = `tour-target-highlight tour-target-highlight-${step.tone ?? "accent"}`;
|
|
226
226
|
border.setAttribute("aria-hidden", "true");
|
|
227
227
|
content.append(border);
|
|
228
228
|
}
|