@crombolo/crombolo 0.33.0 → 0.34.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/package.json +16 -14
- package/src/bundle.ts +40 -0
- package/src/host.ts +45 -0
- package/src/index.ts +79 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/crombolo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"crombolo": {
|
|
5
5
|
"migrations": "compatible"
|
|
6
6
|
},
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"type": "module",
|
|
33
33
|
"exports": {
|
|
34
34
|
".": "./src/index.ts",
|
|
35
|
+
"./bundle": "./src/bundle.ts",
|
|
36
|
+
"./host": "./src/host.ts",
|
|
35
37
|
"./branding": "./src/branding.ts",
|
|
36
38
|
"./jsx-runtime": "./src/jsx-runtime.ts",
|
|
37
39
|
"./jsx-dev-runtime": "./src/jsx-runtime.ts",
|
|
@@ -47,19 +49,19 @@
|
|
|
47
49
|
"NOTICE"
|
|
48
50
|
],
|
|
49
51
|
"dependencies": {
|
|
50
|
-
"@crombolo/api-delivery": "0.
|
|
51
|
-
"@crombolo/api-management": "0.
|
|
52
|
-
"@crombolo/auth": "0.
|
|
52
|
+
"@crombolo/api-delivery": "0.34.0",
|
|
53
|
+
"@crombolo/api-management": "0.34.0",
|
|
54
|
+
"@crombolo/auth": "0.34.0",
|
|
53
55
|
"@crombolo/backoffice-dist": "18.2.0",
|
|
54
|
-
"@crombolo/backoffice-host": "0.
|
|
55
|
-
"@crombolo/cli": "0.
|
|
56
|
-
"@crombolo/content": "0.
|
|
57
|
-
"@crombolo/contracts": "0.
|
|
58
|
-
"@crombolo/core": "0.
|
|
59
|
-
"@crombolo/data": "0.
|
|
60
|
-
"@crombolo/render": "0.
|
|
61
|
-
"@crombolo/schema": "0.
|
|
62
|
-
"@crombolo/server": "0.
|
|
63
|
-
"@crombolo/transfer": "0.
|
|
56
|
+
"@crombolo/backoffice-host": "0.34.0",
|
|
57
|
+
"@crombolo/cli": "0.34.0",
|
|
58
|
+
"@crombolo/content": "0.34.0",
|
|
59
|
+
"@crombolo/contracts": "0.34.0",
|
|
60
|
+
"@crombolo/core": "0.34.0",
|
|
61
|
+
"@crombolo/data": "0.34.0",
|
|
62
|
+
"@crombolo/render": "0.34.0",
|
|
63
|
+
"@crombolo/schema": "0.34.0",
|
|
64
|
+
"@crombolo/server": "0.34.0",
|
|
65
|
+
"@crombolo/transfer": "0.34.0"
|
|
64
66
|
}
|
|
65
67
|
}
|
package/src/bundle.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The supported API for a server bundle's author (story 173): what a bundle's
|
|
3
|
+
* factory returns, what its handlers are given, and the builder for tables of
|
|
4
|
+
* its own. `docs/api.md`, and `docs/bundles.md` Part 3.
|
|
5
|
+
*
|
|
6
|
+
* A wired bundle is trusted code in the server process; this is a stability
|
|
7
|
+
* boundary, not a sandbox.
|
|
8
|
+
*/
|
|
9
|
+
export {
|
|
10
|
+
assertBundleTables,
|
|
11
|
+
type BundleStep,
|
|
12
|
+
type BundleTables,
|
|
13
|
+
type BundleTablesCapability,
|
|
14
|
+
bundleTablesCompatibility,
|
|
15
|
+
defineBundleTables,
|
|
16
|
+
type TableHandle,
|
|
17
|
+
type Where,
|
|
18
|
+
} from '@crombolo/data'
|
|
19
|
+
export type {
|
|
20
|
+
AppAlias,
|
|
21
|
+
BundleCapability,
|
|
22
|
+
BundleDocuments,
|
|
23
|
+
BundleEventHandler,
|
|
24
|
+
BundleEvents,
|
|
25
|
+
BundleForms,
|
|
26
|
+
BundleHost,
|
|
27
|
+
BundleIdentityProviders,
|
|
28
|
+
BundleLog,
|
|
29
|
+
BundleMethod,
|
|
30
|
+
BundleRedirectInput,
|
|
31
|
+
BundleRedirectRule,
|
|
32
|
+
BundleRedirects,
|
|
33
|
+
BundleRequest,
|
|
34
|
+
BundleSection,
|
|
35
|
+
ExtensionSectionAlias,
|
|
36
|
+
Principal,
|
|
37
|
+
ProviderOverrideInput,
|
|
38
|
+
ServerBundle,
|
|
39
|
+
ServerBundleRoute,
|
|
40
|
+
} from '@crombolo/server'
|
package/src/host.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The supported API for whoever runs sites (story 173): booting a site from
|
|
3
|
+
* its config, the stores it keeps media and schema in, checking and installing
|
|
4
|
+
* a site's bundles and code, and the upgrade, import and export a deploy runs.
|
|
5
|
+
* `docs/api.md`.
|
|
6
|
+
*/
|
|
7
|
+
export type { BundlePackage, CromboloField, PackageJson } from '@crombolo/backoffice-host'
|
|
8
|
+
export { peerRangeProblem, validateBundlePackage } from '@crombolo/backoffice-host'
|
|
9
|
+
export {
|
|
10
|
+
contentImport,
|
|
11
|
+
findTemplate,
|
|
12
|
+
type SiteTemplate,
|
|
13
|
+
siteExport,
|
|
14
|
+
type UpgradePlanResult,
|
|
15
|
+
upgradeFix,
|
|
16
|
+
upgradePlan,
|
|
17
|
+
} from '@crombolo/cli'
|
|
18
|
+
export { type LiveNode, liveNodes } from '@crombolo/data'
|
|
19
|
+
export {
|
|
20
|
+
type AzureMediaStoreOptions,
|
|
21
|
+
type AzureSchemaStoreOptions,
|
|
22
|
+
azureMediaStore,
|
|
23
|
+
azureSchemaStore,
|
|
24
|
+
type BundleCodeCheck,
|
|
25
|
+
type BundleCodeInstall,
|
|
26
|
+
type BundleCodeOptions,
|
|
27
|
+
type BundleReload,
|
|
28
|
+
type CromboloConfig,
|
|
29
|
+
checkBundleCode,
|
|
30
|
+
createServer,
|
|
31
|
+
fileSystemMediaStore,
|
|
32
|
+
installBundleCode,
|
|
33
|
+
loadConfig,
|
|
34
|
+
type MediaStore,
|
|
35
|
+
mediaStoreFor,
|
|
36
|
+
type ReloadedBundle,
|
|
37
|
+
type S3MediaStoreOptions,
|
|
38
|
+
type S3SchemaStoreOptions,
|
|
39
|
+
type SchemaStore,
|
|
40
|
+
type ServerHandle,
|
|
41
|
+
s3MediaStore,
|
|
42
|
+
s3SchemaStore,
|
|
43
|
+
VERSION,
|
|
44
|
+
} from '@crombolo/server'
|
|
45
|
+
export { cromboloServer } from './index.ts'
|
package/src/index.ts
CHANGED
|
@@ -15,10 +15,6 @@ import {
|
|
|
15
15
|
type ServerHandle,
|
|
16
16
|
} from '@crombolo/server'
|
|
17
17
|
|
|
18
|
-
// What a bundle's package.json declares; see `docs/bundles.md`.
|
|
19
|
-
export type { BundlePackage, CromboloField, PackageJson } from '@crombolo/backoffice-host'
|
|
20
|
-
// The CMS's own checks of a bundle package, for a host that installs them (story 181).
|
|
21
|
-
export { peerRangeProblem, validateBundlePackage } from '@crombolo/backoffice-host'
|
|
22
18
|
// A view reads a form definition and a submission's state; both are domain
|
|
23
19
|
// types, so they come from core rather than from the renderer.
|
|
24
20
|
export type {
|
|
@@ -33,18 +29,6 @@ export type {
|
|
|
33
29
|
SubmittedValues,
|
|
34
30
|
} from '@crombolo/core'
|
|
35
31
|
export { allFormFields, formFieldType, storingFormFields } from '@crombolo/core'
|
|
36
|
-
export {
|
|
37
|
-
assertBundleTables,
|
|
38
|
-
type BundleStep,
|
|
39
|
-
type BundleTables,
|
|
40
|
-
type BundleTablesCapability,
|
|
41
|
-
bundleTablesCompatibility,
|
|
42
|
-
defineBundleTables,
|
|
43
|
-
type LiveNode,
|
|
44
|
-
liveNodes,
|
|
45
|
-
type TableHandle,
|
|
46
|
-
type Where,
|
|
47
|
-
} from '@crombolo/data'
|
|
48
32
|
export type {
|
|
49
33
|
BlockGridArea,
|
|
50
34
|
BlockGridItem,
|
|
@@ -98,33 +82,14 @@ export {
|
|
|
98
82
|
usePage,
|
|
99
83
|
} from '@crombolo/render'
|
|
100
84
|
export type { Child } from '@crombolo/render/jsx-runtime'
|
|
101
|
-
// A site's code from its bundle, checked and installed by a host in its own process (story 192).
|
|
102
85
|
export {
|
|
103
|
-
// What a bundle's server half is written against; see `docs/bundles.md`.
|
|
104
|
-
type AppAlias,
|
|
105
86
|
type AzureMediaStoreOptions,
|
|
106
87
|
type AzureSchemaStoreOptions,
|
|
107
88
|
awsIdentityCenter,
|
|
108
89
|
azureMediaStore,
|
|
109
90
|
azureSchemaStore,
|
|
110
|
-
type BundleCapability,
|
|
111
|
-
type BundleCodeCheck,
|
|
112
|
-
type BundleCodeInstall,
|
|
113
|
-
type BundleCodeOptions,
|
|
114
|
-
type BundleDocuments,
|
|
115
|
-
type BundleHost,
|
|
116
|
-
type BundleLog,
|
|
117
|
-
type BundleMethod,
|
|
118
|
-
type BundleRedirectInput,
|
|
119
|
-
type BundleRedirectRule,
|
|
120
|
-
type BundleRedirects,
|
|
121
|
-
type BundleReload,
|
|
122
|
-
type BundleRequest,
|
|
123
|
-
type BundleSection,
|
|
124
91
|
type CromboloConfig,
|
|
125
92
|
type CustomEmailOptions,
|
|
126
|
-
checkBundleCode,
|
|
127
|
-
createServer,
|
|
128
93
|
customEmail,
|
|
129
94
|
defineConfig,
|
|
130
95
|
type EmailAddress,
|
|
@@ -136,23 +101,17 @@ export {
|
|
|
136
101
|
fileSystemMediaStore,
|
|
137
102
|
type IdentityProvider,
|
|
138
103
|
type IdentityProviderOptions,
|
|
139
|
-
installBundleCode,
|
|
140
|
-
loadConfig,
|
|
141
104
|
logEmail,
|
|
142
105
|
type MediaStore,
|
|
143
106
|
mediaStoreFor,
|
|
144
107
|
oidc,
|
|
145
108
|
type PostmarkOptions,
|
|
146
|
-
type Principal,
|
|
147
109
|
postmarkEmail,
|
|
148
|
-
type ReloadedBundle,
|
|
149
110
|
type ResendOptions,
|
|
150
111
|
resendEmail,
|
|
151
112
|
type S3MediaStoreOptions,
|
|
152
113
|
type S3SchemaStoreOptions,
|
|
153
114
|
type SchemaStore,
|
|
154
|
-
type ServerBundle,
|
|
155
|
-
type ServerBundleRoute,
|
|
156
115
|
type ServerHandle,
|
|
157
116
|
type SesOptions,
|
|
158
117
|
s3MediaStore,
|
|
@@ -183,3 +142,82 @@ export async function cromboloServer(
|
|
|
183
142
|
await assertPortAvailable(config.port)
|
|
184
143
|
return createServer(config)
|
|
185
144
|
}
|
|
145
|
+
|
|
146
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
147
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
148
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
149
|
+
export type { BundlePackage, CromboloField, PackageJson } from '@crombolo/backoffice-host'
|
|
150
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
151
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
152
|
+
export { peerRangeProblem, validateBundlePackage } from '@crombolo/backoffice-host'
|
|
153
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
154
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
155
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
156
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
157
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
158
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
159
|
+
export type {
|
|
160
|
+
BundleStep,
|
|
161
|
+
BundleTables,
|
|
162
|
+
BundleTablesCapability,
|
|
163
|
+
LiveNode,
|
|
164
|
+
TableHandle,
|
|
165
|
+
Where,
|
|
166
|
+
} from '@crombolo/data'
|
|
167
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
168
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
169
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
170
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
171
|
+
export {
|
|
172
|
+
assertBundleTables,
|
|
173
|
+
bundleTablesCompatibility,
|
|
174
|
+
defineBundleTables,
|
|
175
|
+
liveNodes,
|
|
176
|
+
} from '@crombolo/data'
|
|
177
|
+
// Deprecated at the root since 0.34.0 (story 173): each still works here for one
|
|
178
|
+
// minor, and moves to the entry point its note names. `docs/api.md`.
|
|
179
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
180
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
181
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
182
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
183
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
184
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
185
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
186
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
187
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
188
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
189
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
190
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
191
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
192
|
+
/** @deprecated Import it from `@crombolo/crombolo/bundle`. */
|
|
193
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
194
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
195
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
196
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
197
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
198
|
+
export type {
|
|
199
|
+
AppAlias,
|
|
200
|
+
BundleCapability,
|
|
201
|
+
BundleCodeCheck,
|
|
202
|
+
BundleCodeInstall,
|
|
203
|
+
BundleCodeOptions,
|
|
204
|
+
BundleDocuments,
|
|
205
|
+
BundleHost,
|
|
206
|
+
BundleLog,
|
|
207
|
+
BundleMethod,
|
|
208
|
+
BundleRedirectInput,
|
|
209
|
+
BundleRedirectRule,
|
|
210
|
+
BundleRedirects,
|
|
211
|
+
BundleReload,
|
|
212
|
+
BundleRequest,
|
|
213
|
+
BundleSection,
|
|
214
|
+
Principal,
|
|
215
|
+
ReloadedBundle,
|
|
216
|
+
ServerBundle,
|
|
217
|
+
ServerBundleRoute,
|
|
218
|
+
} from '@crombolo/server'
|
|
219
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
220
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
221
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
222
|
+
/** @deprecated Import it from `@crombolo/crombolo/host`. */
|
|
223
|
+
export { checkBundleCode, createServer, installBundleCode, loadConfig } from '@crombolo/server'
|