@nextlyhq/plugin-sdk 0.0.2-alpha.68 → 0.0.2-alpha.70

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/admin.d.ts CHANGED
@@ -1,7 +1,3 @@
1
- export { AdminChromeLayer, ApiError, AutosaveStatus, BulkAction, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardProps, CardTitle, CellContext, CellRenderer, CellRendererDefinition, ChallengeResolveResult, ChallengeViewProps, Checkbox, ColumnProvider, ColumnTransform, ComponentPath, ConditionOperatorName, ConditionRange, ConditionRow, ConditionRowProps, ConditionSource, ConditionSourceOption, ConditionValue, CustomEditViewProps, DataTable, DataTableContext, DataTableProps, DataTableSelection, DataTableTarget, DataTableView, DataTableViewProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocumentIdentity, DocumentLocale, DocumentLockGates, DocumentStatus, DocumentViewProps, EDITABLE_VALIDATION_RULES, FieldDefaultOption, FieldDefaultValueInput, FieldDefaultValueInputProps, FieldOption, FieldOptionsEditor, FieldOptionsEditorProps, FieldShell, FieldShellProps, FieldShellRenderProps, FieldTypePicker, FieldTypePickerProps, FieldWidth, FormActions, FormActionsProps, FormSection, FormSectionProps, Grid, GridProps, InlineRichTextAttachment, InlineRichTextEditor, InlineRichTextRefusal, InlineRichTextSession, Input, Label, NextlyColumn, NextlyFieldSchema, NextlyFieldType, PILL_LABEL, PillState, PluginRouteInvalidation, PluginRouteMethod, PluginRouteRead, PluginRouteRequest, PluginRouteWrite, PluginRouteWriter, RichTextEditorKit, RowAction, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SingleDocument, Stack, StackProps, Stat, StatProps, Switch, Textarea, UseDocumentCheckpointOptions, UseDocumentCheckpointResult, ValidationIssue, ValidationNumberField, ValidationNumberFieldProps, ValidationRuleValues, ValidationRulesEditor, ValidationRulesEditorProps, apiErrorMessage, drawsAnyValidationRule, isApiError, loadInlineRichTextEditor, loadRichTextEditorKit, navigateWithinAdmin as navigateTo, operatorTakesValue, operatorsForType, pillStateFromForm, registerBulkAction, registerCellRenderer, registerColumns, registerComponent, registerComponents, registerKnownPlugin, registerRowAction, toastMutationResult, transformColumns, useDocumentCheckpoint, useDocumentIdentity, useDocumentLocale, useDocumentStatus, useEntryFieldsPanel, usePluginClientConfig, usePluginFieldTypeEntries, usePluginRoute, usePluginRouteMutation, useReportUnsavedWork, useSingleDocument, useSuppressAdminChrome, useUpdateSingleDocument, useUploadMedia, validationIssues, withOptionIds } from '@nextlyhq/admin';
2
- export { JsonObject, JsonValue, PluginAdminContributions, PluginAdminPage, PluginCollectionView, PluginDocumentView, PluginFieldTypeDocumentView, PluginMenuItem } from 'nextly';
3
- import 'nextly/db-operators';
4
- import 'nextly/route-path';
5
- import 'nextly/schema-extension';
6
- import 'nextly/testing';
7
- import 'nextly/widget-result';
1
+ import { JsonObject, JsonValue, PluginAdminContributions, PluginAdminPage, PluginCollectionView, PluginDocumentView, PluginFieldTypeDocumentView, PluginMenuItem } from "nextly";
2
+ import { ActionGroup, ActionPlacement, AdminChromeLayer, ApiError, AutosaveStatus, BeforeDocumentAction, BulkAction, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardProps, CardTitle, CellContext, CellRenderer, CellRendererDefinition, ChallengeResolveResult, ChallengeViewProps, Checkbox, ColumnProvider, ColumnTransform, ComponentPath, ConditionOperatorName, ConditionRange, ConditionRow, ConditionRowProps, ConditionSource, ConditionSourceOption, ConditionValue, CustomEditViewProps, DataTable, DataTableContext, DataTableProps, DataTableSelection, DataTableTarget, DataTableView, DataTableViewProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocumentAction, DocumentActionOutcome, DocumentActions, DocumentIdentity, DocumentLocale, DocumentLockGates, DocumentSaveState, DocumentStatus, DocumentViewProps, EDITABLE_VALIDATION_RULES, FieldDefaultOption, FieldDefaultValueInput, FieldDefaultValueInputProps, FieldOption, FieldOptionsEditor, FieldOptionsEditorProps, FieldShell, FieldShellProps, FieldShellRenderProps, FieldTypePicker, FieldTypePickerProps, FieldWidth, FormActions, FormActionsProps, FormSection, FormSectionProps, Grid, GridProps, InlineRichTextAttachment, InlineRichTextEditor, InlineRichTextRefusal, InlineRichTextSession, Input, Label, NextlyColumn, NextlyFieldSchema, NextlyFieldType, PILL_LABEL, PillState, PluginRouteInvalidation, PluginRouteMethod, PluginRouteRead, PluginRouteRequest, PluginRouteWrite, PluginRouteWriter, RichTextEditorKit, RowAction, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SingleDocument, Stack, StackProps, Stat, StatProps, SubmitRefusal, Switch, Textarea, UseDocumentCheckpointOptions, UseDocumentCheckpointResult, ValidationIssue, ValidationNumberField, ValidationNumberFieldProps, ValidationRuleValues, ValidationRulesEditor, ValidationRulesEditorProps, apiErrorMessage, drawsAnyValidationRule, isApiError, loadInlineRichTextEditor, loadRichTextEditorKit, navigateWithinAdmin as navigateTo, operatorTakesValue, operatorsForType, pillStateFromForm, registerBulkAction, registerCellRenderer, registerColumns, registerComponent, registerComponents, registerKnownPlugin, registerRowAction, toastMutationResult, transformColumns, useBeforeDocumentAction, useDocumentActions, useDocumentCheckpoint, useDocumentIdentity, useDocumentLocale, useDocumentStatus, useEntryFieldsPanel, usePluginClientConfig, usePluginFieldTypeEntries, usePluginRoute, usePluginRouteMutation, useReportUnsavedWork, useSingleDocument, useSuppressAdminChrome, useTrackedWrite, useUpdateSingleDocument, useUploadMedia, validationIssues, withOptionIds } from "@nextlyhq/admin";
3
+ export { type ActionGroup, type ActionPlacement, type AdminChromeLayer, type ApiError, type AutosaveStatus, type BeforeDocumentAction, type BulkAction, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, type CellContext, type CellRenderer, type CellRendererDefinition, type ChallengeResolveResult, type ChallengeViewProps, Checkbox, type ColumnProvider, type ColumnTransform, type ComponentPath, type ConditionOperatorName, type ConditionRange, ConditionRow, type ConditionRowProps, type ConditionSource, type ConditionSourceOption, type ConditionValue, type CustomEditViewProps, DataTable, type DataTableContext, type DataTableProps, type DataTableSelection, type DataTableTarget, DataTableView, type DataTableViewProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DocumentAction, type DocumentActionOutcome, type DocumentActions, type DocumentIdentity, type DocumentLocale, type DocumentLockGates, type DocumentSaveState, type DocumentStatus, type DocumentViewProps, EDITABLE_VALIDATION_RULES, type FieldDefaultOption, FieldDefaultValueInput, type FieldDefaultValueInputProps, type FieldOption, FieldOptionsEditor, type FieldOptionsEditorProps, FieldShell, type FieldShellProps, type FieldShellRenderProps, FieldTypePicker, type FieldTypePickerProps, type FieldWidth, FormActions, type FormActionsProps, FormSection, type FormSectionProps, Grid, type GridProps, type InlineRichTextAttachment, type InlineRichTextEditor, type InlineRichTextRefusal, type InlineRichTextSession, Input, type JsonObject, type JsonValue, Label, type NextlyColumn, type NextlyFieldSchema, type NextlyFieldType, PILL_LABEL, type PillState, type PluginAdminContributions, type PluginAdminPage, type PluginCollectionView, type PluginDocumentView, type PluginFieldTypeDocumentView, type PluginMenuItem, type PluginRouteInvalidation, type PluginRouteMethod, type PluginRouteRead, type PluginRouteRequest, type PluginRouteWrite, type PluginRouteWriter, type RichTextEditorKit, type RowAction, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, type SingleDocument, Stack, type StackProps, Stat, type StatProps, type SubmitRefusal, Switch, Textarea, type UseDocumentCheckpointOptions, type UseDocumentCheckpointResult, type ValidationIssue, ValidationNumberField, type ValidationNumberFieldProps, type ValidationRuleValues, ValidationRulesEditor, type ValidationRulesEditorProps, apiErrorMessage, drawsAnyValidationRule, isApiError, loadInlineRichTextEditor, loadRichTextEditorKit, navigateTo, operatorTakesValue, operatorsForType, pillStateFromForm, registerBulkAction, registerCellRenderer, registerColumns, registerComponent, registerComponents, registerKnownPlugin, registerRowAction, toastMutationResult, transformColumns, useBeforeDocumentAction, useDocumentActions, useDocumentCheckpoint, useDocumentIdentity, useDocumentLocale, useDocumentStatus, useEntryFieldsPanel, usePluginClientConfig, usePluginFieldTypeEntries, usePluginRoute, usePluginRouteMutation, useReportUnsavedWork, useSingleDocument, useSuppressAdminChrome, useTrackedWrite, useUpdateSingleDocument, useUploadMedia, validationIssues, withOptionIds };
package/dist/admin.mjs CHANGED
@@ -1,3 +1 @@
1
- export { Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ConditionRow, DataTable, DataTableView, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, EDITABLE_VALIDATION_RULES, FieldDefaultValueInput, FieldOptionsEditor, FieldShell, FieldTypePicker, FormActions, FormSection, Grid, Input, Label, PILL_LABEL, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Stack, Stat, Switch, Textarea, ValidationNumberField, ValidationRulesEditor, apiErrorMessage, drawsAnyValidationRule, isApiError, loadInlineRichTextEditor, loadRichTextEditorKit, navigateWithinAdmin as navigateTo, operatorTakesValue, operatorsForType, pillStateFromForm, registerBulkAction, registerCellRenderer, registerColumns, registerComponent, registerComponents, registerKnownPlugin, registerRowAction, toastMutationResult, transformColumns, useDocumentCheckpoint, useDocumentIdentity, useDocumentLocale, useDocumentStatus, useEntryFieldsPanel, usePluginClientConfig, usePluginFieldTypeEntries, usePluginRoute, usePluginRouteMutation, useReportUnsavedWork, useSingleDocument, useSuppressAdminChrome, useUpdateSingleDocument, useUploadMedia, validationIssues, withOptionIds } from '@nextlyhq/admin';
2
- //# sourceMappingURL=admin.mjs.map
3
- //# sourceMappingURL=admin.mjs.map
1
+ export { Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ConditionRow, DataTable, DataTableView, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, EDITABLE_VALIDATION_RULES, FieldDefaultValueInput, FieldOptionsEditor, FieldShell, FieldTypePicker, FormActions, FormSection, Grid, Input, Label, PILL_LABEL, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Stack, Stat, Switch, Textarea, ValidationNumberField, ValidationRulesEditor, apiErrorMessage, drawsAnyValidationRule, isApiError, loadInlineRichTextEditor, loadRichTextEditorKit, navigateWithinAdmin as navigateTo, operatorTakesValue, operatorsForType, pillStateFromForm, registerBulkAction, registerCellRenderer, registerColumns, registerComponent, registerComponents, registerKnownPlugin, registerRowAction, toastMutationResult, transformColumns, useBeforeDocumentAction, useDocumentActions, useDocumentCheckpoint, useDocumentIdentity, useDocumentLocale, useDocumentStatus, useEntryFieldsPanel, usePluginClientConfig, usePluginFieldTypeEntries, usePluginRoute, usePluginRouteMutation, useReportUnsavedWork, useSingleDocument, useSuppressAdminChrome, useTrackedWrite, useUpdateSingleDocument, useUploadMedia, validationIssues, withOptionIds } from "@nextlyhq/admin";
package/dist/blocks.d.ts CHANGED
@@ -1,36 +1,5 @@
1
- import { BlockDefinition as BlockDefinition$1, BlockRenderArgs as BlockRenderArgs$1 } from '@nextlyhq/blocks-engine';
2
- export { AnyBlockDefinition, BlockEditorMeta, BlockExample, BlockIcon, BlockIsland, BlockPart, BlockSeoContribution, BlockSeoImage, BlockVariation, ComponentPath, InferBlockProps, NodeStyles, PropSchema, SlotLock, SlotSpec, SupportDefinition } from '@nextlyhq/blocks-engine';
3
- import { ReactNode } from 'react';
4
-
5
- /**
6
- * Block authoring — the contracts a plugin contributing blocks to the page
7
- * builder needs.
8
- *
9
- * A subpath rather than the SDK's main entry, so a plugin that has nothing to
10
- * do with blocks never pulls the block engine into its type graph. The SDK
11
- * remains the single stable import surface a plugin author is offered; this
12
- * simply keeps a page-builder-specific vocabulary out of everyone else's way.
13
- *
14
- * The engine is a real dependency of this package rather than an optional peer,
15
- * because the types below are built on top of its own: they have to resolve for
16
- * an author who installed only the SDK, and under a strict `node_modules`
17
- * layout the page builder's copy is not reachable from their package. The
18
- * engine's registry is pinned to `globalThis`, so even a duplicated install
19
- * still reads and writes the one registry the page builder consumes.
20
- *
21
- * What an author writes is declared here rather than re-exported. `defineBlock`
22
- * and `BlockSupports` are this module's own so that `BlockSupportKeys` can be
23
- * augmented from a plugin's source, which only works for a module that plugin
24
- * can name.
25
- *
26
- * The registration side is not here. Contributing a block means calling the
27
- * page builder's own service — it is that plugin's registry, not core's — so
28
- * `blockRegistry` comes from `@nextlyhq/plugin-page-builder/blocks`, which is
29
- * also where a contributor already declares its `dependsOn`.
30
- *
31
- * @packageDocumentation
32
- */
33
-
1
+ import { AnyBlockDefinition, BlockDefinition as BlockDefinition$1, BlockEditorMeta, BlockExample, BlockIcon, BlockIsland, BlockPart, BlockRenderArgs as BlockRenderArgs$1, BlockSeoContribution, BlockSeoImage, BlockVariation, ComponentPath, InferBlockProps, NodeStyles, PropSchema, SlotLock, SlotSpec, SupportDefinition } from "@nextlyhq/blocks-engine";
2
+ import { ReactNode } from "react";
34
3
  /**
35
4
  * The support keys a block may declare.
36
5
  *
@@ -70,33 +39,33 @@ import { ReactNode } from 'react';
70
39
  *
71
40
  * @experimental Carried by the same freeze as `defineBlock`.
72
41
  */
