@selfhelp/shared 1.2.2 → 1.2.3

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.
@@ -1,4 +1,5 @@
1
- import { I as IStyleRegistryEntry } from '../styles.registry-DVGOrw1_.mjs';
1
+ export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.mjs';
2
+ import { I as IStyleRegistryEntry } from '../styles.registry-BDdxuQDR.mjs';
2
3
  import '../common-B96dASgu.mjs';
3
4
 
4
5
  /**
@@ -62,246 +63,6 @@ declare function assertPluginVersionSemantics(prevVersion: string | undefined, n
62
63
  hasMigration: boolean;
63
64
  }): void;
64
65
 
65
- /**
66
- * TypeScript mirror of `plugin.json` (the schema lives in
67
- * `sh-selfhelp_backend/docs/plugins/plugin-manifest.schema.json`). When
68
- * the JSON Schema changes, update these types and bump the
69
- * `@selfhelp/shared` minor version.
70
- */
71
- type IPluginManifestTrustLevel = 'official' | 'reviewed' | 'untrusted';
72
- /** Every privileged capability is deny-by-default. */
73
- type IPluginManifestCapability = 'backendBundle' | 'databaseMigrations' | 'readUsers' | 'writeUsers' | 'deleteUsers' | 'readDataTables' | 'writeDataTables' | 'deleteDataTables' | 'externalNetworkAccess' | 'scheduledJobs' | 'publicCallbacks' | 'adminPages' | 'frontendStyles' | 'mobileStyles' | 'realtimePublish' | 'fileUploads' | 'secretAccess' | 'lookupExtend' | 'lookupOwnGroup';
74
- interface IPluginManifestCompatibility {
75
- /** SemVer range for the SelfHelp CMS version (e.g. `^2.0`). */
76
- selfhelp: string;
77
- /** SemVer range for PHP runtime. */
78
- php?: string;
79
- /** SemVer range for Node runtime. */
80
- node?: string;
81
- /** SemVer range for React (web). */
82
- react?: string;
83
- /** SemVer range for React Native (mobile). */
84
- reactNative?: string;
85
- /** SemVer range for Expo SDK. */
86
- expoSdk?: string;
87
- }
88
- interface IPluginManifestDependency {
89
- /** Plugin id this plugin requires. */
90
- pluginId: string;
91
- /** Required SemVer range. */
92
- version: string;
93
- /** Optional / required dependency. */
94
- required: boolean;
95
- /**
96
- * When `required: false`, the plugin still works without the dep
97
- * but enables additional features when present.
98
- */
99
- featureFlag?: string;
100
- }
101
- interface IPluginManifestConflict {
102
- pluginId: string;
103
- /** SemVer range that conflicts. */
104
- version: string;
105
- reason: string;
106
- }
107
- interface IPluginManifestExternalHost {
108
- /** Wildcards allowed, e.g. `cdn.example.com` or `*.example.com`. */
109
- host: string;
110
- /** What is loaded — `script`, `style`, `font`, `image`, `iframe`, `fetch`. */
111
- type: 'script' | 'style' | 'font' | 'image' | 'iframe' | 'fetch';
112
- /** Reason for the external host (shown in admin UI). */
113
- reason: string;
114
- }
115
- interface IPluginManifestSecurity {
116
- trustLevel: IPluginManifestTrustLevel;
117
- capabilities: IPluginManifestCapability[];
118
- /** CSP rules the installer must add (only for `trustLevel !== 'untrusted'`). */
119
- cspRules?: {
120
- /** Maps a CSP directive to extra sources. */
121
- [directive: string]: string[];
122
- };
123
- /** External hosts the plugin will load assets/data from. */
124
- externalHosts?: IPluginManifestExternalHost[];
125
- /** Path to file containing checksum/signature, optional. */
126
- signaturePath?: string;
127
- }
128
- interface IPluginManifestDataAccess {
129
- /**
130
- * Tables the plugin reads. May be `dataTable:*` for any plugin-owned
131
- * data table, `lookup:<typeCode>` for lookup reads, `dataTable:my`
132
- * for tables created by this plugin.
133
- */
134
- read?: string[];
135
- /** Tables the plugin writes. */
136
- write?: string[];
137
- /** Tables the plugin deletes (rare; requires capability). */
138
- delete?: string[];
139
- }
140
- interface IPluginManifestRealtimeTopic {
141
- /** Topic key, scoped to this plugin. Example: `survey-response`. */
142
- key: string;
143
- /** Human description shown in admin UI. */
144
- description: string;
145
- /** Permission required to subscribe; resolved via `PluginRealtimePermissionResolver`. */
146
- requiredPermission?: string;
147
- /** JSON Schema path of the topic payload. */
148
- payloadSchemaPath?: string;
149
- }
150
- interface IPluginManifestFeatureFlag {
151
- key: string;
152
- description: string;
153
- /** Default state when no `plugin_feature_flags` row exists. */
154
- defaultEnabled: boolean;
155
- /** Optional capability gate; flag cannot be turned on without it. */
156
- capability?: IPluginManifestCapability;
157
- }
158
- interface IPluginManifestLookupExtension {
159
- /** Lookup type code, e.g. `survey_question_type`. */
160
- typeCode: string;
161
- /** Whether the plugin OWNS the type code or only extends it. */
162
- ownership: 'plugin_extendable' | 'plugin_owned';
163
- entries: {
164
- code: string;
165
- value: string;
166
- description?: string;
167
- }[];
168
- }
169
- interface IPluginManifestPermission {
170
- /** Permission key, namespaced like `surveyjs.surveys.manage`. */
171
- key: string;
172
- description: string;
173
- /** Optional default role keys the permission is granted to. */
174
- defaultRoles?: string[];
175
- }
176
- interface IPluginManifestStyle {
177
- /** Style name (used as `style_name` discriminator). */
178
- name: string;
179
- description: string;
180
- canHaveChildren: boolean;
181
- /** Optional capability requirement (e.g. `frontendStyles`). */
182
- capability?: IPluginManifestCapability;
183
- }
184
- interface IPluginManifestAdminPage {
185
- /** Slug under `/admin/plugins-host/{pluginId}/`. */
186
- slug: string;
187
- /** Menu label. */
188
- label: string;
189
- /** Required permission key. */
190
- permission: string;
191
- /** Optional menu icon (Tabler icon name). */
192
- icon?: string;
193
- }
194
- interface IPluginManifestApiRoute {
195
- /** Symfony route name (must be namespaced with the plugin id). */
196
- name: string;
197
- /** HTTP path under `/cms-api/v1/plugins/{pluginId}/...`. */
198
- path: string;
199
- methods: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE')[];
200
- /** Permission key required. */
201
- permission?: string;
202
- }
203
- interface IPluginManifestScheduledJob {
204
- /** Job type key. */
205
- type: string;
206
- description: string;
207
- /** Capability gate (always requires `scheduledJobs`). */
208
- capability: 'scheduledJobs';
209
- }
210
- interface IPluginManifestAsset {
211
- /** Source path within the plugin package. */
212
- src: string;
213
- /** Destination path under `/assets/plugins/{pluginId}/...`. */
214
- dest: string;
215
- /** Asset type. */
216
- type: 'script' | 'style' | 'font' | 'image' | 'other';
217
- }
218
- interface IPluginManifestHealth {
219
- /** Optional health-check endpoint name. */
220
- endpoint?: string;
221
- /** Health-check service id (resolved through Symfony). */
222
- serviceId?: string;
223
- }
224
- interface IPluginManifestMobile {
225
- /** npm package name of the mobile component bundle. */
226
- package: string;
227
- /** Required SemVer range. */
228
- version: string;
229
- /** Whether the mobile package only renders payloads (readonly). */
230
- readonly: boolean;
231
- }
232
- /**
233
- * Full `plugin.json` shape.
234
- */
235
- interface IPluginManifest {
236
- /** Plugin identifier, e.g. `sh2-shp-survey-js`. */
237
- id: string;
238
- /** Human-readable display name. */
239
- name: string;
240
- /** Short description. */
241
- description?: string;
242
- /** Plugin SemVer version. */
243
- version: string;
244
- /** Author / vendor. */
245
- author?: {
246
- name: string;
247
- email?: string;
248
- url?: string;
249
- };
250
- /** SPDX license id. */
251
- license?: string;
252
- /** Plugin homepage / repo URL. */
253
- homepage?: string;
254
- /** SDK contract version the plugin targets (e.g. `1.0`). */
255
- pluginApiVersion: string;
256
- /** Compatibility with the host stack. */
257
- compatibility: IPluginManifestCompatibility;
258
- /** Required + optional plugin dependencies. */
259
- dependencies?: IPluginManifestDependency[];
260
- /** Plugin conflicts. */
261
- conflicts?: IPluginManifestConflict[];
262
- /** Composer package (only for `trustLevel !== 'untrusted'`). */
263
- backend?: {
264
- package: string;
265
- bundleClass: string;
266
- migrationsNamespace?: string;
267
- };
268
- /** npm package for frontend. */
269
- frontend?: {
270
- package: string;
271
- version: string;
272
- };
273
- /** Optional mobile package. */
274
- mobile?: IPluginManifestMobile;
275
- /** Required security declarations. */
276
- security: IPluginManifestSecurity;
277
- /** Permissions the plugin contributes. */
278
- permissions?: IPluginManifestPermission[];
279
- /** Manifest-declared data access. */
280
- dataAccess?: IPluginManifestDataAccess;
281
- /** Realtime topics. */
282
- realtimeTopics?: IPluginManifestRealtimeTopic[];
283
- /** Feature flags. */
284
- featureFlags?: IPluginManifestFeatureFlag[];
285
- /** Lookup contributions. */
286
- lookups?: {
287
- extends?: IPluginManifestLookupExtension[];
288
- };
289
- /** Styles contributed to the registry. */
290
- styles?: IPluginManifestStyle[];
291
- /** Admin pages mounted under `/admin/plugins-host/{pluginId}/`. */
292
- adminPages?: IPluginManifestAdminPage[];
293
- /** Plugin-owned API routes. */
294
- apiRoutes?: IPluginManifestApiRoute[];
295
- /** Scheduled jobs. */
296
- scheduledJobs?: IPluginManifestScheduledJob[];
297
- /** Vendored assets. */
298
- assets?: IPluginManifestAsset[];
299
- /** Health-check declaration. */
300
- health?: IPluginManifestHealth;
301
- /** Optional metadata / labels. */
302
- labels?: Record<string, string>;
303
- }
304
-
305
66
  /**
306
67
  * TypeScript mirror of `registry.json` served by a plugin registry.
307
68
  * The host installer fetches registries (public and private), merges
@@ -1059,4 +820,4 @@ declare function isPluginRuntimeShimSpecifier(value: unknown): value is TPluginR
1059
820
  */
