@sevenfold/setto-client 0.11.1 → 0.12.1

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 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, PublishProgressBar, } from './edit-mode/deployment-status';
@@ -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,16 @@ 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,
27190
+ PublishProgressBar,
27185
27191
  SETTO_BASE,
27186
27192
  SETTO_MODULES,
27193
+ STALE_BUILDING_MS,
27194
+ STALE_PENDING_MS,
27187
27195
  SettoAdminApp,
27188
27196
  SettoAnimation,
27189
27197
  SettoBlock,
@@ -27199,9 +27207,18 @@ export {
27199
27207
  SettoSection,
27200
27208
  SettoVideo,
27201
27209
  T,
27210
+ adminRedirectUrl,
27202
27211
  adminViewUrl,
27212
+ checkoutIntentUrl,
27213
+ currentAdminView,
27203
27214
  extractContentKeys,
27215
+ fetchInProgressDeploymentId,
27204
27216
  formFieldsPrefix,
27217
+ isAdminDeploymentView,
27218
+ isAdminPanelView,
27219
+ isAdminRoute,
27220
+ isDeploymentInProgress,
27221
+ isDeploymentStale,
27205
27222
  isFormFieldType,
27206
27223
  isPreviewHost,
27207
27224
  nodeChildren,
@@ -27209,9 +27226,14 @@ export {
27209
27226
  previewBarState,
27210
27227
  readLocaleFields,
27211
27228
  settoSubmissionUrl,
27229
+ siteHomeUrl,
27230
+ useDeploymentStatus,
27212
27231
  useGuestEdit,
27213
27232
  useSectionTheme,
27214
27233
  useSetto,
27215
- validateBlockTree
27234
+ validateBlockTree,
27235
+ waitForDeploymentByCommit,
27236
+ wantsCheckout,
27237
+ withoutCheckoutIntent
27216
27238
  };
27217
27239
  //# sourceMappingURL=setto-client.js.map