@sevenfold/setto-client 0.11.1 → 0.12.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/index.d.ts +2 -1
- package/dist/setto-client.js +22 -1
- package/dist/setto-client.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export { useSectionTheme } from './use-section-theme';
|
|
|
24
24
|
export { SettoAdminApp } from './admin/App';
|
|
25
25
|
export { SettoContext } from './provider';
|
|
26
26
|
export type { SettoContextValue } from './provider';
|
|
27
|
-
export { SETTO_BASE, adminViewUrl } from './lib/urls';
|
|
28
27
|
export { AuthGate } from './edit-mode/auth-gate';
|
|
29
28
|
export type { SettoConfig, BrandColor, DeploymentRow, SiteRow, ContentFile, PublishFile, PublishResult, } from './types';
|
|
30
29
|
export type { SectionSchema, SectionColorField } from './section-schema';
|
|
@@ -35,3 +34,5 @@ export { validateBlockTree, parseBlockTree, type ValidationIssue, type Validatio
|
|
|
35
34
|
export { extractContentKeys, type ContentKeyRequirements, } from './block-tree/extract-keys';
|
|
36
35
|
export { BLOCK_REGISTRY, BLOCK_TYPES, nodeChildren } from './block-tree/registry';
|
|
37
36
|
export type { BlockTypeMeta } from './block-tree/registry';
|
|
37
|
+
export { SETTO_BASE, siteHomeUrl, isAdminRoute, isAdminDeploymentView, adminViewUrl, currentAdminView, isAdminPanelView, adminRedirectUrl, CHECKOUT_INTENT, checkoutIntentUrl, wantsCheckout, withoutCheckoutIntent, } from './lib/urls';
|
|
38
|
+
export { IN_PROGRESS_STATUSES, isDeploymentInProgress, isDeploymentStale, STALE_PENDING_MS, STALE_BUILDING_MS, fetchInProgressDeploymentId, waitForDeploymentByCommit, useDeploymentStatus, } from './edit-mode/deployment-status';
|
package/dist/setto-client.js
CHANGED
|
@@ -21490,6 +21490,9 @@ function currentAdminView() {
|
|
|
21490
21490
|
function isAdminPanelView() {
|
|
21491
21491
|
return isAdminDeploymentView() || isAdminRoute() && currentAdminView() !== null;
|
|
21492
21492
|
}
|
|
21493
|
+
function adminRedirectUrl() {
|
|
21494
|
+
return `${window.location.origin}${SETTO_BASE}`;
|
|
21495
|
+
}
|
|
21493
21496
|
const CHECKOUT_INTENT = "neste";
|
|
21494
21497
|
function checkoutIntentUrl() {
|
|
21495
21498
|
return `${SETTO_BASE}?${CHECKOUT_INTENT}=1`;
|
|
@@ -27179,11 +27182,15 @@ export {
|
|
|
27179
27182
|
AuthGate,
|
|
27180
27183
|
BLOCK_REGISTRY,
|
|
27181
27184
|
BLOCK_TYPES,
|
|
27185
|
+
CHECKOUT_INTENT,
|
|
27182
27186
|
FORM_FIELD_TYPES,
|
|
27183
27187
|
FORM_FIELD_TYPE_LABELS,
|
|
27184
27188
|
GuestEditProvider,
|
|
27189
|
+
IN_PROGRESS_STATUSES,
|
|
27185
27190
|
SETTO_BASE,
|
|
27186
27191
|
SETTO_MODULES,
|
|
27192
|
+
STALE_BUILDING_MS,
|
|
27193
|
+
STALE_PENDING_MS,
|
|
27187
27194
|
SettoAdminApp,
|
|
27188
27195
|
SettoAnimation,
|
|
27189
27196
|
SettoBlock,
|
|
@@ -27199,9 +27206,18 @@ export {
|
|
|
27199
27206
|
SettoSection,
|
|
27200
27207
|
SettoVideo,
|
|
27201
27208
|
T,
|
|
27209
|
+
adminRedirectUrl,
|
|
27202
27210
|
adminViewUrl,
|
|
27211
|
+
checkoutIntentUrl,
|
|
27212
|
+
currentAdminView,
|
|
27203
27213
|
extractContentKeys,
|
|
27214
|
+
fetchInProgressDeploymentId,
|
|
27204
27215
|
formFieldsPrefix,
|
|
27216
|
+
isAdminDeploymentView,
|
|
27217
|
+
isAdminPanelView,
|
|
27218
|
+
isAdminRoute,
|
|
27219
|
+
isDeploymentInProgress,
|
|
27220
|
+
isDeploymentStale,
|
|
27205
27221
|
isFormFieldType,
|
|
27206
27222
|
isPreviewHost,
|
|
27207
27223
|
nodeChildren,
|
|
@@ -27209,9 +27225,14 @@ export {
|
|
|
27209
27225
|
previewBarState,
|
|
27210
27226
|
readLocaleFields,
|
|
27211
27227
|
settoSubmissionUrl,
|
|
27228
|
+
siteHomeUrl,
|
|
27229
|
+
useDeploymentStatus,
|
|
27212
27230
|
useGuestEdit,
|
|
27213
27231
|
useSectionTheme,
|
|
27214
27232
|
useSetto,
|
|
27215
|
-
validateBlockTree
|
|
27233
|
+
validateBlockTree,
|
|
27234
|
+
waitForDeploymentByCommit,
|
|
27235
|
+
wantsCheckout,
|
|
27236
|
+
withoutCheckoutIntent
|
|
27216
27237
|
};
|
|
27217
27238
|
//# sourceMappingURL=setto-client.js.map
|