1060
821
  declare const PLUGIN_RUNTIME_IMPORT_MAP: Readonly<Record<TPluginRuntimeShimSpecifier, string>>;
1061
822
 
1062
- export { type IAdminPageDefinition, type IFieldRendererDefinition, type IMenuItemDefinition, type IMobilePluginApi, type IMobilePluginRegistration, type IPluginApi, type IPluginFeatureFlag, type IPluginFieldRendererProps, type IPluginHealthCheck, type IPluginLock, type IPluginLockEntry, type IPluginLockMigration, type IPluginLockMobileEntry, type IPluginManifest, type IPluginManifestAdminPage, type IPluginManifestApiRoute, type IPluginManifestAsset, type IPluginManifestCapability, type IPluginManifestCompatibility, type IPluginManifestConflict, type IPluginManifestDataAccess, type IPluginManifestDependency, type IPluginManifestExternalHost, type IPluginManifestFeatureFlag, type IPluginManifestHealth, type IPluginManifestLookupExtension, type IPluginManifestMobile, type IPluginManifestPermission, type IPluginManifestRealtimeTopic, type IPluginManifestScheduledJob, type IPluginManifestSecurity, type IPluginManifestStyle, type IPluginManifestTrustLevel, type IPluginRealtimePublisher, type IPluginRealtimeTopic, type IPluginRegistration, type IPluginRegistry, type IPluginRegistryEntry, type IPluginRegistryVersionEntry, type IRealtimeTransport, type IRichTextEditorAdapter, type IRichTextEditorAdapterOptions, type IRichTextEditorValue, type IStyleDefinition, type IUsePluginRealtimeOptions, type IUsePluginRealtimeResult, PLUGIN_API_VERSION, PLUGIN_RUNTIME_GLOBAL_KEY, PLUGIN_RUNTIME_IMPORT_MAP, PLUGIN_RUNTIME_SHIM_BASE_PATH, PLUGIN_RUNTIME_SHIM_SPECIFIERS, type TPluginRegistryChannel, type TPluginRuntimeShimSpecifier, type TRealtimeTransportFactory, assertCmsCompatibility, assertPluginApiVersion, assertPluginVersionSemantics, buildPluginRuntimeShimPath, compareSemver, defineMobilePlugin, definePlugin, definePluginRealtimeTopic, isPluginApiCompatible, isPluginRuntimeShimSpecifier, parseSemver, satisfiesSemverRange, usePluginRealtime };
823
+ export { type IAdminPageDefinition, type IFieldRendererDefinition, type IMenuItemDefinition, type IMobilePluginApi, type IMobilePluginRegistration, type IPluginApi, type IPluginFeatureFlag, type IPluginFieldRendererProps, type IPluginHealthCheck, type IPluginLock, type IPluginLockEntry, type IPluginLockMigration, type IPluginLockMobileEntry, type IPluginRealtimePublisher, type IPluginRealtimeTopic, type IPluginRegistration, type IPluginRegistry, type IPluginRegistryEntry, type IPluginRegistryVersionEntry, type IRealtimeTransport, type IRichTextEditorAdapter, type IRichTextEditorAdapterOptions, type IRichTextEditorValue, type IStyleDefinition, type IUsePluginRealtimeOptions, type IUsePluginRealtimeResult, PLUGIN_API_VERSION, PLUGIN_RUNTIME_GLOBAL_KEY, PLUGIN_RUNTIME_IMPORT_MAP, PLUGIN_RUNTIME_SHIM_BASE_PATH, PLUGIN_RUNTIME_SHIM_SPECIFIERS, type TPluginRegistryChannel, type TPluginRuntimeShimSpecifier, type TRealtimeTransportFactory, assertCmsCompatibility, assertPluginApiVersion, assertPluginVersionSemantics, buildPluginRuntimeShimPath, compareSemver, defineMobilePlugin, definePlugin, definePluginRealtimeTopic, isPluginApiCompatible, isPluginRuntimeShimSpecifier, parseSemver, satisfiesSemverRange, usePluginRealtime };
@@ -1,4 +1,5 @@
1
- import { I as IStyleRegistryEntry } from '../styles.registry-wVJpIkAh.js';
1
+ export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.js';
2
+ import { I as IStyleRegistryEntry } from '../styles.registry-BDk47JKd.js';
2
3
  import '../common-B96dASgu.js';
