@obelism/content 0.12.0 → 0.13.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/README.md +17 -0
- package/dist/bin/content.js +2 -1
- package/dist/bridge.d.mts +40 -1
- package/dist/bridge.d.mts.map +1 -1
- package/dist/bridge.d.ts +40 -1
- package/dist/bridge.d.ts.map +1 -1
- package/dist/bridge.global.js +59 -3
- package/dist/bridge.js +671 -34
- package/dist/bridge.mjs +671 -34
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/site.js +5 -1
- package/dist/site.mjs +5 -1
- package/dist/{types-hmpsikmo.d.ts → types-m3j4tltp.d.ts} +2 -2
- package/dist/{types-hmpsikmo.d.ts.map → types-m3j4tltp.d.ts.map} +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RichTextFormat, E as Entry, a as RedirectList, b as Redirect, c as EntryList, M as ModelFile, A as Asset, B as Block, I as ImproveBlock, d as EntryStub, e as RichTextNode } from './types-
|
|
2
|
-
export { C as ContentTypeDefinition, f as ContentTypeKind, g as Environment, F as FieldDefinition, h as FieldType, i as RichTextDocument, j as RichTextMark } from './types-
|
|
1
|
+
import { R as RichTextFormat, E as Entry, a as RedirectList, b as Redirect, c as EntryList, M as ModelFile, A as Asset, B as Block, I as ImproveBlock, d as EntryStub, e as RichTextNode } from './types-m3j4tltp.js';
|
|
2
|
+
export { C as ContentTypeDefinition, f as ContentTypeKind, g as Environment, F as FieldDefinition, h as FieldType, i as RichTextDocument, j as RichTextMark } from './types-m3j4tltp.js';
|
|
3
3
|
|
|
4
4
|
type ContentClientOptions = {
|
|
5
5
|
token: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RichTextFormat, E as Entry, a as RedirectList, b as Redirect, c as EntryList, M as ModelFile, A as Asset, B as Block, I as ImproveBlock, d as EntryStub, e as RichTextNode } from './types-
|
|
2
|
-
export { C as ContentTypeDefinition, f as ContentTypeKind, g as Environment, F as FieldDefinition, h as FieldType, i as RichTextDocument, j as RichTextMark } from './types-
|
|
1
|
+
import { R as RichTextFormat, E as Entry, a as RedirectList, b as Redirect, c as EntryList, M as ModelFile, A as Asset, B as Block, I as ImproveBlock, d as EntryStub, e as RichTextNode } from './types-m3j4tltp.js';
|
|
2
|
+
export { C as ContentTypeDefinition, f as ContentTypeKind, g as Environment, F as FieldDefinition, h as FieldType, i as RichTextDocument, j as RichTextMark } from './types-m3j4tltp.js';
|
|
3
3
|
|
|
4
4
|
type ContentClientOptions = {
|
|
5
5
|
token: string;
|
package/dist/site.js
CHANGED
|
@@ -82,6 +82,10 @@ const PROXY_ROUTES = [
|
|
|
82
82
|
method: 'GET',
|
|
83
83
|
pattern: /^session$/
|
|
84
84
|
},
|
|
85
|
+
{
|
|
86
|
+
method: 'GET',
|
|
87
|
+
pattern: /^pages$/
|
|
88
|
+
},
|
|
85
89
|
{
|
|
86
90
|
method: 'GET',
|
|
87
91
|
pattern: /^entries\/[\w-]+$/
|
|
@@ -92,7 +96,7 @@ const PROXY_ROUTES = [
|
|
|
92
96
|
},
|
|
93
97
|
{
|
|
94
98
|
method: 'POST',
|
|
95
|
-
pattern: /^entries\/[\w-]+\/(preview|prompt|save|publish)$/
|
|
99
|
+
pattern: /^entries\/[\w-]+\/(preview|prompt|view|apply|save|publish)$/
|
|
96
100
|
}
|
|
97
101
|
];
|
|
98
102
|
// The handler for everything under `basePath`. In Next.js:
|
package/dist/site.mjs
CHANGED
|
@@ -80,6 +80,10 @@ const PROXY_ROUTES = [
|
|
|
80
80
|
method: 'GET',
|
|
81
81
|
pattern: /^session$/
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
method: 'GET',
|
|
85
|
+
pattern: /^pages$/
|
|
86
|
+
},
|
|
83
87
|
{
|
|
84
88
|
method: 'GET',
|
|
85
89
|
pattern: /^entries\/[\w-]+$/
|
|
@@ -90,7 +94,7 @@ const PROXY_ROUTES = [
|
|
|
90
94
|
},
|
|
91
95
|
{
|
|
92
96
|
method: 'POST',
|
|
93
|
-
pattern: /^entries\/[\w-]+\/(preview|prompt|save|publish)$/
|
|
97
|
+
pattern: /^entries\/[\w-]+\/(preview|prompt|view|apply|save|publish)$/
|
|
94
98
|
}
|
|
95
99
|
];
|
|
96
100
|
// The handler for everything under `basePath`. In Next.js:
|
|
@@ -141,7 +141,7 @@ type ContentTypeDefinition = {
|
|
|
141
141
|
apiId: string;
|
|
142
142
|
name: string;
|
|
143
143
|
kind: ContentTypeKind;
|
|
144
|
-
description
|
|
144
|
+
description: string | null;
|
|
145
145
|
fields: FieldDefinition[];
|
|
146
146
|
};
|
|
147
147
|
type ModelFile = {
|
|
@@ -151,4 +151,4 @@ type ModelFile = {
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
export type { Asset as A, Block as B, ContentTypeDefinition as C, Entry as E, FieldDefinition as F, ImproveBlock as I, ModelFile as M, RichTextFormat as R, RedirectList as a, Redirect as b, EntryList as c, EntryStub as d, RichTextNode as e, ContentTypeKind as f, Environment as g, FieldType as h, RichTextDocument as i, RichTextMark as j };
|
|
154
|
-
//# sourceMappingURL=types-
|
|
154
|
+
//# sourceMappingURL=types-m3j4tltp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-m3j4tltp.d.ts","sources":["../src/types.ts"],"mappings":"AAAA,KAAK,WAAW;AAChB,KAAK,cAAc;AACnB,KAAK,KAAK;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B,kBAAkB,MAAM;AACxB;AACA;AACA;AACA;AACA;AACA,KAAK,KAAK,iBAAiB,MAAM,oBAAoB,MAAM;AAC3D;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA,KAAK,SAAS;AACd;AACA;AACA;AACA,KAAK,KAAK,iBAAiB,MAAM,oBAAoB,MAAM;AAC3D;AACA;AACA;AACA,KAAK,YAAY,gBAAgB,KAAK,GAAG,KAAK,IAAI,KAAK;AACvD;AACA;AACA,cAAc,MAAM;AACpB;AACA,KAAK,YAAY;AACjB;AACA,YAAY,MAAM;AAClB;AACA,KAAK,YAAY;AACjB;AACA,YAAY,MAAM;AAClB,cAAc,YAAY;AAC1B;AACA,YAAY,YAAY;AACxB;AACA,KAAK,gBAAgB,GAAG,YAAY;AACpC;AACA;AACA,KAAK,SAAS,gBAAgB,KAAK,GAAG,KAAK;AAC3C;AACA;AACA;AACA;AACA;AACA,KAAK,QAAQ;AACb;AACA;AACA;AACA;AACA,KAAK,YAAY;AACjB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,KAAK,eAAe;AACpB,KAAK,SAAS;AACd;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,eAAe,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,SAAS,GAAG,eAAe;AAChC,KAAK,qBAAqB;AAC1B;AACA;AACA,UAAU,eAAe;AACzB;AACA,YAAY,eAAe;AAC3B;AACA,KAAK,SAAS;AACd;AACA;AACA,kBAAkB,qBAAqB;AACvC;;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obelism/content",
|
|
3
3
|
"description": "Obelism Content SDK: the delivery API client, the visual editor bridge with prompt editing, editing on your own site, webhook verification, and the content model CLI",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
7
7
|
"headless-cms",
|