@replohq/sdk 1.21.0 → 1.21.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/_vendor/schemas/contentCollection.d.ts +1 -1
- package/_vendor/schemas/contentCollection.mjs +1 -1
- package/_vendor/schemas/contentEntry.d.ts +1 -1
- package/_vendor/schemas/contentEntry.mjs +2 -2
- package/_vendor/schemas/contentManifest.d.ts +1 -1
- package/_vendor/schemas/contentManifest.mjs +3 -3
- package/_vendor/schemas/errors.d.ts +2 -2
- package/_vendor/schemas/money.d.ts +1 -1
- package/_vendor/schemas/money.mjs +5 -5
- package/_vendor/schemas/routing/locale.d.ts +1 -1
- package/_vendor/schemas/routing/locale.mjs +2 -2
- package/_vendor/schemas/routing/rules.d.ts +1 -1
- package/_vendor/schemas/routing/rules.mjs +2 -2
- package/analytics/sinks/converge-event-mapper.js +1 -1
- package/analytics/sinks/elevar-sink.js +1 -1
- package/analytics/sinks/x-sink.js +1 -1
- package/analytics/utils/analytics-products.d.ts +1 -1
- package/analytics/utils/analytics-products.js +1 -1
- package/cart/buy-now-action.js +1 -1
- package/cart/cart-schema.d.ts +1 -1
- package/cart/cart-schema.js +1 -1
- package/{chunk-NDJ5N6HI.mjs → chunk-AQG3256R.mjs} +1 -1
- package/{chunk-GZWV5XKV.mjs → chunk-CQYCPDPI.mjs} +20 -20
- package/{chunk-EUQVEPSD.mjs → chunk-RQ76VK3L.mjs} +1 -1
- package/consent/consent-platform.js +1 -1
- package/consent/cookie.js +1 -1
- package/content.d.ts +1 -1
- package/content.js +1 -1
- package/env.js +1 -1
- package/gateways/canopy-api.d.ts +1 -1
- package/gateways/canopy-api.js +1 -1
- package/integrations/mailchimp.d.ts +1 -1
- package/integrations/mailchimp.js +1 -1
- package/lib/buildMetadata.js +3 -3
- package/loaders/loader-schemas.d.ts +1 -1
- package/loaders/loader-schemas.js +1 -1
- package/loaders/okendo-review-aggregate-loader.d.ts +1 -1
- package/loaders/okendo-review-aggregate-loader.js +1 -1
- package/loaders/okendo-reviews-loader.d.ts +1 -1
- package/loaders/okendo-reviews-loader.js +1 -1
- package/loaders/preview-placeholder.js +1 -1
- package/loaders/rebuy-recommendations-loader.d.ts +1 -1
- package/loaders/rebuy-recommendations-loader.js +1 -1
- package/loaders/smile-earning-rules-loader.d.ts +1 -1
- package/loaders/smile-earning-rules-loader.js +1 -1
- package/loaders/smile-rewards-loader.d.ts +1 -1
- package/loaders/smile-rewards-loader.js +1 -1
- package/loaders/smile-vip-tiers-loader.d.ts +1 -1
- package/loaders/smile-vip-tiers-loader.js +1 -1
- package/orders/order-status-schema.d.ts +1 -1
- package/orders/order-status-schema.js +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CONTENT_BUILTIN_FIELD_ROLES, CONTENT_COLLECTION_SCHEMA_FILENAME, CONTENT_COUPLED_VALUE_PARENTS, CONTENT_DIRNAME, CONTENT_ENTRY_FILE_EXTENSION, CONTENT_ENTRY_PUBLISHED_FILE_EXTENSION, CONTENT_MANIFEST_FILENAME, CONTENT_MAX_SLUG_LENGTH, CONTENT_PRIVATE_VALUE_KEYS, CONTENT_RELATED_VALUE_STORAGE_KEY, CONTENT_RESERVED_COLLECTION_SLUGS, CONTENT_RESERVED_ENTRY_SLUGS, CONTENT_SEO_VALUE_KEYS, CONTENT_SLUG_PATTERN, LEGACY_CONTENT_ENTRY_STATUSES, contentCollectionColorSchema, contentCollectionFieldSchema, contentCollectionFieldTypeSchema, contentCollectionFileSchema, contentSlugSchema, formatContentEntryRef, getContentEntryFileSlug, getContentEntryPublishState, getContentEntryRoute, getContentFieldRole, getContentFieldValueSchema, getOrderedContentFields, getPublishedContentFields, isContentPrivateValueKey, isContentReservedCollectionSlug, isContentReservedEntrySlug, isContentSeoValueKey, isSafeContentUrl, isValidContentSlug, parseContentEntryRef } from '../../chunk-
|
|
1
|
+
export { CONTENT_BUILTIN_FIELD_ROLES, CONTENT_COLLECTION_SCHEMA_FILENAME, CONTENT_COUPLED_VALUE_PARENTS, CONTENT_DIRNAME, CONTENT_ENTRY_FILE_EXTENSION, CONTENT_ENTRY_PUBLISHED_FILE_EXTENSION, CONTENT_MANIFEST_FILENAME, CONTENT_MAX_SLUG_LENGTH, CONTENT_PRIVATE_VALUE_KEYS, CONTENT_RELATED_VALUE_STORAGE_KEY, CONTENT_RESERVED_COLLECTION_SLUGS, CONTENT_RESERVED_ENTRY_SLUGS, CONTENT_SEO_VALUE_KEYS, CONTENT_SLUG_PATTERN, LEGACY_CONTENT_ENTRY_STATUSES, contentCollectionColorSchema, contentCollectionFieldSchema, contentCollectionFieldTypeSchema, contentCollectionFileSchema, contentSlugSchema, formatContentEntryRef, getContentEntryFileSlug, getContentEntryPublishState, getContentEntryRoute, getContentFieldRole, getContentFieldValueSchema, getOrderedContentFields, getPublishedContentFields, isContentPrivateValueKey, isContentReservedCollectionSlug, isContentReservedEntrySlug, isContentSeoValueKey, isSafeContentUrl, isValidContentSlug, parseContentEntryRef } from '../../chunk-RQ76VK3L.mjs';
|
|
2
2
|
import '../../chunk-UJCSKKID.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { contentCollectionFieldSchema, LegacyContentEntryStatus } from "./contentCollection";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
export declare const CONTENT_MANAGED_ENTRY_VALUE_KEYS: readonly ["slug", "title", "status", "author", "authorInitials", "excerpt", "coverImage", "coverImageAlt", "tags", "updatedAt", "publishedAt", "archivedAt", "seoTitle", "seoDescription", "related", "scratchpad", "backlinks"];
|
|
4
4
|
export declare const contentEntryFrontmatterSchema: z.ZodObject<{
|
|
5
5
|
slug: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CONTENT_MANAGED_ENTRY_VALUE_KEYS, contentEntryFrontmatterSchema, convertLegacyContentEntryDocument, getContentEntryFieldValidationIssues, getContentRenderableEntryValues, parseContentEntryDocument, serializeContentEntryDocument } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { CONTENT_MANAGED_ENTRY_VALUE_KEYS, contentEntryFrontmatterSchema, convertLegacyContentEntryDocument, getContentEntryFieldValidationIssues, getContentRenderableEntryValues, parseContentEntryDocument, serializeContentEntryDocument } from '../../chunk-CQYCPDPI.mjs';
|
|
2
|
+
import '../../chunk-RQ76VK3L.mjs';
|
|
3
3
|
import '../../chunk-ACQS4AG5.mjs';
|
|
4
4
|
import '../../chunk-SSBIMQES.mjs';
|
|
5
5
|
import '../../chunk-UJCSKKID.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { parseContentEntryDocument, getContentRenderableEntryValues, getContentEntryFieldValidationIssues } from '../../chunk-
|
|
2
|
-
import { isValidContentSlug, CONTENT_COLLECTION_SCHEMA_FILENAME, CONTENT_ENTRY_FILE_EXTENSION, contentCollectionFileSchema, CONTENT_ENTRY_PUBLISHED_FILE_EXTENSION } from '../../chunk-
|
|
1
|
+
import { parseContentEntryDocument, getContentRenderableEntryValues, getContentEntryFieldValidationIssues } from '../../chunk-CQYCPDPI.mjs';
|
|
2
|
+
import { isValidContentSlug, CONTENT_COLLECTION_SCHEMA_FILENAME, CONTENT_ENTRY_FILE_EXTENSION, contentCollectionFileSchema, CONTENT_ENTRY_PUBLISHED_FILE_EXTENSION } from '../../chunk-RQ76VK3L.mjs';
|
|
3
3
|
import { parseJsonOrNull } from '../../chunk-C37TXOGI.mjs';
|
|
4
4
|
import '../../chunk-VVB7BEDE.mjs';
|
|
5
5
|
import '../../chunk-ACQS4AG5.mjs';
|
|
6
6
|
import '../../chunk-EUIVDITZ.mjs';
|
|
7
7
|
import '../../chunk-SSBIMQES.mjs';
|
|
8
8
|
import '../../chunk-UJCSKKID.mjs';
|
|
9
|
-
import
|
|
9
|
+
import * as z from 'zod';
|
|
10
10
|
|
|
11
11
|
var contentManifestSchema = z.object({
|
|
12
12
|
files: z.record(z.string(), z.string())
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ErrorUserFacingDetails, ErrorUserFacingDetailsWithMessage } from "./generated/errors";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
/**
|
|
4
4
|
* Config to use for any standard error we throw in Replo
|
|
5
5
|
*/
|
|
@@ -485,6 +485,6 @@ export declare class IframeRpcChannelConfigurationError extends IframeRpcChannel
|
|
|
485
485
|
export declare class IframeRpcChannelInvalidInputError extends IframeRpcChannelError {
|
|
486
486
|
constructor({ method, cause }: {
|
|
487
487
|
method: string;
|
|
488
|
-
cause: ZodError;
|
|
488
|
+
cause: z.ZodError;
|
|
489
489
|
});
|
|
490
490
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReploError } from '../../chunk-
|
|
1
|
+
import { ReploError } from '../../chunk-AQG3256R.mjs';
|
|
2
2
|
import '../../chunk-HFKL4ZR5.mjs';
|
|
3
3
|
import '../../chunk-EUIVDITZ.mjs';
|
|
4
4
|
import '../../chunk-SSBIMQES.mjs';
|
|
5
5
|
import { __commonJS, __toESM } from '../../chunk-UJCSKKID.mjs';
|
|
6
|
-
import
|
|
6
|
+
import * as z from 'zod';
|
|
7
7
|
|
|
8
8
|
var require_first_match = __commonJS({
|
|
9
9
|
"../../node_modules/.pnpm/first-match@0.0.1/node_modules/first-match/index.js"(exports, module) {
|
|
@@ -1816,9 +1816,9 @@ var require_currency_codes = __commonJS({
|
|
|
1816
1816
|
}) || []).indexOf(country2) > -1;
|
|
1817
1817
|
});
|
|
1818
1818
|
};
|
|
1819
|
-
var
|
|
1819
|
+
var number2 = function(number3) {
|
|
1820
1820
|
return first(data, function(c) {
|
|
1821
|
-
return c.number === String(
|
|
1821
|
+
return c.number === String(number3);
|
|
1822
1822
|
});
|
|
1823
1823
|
};
|
|
1824
1824
|
var codes = function() {
|
|
@@ -1846,7 +1846,7 @@ var require_currency_codes = __commonJS({
|
|
|
1846
1846
|
};
|
|
1847
1847
|
exports.code = code;
|
|
1848
1848
|
exports.country = country;
|
|
1849
|
-
exports.number =
|
|
1849
|
+
exports.number = number2;
|
|
1850
1850
|
exports.codes = codes;
|
|
1851
1851
|
exports.numbers = numbers;
|
|
1852
1852
|
exports.countries = countries;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReploError } from '../../../chunk-
|
|
1
|
+
import { ReploError } from '../../../chunk-AQG3256R.mjs';
|
|
2
2
|
import '../../../chunk-HFKL4ZR5.mjs';
|
|
3
3
|
import '../../../chunk-EUIVDITZ.mjs';
|
|
4
4
|
import '../../../chunk-SSBIMQES.mjs';
|
|
5
5
|
import '../../../chunk-UJCSKKID.mjs';
|
|
6
|
-
import
|
|
6
|
+
import * as z from 'zod';
|
|
7
7
|
|
|
8
8
|
var LocaleRoutingValidationError = class extends ReploError {
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReploError } from "../errors";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
export declare class RedirectRuleValidationError extends ReploError {
|
|
4
4
|
}
|
|
5
5
|
export declare const redirectStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getParamSegment, getRouteParams, hasRouteParam, matchSource } from '../../../chunk-VPEVERWE.mjs';
|
|
2
|
-
import { ReploError } from '../../../chunk-
|
|
2
|
+
import { ReploError } from '../../../chunk-AQG3256R.mjs';
|
|
3
3
|
import '../../../chunk-HFKL4ZR5.mjs';
|
|
4
4
|
import '../../../chunk-EUIVDITZ.mjs';
|
|
5
5
|
import '../../../chunk-SSBIMQES.mjs';
|
|
6
6
|
import '../../../chunk-UJCSKKID.mjs';
|
|
7
|
-
import
|
|
7
|
+
import * as z from 'zod';
|
|
8
8
|
|
|
9
9
|
function parseUrl(value, base) {
|
|
10
10
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { filterUndefined } from "../../_vendor/replo-utils/lib/object.mjs";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
import { isXEventIdForPixel } from "../../consent/script-snippets";
|
|
4
4
|
import { legacyResourceId } from "../utils/analytics-products";
|
|
5
5
|
import { createEventQueue } from "../utils/analytics-utils";
|
package/cart/buy-now-action.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use server";
|
|
2
2
|
import { headers } from "next/headers";
|
|
3
3
|
import { v4 as uuidv4 } from "uuid";
|
|
4
|
-
import
|
|
4
|
+
import * as z from "zod";
|
|
5
5
|
import { getEnv } from "../env";
|
|
6
6
|
import { CanopyError } from "../lib/canopy-error";
|
|
7
7
|
import { getCheckoutProvider } from "../lib/integration-utils";
|
package/cart/cart-schema.d.ts
CHANGED
package/cart/cart-schema.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CONTENT_SEO_VALUE_KEYS, CONTENT_RELATED_VALUE_STORAGE_KEY, CONTENT_PRIVATE_VALUE_KEYS, isContentPrivateValueKey, LEGACY_CONTENT_ENTRY_STATUSES, getContentFieldValueSchema } from './chunk-
|
|
1
|
+
import { CONTENT_SEO_VALUE_KEYS, CONTENT_RELATED_VALUE_STORAGE_KEY, CONTENT_PRIVATE_VALUE_KEYS, isContentPrivateValueKey, LEGACY_CONTENT_ENTRY_STATUSES, getContentFieldValueSchema } from './chunk-RQ76VK3L.mjs';
|
|
2
2
|
import { pickBy_default } from './chunk-ACQS4AG5.mjs';
|
|
3
3
|
import { stringify, parseDocument } from 'yaml';
|
|
4
|
-
import
|
|
4
|
+
import * as z2 from 'zod';
|
|
5
5
|
|
|
6
|
-
var frontmatterDataSchema =
|
|
6
|
+
var frontmatterDataSchema = z2.record(z2.string(), z2.unknown());
|
|
7
7
|
var CONTENT_FRONTMATTER_PATTERN = /^---\r?\n([\s\S]*?)\r?\n---\r?\n?/u;
|
|
8
8
|
function parseContentFrontmatterYaml(yamlText) {
|
|
9
9
|
try {
|
|
@@ -55,23 +55,23 @@ var CONTENT_MANAGED_ENTRY_VALUE_KEYS = [
|
|
|
55
55
|
CONTENT_RELATED_VALUE_STORAGE_KEY,
|
|
56
56
|
...CONTENT_PRIVATE_VALUE_KEYS
|
|
57
57
|
];
|
|
58
|
-
var contentEntryFrontmatterSchema =
|
|
59
|
-
slug:
|
|
60
|
-
title:
|
|
61
|
-
author:
|
|
62
|
-
authorInitials:
|
|
63
|
-
excerpt:
|
|
64
|
-
coverImage:
|
|
65
|
-
coverImageAlt:
|
|
66
|
-
tags:
|
|
67
|
-
updatedAt:
|
|
68
|
-
publishedAt:
|
|
69
|
-
archivedAt:
|
|
70
|
-
seoTitle:
|
|
71
|
-
seoDescription:
|
|
72
|
-
related:
|
|
73
|
-
scratchpad:
|
|
74
|
-
backlinks:
|
|
58
|
+
var contentEntryFrontmatterSchema = z2.object({
|
|
59
|
+
slug: z2.unknown().optional(),
|
|
60
|
+
title: z2.string().nullish(),
|
|
61
|
+
author: z2.string().nullish(),
|
|
62
|
+
authorInitials: z2.string().nullish(),
|
|
63
|
+
excerpt: z2.string().nullish(),
|
|
64
|
+
coverImage: z2.string().nullish(),
|
|
65
|
+
coverImageAlt: z2.string().nullish(),
|
|
66
|
+
tags: z2.array(z2.string()).nullish(),
|
|
67
|
+
updatedAt: z2.string().nullish(),
|
|
68
|
+
publishedAt: z2.string().nullish(),
|
|
69
|
+
archivedAt: z2.string().nullish(),
|
|
70
|
+
seoTitle: z2.string().nullish(),
|
|
71
|
+
seoDescription: z2.string().nullish(),
|
|
72
|
+
related: z2.array(z2.string()).nullish(),
|
|
73
|
+
scratchpad: z2.unknown().optional(),
|
|
74
|
+
backlinks: z2.unknown().optional()
|
|
75
75
|
}).passthrough();
|
|
76
76
|
function parseContentEntryDocument(raw) {
|
|
77
77
|
const frontmatter = parseContentFrontmatter(raw);
|
package/consent/cookie.js
CHANGED
package/content.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Metadata } from "next";
|
|
|
3
3
|
import type { ReactNode } from "react";
|
|
4
4
|
import type { contentCollectionFieldSchema } from "./_vendor/schemas/contentCollection";
|
|
5
5
|
import type { ContentManifest } from "./_vendor/schemas/contentManifest";
|
|
6
|
-
import
|
|
6
|
+
import * as z from "zod";
|
|
7
7
|
/** Public name for the shared collection-field contract. */
|
|
8
8
|
export type ContentField = z.infer<typeof contentCollectionFieldSchema>;
|
|
9
9
|
export interface ContentEntry {
|
package/content.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
getContentManifestCollectionSlugs,
|
|
31
31
|
getContentManifestEntrySlugs
|
|
32
32
|
} from "./_vendor/schemas/contentManifest.mjs";
|
|
33
|
-
import
|
|
33
|
+
import * as z from "zod";
|
|
34
34
|
function createContentSource({
|
|
35
35
|
contentDirectory = getDefaultContentDirectory(),
|
|
36
36
|
contentManifest
|
package/env.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCloudflareContext } from "@opennextjs/cloudflare";
|
|
2
2
|
import JSONC from "tiny-jsonc";
|
|
3
|
-
import
|
|
3
|
+
import * as z from "zod";
|
|
4
4
|
import { CanopyError } from "./lib/canopy-error";
|
|
5
5
|
const envSchema = z.object({
|
|
6
6
|
CANOPY_API_HOST: z.string().min(1),
|
package/gateways/canopy-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Cart } from "../cart/cart-schema";
|
|
2
2
|
import type { StorefrontCountryCode } from "../loaders/markets";
|
|
3
|
-
import
|
|
3
|
+
import * as z from "zod";
|
|
4
4
|
import { CanopyError } from "../lib/canopy-error";
|
|
5
5
|
type CanopyApiGatewayErrorConfig = {
|
|
6
6
|
message: string;
|
package/gateways/canopy-api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { useMutation } from "@tanstack/react-query";
|
|
4
4
|
import { parseJsonOrNull } from "../_vendor/replo-utils/lib/json.mjs";
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import { CanopyError } from "../lib/canopy-error";
|
|
7
7
|
import { useCanopyClientConfig } from "../providers/canopy-client-config";
|
|
8
8
|
const mailchimpSubscribeErrorCodeSchema = z.enum([
|
package/lib/buildMetadata.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const BUILD_METADATA = {
|
|
2
2
|
"packageName": "@replohq/sdk",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.1",
|
|
4
4
|
"branch": "HEAD",
|
|
5
|
-
"commit": "
|
|
6
|
-
"builtAt": "2026-10-
|
|
5
|
+
"commit": "c2722877665042cdbb579483c39be734395d2833",
|
|
6
|
+
"builtAt": "2026-10-18T22:08:53.056Z"
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense } from "react";
|
|
4
4
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import { invokeLoader } from "./invoke-loader";
|
|
7
7
|
import { LoaderErrorBoundary } from "./loader-error-boundary";
|
|
8
8
|
const okendoReviewAggregateOutputSchema = z.object({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense } from "react";
|
|
4
4
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import { invokeLoader } from "./invoke-loader";
|
|
7
7
|
import { LoaderErrorBoundary } from "./loader-error-boundary";
|
|
8
8
|
import { okendoReviewSchema } from "./loader-schemas";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
import { DATA_LOADER_KEYS } from "./loader-keys";
|
|
4
4
|
const PLACEHOLDER_RENDER_MESSAGE_TYPE = "replo:preview:placeholder-render";
|
|
5
5
|
const UNFILLED_ROUTE_PARAM_RE = /^\[{1,2}(?:\.\.\.)?[^\]]+\]{1,2}$/;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense } from "react";
|
|
4
4
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import { invokeLoader } from "./invoke-loader";
|
|
7
7
|
import { LoaderErrorBoundary } from "./loader-error-boundary";
|
|
8
8
|
import { productSchema } from "./loader-schemas";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense } from "react";
|
|
4
4
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import { invokeLoader } from "./invoke-loader";
|
|
7
7
|
import { LoaderErrorBoundary } from "./loader-error-boundary";
|
|
8
8
|
const smileEarningRuleSchema = z.object({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense } from "react";
|
|
4
4
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import { invokeLoader } from "./invoke-loader";
|
|
7
7
|
import { LoaderErrorBoundary } from "./loader-error-boundary";
|
|
8
8
|
const smileRewardSchema = z.object({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense } from "react";
|
|
4
4
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import { invokeLoader } from "./invoke-loader";
|
|
7
7
|
import { LoaderErrorBoundary } from "./loader-error-boundary";
|
|
8
8
|
const smileVipTierSchema = z.object({
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replohq/sdk",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.1",
|
|
4
4
|
"reploBuild": {
|
|
5
5
|
"packageName": "@replohq/sdk",
|
|
6
|
-
"version": "1.21.
|
|
6
|
+
"version": "1.21.1",
|
|
7
7
|
"branch": "HEAD",
|
|
8
|
-
"commit": "
|
|
9
|
-
"builtAt": "2026-10-
|
|
8
|
+
"commit": "c2722877665042cdbb579483c39be734395d2833",
|
|
9
|
+
"builtAt": "2026-10-18T22:08:53.056Z"
|
|
10
10
|
},
|
|
11
11
|
"description": "Replo SDK — cart, analytics, and data loaders for agent-built Next.js sites.",
|
|
12
12
|
"license": "SEE LICENSE IN LICENSE",
|