3
4
 
4
5
  /**
@@ -62,246 +63,6 @@ declare function assertPluginVersionSemantics(prevVersion: string | undefined, n
62
63
  hasMigration: boolean;
63
64
  }): void;
64
65
 
65
- /**
66
- * TypeScript mirror of `plugin.json` (the schema lives in
67
- * `sh-selfhelp_backend/docs/plugins/plugin-manifest.schema.json`). When
68
- * the JSON Schema changes, update these types and bump the
69
- * `@selfhelp/shared` minor version.
70
- */
71
- type IPluginManifestTrustLevel = 'official' | 'reviewed' | 'untrusted';
72
- /** Every privileged capability is deny-by-default. */
73
- type IPluginManifestCapability = 'backendBundle' | 'databaseMigrations' | 'readUsers' | 'writeUsers' | 'deleteUsers' | 'readDataTables' | 'writeDataTables' | 'deleteDataTables' | 'externalNetworkAccess' | 'scheduledJobs' | 'publicCallbacks' | 'adminPages' | 'frontendStyles' | 'mobileStyles' | 'realtimePublish' | 'fileUploads' | 'secretAccess' | 'lookupExtend' | 'lookupOwnGroup';
74
- interface IPluginManifestCompatibility {
75
- /** SemVer range for the SelfHelp CMS version (e.g. `^2.0`). */
76
- selfhelp: string;
77
- /** SemVer range for PHP runtime. */
78
- php?: string;
79
- /** SemVer range for Node runtime. */
80
- node?: string;
81
- /** SemVer range for React (web). */
82
- react?: string;
83
- /** SemVer range for React Native (mobile). */
84
- reactNative?: string;
85
- /** SemVer range for Expo SDK. */
86
- expoSdk?: string;
87
- }
88
- interface IPluginManifestDependency {
89
- /** Plugin id this plugin requires. */
90
- pluginId: string;
91
- /** Required SemVer range. */
92
- version: string;
93
- /** Optional / required dependency. */
94
- required: boolean;
95
- /**
96
- * When `required: false`, the plugin still works without the dep
97
- * but enables additional features when present.
98
- */
99
- featureFlag?: string;
100
- }
101
- interface IPluginManifestConflict {
102
- pluginId: string;
103
- /** SemVer range that conflicts. */
104
- version: string;
105
- reason: string;
106
- }
107
- interface IPluginManifestExternalHost {
108
- /** Wildcards allowed, e.g. `cdn.example.com` or `*.example.com`. */
109
- host: string;
110
- /** What is loaded — `script`, `style`, `font`, `image`, `iframe`, `fetch`. */
111
- type: 'script' | 'style' | 'font' | 'image' | 'iframe' | 'fetch';
112
- /** Reason for the external host (shown in admin UI). */
113
- reason: string;
114
- }
115
- interface IPluginManifestSecurity {
116
- trustLevel: IPluginManifestTrustLevel;
117
- capabilities: IPluginManifestCapability[];
118
- /** CSP rules the installer must add (only for `trustLevel !== 'untrusted'`). */
119
- cspRules?: {
120
- /** Maps a CSP directive to extra sources. */
121
- [directive: string]: string[];
122
- };
123
- /** External hosts the plugin will load assets/data from. */
124
- externalHosts?: IPluginManifestExternalHost[];
125
- /** Path to file containing checksum/signature, optional. */
126
- signaturePath?: string;
127
- }
128
- interface IPluginManifestDataAccess {
129
- /**
130
- * Tables the plugin reads. May be `dataTable:*` for any plugin-owned
131
- * data table, `lookup:<typeCode>` for lookup reads, `dataTable:my`
132
- * for tables created by this plugin.
133
- */
134
- read?: string[];
135
- /** Tables the plugin writes. */
136
- write?: string[];
137
- /** Tables the plugin deletes (rare; requires capability). */
138
- delete?: string[];
139
- }
140
- interface IPluginManifestRealtimeTopic {
141
- /** Topic key, scoped to this plugin. Example: `survey-response`. */
142
- key: string;
143
- /** Human description shown in admin UI. */
144
- description: string;
145
- /** Permission required to subscribe; resolved via `PluginRealtimePermissionResolver`. */
146
- requiredPermission?: string;
147
- /** JSON Schema path of the topic payload. */
148
- payloadSchemaPath?: string;
149
- }
150
- interface IPluginManifestFeatureFlag {
151
- key: string;
152
- description: string;
153
- /** Default state when no `plugin_feature_flags` row exists. */
154
- defaultEnabled: boolean;
155
- /** Optional capability gate; flag cannot be turned on without it. */
156
- capability?: IPluginManifestCapability;
157
- }
158
- interface IPluginManifestLookupExtension {
159
- /** Lookup type code, e.g. `survey_question_type`. */
160
- typeCode: string;
161
- /** Whether the plugin OWNS the type code or only extends it. */
162
- ownership: 'plugin_extendable' | 'plugin_owned';
163
- entries: {
164
- code: string;
165
- value: string;
166
- description?: string;
167
- }[];
168
- }
169
- interface IPluginManifestPermission {
170
- /** Permission key, namespaced like `surveyjs.surveys.manage`. */
171
- key: string;
172
- description: string;
173
- /** Optional default role keys the permission is granted to. */
174
- defaultRoles?: string[];
175
- }
176
- interface IPluginManifestStyle {
177
- /** Style name (used as `style_name` discriminator). */
178
- name: string;
179
- description: string;
180
- canHaveChildren: boolean;
181
- /** Optional capability requirement (e.g. `frontendStyles`). */
182
- capability?: IPluginManifestCapability;
183
- }
184
- interface IPluginManifestAdminPage {
185
- /** Slug under `/admin/plugins-host/{pluginId}/`. */
186
- slug: string;
187
- /** Menu label. */
188
- label: string;
189
- /** Required permission key. */
190
- permission: string;
191
- /** Optional menu icon (Tabler icon name). */
192
- icon?: string;
193
- }
194
- interface IPluginManifestApiRoute {
195
- /** Symfony route name (must be namespaced with the plugin id). */
196
- name: string;
197
- /** HTTP path under `/cms-api/v1/plugins/{pluginId}/...`. */
198
- path: string;
199
- methods: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE')[];
200
- /** Permission key required. */
201
- permission?: string;
202
- }
203
- interface IPluginManifestScheduledJob {
204
- /** Job type key. */
205
- type: string;
206
- description: string;
207
- /** Capability gate (always requires `scheduledJobs`). */
208
- capability: 'scheduledJobs';
209
- }
210
- interface IPluginManifestAsset {
211
- /** Source path within the plugin package. */
212
- src: string;
213
- /** Destination path under `/assets/plugins/{pluginId}/...`. */
214
- dest: string;
215
- /** Asset type. */
216
- type: 'script' | 'style' | 'font' | 'image' | 'other';
217
- }
218
- interface IPluginManifestHealth {
219
- /** Optional health-check endpoint name. */
220
- endpoint?: string;
221
- /** Health-check service id (resolved through Symfony). */
222
- serviceId?: string;
223
- }
224
- interface IPluginManifestMobile {
225
- /** npm package name of the mobile component bundle. */
226
- package: string;
227
- /** Required SemVer range. */
228
- version: string;
229
- /** Whether the mobile package only renders payloads (readonly). */
230
- readonly: boolean;
231
- }
232
- /**
233
- * Full `plugin.json` shape.
234
- */
235
- interface IPluginManifest {
236
- /** Plugin identifier, e.g. `sh2-shp-survey-js`. */
237
- id: string;
238
- /** Human-readable display name. */
239
- name: string;
240
- /** Short description. */
241
- description?: string;
242
- /** Plugin SemVer version. */
243
- version: string;
244
- /** Author / vendor. */
245
- author?: {
246
- name: string;
247
- email?: string;
248
- url?: string;
249
- };
250
- /** SPDX license id. */
251
- license?: string;
252
- /** Plugin homepage / repo URL. */
253
- homepage?: string;
254
- /** SDK contract version the plugin targets (e.g. `1.0`). */
255
- pluginApiVersion: string;
256
- /** Compatibility with the host stack. */
257
- compatibility: IPluginManifestCompatibility;
258
- /** Required + optional plugin dependencies. */
259
- dependencies?: IPluginManifestDependency[];
260
- /** Plugin conflicts. */
261
- conflicts?: IPluginManifestConflict[];
262
- /** Composer package (only for `trustLevel !== 'untrusted'`). */
263
- backend?: {
264
- package: string;
265
- bundleClass: string;
266
- migrationsNamespace?: string;
267
- };
268
- /** npm package for frontend. */
269
- frontend?: {
270
- package: string;
271
- version: string;
272
- };
273
- /** Optional mobile package. */
274
- mobile?: IPluginManifestMobile;
275
- /** Required security declarations. */
276
- security: IPluginManifestSecurity;
277
- /** Permissions the plugin contributes. */
278
- permissions?: IPluginManifestPermission[];
279
- /** Manifest-declared data access. */
280
- dataAccess?: IPluginManifestDataAccess;
281
- /** Realtime topics. */
282
- realtimeTopics?: IPluginManifestRealtimeTopic[];
283
- /** Feature flags. */
284
- featureFlags?: IPluginManifestFeatureFlag[];
285
- /** Lookup contributions. */
286
- lookups?: {
287
- extends?: IPluginManifestLookupExtension[];
288
- };
289
- /** Styles contributed to the registry. */
290
- styles?: IPluginManifestStyle[];
291
- /** Admin pages mounted under `/admin/plugins-host/{pluginId}/`. */
292
- adminPages?: IPluginManifestAdminPage[];
293
- /** Plugin-owned API routes. */
294
- apiRoutes?: IPluginManifestApiRoute[];
295
- /** Scheduled jobs. */
296
- scheduledJobs?: IPluginManifestScheduledJob[];
297
- /** Vendored assets. */
298
- assets?: IPluginManifestAsset[];
299
- /** Health-check declaration. */
300
- health?: IPluginManifestHealth;
301
- /** Optional metadata / labels. */
302
- labels?: Record<string, string>;
303
- }
304
-
305
66
  /**
306
67
  * TypeScript mirror of `registry.json` served by a plugin registry.
307
68
  * The host installer fetches registries (public and private), merges
@@ -1059,4 +820,4 @@ declare function isPluginRuntimeShimSpecifier(value: unknown): value is TPluginR
1059
820
  */
