@conloca/content-api-client 0.2.3 → 0.2.4
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/.build-inputs.json +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/src/index.ts +21 -0
package/dist/.build-inputs.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"packages/content-api-client/src/client.ts": "90294e86fa70cd82e1d096c2881f1e4d28618ab2877d91ee59215a5b9e9c5a33",
|
|
5
5
|
"packages/content-api-client/src/data-bindings.ts": "79d39633538f8dc5bf37a02988575826f313d0056a957db9505cfb6fc6758ce1",
|
|
6
6
|
"packages/content-api-client/src/hooks.tsx": "347250325dbe195ada10f0003e1b3e6180f247a9e3001a4b61f9f2799a45a466",
|
|
7
|
-
"packages/content-api-client/src/index.ts": "
|
|
7
|
+
"packages/content-api-client/src/index.ts": "fb4f3558f3dcae528ee15bb5bf2e38146abdb0cb5b209f6309032dd85a8238f9",
|
|
8
8
|
"packages/content-api-client/src/lib/content-api-client.ts": "c67859ee6a586538976842467938915be2340f19fc058eb9ce3c35ca1d34f2dd",
|
|
9
9
|
"packages/content-api-client/src/page-status.ts": "f15ee1b82a8644b09f8cac54051f60140661afa4aff5ca1d329883f3025889d0",
|
|
10
10
|
"packages/content-api-client/src/test-helpers.ts": "9bd0488bd651f6adcc7e117fe069609c82da446ec20d5cdfab3348651ac2b097",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { AssetEntry, AssetUsage, ContentData, ContentEntry, ContentIdentity, ContentListResult, ContentManifest, ContentMeta, ContentMetaPatch, ContentType, CreateResult, DataBindingConfig, DataCollectionEntry, DataContext, DataEditable, DeleteResult, EditorDataBindings, FolderListing, FolderTreeNode, FragmentEditable, HostPageMeta, LocaleVersion, LocalizedEntry, LocalizedManifest, MDXCompileResponse, MDXHeading, PageEditable, PageReference, PathnameValidationReason, PathnameValidationResult, SitesConfig, UpdateResult, } from '@conloca/content-api';
|
|
2
|
-
export { ErrorCodes, formatFileSize, IMAGE_EXTENSION_MIME, isContentPublished, localesOf, metaString, normalizeAndValidatePathname, pageReferenceOf, } from '@conloca/content-api';
|
|
3
|
-
export { EDITOR_HOST_PROTOCOL, EDITOR_HOST_PROTOCOLS, type EditorFrameFailure, type EditorHostPageData, } from '@conloca/content-api/editor-host';
|
|
2
|
+
export { DEFAULT_ACCEPTED_FORMATS, DEFAULT_MAX_FILE_SIZE, DRAFT_MEDIA_REF_BASE, draftMediaRef, draftMediaRefPath, ErrorCodes, formatFileSize, IMAGE_EXTENSION_MIME, importRefusal, importTooLargeRefusal, isContentPublished, JPEG_FALLBACK_QUALITY, localesOf, MAX_IMAGE_EDGE, mediaRefPath, metaString, normalizeAndValidatePathname, pageReferenceOf, tooLargeRefusal, unreadableImageRefusal, unsupportedTypeRefusal, VIDEO_EXTENSIONS, videoRefusal, WEBP_QUALITY, } from '@conloca/content-api';
|
|
3
|
+
export { EDITOR_HOST_PROTOCOL, EDITOR_HOST_PROTOCOLS, EDITOR_ROUTE_RE, type EditorFrameFailure, type EditorHostPageData, isEditorRoute, ROUTES_MAX, routesOf, SITE_ID_RE, } from '@conloca/content-api/editor-host';
|
|
4
4
|
export * from './client.js';
|
|
5
5
|
export * from './hooks.js';
|
|
6
6
|
export { type PageStatus, pageStatusOf } from './page-status.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,WAAW,EACX,YAAY,GACb,MAAM,sBAAsB,CAAC;AAK9B,OAAO,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,4BAA4B,EAC5B,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,WAAW,EACX,YAAY,GACb,MAAM,sBAAsB,CAAC;AAK9B,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,YAAY,EACZ,UAAU,EACV,4BAA4B,EAC5B,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,YAAY,GACb,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,UAAU,GACX,MAAM,kCAAkC,CAAC;AAE1C,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// `dataEditableSchema` / `fragmentEditableSchema` were only ever introspected to
|
|
3
3
|
// build a form; their form records live in `@conloca/cms-spa`, and the shapes
|
|
4
4
|
// are validated by `@conloca/content-api/schemas`' generated validators.
|
|
5
|
-
export { ErrorCodes, formatFileSize, IMAGE_EXTENSION_MIME, isContentPublished, localesOf, metaString, normalizeAndValidatePathname, pageReferenceOf, } from '@conloca/content-api';
|
|
6
|
-
export { EDITOR_HOST_PROTOCOL, EDITOR_HOST_PROTOCOLS, } from '@conloca/content-api/editor-host';
|
|
5
|
+
export { DEFAULT_ACCEPTED_FORMATS, DEFAULT_MAX_FILE_SIZE, DRAFT_MEDIA_REF_BASE, draftMediaRef, draftMediaRefPath, ErrorCodes, formatFileSize, IMAGE_EXTENSION_MIME, importRefusal, importTooLargeRefusal, isContentPublished, JPEG_FALLBACK_QUALITY, localesOf, MAX_IMAGE_EDGE, mediaRefPath, metaString, normalizeAndValidatePathname, pageReferenceOf, tooLargeRefusal, unreadableImageRefusal, unsupportedTypeRefusal, VIDEO_EXTENSIONS, videoRefusal, WEBP_QUALITY, } from '@conloca/content-api';
|
|
6
|
+
export { EDITOR_HOST_PROTOCOL, EDITOR_HOST_PROTOCOLS, EDITOR_ROUTE_RE, isEditorRoute, ROUTES_MAX, routesOf, SITE_ID_RE, } from '@conloca/content-api/editor-host';
|
|
7
7
|
export * from './client.js';
|
|
8
8
|
export * from './hooks.js';
|
|
9
9
|
export { pageStatusOf } from './page-status.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmCA,kEAAkE;AAClE,iFAAiF;AACjF,8EAA8E;AAC9E,yEAAyE;AACzE,OAAO,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,4BAA4B,EAC5B,eAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmCA,kEAAkE;AAClE,iFAAiF;AACjF,8EAA8E;AAC9E,yEAAyE;AACzE,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,YAAY,EACZ,UAAU,EACV,4BAA4B,EAC5B,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,YAAY,GACb,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EAGf,aAAa,EACb,UAAU,EACV,QAAQ,EACR,UAAU,GACX,MAAM,kCAAkC,CAAC;AAE1C,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conloca/content-api-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "nx run content-api-client:test --outputStyle=stream"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@conloca/content-api": "0.2.
|
|
38
|
+
"@conloca/content-api": "0.2.4",
|
|
39
39
|
"@tanstack/react-query": "^5.102.8",
|
|
40
40
|
"tslib": "^2.8.1"
|
|
41
41
|
},
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"nx": {
|
|
52
52
|
"targets": {
|
|
53
|
-
"clean": {},
|
|
54
53
|
"lint": {},
|
|
55
54
|
"test": {
|
|
56
55
|
"executor": "@smoothbricks/nx-plugin:bounded-exec",
|
package/src/index.ts
CHANGED
|
@@ -38,21 +38,42 @@ export type {
|
|
|
38
38
|
// build a form; their form records live in `@conloca/cms-spa`, and the shapes
|
|
39
39
|
// are validated by `@conloca/content-api/schemas`' generated validators.
|
|
40
40
|
export {
|
|
41
|
+
DEFAULT_ACCEPTED_FORMATS,
|
|
42
|
+
DEFAULT_MAX_FILE_SIZE,
|
|
43
|
+
DRAFT_MEDIA_REF_BASE,
|
|
44
|
+
draftMediaRef,
|
|
45
|
+
draftMediaRefPath,
|
|
41
46
|
ErrorCodes,
|
|
42
47
|
formatFileSize,
|
|
43
48
|
IMAGE_EXTENSION_MIME,
|
|
49
|
+
importRefusal,
|
|
50
|
+
importTooLargeRefusal,
|
|
44
51
|
isContentPublished,
|
|
52
|
+
JPEG_FALLBACK_QUALITY,
|
|
45
53
|
localesOf,
|
|
54
|
+
MAX_IMAGE_EDGE,
|
|
55
|
+
mediaRefPath,
|
|
46
56
|
metaString,
|
|
47
57
|
normalizeAndValidatePathname,
|
|
48
58
|
pageReferenceOf,
|
|
59
|
+
tooLargeRefusal,
|
|
60
|
+
unreadableImageRefusal,
|
|
61
|
+
unsupportedTypeRefusal,
|
|
62
|
+
VIDEO_EXTENSIONS,
|
|
63
|
+
videoRefusal,
|
|
64
|
+
WEBP_QUALITY,
|
|
49
65
|
} from '@conloca/content-api';
|
|
50
66
|
|
|
51
67
|
export {
|
|
52
68
|
EDITOR_HOST_PROTOCOL,
|
|
53
69
|
EDITOR_HOST_PROTOCOLS,
|
|
70
|
+
EDITOR_ROUTE_RE,
|
|
54
71
|
type EditorFrameFailure,
|
|
55
72
|
type EditorHostPageData,
|
|
73
|
+
isEditorRoute,
|
|
74
|
+
ROUTES_MAX,
|
|
75
|
+
routesOf,
|
|
76
|
+
SITE_ID_RE,
|
|
56
77
|
} from '@conloca/content-api/editor-host';
|
|
57
78
|
|
|
58
79
|
export * from './client.js';
|