@relyio/sdk 0.3.0 → 0.5.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/CHANGELOG.md +109 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-QIZOBT5F.js → chunk-5AZUUV5B.js} +349 -25
- package/dist/{chunk-54WP2PWG.cjs → chunk-CIRT6TVT.cjs} +350 -24
- package/dist/{chunk-HMVGXUGR.cjs → chunk-HAQELDZN.cjs} +2 -2
- package/dist/{chunk-LYRYCIX5.js → chunk-XY5KFEFY.js} +2 -2
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +4 -3
- package/dist/client/index.d.ts +4 -3
- package/dist/client/index.js +1 -1
- package/dist/{define-schema-BfXeR6K8.d.cts → define-schema-2xbHgtK-.d.cts} +8 -4
- package/dist/{define-schema-BD6HSPnG.d.ts → define-schema-DzYXk4HL.d.ts} +8 -4
- package/dist/{index-BDpar3FO.d.cts → index-BozPz4n1.d.cts} +320 -8
- package/dist/{index-ulOrcfPa.d.cts → index-C5mRBb6t.d.cts} +368 -11
- package/dist/{index-Dx01iwaf.d.ts → index-Dzo-upNS.d.ts} +320 -8
- package/dist/{index-DuEhsGdE.d.ts → index-mXUx2H99.d.ts} +368 -11
- package/dist/index.cjs +119 -66
- package/dist/index.d.cts +131 -46
- package/dist/index.d.ts +131 -46
- package/dist/index.js +44 -3
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -13
- package/dist/react/index.cjs +0 -4
- package/dist/react/index.d.cts +0 -2
- package/dist/react/index.d.ts +0 -2
- package/dist/react/index.js +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { C as Change } from './index-Dzo-upNS.js';
|
|
2
|
+
export { A as ActiveSandbox, Z as AdhocAggregateBlock, Y as AdhocFetchBlock, X as AdhocQueryBuilder, W as AdhocQueryClient, a3 as AdhocQueryDefinition, a4 as AdhocQueryOptions, a6 as AdhocQueryResult, $ as AdhocSearchBlock, a0 as AdhocSimilarBlock, _ as AggregateMetric, a7 as AssetClient, ah as AssetEntryResponse, ae as AssetFileBlock, a8 as AssetFileBuilder, af as AssetFileExtracted, a9 as AssetUploadBuilder, ag as AssetUrls, ab as AssetVisibility, v as AutocompleteBuilder, D as AutocompleteResponse, B as AutocompleteSuggestion, L as BatchBuilder, K as BatchClient, M as BatchMethod, N as BatchOperation, Q as BatchOperationResult, O as BatchOptions, V as BatchResponse, U as BatchSummary, i as ChangesExpiredError, k as ChangesExpiredReason, j as ChangesOptions, q as ChildrenOptions, b as ClientSchema, g as ConditionalWriteOptions, al as ConfirmInput, am as ConfirmResult, p as ContentByIdBuilder, l as ContentClient, o as ContentQueryBuilder, ap as CreateAssetOptions, E as ExtendedQueryResult, ad as FileBackend, az as FileErrorCode, ac as FileStatus, aA as FileUploadError, aC as FileValidationConstraints, aB as FileValidationError, a1 as FilterValue, a2 as FullTextConfig, H as HttpClient, ar as MultipartCreateResult, as as MultipartPart, at as MultipartTarget, ai as PopulatedAssetReference, aj as PresignInput, ak as PresignResult, P as Project, a5 as QueryMetadata, R as Register, d as RegisteredSchema, an as ResolveUrlInput, ao as ResolveUrlResult, aw as ResourceConflictError, ax as ResourceExpiredError, av as ResourceNotFoundError, h as RetryableWriteOptions, S as SandboxState, u as SearchBuilder, t as SearchClient, J as SearchFields, I as SearchFilter, x as SearchMode, z as SearchResponse, y as SearchResultItem, e as SendOptions, n as SettingsClient, s as SettingsFetchOptions, w as SimilarBuilder, G as SimilarResponse, F as SimilarResult, m as SingletonClient, r as SingletonFetchOptions, a as TypedClientConfig, T as TypedRelyIOClient, au as UploadProgress, aq as WaitUntilReadyOptions, c as createClient, c as default, f as entityTagOf, aa as isAssetEntry, ay as isResourceNotFound, aD as validateFile } from './index-Dzo-upNS.js';
|
|
2
3
|
export { fields } from './schema/index.js';
|
|
3
|
-
import { S as SDKError } from './index-
|
|
4
|
-
export { a as ApiMethod, A as ApiPath,
|
|
4
|
+
import { S as SDKError, B as BaseContent } from './index-mXUx2H99.js';
|
|
5
|
+
export { a as ApiMethod, A as ApiPath, t as ApiResponse, b as ApiSuccessBody, x as BaseValidationError, q as CacheConfig, v as CacheStrategy, g as ContentQueryResult, k as ContentTypeSchema, C as CreateInput, j as CustomQuery, D as DebugConfig, E as Environment, l as FieldOptions, F as FieldTypeName, H as InvalidFieldTypeError, I as InvalidPayloadError, L as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, r as RealtimeConfig, o as RealtimeEvent, n as RealtimeEventType, R as RelyIOConfig, s as RequestConfig, G as RequiredFieldError, u as RetryConfig, c as RouteMatch, z as SchemaValidationError, i as SettingsGroup, h as SingletonContent, f as SortOptions, p as SubscriptionOptions, U as UpdateInput, y as ValidationError, V as ValidationRule, w as ValidationViolation, d as WhereClause, e as WhereOperator, W as Wire, m as matchRoute } from './index-mXUx2H99.js';
|
|
5
6
|
export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.js';
|
|
6
|
-
export { ax as AggregateBlock, G as AssetTypeConfig, K as AssetTypeDefinition, C as ComponentConfig, v as ComponentDefinition, w as ComponentMetadata, aw as FetchBlock, O as FileKindConfig, a3 as FileScanConfig, a2 as FileUploadConfig, aH as FilterDefinition, X as ImageExifConfig, N as ImageKindConfig, W as ImageSourceConfig, U as ImageUploadConfig, aF as IncludeDefinition, M as InferAssetType, aR as InferQueryParams, aQ as InferQueryResponse, t as InferSingleton, I as InferSingletonContentType, au as QueryConfig, av as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ay as SearchBlock, aG as SelectMapping, A as SettingsGroupConfig, B as SettingsGroupDefinition, az as SimilarBlock, r as SingletonContentTypeDefinition, s as SingletonMetadata, aD as SortCondition, Y as VariantDefinition, $ as VideoCaptionsConfig, a0 as VideoDownloadConfig, V as VideoKindConfig, _ as VideoPosterConfig, Z as VideoUploadConfig, a1 as VideoWatermarkConfig, aA as WhereCondition, F as defineAssetType, u as defineComponent, at as defineQuery, d as defineSchema, z as defineSettingsGroup, q as defineSingleton, p as defineSingletonContentType } from './define-schema-
|
|
7
|
+
export { ax as AggregateBlock, G as AssetTypeConfig, K as AssetTypeDefinition, C as ComponentConfig, v as ComponentDefinition, w as ComponentMetadata, aw as FetchBlock, O as FileKindConfig, a3 as FileScanConfig, a2 as FileUploadConfig, aH as FilterDefinition, X as ImageExifConfig, N as ImageKindConfig, W as ImageSourceConfig, U as ImageUploadConfig, aF as IncludeDefinition, M as InferAssetType, aR as InferQueryParams, aQ as InferQueryResponse, t as InferSingleton, I as InferSingletonContentType, au as QueryConfig, av as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ay as SearchBlock, aG as SelectMapping, A as SettingsGroupConfig, B as SettingsGroupDefinition, az as SimilarBlock, r as SingletonContentTypeDefinition, s as SingletonMetadata, aD as SortCondition, Y as VariantDefinition, $ as VideoCaptionsConfig, a0 as VideoDownloadConfig, V as VideoKindConfig, _ as VideoPosterConfig, Z as VideoUploadConfig, a1 as VideoWatermarkConfig, aA as WhereCondition, F as defineAssetType, u as defineComponent, at as defineQuery, d as defineSchema, z as defineSettingsGroup, q as defineSingleton, p as defineSingletonContentType } from './define-schema-DzYXk4HL.js';
|
|
7
8
|
export { n as BaseFieldConfig, x as ContentTypeConfig, y as ContentTypeConfigWithFields, z as ContentTypeConfigWithFieldsets, G as ContentTypeDefinition, H as EntryMetadata, c as FieldDefinition, b as FieldRule, o as FieldType, F as FieldUIConfig, w as Fieldset, J as InferContentType, K as LocalePublicationFields, L as LocalizationConfig, u as defineContentType, v as fieldset } from './define-content-type-CBfnTWSS.js';
|
|
9
|
+
import './dev-handshake/index.js';
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Network-related errors
|
|
@@ -57,47 +59,6 @@ declare class InvalidApiKeyError extends SDKError {
|
|
|
57
59
|
getUserMessage(): string;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
/**
|
|
61
|
-
* Content and resource errors.
|
|
62
|
-
*
|
|
63
|
-
* `ContentTypeNotFoundError` and `ContentNotFoundError` were deleted at API5.
|
|
64
|
-
* The mapper reached them by sniffing `CONTENT_TYPE_NOT_FOUND` and
|
|
65
|
-
* `CONTENT_NOT_FOUND`, neither of which is in the closed vocabulary, so neither
|
|
66
|
-
* class was reachable. Both cases are `RESOURCE_NOT_FOUND`, whose declared
|
|
67
|
-
* `details` are `{ kind, id? }` — the same two facts, from the one code a route
|
|
68
|
-
* can actually declare.
|
|
69
|
-
*/
|
|
70
|
-
declare class ResourceNotFoundError extends SDKError {
|
|
71
|
-
readonly code = "RESOURCE_NOT_FOUND";
|
|
72
|
-
readonly retryable = false;
|
|
73
|
-
constructor(message?: string, statusCode?: number, cause?: Error, context?: Record<string, unknown>);
|
|
74
|
-
getUserMessage(): string;
|
|
75
|
-
}
|
|
76
|
-
declare class ResourceConflictError extends SDKError {
|
|
77
|
-
readonly code = "RESOURCE_CONFLICT";
|
|
78
|
-
readonly retryable = false;
|
|
79
|
-
constructor(message?: string, statusCode?: number, cause?: Error, context?: Record<string, unknown>);
|
|
80
|
-
getUserMessage(): string;
|
|
81
|
-
}
|
|
82
|
-
declare class ResourceExpiredError extends SDKError {
|
|
83
|
-
readonly code = "RESOURCE_EXPIRED";
|
|
84
|
-
readonly retryable = false;
|
|
85
|
-
constructor(message?: string, statusCode?: number, cause?: Error, context?: Record<string, unknown>);
|
|
86
|
-
getUserMessage(): string;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* "Did the service say this resource does not exist?"
|
|
90
|
-
*
|
|
91
|
-
* Reads the **code**, not the status. Four contract codes are 4xx on a read and
|
|
92
|
-
* only one of them means "not there"; the incumbent checked `statusCode === 404`
|
|
93
|
-
* on the thrown value, and a second arm duck-typed a plain object for the same
|
|
94
|
-
* number so a hand-written test double would pass. Both are the branch
|
|
95
|
-
* `INV-API-CLIENT-IS-DERIVED` forbids where a code exists — and the second one
|
|
96
|
-
* only existed because the tests faked the boundary (rule 20). They now stub
|
|
97
|
-
* `fetch`, so the double is gone with the branch.
|
|
98
|
-
*/
|
|
99
|
-
declare function isResourceNotFound(error: unknown): boolean;
|
|
100
|
-
|
|
101
62
|
/**
|
|
102
63
|
* One class per contract code that had none.
|
|
103
64
|
*
|
|
@@ -499,6 +460,130 @@ declare const localeHelpers: {
|
|
|
499
460
|
getAllLocalizedValues: typeof getAllLocalizedValues;
|
|
500
461
|
};
|
|
501
462
|
|
|
463
|
+
/**
|
|
464
|
+
* The DOM↔field binding contract, as the one pure helper that emits it.
|
|
465
|
+
*
|
|
466
|
+
* Spread onto the element that renders a field, it stamps which entry, content type, field and
|
|
467
|
+
* locale produced that element, so an editing surface can find the field by scanning the DOM
|
|
468
|
+
* rather than by guessing (`INV-TB-BINDING`). The contract is `toolbar-spec.md` §DOM↔field; this
|
|
469
|
+
* file is its only implementation.
|
|
470
|
+
*
|
|
471
|
+
* **Frozen** (`INV-SS-BINDING-FROZEN`). The attribute set is exactly the five below. Adding,
|
|
472
|
+
* renaming or dropping one is a new contract, and a new contract is a bump of `data-relyio-v` — a
|
|
473
|
+
* page built against version 1 keeps being read as version 1 by any surface that scans it.
|
|
474
|
+
*
|
|
475
|
+
* **Pure** (`INV-TB-SDK-PURE`). It reads the entry it is handed and returns attributes. It imports
|
|
476
|
+
* nothing but the SDK's own types: no realtime, no AI, no first-party code, no framework. That is
|
|
477
|
+
* what lets it live in the customer SDK and run on a server render as happily as in a browser.
|
|
478
|
+
*
|
|
479
|
+
* **Every value comes from the entry.** The id, the content type and the locale are the ones the
|
|
480
|
+
* API reported in `_metadata` — the locale is the one the payload's field values were composed
|
|
481
|
+
* for. There is deliberately no `locale` argument: a caller-supplied locale could bind a node to a
|
|
482
|
+
* locale whose value it is not rendering, which is the silently inferred binding `INV-TB-BINDING`
|
|
483
|
+
* forbids.
|
|
484
|
+
*/
|
|
485
|
+
|
|
486
|
+
/** The version of the binding contract this helper emits. */
|
|
487
|
+
declare const BINDING_VERSION = "1";
|
|
488
|
+
/** The attributes `relyioField` returns — the whole of binding contract version 1. */
|
|
489
|
+
interface RelyIOFieldAttributes {
|
|
490
|
+
/** The entry's id (`_metadata.id`). */
|
|
491
|
+
readonly 'data-relyio-entry': string;
|
|
492
|
+
/** The entry's content type (`_metadata.type`); every customer read is keyed by it. */
|
|
493
|
+
readonly 'data-relyio-type': string;
|
|
494
|
+
/** The field the element renders. */
|
|
495
|
+
readonly 'data-relyio-field': string;
|
|
496
|
+
/** The locale the entry's field values were composed for (`_metadata.locale`). */
|
|
497
|
+
readonly 'data-relyio-locale': string;
|
|
498
|
+
/** The binding contract's version. */
|
|
499
|
+
readonly 'data-relyio-v': typeof BINDING_VERSION;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* The field names `relyioField` accepts for an entry of type `T`.
|
|
503
|
+
*
|
|
504
|
+
* A schema-typed entry narrows to its declared field names, so they autocomplete and a misspelt
|
|
505
|
+
* one does not compile. An entry with no declared fields — `BaseContent`, which is what an
|
|
506
|
+
* un-generated client returns — has none to narrow to, and `keyof` of it is `never`; that would
|
|
507
|
+
* make the helper uncallable for every untyped customer, so it accepts any field name instead.
|
|
508
|
+
*/
|
|
509
|
+
type RelyIOFieldName<T extends BaseContent> = [Exclude<keyof T, '_metadata'>] extends [never] ? string : string & Exclude<keyof T, '_metadata'>;
|
|
510
|
+
/**
|
|
511
|
+
* Binding attributes for one field of one entry.
|
|
512
|
+
*
|
|
513
|
+
* @example
|
|
514
|
+
* ```tsx
|
|
515
|
+
* import { relyioField } from '@relyio/sdk'
|
|
516
|
+
*
|
|
517
|
+
* <h1 {...relyioField(post, 'title')}>{post.title}</h1>
|
|
518
|
+
* // → data-relyio-entry="6710f…" data-relyio-type="post" data-relyio-field="title"
|
|
519
|
+
* // data-relyio-locale="en-US" data-relyio-v="1"
|
|
520
|
+
* ```
|
|
521
|
+
*
|
|
522
|
+
* @throws {TypeError} when the entry's `_metadata` lacks its id, content type or locale. Every
|
|
523
|
+
* entry the API returns carries all three, so this is reached only by a value that was not read
|
|
524
|
+
* from RelyIO. It throws rather than emitting a partial binding: a node stamped with no locale, or
|
|
525
|
+
* none at all, is a binding a surface would have to guess the rest of.
|
|
526
|
+
*/
|
|
527
|
+
declare function relyioField<T extends BaseContent>(entry: T, field: RelyIOFieldName<T>): RelyIOFieldAttributes;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* The DOM event a preview surface dispatches when content on the page has changed, and the one
|
|
531
|
+
* spelling of its name (`sdk-surfaces-spec.md` decision 23: the toolbar emits, the framework
|
|
532
|
+
* listens).
|
|
533
|
+
*
|
|
534
|
+
* It is the same kind of seam as the binding attributes beside it: a string both sides read from the
|
|
535
|
+
* core, so the preview toolbar needs no Next dependency and `@relyio/next`'s `<RelyIORefresh />`
|
|
536
|
+
* needs no toolbar dependency. Neither restates the name.
|
|
537
|
+
*
|
|
538
|
+
* **Dispatched on `window`.** Listeners subscribe with
|
|
539
|
+
* `window.addEventListener(RELYIO_CHANGE_EVENT, …)`; the toolbar renders inside a shadow root, and
|
|
540
|
+
* `window` is the one target both sides reach without knowing where the other is mounted.
|
|
541
|
+
*
|
|
542
|
+
* **The name is a wire contract.** A page can run a toolbar and a framework package released at
|
|
543
|
+
* different times, so renaming it silently disconnects them. The `detail` a dispatch carries is
|
|
544
|
+
* {@link RelyIOChangeDetail}; a listener that only refreshes reads none of it.
|
|
545
|
+
*/
|
|
546
|
+
declare const RELYIO_CHANGE_EVENT = "relyio:change";
|
|
547
|
+
/**
|
|
548
|
+
* The `detail` of a {@link RELYIO_CHANGE_EVENT} dispatch: the feed change that prompted it, as
|
|
549
|
+
* `relyio.changes()` yielded it — `{ entryId, contentType, locale, kind, cursor }`, ids and never a
|
|
550
|
+
* document (`INV-SS-CHANGE-IS-IDS`, decision 18).
|
|
551
|
+
*
|
|
552
|
+
* It **is** {@link Change}, not a restatement of it. That type is read from the committed API
|
|
553
|
+
* document, so the event's payload and the feed's item cannot drift; `change-event.types.ts` holds
|
|
554
|
+
* the two equal.
|
|
555
|
+
*
|
|
556
|
+
* @example
|
|
557
|
+
* ```ts
|
|
558
|
+
* window.addEventListener(RELYIO_CHANGE_EVENT, event => {
|
|
559
|
+
* const change = (event as CustomEvent<RelyIOChangeDetail>).detail
|
|
560
|
+
* })
|
|
561
|
+
* ```
|
|
562
|
+
*/
|
|
563
|
+
type RelyIOChangeDetail = Change;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* The width ladder the delivery Worker snaps every rendered dimension to
|
|
567
|
+
* (`INV-SS-ONE-LADDER`, sdk-surfaces-spec decision 14).
|
|
568
|
+
*
|
|
569
|
+
* A dimension is clamped to a ceiling and snapped to a bucket, so "any width"
|
|
570
|
+
* cannot become "unboundedly many distinct transforms". A client that asks the
|
|
571
|
+
* Worker for `w=749` is served the `w=700` render anyway; snapping on this side
|
|
572
|
+
* first means an image loader emits the URL the edge cache already holds.
|
|
573
|
+
*
|
|
574
|
+
* This is a **copy**, and deliberately so: the core cannot import
|
|
575
|
+
* `@relyio/storage` or the Worker. `apps/edge/cdn/src/__tests__/ladder-parity.test.ts`
|
|
576
|
+
* holds the two equal — the constants, and what the Worker actually renders for
|
|
577
|
+
* a sweep of requested widths — so a divergence fails the gate rather than a
|
|
578
|
+
* cache.
|
|
579
|
+
*/
|
|
580
|
+
declare const IMAGE_LADDER: {
|
|
581
|
+
readonly maxDimension: 5000;
|
|
582
|
+
readonly bucket: 100;
|
|
583
|
+
};
|
|
584
|
+
/** Clamp to the ceiling, then snap to the nearest bucket — never below one bucket. */
|
|
585
|
+
declare function snapToLadder(value: number): number;
|
|
586
|
+
|
|
502
587
|
/**
|
|
503
588
|
* RelyIO SDK - Main Entry Point
|
|
504
589
|
*
|
|
@@ -535,4 +620,4 @@ declare const localeHelpers: {
|
|
|
535
620
|
|
|
536
621
|
declare const VERSION = "__VERSION__";
|
|
537
622
|
|
|
538
|
-
export { AuthenticationError, AuthorizationError, ConnectionError, ErrorMapper, InvalidApiKeyError, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError,
|
|
623
|
+
export { AuthenticationError, AuthorizationError, BaseContent, Change, ConnectionError, ErrorMapper, IMAGE_LADDER, InvalidApiKeyError, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PayloadTooLargeError, PlanFeatureUnavailableError, RELYIO_CHANGE_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOFieldAttributes, type RelyIOFieldName, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, estimateTranslationCompleteness, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPublishedInLocale, localeHelpers, needsTranslation, relyioField, snapToLadder };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-
|
|
2
|
-
export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthenticationError, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidFieldTypeError, InvalidPayloadError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, RequiredFieldError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SchemaValidationError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isResourceNotFound, validateFile } from './chunk-
|
|
1
|
+
export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-XY5KFEFY.js';
|
|
2
|
+
export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthenticationError, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ChangesExpiredError, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidFieldTypeError, InvalidPayloadError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, RequiredFieldError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SchemaValidationError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isResourceNotFound, matchRoute, validateFile } from './chunk-5AZUUV5B.js';
|
|
3
3
|
import './chunk-BBUB7C2Z.js';
|
|
4
4
|
import './chunk-IY5LSKXU.js';
|
|
5
5
|
export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './chunk-I3ESNANB.js';
|
|
@@ -141,9 +141,50 @@ var localeHelpers = {
|
|
|
141
141
|
getAllLocalizedValues
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
// src/binding/relyio-field.ts
|
|
145
|
+
var BINDING_VERSION = "1";
|
|
146
|
+
function relyioField(entry, field) {
|
|
147
|
+
const metadata = entry._metadata;
|
|
148
|
+
return {
|
|
149
|
+
"data-relyio-entry": requireMetadata(metadata, "id", field),
|
|
150
|
+
"data-relyio-type": requireMetadata(metadata, "type", field),
|
|
151
|
+
"data-relyio-field": field,
|
|
152
|
+
"data-relyio-locale": requireMetadata(metadata, "locale", field),
|
|
153
|
+
"data-relyio-v": BINDING_VERSION
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
__name(relyioField, "relyioField");
|
|
157
|
+
function requireMetadata(metadata, key, field) {
|
|
158
|
+
const value = metadata?.[key];
|
|
159
|
+
if (typeof value !== "string" || value.length === 0) {
|
|
160
|
+
throw new TypeError(
|
|
161
|
+
`relyioField(entry, '${field}'): the entry has no _metadata.${key}, so the field cannot be bound. Pass an entry as the RelyIO API returned it.`
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
return value;
|
|
165
|
+
}
|
|
166
|
+
__name(requireMetadata, "requireMetadata");
|
|
167
|
+
|
|
168
|
+
// src/binding/change-event.ts
|
|
169
|
+
var RELYIO_CHANGE_EVENT = "relyio:change";
|
|
170
|
+
|
|
171
|
+
// src/image/ladder.ts
|
|
172
|
+
var IMAGE_LADDER = {
|
|
173
|
+
maxDimension: 5e3,
|
|
174
|
+
bucket: 100
|
|
175
|
+
};
|
|
176
|
+
function snapToLadder(value) {
|
|
177
|
+
const clamped = Math.min(Math.max(value, 1), IMAGE_LADDER.maxDimension);
|
|
178
|
+
return Math.max(
|
|
179
|
+
IMAGE_LADDER.bucket,
|
|
180
|
+
Math.round(clamped / IMAGE_LADDER.bucket) * IMAGE_LADDER.bucket
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
__name(snapToLadder, "snapToLadder");
|
|
184
|
+
|
|
144
185
|
// src/index.ts
|
|
145
186
|
var VERSION = "__VERSION__";
|
|
146
187
|
|
|
147
|
-
export { VERSION, buildLanguageSwitcher, estimateTranslationCompleteness, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPublishedInLocale, localeHelpers, needsTranslation };
|
|
188
|
+
export { IMAGE_LADDER, RELYIO_CHANGE_EVENT, VERSION, buildLanguageSwitcher, estimateTranslationCompleteness, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPublishedInLocale, localeHelpers, needsTranslation, relyioField, snapToLadder };
|
|
148
189
|
//# sourceMappingURL=index.js.map
|
|
149
190
|
//# sourceMappingURL=index.js.map
|
package/dist/schema/index.cjs
CHANGED
|
@@ -1,145 +1,145 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHAQELDZN_cjs = require('../chunk-HAQELDZN.cjs');
|
|
4
4
|
require('../chunk-MWMSFIWN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "BUILT_IN_ROLES", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkHAQELDZN_cjs.BUILT_IN_ROLES; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "BUILT_IN_ROLE_ACTIONS", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkHAQELDZN_cjs.BUILT_IN_ROLE_ACTIONS; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ROLE_ACTIONS", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkHAQELDZN_cjs.ROLE_ACTIONS; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "buildFallbackChain", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkHAQELDZN_cjs.buildFallbackChain; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "defineAssetType", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkHAQELDZN_cjs.defineAssetType; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "defineComponent", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkHAQELDZN_cjs.defineComponent; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "defineContentType", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkHAQELDZN_cjs.defineContentType; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "defineContentTypeWorkflow", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkHAQELDZN_cjs.defineContentTypeWorkflow; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "defineLocale", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkHAQELDZN_cjs.defineLocale; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "defineQuery", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkHAQELDZN_cjs.defineQuery; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "defineRole", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkHAQELDZN_cjs.defineRole; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "defineSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkHAQELDZN_cjs.defineSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "defineSettingsGroup", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkHAQELDZN_cjs.defineSettingsGroup; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "defineSingleton", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkHAQELDZN_cjs.defineSingleton; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "defineSingletonContentType", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkHAQELDZN_cjs.defineSingletonContentType; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "defineView", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkHAQELDZN_cjs.defineView; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "defineWorkflow", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkHAQELDZN_cjs.defineWorkflow; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "defineWorkflowStage", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkHAQELDZN_cjs.defineWorkflowStage; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "fields", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkHAQELDZN_cjs.fields; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "fieldset", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkHAQELDZN_cjs.fieldset; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "findDefaultLocale", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkHAQELDZN_cjs.findDefaultLocale; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "findWorkflowStage", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkHAQELDZN_cjs.findWorkflowStage; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "getActiveLocales", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkHAQELDZN_cjs.getActiveLocales; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "getBuiltInRoleActions", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkHAQELDZN_cjs.getBuiltInRoleActions; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "getFirstWorkflowStage", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkHAQELDZN_cjs.getFirstWorkflowStage; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "getLocaleCodes", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkHAQELDZN_cjs.getLocaleCodes; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "getNextWorkflowStage", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkHAQELDZN_cjs.getNextWorkflowStage; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "getWorkflowStageIds", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkHAQELDZN_cjs.getWorkflowStageIds; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "isBuiltInRole", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkHAQELDZN_cjs.isBuiltInRole; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "isFinalWorkflowStage", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkHAQELDZN_cjs.isFinalWorkflowStage; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "isLocaleDefinition", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkHAQELDZN_cjs.isLocaleDefinition; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "isRoleDefinition", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkHAQELDZN_cjs.isRoleDefinition; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "isWorkflowDefinition", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkHAQELDZN_cjs.isWorkflowDefinition; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "isWorkflowStageDefinition", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkHAQELDZN_cjs.isWorkflowStageDefinition; }
|
|
143
143
|
});
|
|
144
144
|
//# sourceMappingURL=index.cjs.map
|
|
145
145
|
//# sourceMappingURL=index.cjs.map
|
package/dist/schema/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ax as AggregateBlock, am as AllScopeConfig, G as AssetTypeConfig, H as AssetTypeConfigWithFields, J as AssetTypeConfigWithFieldsets, K as AssetTypeDefinition, a8 as BUILT_IN_ROLES, aa as BUILT_IN_ROLE_ACTIONS, ab as BuiltInRole, aI as CachePolicy, aJ as CachePolicyObject, C as ComponentConfig, v as ComponentDefinition, w as ComponentMetadata, x as ComponentReusabilityMetadata, y as ComponentValidationMetadata, aj as ContentTypeScopeConfig, ak as ContentTypesScopeConfig, al as EntryTypeScopeConfig, aw as FetchBlock, ae as FieldVisibility, O as FileKindConfig, a3 as FileScanConfig, a2 as FileUploadConfig, aH as FilterDefinition, X as ImageExifConfig, Q as ImageFitMode, N as ImageKindConfig, R as ImageOutputFormat, W as ImageSourceConfig, P as ImageTransform, U as ImageUploadConfig, aF as IncludeDefinition, aL as IncludeSubQueries, aK as IncludeSubQuery, M as InferAssetType, aR as InferQueryParams, aQ as InferQueryResponse, E as InferSettingsGroup, t as InferSingleton, I as InferSingletonContentType, o as LocaleDefinition, L as LocaleOptions, aM as Parameterizable, aP as QueryCardinality, au as QueryConfig, av as QueryDefinition, aN as QueryParameter, aO as QueryParameterType, a9 as ROLE_ACTIONS, ad as ResourcePermission, ac as RoleAction, af as RoleConfig, ag as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ay as SearchBlock, aG as SelectMapping, A as SettingsGroupConfig, B as SettingsGroupDefinition, D as SettingsGroupMetadata, az as SimilarBlock, r as SingletonContentTypeDefinition, s as SingletonMetadata, aD as SortCondition, aE as SortDirection, T as TextDirection, Y as VariantDefinition, $ as VideoCaptionsConfig, a0 as VideoDownloadConfig, V as VideoKindConfig, _ as VideoPosterConfig, Z as VideoUploadConfig, a1 as VideoWatermarkConfig, ar as ViewConfig, as as ViewDefinition, aq as ViewFilter, ao as ViewFilterCondition, ap as ViewFilterGroup, an as ViewFilterOperator, ai as ViewScopeConfig, aA as WhereCondition, aC as WhereOperator, aB as WhereValue, n as buildFallbackChain, F as defineAssetType, u as defineComponent, i as defineLocale, at as defineQuery, a4 as defineRole, d as defineSchema, z as defineSettingsGroup, q as defineSingleton, p as defineSingletonContentType, ah as defineView, l as findDefaultLocale, m as getActiveLocales, a7 as getBuiltInRoleActions, k as getLocaleCodes, a6 as isBuiltInRole, j as isLocaleDefinition, a5 as isRoleDefinition } from '../define-schema-
|
|
1
|
+
export { ax as AggregateBlock, am as AllScopeConfig, G as AssetTypeConfig, H as AssetTypeConfigWithFields, J as AssetTypeConfigWithFieldsets, K as AssetTypeDefinition, a8 as BUILT_IN_ROLES, aa as BUILT_IN_ROLE_ACTIONS, ab as BuiltInRole, aI as CachePolicy, aJ as CachePolicyObject, C as ComponentConfig, v as ComponentDefinition, w as ComponentMetadata, x as ComponentReusabilityMetadata, y as ComponentValidationMetadata, aj as ContentTypeScopeConfig, ak as ContentTypesScopeConfig, al as EntryTypeScopeConfig, aw as FetchBlock, ae as FieldVisibility, O as FileKindConfig, a3 as FileScanConfig, a2 as FileUploadConfig, aH as FilterDefinition, X as ImageExifConfig, Q as ImageFitMode, N as ImageKindConfig, R as ImageOutputFormat, W as ImageSourceConfig, P as ImageTransform, U as ImageUploadConfig, aF as IncludeDefinition, aL as IncludeSubQueries, aK as IncludeSubQuery, M as InferAssetType, aR as InferQueryParams, aQ as InferQueryResponse, E as InferSettingsGroup, t as InferSingleton, I as InferSingletonContentType, o as LocaleDefinition, L as LocaleOptions, aM as Parameterizable, aP as QueryCardinality, au as QueryConfig, av as QueryDefinition, aN as QueryParameter, aO as QueryParameterType, a9 as ROLE_ACTIONS, ad as ResourcePermission, ac as RoleAction, af as RoleConfig, ag as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ay as SearchBlock, aG as SelectMapping, A as SettingsGroupConfig, B as SettingsGroupDefinition, D as SettingsGroupMetadata, az as SimilarBlock, r as SingletonContentTypeDefinition, s as SingletonMetadata, aD as SortCondition, aE as SortDirection, T as TextDirection, Y as VariantDefinition, $ as VideoCaptionsConfig, a0 as VideoDownloadConfig, V as VideoKindConfig, _ as VideoPosterConfig, Z as VideoUploadConfig, a1 as VideoWatermarkConfig, ar as ViewConfig, as as ViewDefinition, aq as ViewFilter, ao as ViewFilterCondition, ap as ViewFilterGroup, an as ViewFilterOperator, ai as ViewScopeConfig, aA as WhereCondition, aC as WhereOperator, aB as WhereValue, n as buildFallbackChain, F as defineAssetType, u as defineComponent, i as defineLocale, at as defineQuery, a4 as defineRole, d as defineSchema, z as defineSettingsGroup, q as defineSingleton, p as defineSingletonContentType, ah as defineView, l as findDefaultLocale, m as getActiveLocales, a7 as getBuiltInRoleActions, k as getLocaleCodes, a6 as isBuiltInRole, j as isLocaleDefinition, a5 as isRoleDefinition } from '../define-schema-2xbHgtK-.cjs';
|
|
2
2
|
import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, j as ListConfig, A as AIConfig, k as AllFieldTypes, l as AnyFieldDefinition, m as AssetAIConfig, n as BaseFieldConfig, C as ComponentFieldType, o as FieldType, p as ReadOnlyRule, q as RequirementRule, r as RuleCondition, s as RuleConditions, V as ValidationRule, t as VisibilityRule } from '../define-content-type-CBfnTWSS.cjs';
|
|
3
3
|
export { x as ContentTypeConfig, y as ContentTypeConfigWithFields, z as ContentTypeConfigWithFieldsets, G as ContentTypeDefinition, a5 as ContentTypeWorkflowConfig, H as EntryMetadata, w as Fieldset, J as InferContentType, K as LocalePublicationFields, a0 as WorkflowAutoAssign, a3 as WorkflowConfig, a4 as WorkflowDefinition, $ as WorkflowEscalation, a1 as WorkflowStageConfig, a2 as WorkflowStageDefinition, u as defineContentType, O as defineContentTypeWorkflow, M as defineWorkflow, N as defineWorkflowStage, v as fieldset, X as findWorkflowStage, Z as getFirstWorkflowStage, Y as getNextWorkflowStage, W as getWorkflowStageIds, _ as isFinalWorkflowStage, P as isWorkflowDefinition, Q as isWorkflowStageDefinition } from '../define-content-type-CBfnTWSS.cjs';
|
|
4
4
|
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ax as AggregateBlock, am as AllScopeConfig, G as AssetTypeConfig, H as AssetTypeConfigWithFields, J as AssetTypeConfigWithFieldsets, K as AssetTypeDefinition, a8 as BUILT_IN_ROLES, aa as BUILT_IN_ROLE_ACTIONS, ab as BuiltInRole, aI as CachePolicy, aJ as CachePolicyObject, C as ComponentConfig, v as ComponentDefinition, w as ComponentMetadata, x as ComponentReusabilityMetadata, y as ComponentValidationMetadata, aj as ContentTypeScopeConfig, ak as ContentTypesScopeConfig, al as EntryTypeScopeConfig, aw as FetchBlock, ae as FieldVisibility, O as FileKindConfig, a3 as FileScanConfig, a2 as FileUploadConfig, aH as FilterDefinition, X as ImageExifConfig, Q as ImageFitMode, N as ImageKindConfig, R as ImageOutputFormat, W as ImageSourceConfig, P as ImageTransform, U as ImageUploadConfig, aF as IncludeDefinition, aL as IncludeSubQueries, aK as IncludeSubQuery, M as InferAssetType, aR as InferQueryParams, aQ as InferQueryResponse, E as InferSettingsGroup, t as InferSingleton, I as InferSingletonContentType, o as LocaleDefinition, L as LocaleOptions, aM as Parameterizable, aP as QueryCardinality, au as QueryConfig, av as QueryDefinition, aN as QueryParameter, aO as QueryParameterType, a9 as ROLE_ACTIONS, ad as ResourcePermission, ac as RoleAction, af as RoleConfig, ag as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ay as SearchBlock, aG as SelectMapping, A as SettingsGroupConfig, B as SettingsGroupDefinition, D as SettingsGroupMetadata, az as SimilarBlock, r as SingletonContentTypeDefinition, s as SingletonMetadata, aD as SortCondition, aE as SortDirection, T as TextDirection, Y as VariantDefinition, $ as VideoCaptionsConfig, a0 as VideoDownloadConfig, V as VideoKindConfig, _ as VideoPosterConfig, Z as VideoUploadConfig, a1 as VideoWatermarkConfig, ar as ViewConfig, as as ViewDefinition, aq as ViewFilter, ao as ViewFilterCondition, ap as ViewFilterGroup, an as ViewFilterOperator, ai as ViewScopeConfig, aA as WhereCondition, aC as WhereOperator, aB as WhereValue, n as buildFallbackChain, F as defineAssetType, u as defineComponent, i as defineLocale, at as defineQuery, a4 as defineRole, d as defineSchema, z as defineSettingsGroup, q as defineSingleton, p as defineSingletonContentType, ah as defineView, l as findDefaultLocale, m as getActiveLocales, a7 as getBuiltInRoleActions, k as getLocaleCodes, a6 as isBuiltInRole, j as isLocaleDefinition, a5 as isRoleDefinition } from '../define-schema-
|
|
1
|
+
export { ax as AggregateBlock, am as AllScopeConfig, G as AssetTypeConfig, H as AssetTypeConfigWithFields, J as AssetTypeConfigWithFieldsets, K as AssetTypeDefinition, a8 as BUILT_IN_ROLES, aa as BUILT_IN_ROLE_ACTIONS, ab as BuiltInRole, aI as CachePolicy, aJ as CachePolicyObject, C as ComponentConfig, v as ComponentDefinition, w as ComponentMetadata, x as ComponentReusabilityMetadata, y as ComponentValidationMetadata, aj as ContentTypeScopeConfig, ak as ContentTypesScopeConfig, al as EntryTypeScopeConfig, aw as FetchBlock, ae as FieldVisibility, O as FileKindConfig, a3 as FileScanConfig, a2 as FileUploadConfig, aH as FilterDefinition, X as ImageExifConfig, Q as ImageFitMode, N as ImageKindConfig, R as ImageOutputFormat, W as ImageSourceConfig, P as ImageTransform, U as ImageUploadConfig, aF as IncludeDefinition, aL as IncludeSubQueries, aK as IncludeSubQuery, M as InferAssetType, aR as InferQueryParams, aQ as InferQueryResponse, E as InferSettingsGroup, t as InferSingleton, I as InferSingletonContentType, o as LocaleDefinition, L as LocaleOptions, aM as Parameterizable, aP as QueryCardinality, au as QueryConfig, av as QueryDefinition, aN as QueryParameter, aO as QueryParameterType, a9 as ROLE_ACTIONS, ad as ResourcePermission, ac as RoleAction, af as RoleConfig, ag as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ay as SearchBlock, aG as SelectMapping, A as SettingsGroupConfig, B as SettingsGroupDefinition, D as SettingsGroupMetadata, az as SimilarBlock, r as SingletonContentTypeDefinition, s as SingletonMetadata, aD as SortCondition, aE as SortDirection, T as TextDirection, Y as VariantDefinition, $ as VideoCaptionsConfig, a0 as VideoDownloadConfig, V as VideoKindConfig, _ as VideoPosterConfig, Z as VideoUploadConfig, a1 as VideoWatermarkConfig, ar as ViewConfig, as as ViewDefinition, aq as ViewFilter, ao as ViewFilterCondition, ap as ViewFilterGroup, an as ViewFilterOperator, ai as ViewScopeConfig, aA as WhereCondition, aC as WhereOperator, aB as WhereValue, n as buildFallbackChain, F as defineAssetType, u as defineComponent, i as defineLocale, at as defineQuery, a4 as defineRole, d as defineSchema, z as defineSettingsGroup, q as defineSingleton, p as defineSingletonContentType, ah as defineView, l as findDefaultLocale, m as getActiveLocales, a7 as getBuiltInRoleActions, k as getLocaleCodes, a6 as isBuiltInRole, j as isLocaleDefinition, a5 as isRoleDefinition } from '../define-schema-DzYXk4HL.js';
|
|
2
2
|
import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, j as ListConfig, A as AIConfig, k as AllFieldTypes, l as AnyFieldDefinition, m as AssetAIConfig, n as BaseFieldConfig, C as ComponentFieldType, o as FieldType, p as ReadOnlyRule, q as RequirementRule, r as RuleCondition, s as RuleConditions, V as ValidationRule, t as VisibilityRule } from '../define-content-type-CBfnTWSS.js';
|
|
3
3
|
export { x as ContentTypeConfig, y as ContentTypeConfigWithFields, z as ContentTypeConfigWithFieldsets, G as ContentTypeDefinition, a5 as ContentTypeWorkflowConfig, H as EntryMetadata, w as Fieldset, J as InferContentType, K as LocalePublicationFields, a0 as WorkflowAutoAssign, a3 as WorkflowConfig, a4 as WorkflowDefinition, $ as WorkflowEscalation, a1 as WorkflowStageConfig, a2 as WorkflowStageDefinition, u as defineContentType, O as defineContentTypeWorkflow, M as defineWorkflow, N as defineWorkflowStage, v as fieldset, X as findWorkflowStage, Z as getFirstWorkflowStage, Y as getNextWorkflowStage, W as getWorkflowStageIds, _ as isFinalWorkflowStage, P as isWorkflowDefinition, Q as isWorkflowStageDefinition } from '../define-content-type-CBfnTWSS.js';
|
|
4
4
|
|
package/dist/schema/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, ROLE_ACTIONS, buildFallbackChain, defineAssetType, defineComponent, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition } from '../chunk-
|
|
1
|
+
export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, ROLE_ACTIONS, buildFallbackChain, defineAssetType, defineComponent, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition } from '../chunk-XY5KFEFY.js';
|
|
2
2
|
import '../chunk-XQ4QHWZE.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { t as ApiResponse, B as BaseContent, q as CacheConfig, v as CacheStrategy, g as ContentQueryResult, k as ContentTypeSchema, C as CreateInput, j as CustomQuery, D as DebugConfig, E as Environment, T as FieldDefinition, l as FieldOptions, F as FieldTypeName, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, r as RealtimeConfig, o as RealtimeEvent, n as RealtimeEventType, R as RelyIOConfig, s as RequestConfig, u as RetryConfig, i as SettingsGroup, h as SingletonContent, f as SortOptions, p as SubscriptionOptions, U as UpdateInput, V as ValidationRule, w as ValidationViolation, d as WhereClause, e as WhereOperator } from '../index-C5mRBb6t.cjs';
|
|
2
2
|
import '../define-content-type-CBfnTWSS.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { t as ApiResponse, B as BaseContent, q as CacheConfig, v as CacheStrategy, g as ContentQueryResult, k as ContentTypeSchema, C as CreateInput, j as CustomQuery, D as DebugConfig, E as Environment, T as FieldDefinition, l as FieldOptions, F as FieldTypeName, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, r as RealtimeConfig, o as RealtimeEvent, n as RealtimeEventType, R as RelyIOConfig, s as RequestConfig, u as RetryConfig, i as SettingsGroup, h as SingletonContent, f as SortOptions, p as SubscriptionOptions, U as UpdateInput, V as ValidationRule, w as ValidationViolation, d as WhereClause, e as WhereOperator } from '../index-mXUx2H99.js';
|
|
2
2
|
import '../define-content-type-CBfnTWSS.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relyio/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "RelyIO is coming soon — this package is not ready for general use yet.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"relyio"
|
|
@@ -37,11 +37,6 @@
|
|
|
37
37
|
"import": "./dist/schema/index.js",
|
|
38
38
|
"require": "./dist/schema/index.cjs"
|
|
39
39
|
},
|
|
40
|
-
"./react": {
|
|
41
|
-
"types": "./dist/react/index.d.ts",
|
|
42
|
-
"import": "./dist/react/index.js",
|
|
43
|
-
"require": "./dist/react/index.cjs"
|
|
44
|
-
},
|
|
45
40
|
"./types": {
|
|
46
41
|
"types": "./dist/types/index.d.ts",
|
|
47
42
|
"import": "./dist/types/index.js",
|
|
@@ -75,7 +70,6 @@
|
|
|
75
70
|
"@changesets/cli": "2.29.4",
|
|
76
71
|
"@eslint/js": "9.39.5",
|
|
77
72
|
"@types/node": "24.13.3",
|
|
78
|
-
"@types/react": "19.2.18",
|
|
79
73
|
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
80
74
|
"@typescript-eslint/parser": "^8.18.1",
|
|
81
75
|
"@vitest/coverage-v8": "4.1.11",
|
|
@@ -95,15 +89,11 @@
|
|
|
95
89
|
"@relyio/eslint-config": "0.0.0"
|
|
96
90
|
},
|
|
97
91
|
"peerDependencies": {
|
|
98
|
-
"typescript": ">=4.9.0"
|
|
99
|
-
"react": ">=18.0.0"
|
|
92
|
+
"typescript": ">=4.9.0"
|
|
100
93
|
},
|
|
101
94
|
"peerDependenciesMeta": {
|
|
102
95
|
"typescript": {
|
|
103
96
|
"optional": true
|
|
104
|
-
},
|
|
105
|
-
"react": {
|
|
106
|
-
"optional": true
|
|
107
97
|
}
|
|
108
98
|
},
|
|
109
99
|
"bundlesize": [
|
|
@@ -142,7 +132,7 @@
|
|
|
142
132
|
"test:watch": "vitest --watch",
|
|
143
133
|
"test:coverage": "vitest --coverage",
|
|
144
134
|
"test:ui": "vitest --ui",
|
|
145
|
-
"type:check": "tsc --noEmit",
|
|
135
|
+
"type:check": "tsc --noEmit && tsc --noEmit -p tsconfig.register-types.json",
|
|
146
136
|
"codegen:openapi": "node ../../../scripts/emit-openapi-types.mjs ../../../apps/services/api/openapi-spec.json src/http/api-schema.ts",
|
|
147
137
|
"lint:write": "relyio-lint --fix",
|
|
148
138
|
"lint:check": "relyio-lint",
|
package/dist/react/index.cjs
DELETED
package/dist/react/index.d.cts
DELETED
package/dist/react/index.d.ts
DELETED
package/dist/react/index.js
DELETED