1060
821
  declare const PLUGIN_RUNTIME_IMPORT_MAP: Readonly<Record<TPluginRuntimeShimSpecifier, string>>;
1061
822
 
1062
- export { type IAdminPageDefinition, type IFieldRendererDefinition, type IMenuItemDefinition, type IMobilePluginApi, type IMobilePluginRegistration, type IPluginApi, type IPluginFeatureFlag, type IPluginFieldRendererProps, type IPluginHealthCheck, type IPluginLock, type IPluginLockEntry, type IPluginLockMigration, type IPluginLockMobileEntry, type IPluginManifest, type IPluginManifestAdminPage, type IPluginManifestApiRoute, type IPluginManifestAsset, type IPluginManifestCapability, type IPluginManifestCompatibility, type IPluginManifestConflict, type IPluginManifestDataAccess, type IPluginManifestDependency, type IPluginManifestExternalHost, type IPluginManifestFeatureFlag, type IPluginManifestHealth, type IPluginManifestLookupExtension, type IPluginManifestMobile, type IPluginManifestPermission, type IPluginManifestRealtimeTopic, type IPluginManifestScheduledJob, type IPluginManifestSecurity, type IPluginManifestStyle, type IPluginManifestTrustLevel, type IPluginRealtimePublisher, type IPluginRealtimeTopic, type IPluginRegistration, type IPluginRegistry, type IPluginRegistryEntry, type IPluginRegistryVersionEntry, type IRealtimeTransport, type IRichTextEditorAdapter, type IRichTextEditorAdapterOptions, type IRichTextEditorValue, type IStyleDefinition, type IUsePluginRealtimeOptions, type IUsePluginRealtimeResult, PLUGIN_API_VERSION, PLUGIN_RUNTIME_GLOBAL_KEY, PLUGIN_RUNTIME_IMPORT_MAP, PLUGIN_RUNTIME_SHIM_BASE_PATH, PLUGIN_RUNTIME_SHIM_SPECIFIERS, type TPluginRegistryChannel, type TPluginRuntimeShimSpecifier, type TRealtimeTransportFactory, assertCmsCompatibility, assertPluginApiVersion, assertPluginVersionSemantics, buildPluginRuntimeShimPath, compareSemver, defineMobilePlugin, definePlugin, definePluginRealtimeTopic, isPluginApiCompatible, isPluginRuntimeShimSpecifier, parseSemver, satisfiesSemverRange, usePluginRealtime };
823
+ export { type IAdminPageDefinition, type IFieldRendererDefinition, type IMenuItemDefinition, type IMobilePluginApi, type IMobilePluginRegistration, type IPluginApi, type IPluginFeatureFlag, type IPluginFieldRendererProps, type IPluginHealthCheck, type IPluginLock, type IPluginLockEntry, type IPluginLockMigration, type IPluginLockMobileEntry, type IPluginRealtimePublisher, type IPluginRealtimeTopic, type IPluginRegistration, type IPluginRegistry, type IPluginRegistryEntry, type IPluginRegistryVersionEntry, type IRealtimeTransport, type IRichTextEditorAdapter, type IRichTextEditorAdapterOptions, type IRichTextEditorValue, type IStyleDefinition, type IUsePluginRealtimeOptions, type IUsePluginRealtimeResult, PLUGIN_API_VERSION, PLUGIN_RUNTIME_GLOBAL_KEY, PLUGIN_RUNTIME_IMPORT_MAP, PLUGIN_RUNTIME_SHIM_BASE_PATH, PLUGIN_RUNTIME_SHIM_SPECIFIERS, type TPluginRegistryChannel, type TPluginRuntimeShimSpecifier, type TRealtimeTransportFactory, assertCmsCompatibility, assertPluginApiVersion, assertPluginVersionSemantics, buildPluginRuntimeShimPath, compareSemver, defineMobilePlugin, definePlugin, definePluginRealtimeTopic, isPluginApiCompatible, isPluginRuntimeShimSpecifier, parseSemver, satisfiesSemverRange, usePluginRealtime };
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-DVGOrw1_.mjs';
2
- export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-DVGOrw1_.mjs';
1
+ import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-BDdxuQDR.mjs';
2
+ export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-BDdxuQDR.mjs';
3
3
  import '../common-B96dASgu.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-wVJpIkAh.js';
