@replohq/canopy-sdk 3.0.6 → 3.0.7
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/replo-utils/lib/crypto.d.ts +8 -0
- package/_vendor/replo-utils/lib/fonts.mjs +2 -3
- package/_vendor/replo-utils/lib/geometry.mjs +0 -2
- package/_vendor/replo-utils/lib/json.d.ts +0 -4
- package/_vendor/replo-utils/lib/json.mjs +1 -4
- package/_vendor/replo-utils/lib/misc.mjs +2 -4
- package/_vendor/replo-utils/lib/posthogReplay.mjs +0 -2
- package/_vendor/replo-utils/lib/string.d.ts +0 -12
- package/_vendor/replo-utils/lib/url.d.ts +10 -3
- package/_vendor/replo-utils/lib/url.mjs +3 -4
- package/_vendor/replo-utils/react/use-iframe-rpc-channel.mjs +0 -1
- package/_vendor/schemas/agentBillingFeatureType.d.ts +1 -0
- package/_vendor/schemas/comments.d.ts +932 -0
- package/_vendor/schemas/designLibrary.d.ts +1 -1
- package/_vendor/schemas/designLibrary.mjs +72 -73
- package/_vendor/schemas/errors.d.ts +36 -45
- package/_vendor/schemas/generated/comments.d.ts +244 -0
- package/_vendor/schemas/generated/consent.d.ts +43 -2
- package/_vendor/schemas/generated/errors.d.ts +1 -0
- package/_vendor/schemas/generated/selectMode.d.ts +3 -1
- package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +43 -0
- package/_vendor/schemas/iframeRpcChannel.d.ts +13 -1
- package/_vendor/schemas/iframeRpcChannel.mjs +167 -8
- package/_vendor/schemas/loaderKeys.mjs +0 -2
- package/_vendor/schemas/{money.d.ts → moneyFormat.d.ts} +11 -9
- package/_vendor/schemas/moneyFormat.mjs +119 -0
- package/_vendor/schemas/pageAnnotations.d.ts +1 -1
- package/_vendor/schemas/pageAnnotations.mjs +1 -2
- package/_vendor/schemas/reploError.d.ts +43 -0
- package/_vendor/schemas/routing/match.mjs +0 -1
- package/_vendor/schemas/routing/rules.d.ts +2 -2
- package/_vendor/schemas/routing/rules.mjs +5 -8
- package/_vendor/schemas/savedStyles.d.ts +1 -1
- package/_vendor/schemas/selectMode.d.ts +117 -4
- package/_vendor/schemas/selectMode.mjs +4 -6
- package/_vendor/schemas/selectModeIframeRpc.d.ts +373 -1
- package/_vendor/schemas/selectModeIframeRpc.mjs +77 -9
- package/chunk-B7XDEXPL.mjs +19 -0
- package/chunk-CJIK4NVP.mjs +547 -0
- package/chunk-DINTPZM2.mjs +71 -0
- package/{chunk-AKZNN7F2.mjs → chunk-IQCJXNJU.mjs} +1 -1
- package/{chunk-EXI4VDHP.mjs → chunk-PQEA6P4V.mjs} +20 -3
- package/{chunk-DINXH6YP.mjs → chunk-YGLYUC6R.mjs} +18 -7
- package/money.d.ts +1 -1
- package/package.json +2 -2
- package/_vendor/replo-utils/lib/object.d.ts +0 -31
- package/_vendor/schemas/money.mjs +0 -1937
- package/chunk-HGXQNZW7.mjs +0 -38
- package/chunk-ILGEM42C.mjs +0 -21
- package/chunk-RLFL66ST.mjs +0 -242
- package/chunk-UJCSKKID.mjs +0 -23
- package/chunk-VUXOGD76.mjs +0 -206
- /package/{chunk-FNTGY7I5.mjs → chunk-JELVREEB.mjs} +0 -0
|
@@ -12,6 +12,8 @@ export declare function randomBase64Url(byteLength: number): string;
|
|
|
12
12
|
* `crypto.getRandomValues`, which carries no such restriction.
|
|
13
13
|
*/
|
|
14
14
|
export declare function randomUUID(): string;
|
|
15
|
+
/** A v7 UUID: its first 48 bits are its creation time in Unix milliseconds, so such ids sort by age. */
|
|
16
|
+
export declare function timeOrderedUUID(): string;
|
|
15
17
|
/** Strings use UTF-8; binary inputs are hashed unchanged. */
|
|
16
18
|
export declare function sha256Hex(input: string | Parameters<typeof crypto.subtle.digest>[1]): Promise<string>;
|
|
17
19
|
export declare function constantTimeEqual({ left, right, }: {
|
|
@@ -22,3 +24,9 @@ export declare function getHmacSha256Hex({ rawBody, signingKey, }: {
|
|
|
22
24
|
rawBody: string;
|
|
23
25
|
signingKey: string;
|
|
24
26
|
}): Promise<string>;
|
|
27
|
+
export declare function isValidHmacSha256Hex({ rawBody, signingKey, signature, }: {
|
|
28
|
+
rawBody: string;
|
|
29
|
+
signingKey: string;
|
|
30
|
+
signature: string;
|
|
31
|
+
}): Promise<boolean>;
|
|
32
|
+
export declare function deterministicUUID(value: string): string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { upperFirst_default, toString_default } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-UJCSKKID.mjs';
|
|
1
|
+
import { upperFirst_default, toString_default } from '../../../chunk-IQCJXNJU.mjs';
|
|
2
|
+
import '../../../chunk-JELVREEB.mjs';
|
|
4
3
|
|
|
5
4
|
function capitalize(string) {
|
|
6
5
|
return upperFirst_default(toString_default(string).toLowerCase());
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '../../../chunk-UJCSKKID.mjs';
|
|
2
|
-
|
|
3
1
|
function isIntersecting(targetRect, destinationRect, { tolerance = 0 } = {}) {
|
|
4
2
|
return targetRect.left <= destinationRect.right + tolerance && targetRect.right >= destinationRect.left - tolerance && targetRect.top <= destinationRect.bottom + tolerance && targetRect.bottom >= destinationRect.top - tolerance;
|
|
5
3
|
}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
export declare function parseJsonOrNull(json: string): unknown | null;
|
|
2
|
-
export declare function omitJsonObjectFieldsOrNull({ json, fields, }: {
|
|
3
|
-
json: string;
|
|
4
|
-
fields: string[];
|
|
5
|
-
}): string | null;
|
|
6
2
|
export declare function jsonStringifyOrNull(value: unknown): string | null;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export { jsonStringifyOrNull,
|
|
2
|
-
import '../../../chunk-ILGEM42C.mjs';
|
|
3
|
-
import '../../../chunk-FNTGY7I5.mjs';
|
|
4
|
-
import '../../../chunk-UJCSKKID.mjs';
|
|
1
|
+
export { jsonStringifyOrNull, parseJsonOrNull } from '../../../chunk-B7XDEXPL.mjs';
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export { coerceNumberToString, deepCloneAndMergeReplacingArrays, errorMessage, exhaustiveSwitch, formatFileSize, getFromRecordOrNull, hasOwnProperty, invariant, isEmpty, isFunction_default as isFunction, isNotNullish, isNullish, isPrimitive, mergeReplacingArrays, mergeReplacingObjects, noop, preventDefault, sleep, sleepWithSignal, warning } from '../../../chunk-
|
|
2
|
-
|
|
3
|
-
import '../../../chunk-FNTGY7I5.mjs';
|
|
4
|
-
import '../../../chunk-UJCSKKID.mjs';
|
|
1
|
+
export { coerceNumberToString, deepCloneAndMergeReplacingArrays, errorMessage, exhaustiveSwitch, formatFileSize, getFromRecordOrNull, hasOwnProperty, invariant, isEmpty, isFunction_default as isFunction, isNotNullish, isNullish, isNumber_default as isNumber, isPrimitive, isString_default as isString, mergeReplacingArrays, mergeReplacingObjects, noop, preventDefault, sleep, sleepWithSignal, warning } from '../../../chunk-PQEA6P4V.mjs';
|
|
2
|
+
import '../../../chunk-JELVREEB.mjs';
|
|
@@ -22,18 +22,6 @@ export declare function formatWithCatN({ content, startLineNumber, }: {
|
|
|
22
22
|
* Escapes special regex characters in a string for use in RegExp constructor
|
|
23
23
|
*/
|
|
24
24
|
export declare function escapeRegExp(string: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Skill names are authored as kebab-case slugs in SKILL.md frontmatter
|
|
27
|
-
* ("site-management", "founder-review"). Anywhere we render the name to the
|
|
28
|
-
* user — skills app cards, the chat tool feed, the provisioning overlay — we
|
|
29
|
-
* run it through this so they see "Site Management", "Founder Review", etc.
|
|
30
|
-
* instead of the raw slug.
|
|
31
|
-
*
|
|
32
|
-
* Names that already look human-authored (any whitespace or any uppercase
|
|
33
|
-
* letter) are returned untouched, so a skill can opt out by writing
|
|
34
|
-
* `name: My Custom Skill` in frontmatter.
|
|
35
|
-
*/
|
|
36
|
-
export declare function prettifySkillName(name: string): string;
|
|
37
25
|
/**
|
|
38
26
|
* Safely decodes a URI component, returning the original value if decoding fails.
|
|
39
27
|
* Returns null if the input is null or undefined, preserving empty strings.
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
type UrlSearchParamValues = Record<string, string | number | boolean | string[] | null | undefined>;
|
|
1
2
|
/**
|
|
2
|
-
* Builds a URLSearchParams from a record, omitting undefined values.
|
|
3
|
-
* values are appended as repeated keys; scalars are stringified.
|
|
3
|
+
* Builds a URLSearchParams from a record, omitting null and undefined values.
|
|
4
|
+
* Array values are appended as repeated keys; scalars are stringified.
|
|
4
5
|
*/
|
|
5
|
-
export declare function buildUrlSearchParams(values:
|
|
6
|
+
export declare function buildUrlSearchParams(values: UrlSearchParamValues): URLSearchParams;
|
|
7
|
+
/**
|
|
8
|
+
* Appends a query string built by `buildUrlSearchParams` to a path, leaving
|
|
9
|
+
* the path bare when every value is omitted.
|
|
10
|
+
*/
|
|
11
|
+
export declare function pathWithSearchParams(path: string, values: UrlSearchParamValues): string;
|
|
6
12
|
export declare function isValidHttpUrl(url: string, options?: {
|
|
7
13
|
allowBlockedHostnames?: boolean;
|
|
8
14
|
allowedHostnames?: string[];
|
|
@@ -72,3 +78,4 @@ export declare function sanitizePublicHttpUrl(value: string | null, { preservePr
|
|
|
72
78
|
}): string | null;
|
|
73
79
|
export declare function isPublicHttpsUrl(value: string): boolean;
|
|
74
80
|
export declare function safeHost(url: string): string | null;
|
|
81
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { buildUrlSearchParams, fileExtensionFromUrl, isPreviewInternalHostname, isPreviewOrigin, isPublicHttpsUrl, isValidHttpUrl, isValidRoutePath, normalizeCustomDomain, normalizeUrlIncludingProtocolRelative, normalizeUrlScheme, parseUrl, safeHost, sanitizePublicHttpUrl, truncateDomain } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
4
|
-
import '../../../chunk-UJCSKKID.mjs';
|
|
1
|
+
export { buildUrlSearchParams, fileExtensionFromUrl, isPreviewInternalHostname, isPreviewOrigin, isPublicHttpsUrl, isValidHttpUrl, isValidRoutePath, normalizeCustomDomain, normalizeUrlIncludingProtocolRelative, normalizeUrlScheme, parseUrl, pathWithSearchParams, safeHost, sanitizePublicHttpUrl, truncateDomain } from '../../../chunk-YGLYUC6R.mjs';
|
|
2
|
+
import '../../../chunk-IQCJXNJU.mjs';
|
|
3
|
+
import '../../../chunk-JELVREEB.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FEATURE_TYPES: readonly ["credits", "shopifyThemeBuilder.publishedElements", "sites", "shopifyThemeBuilder.projects"];
|