@sevenfold/setto-client 0.8.4 → 0.9.0
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/lib/urls.d.ts +15 -0
- package/dist/modules/domain/DomainView.d.ts +3 -0
- package/dist/modules/domain/index.d.ts +11 -0
- package/dist/setto-client.js +344 -101
- package/dist/setto-client.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/urls.d.ts
CHANGED
|
@@ -27,3 +27,18 @@ export declare function currentAdminView(): string | null;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function isAdminPanelView(): boolean;
|
|
29
29
|
export declare function adminRedirectUrl(): string;
|
|
30
|
+
/**
|
|
31
|
+
* The intent a visitor arrived with, carried across the sign-in.
|
|
32
|
+
*
|
|
33
|
+
* «Neste» on the preview bar means "take me to the checkout", but a visitor
|
|
34
|
+
* who is not signed in cannot start one — the route wants a session and proof
|
|
35
|
+
* the site is theirs. Sending them to /setto loses the intent, and they come
|
|
36
|
+
* back to the same bar and have to press it again.
|
|
37
|
+
*
|
|
38
|
+
* So the wish rides along in the query string and is honoured on the way back.
|
|
39
|
+
*/
|
|
40
|
+
export declare const CHECKOUT_INTENT = "neste";
|
|
41
|
+
export declare function checkoutIntentUrl(): string;
|
|
42
|
+
export declare function wantsCheckout(): boolean;
|
|
43
|
+
/** The same address without the marker, so a reload does not start it twice. */
|
|
44
|
+
export declare function withoutCheckoutIntent(): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SettoModule } from '../module';
|
|
2
|
+
/**
|
|
3
|
+
* The customer's own domain.
|
|
4
|
+
*
|
|
5
|
+
* A dashboard tab rather than a step in the conversation: a domain is a
|
|
6
|
+
* setting somebody returns to — when they finally buy the name, when they move
|
|
7
|
+
* registrar, when a record gets deleted by accident — and the conversation
|
|
8
|
+
* that built the site is not somewhere anybody goes back to.
|
|
9
|
+
*/
|
|
10
|
+
export declare const domainModule: SettoModule;
|
|
11
|
+
export { DomainView } from './DomainView';
|