2
- export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-wVJpIkAh.js';
1
+ import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-BDk47JKd.js';
2
+ export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-BDk47JKd.js';
3
3
  import '../common-B96dASgu.js';
4
4
 
5
5
  /**
@@ -9,6 +9,8 @@ interface ILoginStyle extends IStyleWithSpacing {
9
9
  alert_fail?: IContentField<string>;
10
10
  login_title?: IContentField<string>;
11
11
  type?: IContentField<string>;
12
+ /** Label of the link that opens the registration page. */
13
+ label_register?: IContentField<string>;
12
14
  }
13
15
  interface IRegisterStyle extends IStyleWithSpacing {
14
16
  style_name: 'register';
@@ -20,6 +22,14 @@ interface IRegisterStyle extends IStyleWithSpacing {
20
22
  title?: IContentField<string>;
21
23
  success?: IContentField<string>;
22
24
  open_registration?: IContentField<string>;
25
+ /** Label above the validation-code input (code-required mode only). */
26
+ label_code?: IContentField<string>;
27
+ /** Placeholder inside the validation-code input. */
28
+ code_placeholder?: IContentField<string>;
29
+ /** Label of the post-registration "return home" button. */
30
+ label_go_home?: IContentField<string>;
31
+ /** Label of the post-registration "open login" button. */
32
+ label_go_to_login?: IContentField<string>;
23
33
  }
24
34
  interface IValidateStyle extends IStyleWithSpacing {
25
35
  style_name: 'validate';
@@ -56,6 +66,15 @@ interface IValidateStyle extends IStyleWithSpacing {
56
66
  mantine_card_padding?: IContentField<string>;
57
67
  mantine_radius?: IContentField<TMantineRadius>;
58
68
  mantine_border?: IContentField<string>;
69
+ /** Activation lifecycle status text (shown after the registration email). */
70
+ loading_title?: IContentField<string>;
71
+ loading_text?: IContentField<string>;
72
+ error_title?: IContentField<string>;
73
+ error_heading?: IContentField<string>;
74
+ error_text?: IContentField<string>;
75
+ success_title?: IContentField<string>;
76
+ /** Countdown text; use {seconds} as the placeholder. */
77
+ redirect_text?: IContentField<string>;
59
78
  }
60
79
  interface IResetPasswordStyle extends IStyleWithSpacing {
61
80
  style_name: 'resetPassword';
@@ -9,6 +9,8 @@ interface ILoginStyle extends IStyleWithSpacing {
9
9
  alert_fail?: IContentField<string>;
10
10
  login_title?: IContentField<string>;
11
11
  type?: IContentField<string>;
12
+ /** Label of the link that opens the registration page. */
13
+ label_register?: IContentField<string>;
12
14
  }
13
15
  interface IRegisterStyle extends IStyleWithSpacing {
14
16
  style_name: 'register';
@@ -20,6 +22,14 @@ interface IRegisterStyle extends IStyleWithSpacing {
20
22
  title?: IContentField<string>;
21
23
  success?: IContentField<string>;
22
24
  open_registration?: IContentField<string>;
25
+ /** Label above the validation-code input (code-required mode only). */
26
+ label_code?: IContentField<string>;
27
+ /** Placeholder inside the validation-code input. */
28
+ code_placeholder?: IContentField<string>;
29
+ /** Label of the post-registration "return home" button. */
30
+ label_go_home?: IContentField<string>;
31
+ /** Label of the post-registration "open login" button. */
32
+ label_go_to_login?: IContentField<string>;
23
33
  }
24
34
  interface IValidateStyle extends IStyleWithSpacing {
25
35
  style_name: 'validate';
@@ -56,6 +66,15 @@ interface IValidateStyle extends IStyleWithSpacing {
56
66
  mantine_card_padding?: IContentField<string>;
57
67
  mantine_radius?: IContentField<TMantineRadius>;
58
68
  mantine_border?: IContentField<string>;
69
+ /** Activation lifecycle status text (shown after the registration email). */
70
+ loading_title?: IContentField<string>;
71
+ loading_text?: IContentField<string>;
72
+ error_title?: IContentField<string>;
73
+ error_heading?: IContentField<string>;
74
+ error_text?: IContentField<string>;
75
+ success_title?: IContentField<string>;
76
+ /** Countdown text; use {seconds} as the placeholder. */
77
+ redirect_text?: IContentField<string>;
59
78
  }
60
79
  interface IResetPasswordStyle extends IStyleWithSpacing {
61
80
  style_name: 'resetPassword';