73
- interface BlockSupportKeys {
74
- /** Padding and margin. */
75
- spacing: "margin" | "padding";
76
- /** Flow, alignment and gap. */
77
- layout: never;
78
- /** Width, height and their limits. */
79
- dimensions: never;
80
- /** Font, size, weight, line height and letter spacing. */
81
- typography: never;
82
- /** Text and link colours. */
83
- color: "text" | "link";
84
- /** Background colour, image and gradient. */
85
- background: "color" | "image" | "gradient";
86
- /** Border lines and corner rounding. */
87
- border: "line" | "radius";
88
- /** Box and text shadows. */
89
- shadow: never;
90
- /** Opacity, filters and transforms. */
91
- effects: never;
92
- /** Positioning and stacking. */
93
- position: never;
94
- /** Container-query behaviour. */
95
- container: never;
96
- /** Marker style on a list. */
97
- list: never;
98
- /** Author-written CSS on this block. Gates a capability, not a style group. */
99
- customCss: never;
42
+ export interface BlockSupportKeys {
43
+ /** Padding and margin. */
44
+ spacing: "margin" | "padding";
45
+ /** Flow, alignment and gap. */
46
+ layout: never;
47
+ /** Width, height and their limits. */
48
+ dimensions: never;
49
+ /** Font, size, weight, line height and letter spacing. */
50
+ typography: never;
51
+ /** Text and link colours. */
52
+ color: "text" | "link";
53
+ /** Background colour, image and gradient. */
54
+ background: "color" | "image" | "gradient";
55
+ /** Border lines and corner rounding. */
56
+ border: "line" | "radius";
57
+ /** Box and text shadows. */
58
+ shadow: never;
59
+ /** Opacity, filters and transforms. */
60
+ effects: never;
61
+ /** Positioning and stacking. */
62
+ position: never;
63
+ /** Container-query behaviour. */
64
+ container: never;
65
+ /** Marker style on a list. */
66
+ list: never;
67
+ /** Author-written CSS on this block. Gates a capability, not a style group. */
68
+ customCss: never;
100
69
  }
101
70
  /**
102
71
  * What one support key accepts, given the sub-flags it declares.
@@ -122,9 +91,7 @@ type SupportSetting<F> = [F] extends [never] ? boolean : [F] extends [string] ?
122
91
  *
123
92
  * @experimental Carried by the same freeze as `defineBlock`.
124
93
  */
125
- type BlockSupports = {
126
- [K in keyof BlockSupportKeys]?: SupportSetting<BlockSupportKeys[K]>;
127
- };
94
+ export type BlockSupports = { [K in keyof BlockSupportKeys]?: SupportSetting<BlockSupportKeys[K]>; };
128
95
  /**
129
96
  * Supports as written at a definition, with unknown keys refused.
130
97
  *
@@ -136,9 +103,7 @@ type BlockSupports = {
136
103
  *
137
104
  * Naming the offending key as `never` refuses it wherever it was written.
138
105
  */
139
- type ExactSupports<S> = S & {
140
- [K in Exclude<keyof S, keyof BlockSupportKeys>]: never;
141
- };
106
+ type ExactSupports<S> = S & { [K in Exclude<keyof S, keyof BlockSupportKeys>]: never; };
142
107
  /**
143
108
  * Everything a renderer makes available to every block it draws.
144
109
  *
@@ -164,9 +129,9 @@ type ExactSupports<S> = S & {
164
129
  *
165
130
  * @experimental Carried by the same freeze as `defineBlock`.
166
131
  */
167
- interface BlockRenderContext {
168
- /** The locale being rendered, when the renderer is rendering one. */
169
- locale?: string;
132
+ export interface BlockRenderContext {
133
+ /** The locale being rendered, when the renderer is rendering one. */
134
+ locale?: string;
170
135
  }
171
136
  /**
172
137
  * What a block's `render` receives.
@@ -180,25 +145,25 @@ interface BlockRenderContext {
180
145
  *
181
146
  * @experimental Carried by the same freeze as `defineBlock`.
182
147
  */
183
- interface BlockRenderArgs<P> extends Omit<BlockRenderArgs$1<P, BlockRenderContext>, "renderSlot"> {
184
- /**
185
- * Render one of this block's slots, optionally under a different context.
186
- *
187
- * `ReactNode` rather than the `ReactNode | Promise<ReactNode>` that `render`
188
- * returns, and the asymmetry is deliberate: this value is one a block places
189
- * into its own JSX, and that union is not a legal child under EITHER supported
190
- * peer. React 18 admits no promise at all; React 19 admits only
191
- * `Promise<AwaitedReactNode>`, a promise of a settled node, so a promise that
192
- * may itself yield a promise is refused there too. Widening here would move
193
- * the error onto every block that draws a slot.
194
- *
195
- * It still says what each peer can express, because React 19 counts
196
- * `Promise<AwaitedReactNode>` as a `ReactNode`: a renderer on 19 may hand back
197
- * a pending slot and the block places it unchanged. On 18 it may not, which
198
- * costs nothing, since an async block cannot be drawn under React 18's types
199
- * regardless — `<AsyncBlock />` is refused outright there.
200
- */
201
- renderSlot(this: void, name: string, ctx?: BlockRenderContext): ReactNode;
148
+ export interface BlockRenderArgs<P> extends Omit<BlockRenderArgs$1<P, BlockRenderContext>, "renderSlot"> {
149
+ /**
150
+ * Render one of this block's slots, optionally under a different context.
151
+ *
152
+ * `ReactNode` rather than the `ReactNode | Promise<ReactNode>` that `render`
153
+ * returns, and the asymmetry is deliberate: this value is one a block places
154
+ * into its own JSX, and that union is not a legal child under EITHER supported
155
+ * peer. React 18 admits no promise at all; React 19 admits only
156
+ * `Promise<AwaitedReactNode>`, a promise of a settled node, so a promise that
157
+ * may itself yield a promise is refused there too. Widening here would move
158
+ * the error onto every block that draws a slot.
159
+ *
160
+ * It still says what each peer can express, because React 19 counts
161
+ * `Promise<AwaitedReactNode>` as a `ReactNode`: a renderer on 19 may hand back
162
+ * a pending slot and the block places it unchanged. On 18 it may not, which
163
+ * costs nothing, since an async block cannot be drawn under React 18's types
164
+ * regardless — `<AsyncBlock />` is refused outright there.
165
+ */
166
+ renderSlot(this: void, name: string, ctx?: BlockRenderContext): ReactNode;
202
167
  }
203
168
  /**
204
169
  * One block type, as an author writes it.
@@ -210,18 +175,18 @@ interface BlockRenderArgs<P> extends Omit<BlockRenderArgs$1<P, BlockRenderContex
210
175
  *
211
176
  * @experimental Carried by the same freeze as `defineBlock`.
212
177
  */
213
- interface BlockDefinition<P extends object = Record<string, unknown>> extends Omit<BlockDefinition$1<P, BlockRenderContext>, "supports" | "render" | "conditionalSlots"> {
214
- supports?: BlockSupports;
215
- /**
216
- * Renders the block.
217
- *
218
- * The promise is spelled out rather than left to `ReactNode`. React 19 added
219
- * promises to that type and React 18 did not, and this package supports both,
220
- * so an async block would compile against one peer and be rejected by the
221
- * other. Naming it here makes the async contract mean the same thing across
222
- * the range this package declares.
223
- */
224
- render(args: BlockRenderArgs<P>): BlockRenderResult;
178
+ export interface BlockDefinition<P extends object = Record<string, unknown>> extends Omit<BlockDefinition$1<P, BlockRenderContext>, "supports" | "render" | "conditionalSlots"> {
179
+ supports?: BlockSupports;
180
+ /**
181
+ * Renders the block.
182
+ *
183
+ * The promise is spelled out rather than left to `ReactNode`. React 19 added
184
+ * promises to that type and React 18 did not, and this package supports both,
185
+ * so an async block would compile against one peer and be rejected by the
186
+ * other. Naming it here makes the async contract mean the same thing across
187
+ * the range this package declares.
188
+ */
189
+ render(args: BlockRenderArgs<P>): BlockRenderResult;
225
190
  }
226
191
  /**
227
192
  * Declare a block.
@@ -241,7 +206,7 @@ interface BlockDefinition<P extends object = Record<string, unknown>> extends Om
241
206
  * now. Until then a contributed block may need changes when the definition
242
207
  * shape settles.
243
208
  */
244
- declare function defineBlock<P extends object>(definition: BlockDefinition<P>): BlockDefinition<P>;
209
+ export declare function defineBlock<P extends object>(definition: BlockDefinition<P>): BlockDefinition<P>;
245
210
  /**
246
211
  * Supports settings meant to be shared between blocks.
247
212
  *
@@ -266,8 +231,7 @@ declare function defineBlock<P extends object>(definition: BlockDefinition<P>):
266
231
  *
267
232
  * @experimental Carried by the same freeze as `defineBlock`.
268
233
  */
269
- declare function blockSupports<S extends BlockSupports>(supports: ExactSupports<S>): BlockSupports;
270
-
234
+ export declare function blockSupports<S extends BlockSupports>(supports: ExactSupports<S>): BlockSupports;
271
235
  /**
272
236
  * What a block's `render` returns.
273
237
  *
@@ -285,6 +249,6 @@ declare function blockSupports<S extends BlockSupports>(supports: ExactSupports<
285
249
  *
286
250
  * @experimental Carried by the same freeze as `defineBlock`.
287
251
  */
288
- type BlockRenderResult = ReactNode | Promise<ReactNode>;
289
-
290
- export { type BlockDefinition, type BlockRenderArgs, type BlockRenderContext, type BlockRenderResult, type BlockSupportKeys, type BlockSupports, blockSupports, defineBlock };
252
+ export type BlockRenderResult = ReactNode | Promise<ReactNode>;
253
+ export type { AnyBlockDefinition, BlockEditorMeta, BlockExample, BlockIcon, BlockIsland, BlockPart, BlockSeoContribution, BlockSeoImage, BlockVariation, ComponentPath, InferBlockProps, NodeStyles, PropSchema, SlotLock, SlotSpec, SupportDefinition };
254
+ //# sourceMappingURL=blocks.d.ts.map
package/dist/blocks.mjs CHANGED
@@ -1,11 +1,52 @@
1
1
  // src/blocks.ts
2
+ /**
3
+ * Declare a block.
4
+ *
5
+ * Returns its argument. It exists to infer the prop type from what is written
6
+ * and to check the rest against the definition shape, which is what makes a
7
+ * mistyped prop name or an unknown support key a compile error rather than a
8
+ * boot one.
9
+ *
10
+ * There is deliberately no per-block context parameter. What a renderer
11
+ * provides is one description per app, and a block that needs something unusual
12
+ * declares it on `BlockRenderContext` where the whole app can see it. A block
13
+ * naming its own context would be asserting privately that it will be handed
14
+ * something, which nothing checks and no registry can honour.
15
+ *
16
+ * @experimental The block API is frozen at the end of the engine phase, not
17
+ * now. Until then a contributed block may need changes when the definition
18
+ * shape settles.
19
+ */
2
20
  function defineBlock(definition) {
3
- return definition;
21
+ return definition;
4
22
  }
23
+ /**
24
+ * Supports settings meant to be shared between blocks.
25
+ *
26
+ * Written straight into a definition, a typo is caught: TypeScript checks a
27
+ * literal for keys the target does not declare. Lifted into a variable first,
28
+ * it is not, because that check applies only where the literal is written. This
29
+ * puts the check back at the declaration, which is where the settings are.
30
+ *
31
+ * ```ts
32
+ * const layoutSupports = blockSupports({ spacing: true, layout: true });
33
+ * defineBlock<MyProps>({ …, supports: layoutSupports });
34
+ * ```
35
+ *
36
+ * `satisfies BlockSupports` does the same thing and needs nothing from this
37
+ * package; the helper exists because it reads as the obvious move and cannot be
38
+ * forgotten halfway through.
39
+ *
40
+ * It cannot live on `defineBlock` itself: catching this needs the supplied
41
+ * object's own keys inferred, and TypeScript infers nothing once any type
42
+ * argument is written by hand, so `defineBlock<MyProps>` — the form nearly
43
+ * every block uses — would stop checking anything at all.
44
+ *
45
+ * @experimental Carried by the same freeze as `defineBlock`.
46
+ */
5
47
  function blockSupports(supports) {
6
- return supports;
48
+ return supports;
7
49
  }
8
-
9
50
  export { blockSupports, defineBlock };
10
- //# sourceMappingURL=blocks.mjs.map
51
+
11
52
  //# sourceMappingURL=blocks.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/blocks.ts"],"names":[],"mappings":";AA2QO,SAAS,YACd,UAAA,EACoB;AACpB,EAAA,OAAO,UAAA;AACT;AA0BO,SAAS,cACd,QAAA,EACe;AACf,EAAA,OAAO,QAAA;AACT","file":"blocks.mjs","sourcesContent":["/**\n * Block authoring — the contracts a plugin contributing blocks to the page\n * builder needs.\n *\n * A subpath rather than the SDK's main entry, so a plugin that has nothing to\n * do with blocks never pulls the block engine into its type graph. The SDK\n * remains the single stable import surface a plugin author is offered; this\n * simply keeps a page-builder-specific vocabulary out of everyone else's way.\n *\n * The engine is a real dependency of this package rather than an optional peer,\n * because the types below are built on top of its own: they have to resolve for\n * an author who installed only the SDK, and under a strict `node_modules`\n * layout the page builder's copy is not reachable from their package. The\n * engine's registry is pinned to `globalThis`, so even a duplicated install\n * still reads and writes the one registry the page builder consumes.\n *\n * What an author writes is declared here rather than re-exported. `defineBlock`\n * and `BlockSupports` are this module's own so that `BlockSupportKeys` can be\n * augmented from a plugin's source, which only works for a module that plugin\n * can name.\n *\n * The registration side is not here. Contributing a block means calling the\n * page builder's own service — it is that plugin's registry, not core's — so\n * `blockRegistry` comes from `@nextlyhq/plugin-page-builder/blocks`, which is\n * also where a contributor already declares its `dependsOn`.\n *\n * @packageDocumentation\n */\n\nimport type {\n BlockDefinition as EngineBlockDefinition,\n BlockRenderArgs as EngineBlockRenderArgs,\n} from \"@nextlyhq/blocks-engine\";\nimport type { ReactNode } from \"react\";\n\n/**\n * The support keys a block may declare.\n *\n * Declared HERE rather than in the engine, and that placement is the whole\n * point. A module augmentation has to name a module that resolves from the file\n * doing the augmenting, and a plugin author installs this package: under a\n * strict `node_modules` layout the engine is a nested transitive dependency\n * their own source cannot name, so an augmentation pointed at it fails to\n * compile and the custom support silently never arrives.\n *\n * A plugin that calls `registerSupport()` adds its key to the vocabulary the\n * compiler checks against:\n *\n * ```ts\n * declare module \"@nextlyhq/plugin-sdk/blocks\" {\n * interface BlockSupportKeys {\n * animation: \"enter\" | \"exit\";\n * parallax: true;\n * }\n * }\n * ```\n *\n * Declaration merging rather than an index signature: an index signature accepts\n * every key, which is what leaves a misspelled `spaceing` to be found at boot,\n * in someone else's app, instead of while it is being written.\n *\n * One rule reads the value: a union of strings names the sub-flags the support\n * recognises, and anything else means the support is all-or-nothing. So a nested\n * typo is caught in the same breath as a top-level one — `{ spacing: { paddding:\n * true } }` enables nothing at all, and finding that out at boot is exactly what\n * this exists to prevent — while a support with no finer granularity can be\n * written the way it reads, as `never` or as `true`.\n *\n * The built-in keys are the style catalog's groups plus the capabilities that\n * have no catalog group of their own. A test holds both the keys and their\n * flags to what the registry actually accepts, so the two cannot drift.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport interface BlockSupportKeys {\n /** Padding and margin. */\n spacing: \"margin\" | \"padding\";\n /** Flow, alignment and gap. */\n layout: never;\n /** Width, height and their limits. */\n dimensions: never;\n /** Font, size, weight, line height and letter spacing. */\n typography: never;\n /** Text and link colours. */\n color: \"text\" | \"link\";\n /** Background colour, image and gradient. */\n background: \"color\" | \"image\" | \"gradient\";\n /** Border lines and corner rounding. */\n border: \"line\" | \"radius\";\n /** Box and text shadows. */\n shadow: never;\n /** Opacity, filters and transforms. */\n effects: never;\n /** Positioning and stacking. */\n position: never;\n /** Container-query behaviour. */\n container: never;\n /** Marker style on a list. */\n list: never;\n /** Author-written CSS on this block. Gates a capability, not a style group. */\n customCss: never;\n}\n\n/**\n * What one support key accepts, given the sub-flags it declares.\n *\n * The two cases are kept apart rather than both handed to `Record`, because\n * `Record` demands a property key and a support that declares no flags has none\n * to give. Feeding it either sentinel is unsound in opposite directions: `true`\n * is not a property key at all, so the mapped type stops instantiating and an\n * augmenting plugin's build fails on the declaration rather than on anything it\n * wrote; `never` produces `Partial<Record<never, boolean>>`, which is `{}`, and\n * `{}` accepts every object — so `{ layout: { typo: true } }` type-checks and is\n * refused only later, by the registry, at boot.\n *\n * `[F] extends [never]` is asked first and in tuple form. Bare `F extends never`\n * distributes and answers for the empty union rather than about it, and\n * `[never] extends [string]` is true, so a `never` reaching the string case\n * would rebuild the same `{}`.\n */\ntype SupportSetting<F> = [F] extends [never]\n ? boolean\n : [F] extends [string]\n ? boolean | Partial<Record<F & string, boolean>>\n : boolean;\n\n/**\n * Style capabilities a block opts into: `true` for a whole group, or an object\n * naming the sub-flags it wants.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport type BlockSupports = {\n [K in keyof BlockSupportKeys]?: SupportSetting<BlockSupportKeys[K]>;\n};\n\n/**\n * Supports as written at a definition, with unknown keys refused.\n *\n * TypeScript checks for excess properties only on a literal written in place,\n * so lifting settings into a shared object skips it: `const shared = { spacing:\n * true, spaceing: true }` assigns to `BlockSupports` without complaint, and the\n * typo survives to be caught at boot in someone else's app — which is the whole\n * failure this vocabulary exists to move earlier.\n *\n * Naming the offending key as `never` refuses it wherever it was written.\n */\ntype ExactSupports<S> = S & {\n [K in Exclude<keyof S, keyof BlockSupportKeys>]: never;\n};\n\n/**\n * Everything a renderer makes available to every block it draws.\n *\n * ONE description per app, rather than each block inventing its own. A block\n * author writes `defineBlock<MyProps>` and `ctx` is already typed as whatever\n * this app's renderer provides, with no type written by hand; a block that\n * needs something unusual has to add it here, which is an app-wide statement\n * anyone can see rather than a quiet assumption inside one file.\n *\n * A renderer declares what it supplies by augmenting this from its own package:\n *\n * ```ts\n * declare module \"@nextlyhq/plugin-sdk/blocks\" {\n * interface BlockRenderContext {\n * data?: DataProvider;\n * }\n * }\n * ```\n *\n * `locale` is here because every renderer of localized content has one, and a\n * block that varies its own output by language should not have to reach past\n * this interface to find out which.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport interface BlockRenderContext {\n /** The locale being rendered, when the renderer is rendering one. */\n locale?: string;\n}\n\n/**\n * What a block's `render` receives.\n *\n * The engine's own version leaves both the context and the output unnamed,\n * because the engine serves any renderer and cannot know either. This one names\n * both: the context is what THIS app's renderer provides, which is what lets a\n * block read `ctx.data` with no type written by hand, and the output is React,\n * which is what lets a block place a slot straight into its JSX instead of\n * asserting a type over it.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport interface BlockRenderArgs<P>\n extends Omit<EngineBlockRenderArgs<P, BlockRenderContext>, \"renderSlot\"> {\n /**\n * Render one of this block's slots, optionally under a different context.\n *\n * `ReactNode` rather than the `ReactNode | Promise<ReactNode>` that `render`\n * returns, and the asymmetry is deliberate: this value is one a block places\n * into its own JSX, and that union is not a legal child under EITHER supported\n * peer. React 18 admits no promise at all; React 19 admits only\n * `Promise<AwaitedReactNode>`, a promise of a settled node, so a promise that\n * may itself yield a promise is refused there too. Widening here would move\n * the error onto every block that draws a slot.\n *\n * It still says what each peer can express, because React 19 counts\n * `Promise<AwaitedReactNode>` as a `ReactNode`: a renderer on 19 may hand back\n * a pending slot and the block places it unchanged. On 18 it may not, which\n * costs nothing, since an async block cannot be drawn under React 18's types\n * regardless — `<AsyncBlock />` is refused outright there.\n */\n renderSlot(this: void, name: string, ctx?: BlockRenderContext): ReactNode;\n}\n\n/**\n * One block type, as an author writes it.\n *\n * The engine's own definition leaves `supports` open, because its registry holds\n * blocks from every source and checks their keys at boot against whatever is\n * registered. Authoring is the moment a typo is cheap to catch, so this narrows\n * that one member and changes nothing else.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport interface BlockDefinition<P extends object = Record<string, unknown>>\n extends Omit<\n EngineBlockDefinition<P, BlockRenderContext>,\n // `conditionalSlots` is withheld ON PURPOSE. It exists because a core block\n // needs it, and what a block author should write is a Block API freeze\n // decision — but an `@internal` tag removes nothing from a published type,\n // and this `Omit` inherits every property it does not name. Reserving it\n // takes naming it here; anything less lets a plugin compile against a\n // provisional shape and be broken when the freeze settles it.\n \"supports\" | \"render\" | \"conditionalSlots\"\n > {\n supports?: BlockSupports;\n /**\n * Renders the block.\n *\n * The promise is spelled out rather than left to `ReactNode`. React 19 added\n * promises to that type and React 18 did not, and this package supports both,\n * so an async block would compile against one peer and be rejected by the\n * other. Naming it here makes the async contract mean the same thing across\n * the range this package declares.\n */\n render(args: BlockRenderArgs<P>): BlockRenderResult;\n}\n\n/**\n * Declare a block.\n *\n * Returns its argument. It exists to infer the prop type from what is written\n * and to check the rest against the definition shape, which is what makes a\n * mistyped prop name or an unknown support key a compile error rather than a\n * boot one.\n *\n * There is deliberately no per-block context parameter. What a renderer\n * provides is one description per app, and a block that needs something unusual\n * declares it on `BlockRenderContext` where the whole app can see it. A block\n * naming its own context would be asserting privately that it will be handed\n * something, which nothing checks and no registry can honour.\n *\n * @experimental The block API is frozen at the end of the engine phase, not\n * now. Until then a contributed block may need changes when the definition\n * shape settles.\n */\nexport function defineBlock<P extends object>(\n definition: BlockDefinition<P>\n): BlockDefinition<P> {\n return definition;\n}\n\n/**\n * Supports settings meant to be shared between blocks.\n *\n * Written straight into a definition, a typo is caught: TypeScript checks a\n * literal for keys the target does not declare. Lifted into a variable first,\n * it is not, because that check applies only where the literal is written. This\n * puts the check back at the declaration, which is where the settings are.\n *\n * ```ts\n * const layoutSupports = blockSupports({ spacing: true, layout: true });\n * defineBlock<MyProps>({ …, supports: layoutSupports });\n * ```\n *\n * `satisfies BlockSupports` does the same thing and needs nothing from this\n * package; the helper exists because it reads as the obvious move and cannot be\n * forgotten halfway through.\n *\n * It cannot live on `defineBlock` itself: catching this needs the supplied\n * object's own keys inferred, and TypeScript infers nothing once any type\n * argument is written by hand, so `defineBlock<MyProps>` — the form nearly\n * every block uses — would stop checking anything at all.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport function blockSupports<S extends BlockSupports>(\n supports: ExactSupports<S>\n): BlockSupports {\n return supports;\n}\n\n/**\n * @experimental Carried by the same freeze as `defineBlock`: these describe the\n * definition shape, so they change with it.\n */\nexport type {\n AnyBlockDefinition,\n InferBlockProps,\n PropSchema,\n SupportDefinition,\n} from \"@nextlyhq/blocks-engine\";\n\n/**\n * What a block's `render` returns.\n *\n * Declared here rather than re-exported. The engine's own is `unknown`, because\n * the engine serves any renderer and cannot name an output type; naming it there\n * would tie a runtime-free package to React. That leaves the re-exported name\n * useless for the thing an author would reach for it to do — a helper typed\n * `(args: BlockRenderArgs<P>) => BlockRenderResult` returns `unknown`, which does\n * not satisfy `BlockDefinition[\"render\"]`, so handing that helper to\n * `defineBlock` failed to compile.\n *\n * The promise is spelled out for the same reason `render` spells it out: React\n * 19 added promises to `ReactNode` and React 18 did not, and this package\n * supports both.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport type BlockRenderResult = ReactNode | Promise<ReactNode>;\n\n/**\n * The rest of the definition's own vocabulary. Every one of these names a field\n * a block author fills in, so leaving them off this surface meant writing a slot\n * template, an example, or an editor entry against a type that could only be\n * reached by importing the engine directly — which is the one thing this subpath\n * exists to make unnecessary.\n *\n * `BlockSupportValue` is deliberately NOT among them. The engine's is\n * `boolean | Record<string, boolean>`, which is what its registry stores from\n * every source; offered here as authoring vocabulary it would undo the check\n * this module exists for, since `const spacing: BlockSupportValue = { paddding:\n * true }` accepts the typo the per-key flag unions refuse. A shared setting for\n * one key is written as `BlockSupports[\"spacing\"]`, which is checked, and a\n * whole object goes through `blockSupports()`.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport type {\n BlockEditorMeta,\n BlockExample,\n BlockIcon,\n BlockIsland,\n BlockPart,\n BlockSeoContribution,\n BlockSeoImage,\n BlockVariation,\n ComponentPath,\n NodeStyles,\n SlotLock,\n SlotSpec,\n} from \"@nextlyhq/blocks-engine\";\n"]}
1
+ {"version":3,"file":"blocks.mjs","names":[],"sources":["../src/blocks.ts"],"sourcesContent":["/**\n * Block authoring — the contracts a plugin contributing blocks to the page\n * builder needs.\n *\n * A subpath rather than the SDK's main entry, so a plugin that has nothing to\n * do with blocks never pulls the block engine into its type graph. The SDK\n * remains the single stable import surface a plugin author is offered; this\n * simply keeps a page-builder-specific vocabulary out of everyone else's way.\n *\n * The engine is a real dependency of this package rather than an optional peer,\n * because the types below are built on top of its own: they have to resolve for\n * an author who installed only the SDK, and under a strict `node_modules`\n * layout the page builder's copy is not reachable from their package. The\n * engine's registry is pinned to `globalThis`, so even a duplicated install\n * still reads and writes the one registry the page builder consumes.\n *\n * What an author writes is declared here rather than re-exported. `defineBlock`\n * and `BlockSupports` are this module's own so that `BlockSupportKeys` can be\n * augmented from a plugin's source, which only works for a module that plugin\n * can name.\n *\n * The registration side is not here. Contributing a block means calling the\n * page builder's own service — it is that plugin's registry, not core's — so\n * `blockRegistry` comes from `@nextlyhq/plugin-page-builder/blocks`, which is\n * also where a contributor already declares its `dependsOn`.\n *\n * @packageDocumentation\n */\n\nimport type {\n BlockDefinition as EngineBlockDefinition,\n BlockRenderArgs as EngineBlockRenderArgs,\n} from \"@nextlyhq/blocks-engine\";\nimport type { ReactNode } from \"react\";\n\n/**\n * The support keys a block may declare.\n *\n * Declared HERE rather than in the engine, and that placement is the whole\n * point. A module augmentation has to name a module that resolves from the file\n * doing the augmenting, and a plugin author installs this package: under a\n * strict `node_modules` layout the engine is a nested transitive dependency\n * their own source cannot name, so an augmentation pointed at it fails to\n * compile and the custom support silently never arrives.\n *\n * A plugin that calls `registerSupport()` adds its key to the vocabulary the\n * compiler checks against:\n *\n * ```ts\n * declare module \"@nextlyhq/plugin-sdk/blocks\" {\n * interface BlockSupportKeys {\n * animation: \"enter\" | \"exit\";\n * parallax: true;\n * }\n * }\n * ```\n *\n * Declaration merging rather than an index signature: an index signature accepts\n * every key, which is what leaves a misspelled `spaceing` to be found at boot,\n * in someone else's app, instead of while it is being written.\n *\n * One rule reads the value: a union of strings names the sub-flags the support\n * recognises, and anything else means the support is all-or-nothing. So a nested\n * typo is caught in the same breath as a top-level one — `{ spacing: { paddding:\n * true } }` enables nothing at all, and finding that out at boot is exactly what\n * this exists to prevent — while a support with no finer granularity can be\n * written the way it reads, as `never` or as `true`.\n *\n * The built-in keys are the style catalog's groups plus the capabilities that\n * have no catalog group of their own. A test holds both the keys and their\n * flags to what the registry actually accepts, so the two cannot drift.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport interface BlockSupportKeys {\n /** Padding and margin. */\n spacing: \"margin\" | \"padding\";\n /** Flow, alignment and gap. */\n layout: never;\n /** Width, height and their limits. */\n dimensions: never;\n /** Font, size, weight, line height and letter spacing. */\n typography: never;\n /** Text and link colours. */\n color: \"text\" | \"link\";\n /** Background colour, image and gradient. */\n background: \"color\" | \"image\" | \"gradient\";\n /** Border lines and corner rounding. */\n border: \"line\" | \"radius\";\n /** Box and text shadows. */\n shadow: never;\n /** Opacity, filters and transforms. */\n effects: never;\n /** Positioning and stacking. */\n position: never;\n /** Container-query behaviour. */\n container: never;\n /** Marker style on a list. */\n list: never;\n /** Author-written CSS on this block. Gates a capability, not a style group. */\n customCss: never;\n}\n\n/**\n * What one support key accepts, given the sub-flags it declares.\n *\n * The two cases are kept apart rather than both handed to `Record`, because\n * `Record` demands a property key and a support that declares no flags has none\n * to give. Feeding it either sentinel is unsound in opposite directions: `true`\n * is not a property key at all, so the mapped type stops instantiating and an\n * augmenting plugin's build fails on the declaration rather than on anything it\n * wrote; `never` produces `Partial<Record<never, boolean>>`, which is `{}`, and\n * `{}` accepts every object — so `{ layout: { typo: true } }` type-checks and is\n * refused only later, by the registry, at boot.\n *\n * `[F] extends [never]` is asked first and in tuple form. Bare `F extends never`\n * distributes and answers for the empty union rather than about it, and\n * `[never] extends [string]` is true, so a `never` reaching the string case\n * would rebuild the same `{}`.\n */\ntype SupportSetting<F> = [F] extends [never]\n ? boolean\n : [F] extends [string]\n ? boolean | Partial<Record<F & string, boolean>>\n : boolean;\n\n/**\n * Style capabilities a block opts into: `true` for a whole group, or an object\n * naming the sub-flags it wants.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport type BlockSupports = {\n [K in keyof BlockSupportKeys]?: SupportSetting<BlockSupportKeys[K]>;\n};\n\n/**\n * Supports as written at a definition, with unknown keys refused.\n *\n * TypeScript checks for excess properties only on a literal written in place,\n * so lifting settings into a shared object skips it: `const shared = { spacing:\n * true, spaceing: true }` assigns to `BlockSupports` without complaint, and the\n * typo survives to be caught at boot in someone else's app — which is the whole\n * failure this vocabulary exists to move earlier.\n *\n * Naming the offending key as `never` refuses it wherever it was written.\n */\ntype ExactSupports<S> = S & {\n [K in Exclude<keyof S, keyof BlockSupportKeys>]: never;\n};\n\n/**\n * Everything a renderer makes available to every block it draws.\n *\n * ONE description per app, rather than each block inventing its own. A block\n * author writes `defineBlock<MyProps>` and `ctx` is already typed as whatever\n * this app's renderer provides, with no type written by hand; a block that\n * needs something unusual has to add it here, which is an app-wide statement\n * anyone can see rather than a quiet assumption inside one file.\n *\n * A renderer declares what it supplies by augmenting this from its own package:\n *\n * ```ts\n * declare module \"@nextlyhq/plugin-sdk/blocks\" {\n * interface BlockRenderContext {\n * data?: DataProvider;\n * }\n * }\n * ```\n *\n * `locale` is here because every renderer of localized content has one, and a\n * block that varies its own output by language should not have to reach past\n * this interface to find out which.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport interface BlockRenderContext {\n /** The locale being rendered, when the renderer is rendering one. */\n locale?: string;\n}\n\n/**\n * What a block's `render` receives.\n *\n * The engine's own version leaves both the context and the output unnamed,\n * because the engine serves any renderer and cannot know either. This one names\n * both: the context is what THIS app's renderer provides, which is what lets a\n * block read `ctx.data` with no type written by hand, and the output is React,\n * which is what lets a block place a slot straight into its JSX instead of\n * asserting a type over it.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport interface BlockRenderArgs<P>\n extends Omit<EngineBlockRenderArgs<P, BlockRenderContext>, \"renderSlot\"> {\n /**\n * Render one of this block's slots, optionally under a different context.\n *\n * `ReactNode` rather than the `ReactNode | Promise<ReactNode>` that `render`\n * returns, and the asymmetry is deliberate: this value is one a block places\n * into its own JSX, and that union is not a legal child under EITHER supported\n * peer. React 18 admits no promise at all; React 19 admits only\n * `Promise<AwaitedReactNode>`, a promise of a settled node, so a promise that\n * may itself yield a promise is refused there too. Widening here would move\n * the error onto every block that draws a slot.\n *\n * It still says what each peer can express, because React 19 counts\n * `Promise<AwaitedReactNode>` as a `ReactNode`: a renderer on 19 may hand back\n * a pending slot and the block places it unchanged. On 18 it may not, which\n * costs nothing, since an async block cannot be drawn under React 18's types\n * regardless — `<AsyncBlock />` is refused outright there.\n */\n renderSlot(this: void, name: string, ctx?: BlockRenderContext): ReactNode;\n}\n\n/**\n * One block type, as an author writes it.\n *\n * The engine's own definition leaves `supports` open, because its registry holds\n * blocks from every source and checks their keys at boot against whatever is\n * registered. Authoring is the moment a typo is cheap to catch, so this narrows\n * that one member and changes nothing else.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport interface BlockDefinition<P extends object = Record<string, unknown>>\n extends Omit<\n EngineBlockDefinition<P, BlockRenderContext>,\n // `conditionalSlots` is withheld ON PURPOSE. It exists because a core block\n // needs it, and what a block author should write is a Block API freeze\n // decision — but an `@internal` tag removes nothing from a published type,\n // and this `Omit` inherits every property it does not name. Reserving it\n // takes naming it here; anything less lets a plugin compile against a\n // provisional shape and be broken when the freeze settles it.\n \"supports\" | \"render\" | \"conditionalSlots\"\n > {\n supports?: BlockSupports;\n /**\n * Renders the block.\n *\n * The promise is spelled out rather than left to `ReactNode`. React 19 added\n * promises to that type and React 18 did not, and this package supports both,\n * so an async block would compile against one peer and be rejected by the\n * other. Naming it here makes the async contract mean the same thing across\n * the range this package declares.\n */\n render(args: BlockRenderArgs<P>): BlockRenderResult;\n}\n\n/**\n * Declare a block.\n *\n * Returns its argument. It exists to infer the prop type from what is written\n * and to check the rest against the definition shape, which is what makes a\n * mistyped prop name or an unknown support key a compile error rather than a\n * boot one.\n *\n * There is deliberately no per-block context parameter. What a renderer\n * provides is one description per app, and a block that needs something unusual\n * declares it on `BlockRenderContext` where the whole app can see it. A block\n * naming its own context would be asserting privately that it will be handed\n * something, which nothing checks and no registry can honour.\n *\n * @experimental The block API is frozen at the end of the engine phase, not\n * now. Until then a contributed block may need changes when the definition\n * shape settles.\n */\nexport function defineBlock<P extends object>(\n definition: BlockDefinition<P>\n): BlockDefinition<P> {\n return definition;\n}\n\n/**\n * Supports settings meant to be shared between blocks.\n *\n * Written straight into a definition, a typo is caught: TypeScript checks a\n * literal for keys the target does not declare. Lifted into a variable first,\n * it is not, because that check applies only where the literal is written. This\n * puts the check back at the declaration, which is where the settings are.\n *\n * ```ts\n * const layoutSupports = blockSupports({ spacing: true, layout: true });\n * defineBlock<MyProps>({ …, supports: layoutSupports });\n * ```\n *\n * `satisfies BlockSupports` does the same thing and needs nothing from this\n * package; the helper exists because it reads as the obvious move and cannot be\n * forgotten halfway through.\n *\n * It cannot live on `defineBlock` itself: catching this needs the supplied\n * object's own keys inferred, and TypeScript infers nothing once any type\n * argument is written by hand, so `defineBlock<MyProps>` — the form nearly\n * every block uses — would stop checking anything at all.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport function blockSupports<S extends BlockSupports>(\n supports: ExactSupports<S>\n): BlockSupports {\n return supports;\n}\n\n/**\n * @experimental Carried by the same freeze as `defineBlock`: these describe the\n * definition shape, so they change with it.\n */\nexport type {\n AnyBlockDefinition,\n InferBlockProps,\n PropSchema,\n SupportDefinition,\n} from \"@nextlyhq/blocks-engine\";\n\n/**\n * What a block's `render` returns.\n *\n * Declared here rather than re-exported. The engine's own is `unknown`, because\n * the engine serves any renderer and cannot name an output type; naming it there\n * would tie a runtime-free package to React. That leaves the re-exported name\n * useless for the thing an author would reach for it to do — a helper typed\n * `(args: BlockRenderArgs<P>) => BlockRenderResult` returns `unknown`, which does\n * not satisfy `BlockDefinition[\"render\"]`, so handing that helper to\n * `defineBlock` failed to compile.\n *\n * The promise is spelled out for the same reason `render` spells it out: React\n * 19 added promises to `ReactNode` and React 18 did not, and this package\n * supports both.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport type BlockRenderResult = ReactNode | Promise<ReactNode>;\n\n/**\n * The rest of the definition's own vocabulary. Every one of these names a field\n * a block author fills in, so leaving them off this surface meant writing a slot\n * template, an example, or an editor entry against a type that could only be\n * reached by importing the engine directly — which is the one thing this subpath\n * exists to make unnecessary.\n *\n * `BlockSupportValue` is deliberately NOT among them. The engine's is\n * `boolean | Record<string, boolean>`, which is what its registry stores from\n * every source; offered here as authoring vocabulary it would undo the check\n * this module exists for, since `const spacing: BlockSupportValue = { paddding:\n * true }` accepts the typo the per-key flag unions refuse. A shared setting for\n * one key is written as `BlockSupports[\"spacing\"]`, which is checked, and a\n * whole object goes through `blockSupports()`.\n *\n * @experimental Carried by the same freeze as `defineBlock`.\n */\nexport type {\n BlockEditorMeta,\n BlockExample,\n BlockIcon,\n BlockIsland,\n BlockPart,\n BlockSeoContribution,\n BlockSeoImage,\n BlockVariation,\n ComponentPath,\n NodeStyles,\n SlotLock,\n SlotSpec,\n} from \"@nextlyhq/blocks-engine\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA2QA,SAAgB,YACd,YACoB;CACpB,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,cACd,UACe;CACf,OAAO;AACT"}
package/dist/client.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { Can, CanProps, useCan } from '@nextlyhq/admin';
1
+ import { Can, CanProps, useCan } from "@nextlyhq/admin";
2
+ export { Can, type CanProps, useCan };
package/dist/client.mjs CHANGED
@@ -1,3 +1 @@
1
- export { Can, useCan } from '@nextlyhq/admin';
2
- //# sourceMappingURL=client.mjs.map
3
- //# sourceMappingURL=client.mjs.map
1
+ export { Can, useCan } from "@nextlyhq/admin";
package/dist/db.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { and, asc, count, desc, eq, gt, gte, inArray, isNotNull, isNull, like, lt, lte, ne, not, or } from 'nextly/db-operators';
1
+ import { and, asc, count, desc, eq, gt, gte, inArray, isNotNull, isNull, like, lt, lte, ne, not, or } from "nextly/db-operators";
2
+ export { and, asc, count, desc, eq, gt, gte, inArray, isNotNull, isNull, like, lt, lte, ne, not, or };
package/dist/db.mjs CHANGED
@@ -1,3 +1 @@
1
- export { and, asc, count, desc, eq, gt, gte, inArray, isNotNull, isNull, like, lt, lte, ne, not, or } from 'nextly/db-operators';
2
- //# sourceMappingURL=db.mjs.map
3
- //# sourceMappingURL=db.mjs.map
1
+ export { and, asc, count, desc, eq, gt, gte, inArray, isNotNull, isNull, like, lt, lte, ne, not, or } from "nextly/db-operators";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- export { Action, AddressableField, AddressableFieldsOptions, AdmittedReservation, AuthEventName, AuthEvents, AuthHookName, AuthHooks, AuthInput, AuthLimitAnswer, AuthOutcome, AuthStrategy, AuthUser, AuthenticatedScope, AuthorableFieldConfig, AuthoredDraftSplitCollection, BatchOperationResult, BeforeOperationArgs, BeforeOperationContext, BeforeOperationHandler, BreachedPasswordsConfig, BulkUpdateEntry, Challenge, ChallengeDefinition, CompleteLoginOptions, ComponentPath, CoreFilterSeam, DEFAULT_ADMIN_PATH, DataWidgetArchetype, Decision, DeclarativeWidgetArchetype, DocumentEventName, DocumentEvents, DraftSplitDisabledReason, DraftSplitEligibility, EmailAfterSendValue, EmailFilterContext, EmailPayloadFilterValue, EmailProviderCapabilities, EmailProviderConfigField, EmailProviderDefinition, EmailProviderDescriptor, EntryVerdict, EventBus, EventEnvelope, EventHandler, EventName, FieldAdminOptions, FieldConfig, FieldValueDeclaration, FieldValueDeclarationInput, Filter, FilterSeams, FrozenCopy, FrozenValue, GrantedPermission, HookContext, HookContextPhase, HookHandler, HookPointContext, HookPointNameOf, HookPointPayload, HookPointPayloads, HookPointValue, HookType, JobContext, JobDefinition, JobDefinitionInput, JobInputFor, JobRetryPolicy, JobSlug, JsonObject, JsonValue, LimitCheck, LimitEntry, LimitOutcome, LimitReservation, LimitRule, LimitTarget, ListQueryFilterContext, ListQueryWhere, MAX_EMAIL_PROVIDER_TYPE_LENGTH, MAX_JOB_SLUG_LENGTH, MediaEventName, MediaEvents, Middleware, NavCollectionItem, NavFilterContext, NextlyError, NextlyPrincipals, OneTimeSecrets, OpaqueSecrets, PLUGIN_CATEGORIES, PaginatedResult, PaginationMeta, PasswordCheck, PasswordHelper, PasswordRules, PasswordTooLongError, PermissionSlug, PluginActionRegistry, PluginAdminContributions, PluginAdminCustomWidget, PluginAdminDataWidget, PluginAdminDeclarativeWidget, PluginAdminPage, PluginAdminQuerylessWidget, PluginAdminStatsWidget, PluginAdminWidget, PluginAuditApi, PluginAuditDeclaration, PluginAuthApi, PluginCapabilities, PluginCategory, PluginCollectionService, PluginCollectionTransaction, PluginCollectionView, PluginConfig, PluginContext, PluginContributions, PluginDataFieldConfig, PluginDatabase, PluginDeclaration, PluginDefinition, PluginEmailProvider, PluginEmailService, PluginEmailSettings, PluginEmailTemplate, PluginFieldCodegen, PluginFieldCodegenImport, PluginFieldInput, PluginFieldInstance, PluginFieldIssue, PluginFieldType, PluginFieldValidateArgs, PluginFieldValidationResult, PluginFieldWrite, PluginFilterRegistry, PluginHookPointDeclaration, PluginHookRegistry, PluginInsert, PluginLimiter, PluginMediaService, PluginMenuItem, PluginNavSection, PluginPermission, PluginPrincipalsApi, PluginRawDatabase, PluginRole, PluginRoute, PluginRouteCaller, PluginRouteContext, PluginRouteHandler, PluginRouteIdentity, PluginRouteLimitKey, PluginRouteMount, PluginRoutePermissionResolver, PluginRoutePermissionScope, PluginRoutePrincipal, PluginRouteRateLimit, PluginSecurityApi, PluginSettingsApi, PluginSingleRecord, PluginSinglesResult, PluginSinglesService, PluginSourceResolver, PluginStoredValue, PluginStoredValueTarget, PluginSummary, PluginTransaction, PluginUserService, PluginVersionsService, PluginWidgetSource, Principal, PrincipalAnswer, PrincipalAttributeDescriptors, PrincipalAttributeType, PrincipalAttributeTypeOf, PrincipalAttributeValue, PrincipalAttributes, PrincipalAttributesOf, PrincipalKindContribution, PrincipalKindDefinition, PrincipalRecord, PrincipalRef, PrincipalReportOptions, ProviderAvailability, QueryOptions, QuerylessWidgetArchetype, QueueJobArgs, QueueJobResult, ReadCaller, ReadableContent, ReadableContentCaller, ReadableContentEntity, RegisteredEmailProvider, RequestContext, ResolvedDraftSplitCollection, ResolverOptions, RouteMethod, RunAsPrincipal, ScheduledTask, SecretData, SerializedFieldConfig, ServiceOpts, TIMESERIES_INTERVALS, TimeseriesInterval, TxOption, UnvalidatedAddressableField, UserCreatedPayload, UserDeletedPayload, UserEventName, UserEvents, ValidateFieldValuesOptions, ValidationIssue, WIDGET_ARCHETYPES, WIDGET_CHROME, WIDGET_CONDITIONS, WIDGET_HEIGHTS, WIDGET_LIFECYCLES, WIDGET_OPS, WIDGET_SIZES, WIDGET_SOURCE_FIELD_TYPES, WIDGET_SOURCE_KINDS, WidgetAction, WidgetArchetype, WidgetChrome, WidgetCondition, WidgetDefinition, WidgetFieldChoice, WidgetHeight, WidgetLifecycle, WidgetOp, WidgetQuery, WidgetSetting, WidgetSize, WidgetSource, WidgetSourceField, WidgetSourceFieldType, WidgetSourceKind, WidgetSourceResolver, addressableFields, callerReadOptions, checkbox, collectDeclarations, collectionDraftSplit, defineEmailProvider, defineJob, definePlugin, getCachedNextly, group, isLocaleSelector, isPluginCategory, isTimeseriesInterval, narrowScope, pluginAdminSlug, pluginField, readableContent, registerSource, registerWidget, resolvedCollectionDraftSplit, resolvedCollectionView, respondAction, respondDoc, respondList, respondMutation, routePathIsLiteral, sanitizeAdminPath, text, textarea, trustedClientIp, upload, validateFieldValues } from 'nextly';
2
-
1
+ import { Action, AddressableField, AddressableFieldsOptions, AdmittedReservation, AuthEventName, AuthEvents, AuthHookName, AuthHooks, AuthInput, AuthLimitAnswer, AuthOutcome, AuthStrategy, AuthUser, AuthenticatedScope, AuthorableFieldConfig, AuthoredDraftSplitCollection, BatchOperationResult, BeforeOperationArgs, BeforeOperationContext, BeforeOperationHandler, BreachedPasswordsConfig, BulkUpdateEntry, Challenge, ChallengeDefinition, CompleteLoginOptions, ComponentPath, CoreFilterSeam, DEFAULT_ADMIN_PATH, DataWidgetArchetype, Decision, DeclarativeWidgetArchetype, DocumentEventName, DocumentEvents, DraftSplitDisabledReason, DraftSplitEligibility, EmailAfterSendValue, EmailFilterContext, EmailPayloadFilterValue, EmailProviderCapabilities, EmailProviderConfigField, EmailProviderDefinition, EmailProviderDescriptor, EmailTemplateData, EntryVerdict, EventBus, EventEnvelope, EventHandler, EventName, FieldAdminOptions, FieldConfig, FieldValueDeclaration, FieldValueDeclarationInput, Filter, FilterSeams, FrozenCopy, FrozenValue, GrantedPermission, HookContext, HookContextPhase, HookHandler, HookPointContext, HookPointNameOf, HookPointPayload, HookPointPayloads, HookPointValue, HookType, JobContext, JobDefinition, JobDefinitionInput, JobInputFor, JobRetryPolicy, JobSlug, JsonObject, JsonValue, LimitCheck, LimitEntry, LimitOutcome, LimitReservation, LimitRule, LimitTarget, ListQueryFilterContext, ListQueryWhere, MAX_EMAIL_PROVIDER_TYPE_LENGTH, MAX_JOB_SLUG_LENGTH, MediaEventName, MediaEvents, Middleware, NavCollectionItem, NavFilterContext, NextlyError, NextlyPrincipals, OneTimeSecrets, OpaqueSecrets, PLUGIN_CATEGORIES, PaginatedResult, PaginationMeta, PasswordCheck, PasswordHelper, PasswordRules, PasswordTooLongError, PermissionSlug, PluginActionRegistry, PluginAdminContributions, PluginAdminCustomWidget, PluginAdminDataWidget, PluginAdminDeclarativeWidget, PluginAdminPage, PluginAdminQuerylessWidget, PluginAdminStatsWidget, PluginAdminWidget, PluginAuditApi, PluginAuditDeclaration, PluginAuthApi, PluginCapabilities, PluginCategory, PluginCollectionService, PluginCollectionTransaction, PluginCollectionView, PluginConfig, PluginContext, PluginContributions, PluginDataFieldConfig, PluginDatabase, PluginDeclaration, PluginDefinition, PluginEmailProvider, PluginEmailService, PluginEmailSettings, PluginEmailTemplate, PluginFieldCodegen, PluginFieldCodegenImport, PluginFieldInput, PluginFieldInstance, PluginFieldIssue, PluginFieldType, PluginFieldValidateArgs, PluginFieldValidationResult, PluginFieldWrite, PluginFilterRegistry, PluginHookPointDeclaration, PluginHookRegistry, PluginInsert, PluginLimiter, PluginManySourceResolver, PluginMediaService, PluginMenuItem, PluginNavSection, PluginPermission, PluginPrincipalsApi, PluginRawDatabase, PluginRole, PluginRoute, PluginRouteCaller, PluginRouteContext, PluginRouteHandler, PluginRouteIdentity, PluginRouteLimitKey, PluginRouteMount, PluginRoutePermissionResolver, PluginRoutePermissionScope, PluginRoutePrincipal, PluginRouteRateLimit, PluginSecurityApi, PluginSettingsApi, PluginSingleRecord, PluginSinglesResult, PluginSinglesService, PluginSourceResolver, PluginStoredValue, PluginStoredValueTarget, PluginSummary, PluginTransaction, PluginUserService, PluginVersionsService, PluginWidgetSource, Principal, PrincipalAnswer, PrincipalAttributeDescriptors, PrincipalAttributeType, PrincipalAttributeTypeOf, PrincipalAttributeValue, PrincipalAttributes, PrincipalAttributesOf, PrincipalKindContribution, PrincipalKindDefinition, PrincipalRecord, PrincipalRef, PrincipalReportOptions, ProviderAvailability, QueryOptions, QuerylessWidgetArchetype, QueueJobArgs, QueueJobResult, ReadCaller, ReadableContent, ReadableContentCaller, ReadableContentEntity, RegisteredEmailProvider, RequestContext, ResolvedDraftSplitCollection, ResolverOptions, RouteMethod, RunAsPrincipal, ScheduledTask, SecretData, SerializedFieldConfig, ServiceOpts, TIMESERIES_INTERVALS, TimeseriesInterval, TrustedHtml, TxOption, UnvalidatedAddressableField, UserCreatedPayload, UserDeletedPayload, UserEventName, UserEvents, ValidateFieldValuesOptions, ValidationIssue, WIDGET_ARCHETYPES, WIDGET_CHROME, WIDGET_CONDITIONS, WIDGET_HEIGHTS, WIDGET_LIFECYCLES, WIDGET_OPS, WIDGET_SIZES, WIDGET_SOURCE_FIELD_TYPES, WIDGET_SOURCE_KINDS, WidgetAction, WidgetArchetype, WidgetChrome, WidgetCondition, WidgetDefinition, WidgetFieldChoice, WidgetHeight, WidgetLifecycle, WidgetOp, WidgetQuery, WidgetScope, WidgetSetting, WidgetSize, WidgetSource, WidgetSourceField, WidgetSourceFieldType, WidgetSourceKind, WidgetSourceResolver, addressableFields, callerReadOptions, checkbox, collectDeclarations, collectionDraftSplit, defineEmailProvider, defineJob, definePlugin, getCachedNextly, group, isLocaleSelector, isPluginCategory, isTimeseriesInterval, markHtml, narrowScope, pluginAdminSlug, pluginField, readableContent, registerSource, registerWidget, resolvedCollectionDraftSplit, resolvedCollectionView, respondAction, respondDoc, respondList, respondMutation, routePathIsLiteral, sanitizeAdminPath, text, textarea, trustedClientIp, upload, validateFieldValues } from "nextly";
3
2
  /**
4
3
  * @experimental A secret value that auto-redacts at every common leak vector —
5
4
  * `JSON.stringify` (`toJSON`), `String()`/template interpolation (`toString`),
@@ -7,17 +6,17 @@ export { Action, AddressableField, AddressableFieldsOptions, AdmittedReservation
7
6
  * available only via the explicit, greppable `.reveal()`. Wrap secret config /
8
7
  * env values (D37): `secret(process.env.API_KEY)`.
9
8
  */
10
- declare class Secret<T = string> {
11
- #private;
12
- constructor(value: T);
13
- /** Return the underlying secret value. The only way to read it. */
14
- reveal(): T;
15
- toJSON(): string;
16
- toString(): string;
9
+ export declare class Secret<T = string> {
10
+ #private;
11
+ constructor(value: T);
12
+ /** Return the underlying secret value. The only way to read it. */
13
+ reveal(): T;
14
+ toJSON(): string;
15
+ toString(): string;
17
16
  }
18
17
  /** @experimental Wrap a value so it redacts unless explicitly `.reveal()`ed (D37). */
19
- declare function secret<T>(value: T): Secret<T>;
18
+ export declare function secret<T>(value: T): Secret<T>;
20
19
  /** @experimental True if `value` is a {@link Secret}. */
21
- declare function isSecret(value: unknown): value is Secret<unknown>;
22
-
23
- export { Secret, isSecret, secret };
20
+ export declare function isSecret(value: unknown): value is Secret<unknown>;
21
+ export { type Action, type AddressableField, type AddressableFieldsOptions, type AdmittedReservation, type AuthEventName, AuthEvents, type AuthHookName, type AuthHooks, type AuthInput, type AuthLimitAnswer, type AuthOutcome, type AuthStrategy, type AuthUser, type AuthenticatedScope, type AuthorableFieldConfig, type AuthoredDraftSplitCollection, type BatchOperationResult, type BeforeOperationArgs, type BeforeOperationContext, type BeforeOperationHandler, type BreachedPasswordsConfig, type BulkUpdateEntry, type Challenge, type ChallengeDefinition, type CompleteLoginOptions, type ComponentPath, type CoreFilterSeam, DEFAULT_ADMIN_PATH, type DataWidgetArchetype, type Decision, type DeclarativeWidgetArchetype, type DocumentEventName, DocumentEvents, type DraftSplitDisabledReason, type DraftSplitEligibility, type EmailAfterSendValue, type EmailFilterContext, type EmailPayloadFilterValue, type EmailProviderCapabilities, type EmailProviderConfigField, type EmailProviderDefinition, type EmailProviderDescriptor, type EmailTemplateData, type EntryVerdict, type EventBus, type EventEnvelope, type EventHandler, type EventName, type FieldAdminOptions, type FieldConfig, type FieldValueDeclaration, type FieldValueDeclarationInput, type Filter, FilterSeams, type FrozenCopy, type FrozenValue, type GrantedPermission, type HookContext, type HookContextPhase, type HookHandler, type HookPointContext, type HookPointNameOf, type HookPointPayload, type HookPointPayloads, type HookPointValue, type HookType, type JobContext, type JobDefinition, type JobDefinitionInput, type JobInputFor, type JobRetryPolicy, type JobSlug, type JsonObject, type JsonValue, type LimitCheck, type LimitEntry, type LimitOutcome, type LimitReservation, type LimitRule, type LimitTarget, type ListQueryFilterContext, type ListQueryWhere, MAX_EMAIL_PROVIDER_TYPE_LENGTH, MAX_JOB_SLUG_LENGTH, type MediaEventName, MediaEvents, type Middleware, type NavCollectionItem, type NavFilterContext, NextlyError, type NextlyPrincipals, type OneTimeSecrets, type OpaqueSecrets, PLUGIN_CATEGORIES, type PaginatedResult, type PaginationMeta, type PasswordCheck, type PasswordHelper, type PasswordRules, PasswordTooLongError, type PermissionSlug, type PluginActionRegistry, type PluginAdminContributions, type PluginAdminCustomWidget, type PluginAdminDataWidget, type PluginAdminDeclarativeWidget, type PluginAdminPage, type PluginAdminQuerylessWidget, type PluginAdminStatsWidget, type PluginAdminWidget, type PluginAuditApi, type PluginAuditDeclaration, type PluginAuthApi, type PluginCapabilities, type PluginCategory, type PluginCollectionService, type PluginCollectionTransaction, type PluginCollectionView, type PluginConfig, type PluginContext, type PluginContributions, type PluginDataFieldConfig, type PluginDatabase, type PluginDeclaration, type PluginDefinition, type PluginEmailProvider, type PluginEmailService, type PluginEmailSettings, type PluginEmailTemplate, type PluginFieldCodegen, type PluginFieldCodegenImport, type PluginFieldInput, type PluginFieldInstance, type PluginFieldIssue, type PluginFieldType, type PluginFieldValidateArgs, type PluginFieldValidationResult, type PluginFieldWrite, type PluginFilterRegistry, type PluginHookPointDeclaration, type PluginHookRegistry, type PluginInsert, type PluginLimiter, type PluginManySourceResolver, type PluginMediaService, type PluginMenuItem, type PluginNavSection, type PluginPermission, type PluginPrincipalsApi, type PluginRawDatabase, type PluginRole, type PluginRoute, type PluginRouteCaller, type PluginRouteContext, type PluginRouteHandler, type PluginRouteIdentity, type PluginRouteLimitKey, type PluginRouteMount, type PluginRoutePermissionResolver, type PluginRoutePermissionScope, type PluginRoutePrincipal, type PluginRouteRateLimit, type PluginSecurityApi, type PluginSettingsApi, type PluginSingleRecord, type PluginSinglesResult, type PluginSinglesService, type PluginSourceResolver, type PluginStoredValue, type PluginStoredValueTarget, type PluginSummary, type PluginTransaction, type PluginUserService, type PluginVersionsService, type PluginWidgetSource, type Principal, type PrincipalAnswer, type PrincipalAttributeDescriptors, type PrincipalAttributeType, type PrincipalAttributeTypeOf, type PrincipalAttributeValue, type PrincipalAttributes, type PrincipalAttributesOf, type PrincipalKindContribution, type PrincipalKindDefinition, type PrincipalRecord, type PrincipalRef, type PrincipalReportOptions, type ProviderAvailability, type QueryOptions, type QuerylessWidgetArchetype, type QueueJobArgs, type QueueJobResult, type ReadCaller, type ReadableContent, type ReadableContentCaller, type ReadableContentEntity, type RegisteredEmailProvider, type RequestContext, type ResolvedDraftSplitCollection, type ResolverOptions, type RouteMethod, type RunAsPrincipal, type ScheduledTask, type SecretData, type SerializedFieldConfig, type ServiceOpts, TIMESERIES_INTERVALS, type TimeseriesInterval, TrustedHtml, type TxOption, type UnvalidatedAddressableField, type UserCreatedPayload, type UserDeletedPayload, type UserEventName, UserEvents, type ValidateFieldValuesOptions, type ValidationIssue, WIDGET_ARCHETYPES, WIDGET_CHROME, WIDGET_CONDITIONS, WIDGET_HEIGHTS, WIDGET_LIFECYCLES, WIDGET_OPS, WIDGET_SIZES, WIDGET_SOURCE_FIELD_TYPES, WIDGET_SOURCE_KINDS, type WidgetAction, type WidgetArchetype, type WidgetChrome, type WidgetCondition, type WidgetDefinition, type WidgetFieldChoice, type WidgetHeight, type WidgetLifecycle, type WidgetOp, type WidgetQuery, type WidgetScope, type WidgetSetting, type WidgetSize, type WidgetSource, type WidgetSourceField, type WidgetSourceFieldType, type WidgetSourceKind, type WidgetSourceResolver, addressableFields, callerReadOptions, checkbox, collectDeclarations, collectionDraftSplit, defineEmailProvider, defineJob, definePlugin, getCachedNextly, group, isLocaleSelector, isPluginCategory, isTimeseriesInterval, markHtml, narrowScope, pluginAdminSlug, pluginField, readableContent, registerSource, registerWidget, resolvedCollectionDraftSplit, resolvedCollectionView, respondAction, respondDoc, respondList, respondMutation, routePathIsLiteral, sanitizeAdminPath, text, textarea, trustedClientIp, upload, validateFieldValues };
22
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.mjs CHANGED
@@ -1,35 +1,44 @@
1
- export { AuthEvents, DEFAULT_ADMIN_PATH, DocumentEvents, FilterSeams, MAX_EMAIL_PROVIDER_TYPE_LENGTH, MAX_JOB_SLUG_LENGTH, MediaEvents, NextlyError, PLUGIN_CATEGORIES, PasswordTooLongError, TIMESERIES_INTERVALS, UserEvents, WIDGET_ARCHETYPES, WIDGET_CHROME, WIDGET_CONDITIONS, WIDGET_HEIGHTS, WIDGET_LIFECYCLES, WIDGET_OPS, WIDGET_SIZES, WIDGET_SOURCE_FIELD_TYPES, WIDGET_SOURCE_KINDS, addressableFields, callerReadOptions, checkbox, collectDeclarations, collectionDraftSplit, defineEmailProvider, defineJob, definePlugin, getCachedNextly, group, isLocaleSelector, isPluginCategory, isTimeseriesInterval, narrowScope, pluginAdminSlug, pluginField, readableContent, registerSource, registerWidget, resolvedCollectionDraftSplit, resolvedCollectionView, respondAction, respondDoc, respondList, respondMutation, routePathIsLiteral, sanitizeAdminPath, text, textarea, trustedClientIp, upload, validateFieldValues } from 'nextly';
2
-
3
- // src/index.ts
4
-
1
+ import { AuthEvents, DEFAULT_ADMIN_PATH, DocumentEvents, FilterSeams, MAX_EMAIL_PROVIDER_TYPE_LENGTH, MAX_JOB_SLUG_LENGTH, MediaEvents, NextlyError, PLUGIN_CATEGORIES, PasswordTooLongError, TIMESERIES_INTERVALS, TrustedHtml, UserEvents, WIDGET_ARCHETYPES, WIDGET_CHROME, WIDGET_CONDITIONS, WIDGET_HEIGHTS, WIDGET_LIFECYCLES, WIDGET_OPS, WIDGET_SIZES, WIDGET_SOURCE_FIELD_TYPES, WIDGET_SOURCE_KINDS, addressableFields, callerReadOptions, checkbox, collectDeclarations, collectionDraftSplit, defineEmailProvider, defineJob, definePlugin, getCachedNextly, group, isLocaleSelector, isPluginCategory, isTimeseriesInterval, markHtml, narrowScope, pluginAdminSlug, pluginField, readableContent, registerSource, registerWidget, resolvedCollectionDraftSplit, resolvedCollectionView, respondAction, respondDoc, respondList, respondMutation, routePathIsLiteral, sanitizeAdminPath, text, textarea, trustedClientIp, upload, validateFieldValues } from "nextly";
5
2
  // src/secret.ts
6
- var REDACTED = "[redacted]";
3
+ const REDACTED = "[redacted]";
4
+ /**
5
+ * @experimental A secret value that auto-redacts at every common leak vector —
6
+ * `JSON.stringify` (`toJSON`), `String()`/template interpolation (`toString`),
7
+ * and `console.log`/`util.inspect` (the node inspect symbol). The real value is
8
+ * available only via the explicit, greppable `.reveal()`. Wrap secret config /
9
+ * env values (D37): `secret(process.env.API_KEY)`.
10
+ */
7
11
  var Secret = class {
8
- #value;
9
- constructor(value) {
10
- this.#value = value;
11
- }
12
- /** Return the underlying secret value. The only way to read it. */
13
- reveal() {
14
- return this.#value;
15
- }
16
- toJSON() {
17
- return REDACTED;
18
- }
19
- toString() {
20
- return REDACTED;
21
- }
22
- [Symbol.for("nodejs.util.inspect.custom")]() {
23
- return REDACTED;
24
- }
12
+ #value;
13
+ constructor(value) {
14
+ this.#value = value;
15
+ }
16
+ /** Return the underlying secret value. The only way to read it. */
17
+ reveal() {
18
+ return this.#value;
19
+ }
20
+ toJSON() {
21
+ return REDACTED;
22
+ }
23
+ toString() {
24
+ return REDACTED;
25
+ }
25
26
  };
27
+ Object.defineProperty(Secret.prototype, Symbol.for("nodejs.util.inspect.custom"), {
28
+ value() {
29
+ return REDACTED;
30
+ },
31
+ writable: true,
32
+ configurable: true
33
+ });
34
+ /** @experimental Wrap a value so it redacts unless explicitly `.reveal()`ed (D37). */
26
35
  function secret(value) {
27
- return new Secret(value);
36
+ return new Secret(value);
28
37
  }
38
+ /** @experimental True if `value` is a {@link Secret}. */
29
39
  function isSecret(value) {
30
- return value instanceof Secret;
40
+ return value instanceof Secret;
31
41
  }
42
+ export { AuthEvents, DEFAULT_ADMIN_PATH, DocumentEvents, FilterSeams, MAX_EMAIL_PROVIDER_TYPE_LENGTH, MAX_JOB_SLUG_LENGTH, MediaEvents, NextlyError, PLUGIN_CATEGORIES, PasswordTooLongError, Secret, TIMESERIES_INTERVALS, TrustedHtml, UserEvents, WIDGET_ARCHETYPES, WIDGET_CHROME, WIDGET_CONDITIONS, WIDGET_HEIGHTS, WIDGET_LIFECYCLES, WIDGET_OPS, WIDGET_SIZES, WIDGET_SOURCE_FIELD_TYPES, WIDGET_SOURCE_KINDS, addressableFields, callerReadOptions, checkbox, collectDeclarations, collectionDraftSplit, defineEmailProvider, defineJob, definePlugin, getCachedNextly, group, isLocaleSelector, isPluginCategory, isSecret, isTimeseriesInterval, markHtml, narrowScope, pluginAdminSlug, pluginField, readableContent, registerSource, registerWidget, resolvedCollectionDraftSplit, resolvedCollectionView, respondAction, respondDoc, respondList, respondMutation, routePathIsLiteral, sanitizeAdminPath, secret, text, textarea, trustedClientIp, upload, validateFieldValues };
32
43
 
33
- export { Secret, isSecret, secret };
34
- //# sourceMappingURL=index.mjs.map
35
44
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/secret.ts"],"names":[],"mappings":";;;;;AAAA,IAAM,QAAA,GAAW,YAAA;AASV,IAAM,SAAN,MAAyB;AAAA,EACrB,MAAA;AAAA,EACT,YAAY,KAAA,EAAU;AACpB,IAAA,IAAA,CAAK,MAAA,GAAS,KAAA;AAAA,EAChB;AAAA;AAAA,EAEA,MAAA,GAAY;AACV,IAAA,OAAO,IAAA,CAAK,MAAA;AAAA,EACd;AAAA,EACA,MAAA,GAAiB;AACf,IAAA,OAAO,QAAA;AAAA,EACT;AAAA,EACA,QAAA,GAAmB;AACjB,IAAA,OAAO,QAAA;AAAA,EACT;AAAA,EACA,CAAC,MAAA,CAAO,GAAA,CAAI,4BAA4B,CAAC,CAAA,GAAY;AACnD,IAAA,OAAO,QAAA;AAAA,EACT;AACF;AAGO,SAAS,OAAU,KAAA,EAAqB;AAC7C,EAAA,OAAO,IAAI,OAAO,KAAK,CAAA;AACzB;AAGO,SAAS,SAAS,KAAA,EAA0C;AACjE,EAAA,OAAO,KAAA,YAAiB,MAAA;AAC1B","file":"index.mjs","sourcesContent":["const REDACTED = \"[redacted]\";\n\n/**\n * @experimental A secret value that auto-redacts at every common leak vector —\n * `JSON.stringify` (`toJSON`), `String()`/template interpolation (`toString`),\n * and `console.log`/`util.inspect` (the node inspect symbol). The real value is\n * available only via the explicit, greppable `.reveal()`. Wrap secret config /\n * env values (D37): `secret(process.env.API_KEY)`.\n */\nexport class Secret<T = string> {\n readonly #value: T;\n constructor(value: T) {\n this.#value = value;\n }\n /** Return the underlying secret value. The only way to read it. */\n reveal(): T {\n return this.#value;\n }\n toJSON(): string {\n return REDACTED;\n }\n toString(): string {\n return REDACTED;\n }\n [Symbol.for(\"nodejs.util.inspect.custom\")](): string {\n return REDACTED;\n }\n}\n\n/** @experimental Wrap a value so it redacts unless explicitly `.reveal()`ed (D37). */\nexport function secret<T>(value: T): Secret<T> {\n return new Secret(value);\n}\n\n/** @experimental True if `value` is a {@link Secret}. */\nexport function isSecret(value: unknown): value is Secret<unknown> {\n return value instanceof Secret;\n}\n"]}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/secret.ts"],"sourcesContent":["const REDACTED = \"[redacted]\";\n\n/**\n * @experimental A secret value that auto-redacts at every common leak vector —\n * `JSON.stringify` (`toJSON`), `String()`/template interpolation (`toString`),\n * and `console.log`/`util.inspect` (the node inspect symbol). The real value is\n * available only via the explicit, greppable `.reveal()`. Wrap secret config /\n * env values (D37): `secret(process.env.API_KEY)`.\n */\nexport class Secret<T = string> {\n readonly #value: T;\n constructor(value: T) {\n this.#value = value;\n }\n /** Return the underlying secret value. The only way to read it. */\n reveal(): T {\n return this.#value;\n }\n toJSON(): string {\n return REDACTED;\n }\n toString(): string {\n return REDACTED;\n }\n}\n\n// `util.inspect` and `console.log` read a custom rendering from Node's own\n// registered symbol, which `Symbol.for` returns without importing `node:util`.\n// Defined on the prototype as a class method would be (not enumerable), rather\n// than in the class: a member under a computed key cannot be declared from the\n// source alone, and the published declaration never named it.\nObject.defineProperty(\n Secret.prototype,\n Symbol.for(\"nodejs.util.inspect.custom\"),\n {\n value(): string {\n return REDACTED;\n },\n writable: true,\n configurable: true,\n }\n);\n\n/** @experimental Wrap a value so it redacts unless explicitly `.reveal()`ed (D37). */\nexport function secret<T>(value: T): Secret<T> {\n return new Secret(value);\n}\n\n/** @experimental True if `value` is a {@link Secret}. */\nexport function isSecret(value: unknown): value is Secret<unknown> {\n return value instanceof Secret;\n}\n"],"mappings":";;AAAA,MAAM,WAAW;;;;;;;;AASjB,IAAa,SAAb,MAAgC;CAC9B;CACA,YAAY,OAAU;EACpB,KAAK,SAAS;CAChB;;CAEA,SAAY;EACV,OAAO,KAAK;CACd;CACA,SAAiB;EACf,OAAO;CACT;CACA,WAAmB;EACjB,OAAO;CACT;AACF;AAOA,OAAO,eACL,OAAO,WACP,OAAO,IAAI,4BAA4B,GACvC;CACE,QAAgB;EACd,OAAO;CACT;CACA,UAAU;CACV,cAAc;AAChB,CACF;;AAGA,SAAgB,OAAU,OAAqB;CAC7C,OAAO,IAAI,OAAO,KAAK;AACzB;;AAGA,SAAgB,SAAS,OAA0C;CACjE,OAAO,iBAAiB;AAC1B"}
package/dist/routing.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { slugToStaticParam } from 'nextly/route-path';
1
+ import { slugToStaticParam } from "nextly/route-path";
2
+ export { slugToStaticParam };
package/dist/routing.mjs CHANGED
@@ -1,3 +1 @@
1
- export { slugToStaticParam } from 'nextly/route-path';
2
- //# sourceMappingURL=routing.mjs.map
3
- //# sourceMappingURL=routing.mjs.map
1
+ export { slugToStaticParam } from "nextly/route-path";
package/dist/schema.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { ColumnBuilder, ContributedElements, DialectStatements, DraftTableView, DrizzleSchemaHook, ExtensionColumn, ExtensionIndex, ExtensionTable, InferInsert, InferRow, PluginDatabase, PluginInsert, PluginMigration, PluginMigrationSnapshot, PluginTransaction, PortableSelect, PortableWhere, SchemaDraft, SchemaHook, SchemaOwner, TableDefinition, col, defineTable, isUniqueViolation, migrationChecksum } from 'nextly/schema-extension';
1
+ import { ColumnBuilder, ContributedElements, DialectStatements, DraftTableView, DrizzleSchemaHook, ExtensionColumn, ExtensionIndex, ExtensionTable, InferInsert, InferRow, PluginDatabase, PluginInsert, PluginMigration, PluginMigrationSnapshot, PluginTransaction, PortableSelect, PortableWhere, SchemaDraft, SchemaHook, SchemaOwner, TableDefinition, col, defineTable, isUniqueViolation, migrationChecksum } from "nextly/schema-extension";
2
+ export { type ColumnBuilder, type ContributedElements, type DialectStatements, type DraftTableView, type DrizzleSchemaHook, type ExtensionColumn, type ExtensionIndex, type ExtensionTable, type InferInsert, type InferRow, type PluginDatabase, type PluginInsert, type PluginMigration, type PluginMigrationSnapshot, type PluginTransaction, type PortableSelect, type PortableWhere, type SchemaDraft, type SchemaHook, type SchemaOwner, type TableDefinition, col, defineTable, isUniqueViolation, migrationChecksum };
package/dist/schema.mjs CHANGED
@@ -1,3 +1 @@
1
- export { col, defineTable, isUniqueViolation, migrationChecksum } from 'nextly/schema-extension';
2
- //# sourceMappingURL=schema.mjs.map
3
- //# sourceMappingURL=schema.mjs.map
1
+ export { col, defineTable, isUniqueViolation, migrationChecksum } from "nextly/schema-extension";
package/dist/testing.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { CreateTestNextlyOptions, TestDialect, TestNextly, createTestNextly, describeAbortedTransactions, getConfiguredTestDialects, takeAbortedTransactionSightings } from 'nextly/testing';
1
+ import { CreateTestNextlyOptions, TestDialect, TestNextly, createTestNextly, describeAbortedTransactions, getConfiguredTestDialects, takeAbortedTransactionSightings } from "nextly/testing";
2
+ export { type CreateTestNextlyOptions, type TestDialect, type TestNextly, createTestNextly, describeAbortedTransactions, getConfiguredTestDialects, takeAbortedTransactionSightings };
package/dist/testing.mjs CHANGED
@@ -1,3 +1 @@
1
- export { createTestNextly, describeAbortedTransactions, getConfiguredTestDialects, takeAbortedTransactionSightings } from 'nextly/testing';
2
- //# sourceMappingURL=testing.mjs.map
3
- //# sourceMappingURL=testing.mjs.map
1
+ export { createTestNextly, describeAbortedTransactions, getConfiguredTestDialects, takeAbortedTransactionSightings } from "nextly/testing";
package/dist/widgets.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { WidgetComponentProps, WidgetQueryBatchResponse, WidgetResult, WidgetResultField, WidgetSlot } from 'nextly/widget-result';
1
+ import { WidgetComponentProps, WidgetQueryBatchResponse, WidgetResult, WidgetResultField, WidgetSlot } from "nextly/widget-result";
2
+ export type { WidgetComponentProps, WidgetQueryBatchResponse, WidgetResult, WidgetResultField, WidgetSlot };
package/dist/widgets.mjs CHANGED
@@ -1,3 +1 @@
1
-
2
- //# sourceMappingURL=widgets.mjs.map
3
- //# sourceMappingURL=widgets.mjs.map
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextlyhq/plugin-sdk",
3
- "version": "0.0.2-alpha.68",
3
+ "version": "0.0.2-alpha.70",
4
4
  "description": "Nextly Plugin SDK — the author-facing surface for building Nextly plugins; the plugin API stability boundary (see STABILITY.md).",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -67,14 +67,14 @@
67
67
  "dist"
68
68
  ],
69
69
  "engines": {
70
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
70
+ "node": "^22.12.0 || >=24.0.0"
71
71
  },
72
72
  "dependencies": {
73
- "@nextlyhq/blocks-engine": "0.0.2-alpha.68"
73
+ "@nextlyhq/blocks-engine": "0.0.2-alpha.70"
74
74
  },
75
75
  "peerDependencies": {
76
- "@nextlyhq/admin": "0.0.2-alpha.68",
77
- "nextly": "0.0.2-alpha.68",
76
+ "@nextlyhq/admin": "0.0.2-alpha.70",
77
+ "nextly": "0.0.2-alpha.70",
78
78
  "react": "^18.0.0 || ^19.0.0",
79
79
  "react-dom": "^18.0.0 || ^19.0.0"
80
80
  },
@@ -90,17 +90,16 @@
90
90
  }
91
91
  },
92
92
  "devDependencies": {
93
- "@nextlyhq/admin": "0.0.2-alpha.68",
94
- "@nextlyhq/eslint-config": "0.0.2-alpha.68",
95
- "@nextlyhq/tsconfig": "0.0.2-alpha.68",
96
- "@types/node": "^20.19.17",
97
- "@types/react": "19.2.0",
98
- "nextly": "0.0.2-alpha.68",
99
- "react": "19.2.0",
100
- "react-dom": "19.2.0",
101
- "tsup": "^8.5.0",
102
- "typescript": "^5.9.3",
103
- "vitest": "^4.1.0"
93
+ "@nextlyhq/admin": "0.0.2-alpha.70",
94
+ "@nextlyhq/tsconfig": "0.0.2-alpha.70",
95
+ "@types/node": "^22.20.5",
96
+ "@types/react": "19.3.0",
97
+ "nextly": "0.0.2-alpha.70",
98
+ "react": "19.3.1",
99
+ "react-dom": "19.3.1",
100
+ "tsdown": "^0.23.1",
101
+ "typescript": "7.0.2",
102
+ "vitest": "^5.0.5"
104
103
  },
105
104
  "publishConfig": {
106
105
  "access": "public",
@@ -114,11 +113,11 @@
114
113
  "nextly-plugin"
115
114
  ],
116
115
  "scripts": {
117
- "build": "tsup",
118
- "dev": "tsup --watch",
119
- "check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.tests.json",
120
- "lint": "eslint . --max-warnings 0",
116
+ "build": "tsdown",
117
+ "dev": "tsdown --watch",
118
+ "check-types": "node ../../scripts/tsc.mjs --noEmit && node ../../scripts/tsc.mjs --noEmit -p tsconfig.tests.json",
121
119
  "clean": "rimraf dist",
122
- "test": "vitest run"
120
+ "test": "vitest run",
121
+ "test:integration": "vitest run --config vitest.integration.config.ts"
123
122
  }
124
123
  }
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"admin.mjs","sourcesContent":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"client.mjs","sourcesContent":[]}
package/dist/db.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"db.mjs","sourcesContent":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"routing.mjs","sourcesContent":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"schema.mjs","sourcesContent":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"testing.mjs","sourcesContent":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"widgets.mjs"}