@plitzi/sdk-authoring 0.39.14 → 0.39.16
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/CHANGELOG.md +14 -0
- package/dist/index-src.js +468 -297
- package/dist/index.d.ts +190 -20
- package/dist/index.js +2 -2
- package/dist/node.d.ts +7 -7
- package/dist/node.js +2 -2
- package/package.json +6 -6
- package/skills/plitzi-authoring/CHEATSHEET.md +46 -43
- package/skills/plitzi-authoring/SKILL.md +3 -3
- package/skills/plitzi-authoring/recipes/carousel.ts +2 -2
- package/skills/plitzi-authoring/recipes/forms-and-modals.ts +1 -1
- package/skills/plitzi-authoring/recipes/table.ts +60 -0
- package/skills/plitzi-authoring/reference/accessibility.md +6 -4
- package/skills/plitzi-authoring/reference/authoring-errors.md +5 -5
- package/skills/plitzi-authoring/reference/flows.md +1 -0
- package/skills/plitzi-authoring/reference/lists.md +8 -5
- package/skills/plitzi-authoring/reference/recipes.md +1 -0
- package/skills/plitzi-authoring/reference/rules.md +2 -1
- package/skills/plitzi-authoring/reference/typed-sources.md +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -939,8 +939,8 @@ export declare const AUTHORING_CODES: {
|
|
|
939
939
|
};
|
|
940
940
|
readonly 'control-without-name': {
|
|
941
941
|
readonly kind: "warned";
|
|
942
|
-
readonly means: "a button or a
|
|
943
|
-
readonly fix: "`
|
|
942
|
+
readonly means: "a button, a link or a disclosure’s summary with no words, or a field nothing names";
|
|
943
|
+
readonly fix: "`label` on the control (a button’s `title` adds the tooltip), `label` (with `hideLabel: true`) on the field";
|
|
944
944
|
};
|
|
945
945
|
readonly 'embed-without-title': {
|
|
946
946
|
readonly kind: "warned";
|
|
@@ -1430,7 +1430,7 @@ export declare const AUTHORING_CODES: {
|
|
|
1430
1430
|
readonly 'template-short-source': {
|
|
1431
1431
|
readonly kind: "refused";
|
|
1432
1432
|
readonly means: "a source named without its prefix inside a template or a step";
|
|
1433
|
-
readonly fix: "the full name: `apiContainer_stats`, `list_rows` — a list's row
|
|
1433
|
+
readonly fix: "the full name: `apiContainer_stats`, `list_rows` — a list's row is `r.item`, completed in a template too";
|
|
1434
1434
|
};
|
|
1435
1435
|
readonly 'template-source-out-of-scope': {
|
|
1436
1436
|
readonly kind: "refused";
|
|
@@ -1555,18 +1555,18 @@ export declare const AUTHORING_CODES: {
|
|
|
1555
1555
|
};
|
|
1556
1556
|
readonly 'row-and-children': {
|
|
1557
1557
|
readonly kind: "refused";
|
|
1558
|
-
readonly means: "a list with a `row` and `children` — the row is what it renders";
|
|
1558
|
+
readonly means: "a list or a table with a `row` and `children` — the row is what it renders, a table’s its columns";
|
|
1559
1559
|
readonly fix: "one of the two";
|
|
1560
1560
|
};
|
|
1561
1561
|
readonly 'row-without-id': {
|
|
1562
1562
|
readonly kind: "refused";
|
|
1563
|
-
readonly means: "a list whose `row` is a function, with no `id` — the row's sources are named after it";
|
|
1563
|
+
readonly means: "a list, a carousel or a table whose `row` is a function, with no `id` — the row's sources are named after it";
|
|
1564
1564
|
readonly fix: "`list({ id: 'products', items, row: r => … })`";
|
|
1565
1565
|
};
|
|
1566
1566
|
readonly 'row-outside-list': {
|
|
1567
1567
|
readonly kind: "refused";
|
|
1568
|
-
readonly means: "`row` on an element that is not a list";
|
|
1569
|
-
readonly fix: "a `list` around it";
|
|
1568
|
+
readonly means: "`row` on an element that is not a list, a carousel or a table";
|
|
1569
|
+
readonly fix: "a `list` (or a `table`) around it";
|
|
1570
1570
|
};
|
|
1571
1571
|
readonly 'source-name-missing': {
|
|
1572
1572
|
readonly kind: "refused";
|
|
@@ -3580,6 +3580,11 @@ export declare interface DevToolsReport {
|
|
|
3580
3580
|
/** Whether the page had its dev tools on — without them there is nothing to read. */
|
|
3581
3581
|
available: boolean;
|
|
3582
3582
|
flows: DevToolsFlow[];
|
|
3583
|
+
/**
|
|
3584
|
+
* The flows still running as it was read — a page-load flow waiting out a delay: what it holds may change yet, and a
|
|
3585
|
+
* reading of the state taken now is told from one taken once every flow has ended.
|
|
3586
|
+
*/
|
|
3587
|
+
running: DevToolsRunningFlow[];
|
|
3583
3588
|
state?: unknown;
|
|
3584
3589
|
/** Every source by its full name, with the shape of what it holds now. */
|
|
3585
3590
|
sources?: Record<string, unknown>;
|
|
@@ -3591,6 +3596,13 @@ export declare interface DevToolsReport {
|
|
|
3591
3596
|
serverFailures: Record<string, string>;
|
|
3592
3597
|
}
|
|
3593
3598
|
|
|
3599
|
+
/** A flow still on its way when the page was read: what fired it, on what, and for how long so far. */
|
|
3600
|
+
export declare interface DevToolsRunningFlow {
|
|
3601
|
+
trigger: string;
|
|
3602
|
+
on?: string;
|
|
3603
|
+
ms: number;
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3594
3606
|
export declare const dialogContainer: {
|
|
3595
3607
|
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
3596
3608
|
autoHideAfterClick?: boolean | undefined;
|
|
@@ -3643,9 +3655,11 @@ export declare const disclosure: {
|
|
|
3643
3655
|
|
|
3644
3656
|
export declare const disclosureSummary: {
|
|
3645
3657
|
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
3658
|
+
label?: string | undefined;
|
|
3646
3659
|
marker?: boolean | undefined;
|
|
3647
3660
|
}>> | undefined): ElementSpec;
|
|
3648
3661
|
(props?: ElementProps<Partial<{
|
|
3662
|
+
label?: string | undefined;
|
|
3649
3663
|
marker?: boolean | undefined;
|
|
3650
3664
|
}>> | undefined): ElementSpec;
|
|
3651
3665
|
};
|
|
@@ -4188,7 +4202,7 @@ export declare const elementAttributeNames: {
|
|
|
4188
4202
|
readonly custom: null;
|
|
4189
4203
|
readonly dialogContainer: readonly ["acceptButtonLabel", "acceptButtonLabelLoading", "autoHideAfterClick", "headerLabel", "rejectButtonLabel"];
|
|
4190
4204
|
readonly disclosure: readonly ["closeOnClickOutside", "closeOnNavigate", "name", "open"];
|
|
4191
|
-
readonly disclosureSummary: readonly ["marker"];
|
|
4205
|
+
readonly disclosureSummary: readonly ["label", "marker"];
|
|
4192
4206
|
readonly dropdown: readonly ["backgroundDisabled", "closeOnClickBackground", "closeOnClickPopup", "containerLeftOffset", "containerTopOffset", "disabled", "openPopup", "popupPlacement", "popupWidth"];
|
|
4193
4207
|
readonly dropdownPopup: readonly [];
|
|
4194
4208
|
readonly embed: readonly ["allow", "loading", "referrerPolicy", "sandbox", "src", "title"];
|
|
@@ -4219,6 +4233,8 @@ export declare const elementAttributeNames: {
|
|
|
4219
4233
|
readonly tabContainerBody: readonly [];
|
|
4220
4234
|
readonly tabContainerHeader: readonly [];
|
|
4221
4235
|
readonly tabContainerItem: readonly ["hash"];
|
|
4236
|
+
readonly table: readonly ["caption", "itemKey", "items"];
|
|
4237
|
+
readonly tableColumn: readonly ["header", "rowHeader"];
|
|
4222
4238
|
readonly text: readonly ["content", "decorative", "title"];
|
|
4223
4239
|
readonly themeToggle: readonly ["darkLabel", "lightLabel", "showSystem", "subType", "systemLabel"];
|
|
4224
4240
|
readonly timeWindow: readonly ["endsAt", "startsAt"];
|
|
@@ -5579,6 +5595,7 @@ declare const elementDeclarations: {
|
|
|
5579
5595
|
readonly content: {
|
|
5580
5596
|
readonly attributes: {
|
|
5581
5597
|
readonly marker: true;
|
|
5598
|
+
readonly label: "";
|
|
5582
5599
|
};
|
|
5583
5600
|
readonly definition: {
|
|
5584
5601
|
readonly label: "Disclosure Summary";
|
|
@@ -5625,6 +5642,7 @@ declare const elementDeclarations: {
|
|
|
5625
5642
|
};
|
|
5626
5643
|
};
|
|
5627
5644
|
}, Partial<{
|
|
5645
|
+
label?: string | undefined;
|
|
5628
5646
|
marker?: boolean | undefined;
|
|
5629
5647
|
}>>;
|
|
5630
5648
|
readonly FocusGroup: DeclaredElement< {
|
|
@@ -7150,6 +7168,116 @@ declare const elementDeclarations: {
|
|
|
7150
7168
|
};
|
|
7151
7169
|
};
|
|
7152
7170
|
}, unknown>;
|
|
7171
|
+
readonly Table: DeclaredElement< {
|
|
7172
|
+
readonly type: "table";
|
|
7173
|
+
readonly sourceType: "table";
|
|
7174
|
+
readonly publishes: {
|
|
7175
|
+
readonly items: "Every row it draws, as its items give them";
|
|
7176
|
+
readonly item: "Inside a row: that row's item";
|
|
7177
|
+
readonly index: "Inside a row: its place, from 0";
|
|
7178
|
+
};
|
|
7179
|
+
readonly content: {
|
|
7180
|
+
readonly attributes: {
|
|
7181
|
+
readonly items: readonly [];
|
|
7182
|
+
readonly caption: "";
|
|
7183
|
+
};
|
|
7184
|
+
readonly definition: {
|
|
7185
|
+
readonly label: "Table";
|
|
7186
|
+
readonly description: string;
|
|
7187
|
+
readonly items: [];
|
|
7188
|
+
readonly styleSelectors: {
|
|
7189
|
+
readonly caption: "";
|
|
7190
|
+
readonly head: "";
|
|
7191
|
+
readonly row: "";
|
|
7192
|
+
};
|
|
7193
|
+
};
|
|
7194
|
+
readonly builder: {
|
|
7195
|
+
readonly itemsAllowed: ["tableColumn"];
|
|
7196
|
+
};
|
|
7197
|
+
readonly market: {
|
|
7198
|
+
readonly category: "structure";
|
|
7199
|
+
readonly icon: "fa-solid fa-table";
|
|
7200
|
+
};
|
|
7201
|
+
readonly defaultStyle: {
|
|
7202
|
+
readonly style: {
|
|
7203
|
+
readonly base: {
|
|
7204
|
+
readonly default: {
|
|
7205
|
+
readonly width: "100%";
|
|
7206
|
+
readonly 'border-collapse': "collapse";
|
|
7207
|
+
readonly 'text-align': "left";
|
|
7208
|
+
};
|
|
7209
|
+
};
|
|
7210
|
+
readonly caption: {
|
|
7211
|
+
readonly default: {
|
|
7212
|
+
readonly 'text-align': "left";
|
|
7213
|
+
readonly 'padding-bottom': "8px";
|
|
7214
|
+
};
|
|
7215
|
+
};
|
|
7216
|
+
readonly head: {
|
|
7217
|
+
readonly default: {
|
|
7218
|
+
readonly 'border-bottom-width': "1px";
|
|
7219
|
+
readonly 'border-bottom-style': "solid";
|
|
7220
|
+
readonly 'border-bottom-color': "currentColor";
|
|
7221
|
+
};
|
|
7222
|
+
};
|
|
7223
|
+
readonly row: {
|
|
7224
|
+
readonly default: {
|
|
7225
|
+
readonly 'border-bottom-width': "1px";
|
|
7226
|
+
readonly 'border-bottom-style': "solid";
|
|
7227
|
+
readonly 'border-bottom-color': "rgba(127, 127, 127, 0.25)";
|
|
7228
|
+
};
|
|
7229
|
+
};
|
|
7230
|
+
};
|
|
7231
|
+
readonly subTypes: {};
|
|
7232
|
+
};
|
|
7233
|
+
};
|
|
7234
|
+
}, Partial<{
|
|
7235
|
+
caption?: string | undefined;
|
|
7236
|
+
items?: unknown[] | undefined;
|
|
7237
|
+
itemKey?: string | undefined;
|
|
7238
|
+
}>>;
|
|
7239
|
+
readonly TableColumn: DeclaredElement< {
|
|
7240
|
+
readonly type: "tableColumn";
|
|
7241
|
+
readonly ancestorType: "table";
|
|
7242
|
+
readonly content: {
|
|
7243
|
+
readonly attributes: {
|
|
7244
|
+
readonly header: "";
|
|
7245
|
+
readonly rowHeader: false;
|
|
7246
|
+
};
|
|
7247
|
+
readonly definition: {
|
|
7248
|
+
readonly label: "Table Column";
|
|
7249
|
+
readonly description: string;
|
|
7250
|
+
readonly items: [];
|
|
7251
|
+
readonly styleSelectors: {
|
|
7252
|
+
readonly header: "";
|
|
7253
|
+
};
|
|
7254
|
+
};
|
|
7255
|
+
readonly market: {
|
|
7256
|
+
readonly category: "structure";
|
|
7257
|
+
readonly icon: "fa-solid fa-table-columns";
|
|
7258
|
+
};
|
|
7259
|
+
readonly defaultStyle: {
|
|
7260
|
+
readonly style: {
|
|
7261
|
+
readonly base: {
|
|
7262
|
+
readonly default: {
|
|
7263
|
+
readonly padding: "8px 12px";
|
|
7264
|
+
readonly 'vertical-align': "top";
|
|
7265
|
+
};
|
|
7266
|
+
};
|
|
7267
|
+
readonly header: {
|
|
7268
|
+
readonly default: {
|
|
7269
|
+
readonly 'font-weight': "600";
|
|
7270
|
+
readonly 'white-space': "nowrap";
|
|
7271
|
+
};
|
|
7272
|
+
};
|
|
7273
|
+
};
|
|
7274
|
+
readonly subTypes: {};
|
|
7275
|
+
};
|
|
7276
|
+
};
|
|
7277
|
+
}, Partial<{
|
|
7278
|
+
header?: string | undefined;
|
|
7279
|
+
rowHeader?: boolean | undefined;
|
|
7280
|
+
}>>;
|
|
7153
7281
|
readonly Loading: DeclaredElement< {
|
|
7154
7282
|
readonly type: "loading";
|
|
7155
7283
|
readonly content: {
|
|
@@ -10617,7 +10745,10 @@ declare type ListProps = ElementProps<Omit<ListAttributes, 'items'> & {
|
|
|
10617
10745
|
items?: ListAttributes['items'] | string;
|
|
10618
10746
|
}>;
|
|
10619
10747
|
|
|
10620
|
-
/**
|
|
10748
|
+
/**
|
|
10749
|
+
* A list's row by its names — one name each, wherever it is read: a binding, `from`, a template or an attribute's
|
|
10750
|
+
* token (a template's is completed to the row's source in full, `list_rows.item`, as it is authored).
|
|
10751
|
+
*/
|
|
10621
10752
|
export declare interface ListRow {
|
|
10622
10753
|
/** The list's own name, as the space knows it. */
|
|
10623
10754
|
list: string;
|
|
@@ -10627,11 +10758,6 @@ export declare interface ListRow {
|
|
|
10627
10758
|
item: string;
|
|
10628
10759
|
/** Its position: `rows.index`. */
|
|
10629
10760
|
index: string;
|
|
10630
|
-
/** The same names in full, for a template or an attribute token: `{{ list_rows.item.slug }}`. */
|
|
10631
|
-
inTemplate: {
|
|
10632
|
-
item: string;
|
|
10633
|
-
index: string;
|
|
10634
|
-
};
|
|
10635
10761
|
}
|
|
10636
10762
|
|
|
10637
10763
|
export declare interface LoadedImages {
|
|
@@ -13504,16 +13630,11 @@ export declare type SourcePath<T> = SourceBrand & (T extends readonly (infer Ite
|
|
|
13504
13630
|
|
|
13505
13631
|
/**
|
|
13506
13632
|
* The row of a list fed by a typed source: its item as the sample's item, its position as a number — both already the
|
|
13507
|
-
* full names a template reads (`` `{{ ${r.item.slug} }}` ``)
|
|
13508
|
-
* row has them.
|
|
13633
|
+
* full names a template reads (`` `{{ ${r.item.slug} }}` ``).
|
|
13509
13634
|
*/
|
|
13510
13635
|
export declare interface SourceRow<Item> {
|
|
13511
13636
|
item: SourcePath<Item>;
|
|
13512
13637
|
index: SourcePath<number>;
|
|
13513
|
-
inTemplate: {
|
|
13514
|
-
item: string;
|
|
13515
|
-
index: string;
|
|
13516
|
-
};
|
|
13517
13638
|
}
|
|
13518
13639
|
|
|
13519
13640
|
/**
|
|
@@ -14538,6 +14659,38 @@ export declare const tabContainerItem: {
|
|
|
14538
14659
|
}>> | undefined): ElementSpec;
|
|
14539
14660
|
};
|
|
14540
14661
|
|
|
14662
|
+
/**
|
|
14663
|
+
* A table of data: its `row` writes its columns — `tableColumn`s, each a `header` and the cell it draws with the row in
|
|
14664
|
+
* hand — and its `items` are its rows, written out, a source's name or a typed source's path, as a list's:
|
|
14665
|
+
*
|
|
14666
|
+
* ```ts
|
|
14667
|
+
* table({ id: 'plans', caption: 'Plans compared', items: site.data.plans, row: r => [
|
|
14668
|
+
* tableColumn({ header: 'Plan', rowHeader: true, children: [text({ from: r.item.name })] }),
|
|
14669
|
+
* tableColumn({ header: 'Price', children: [text({ from: r.item.price })] })
|
|
14670
|
+
* ] })
|
|
14671
|
+
* ```
|
|
14672
|
+
*/
|
|
14673
|
+
export declare function table<Item>(props: TypedTableProps<Item>): ElementSpec;
|
|
14674
|
+
|
|
14675
|
+
export declare function table(props?: TableProps): ElementSpec;
|
|
14676
|
+
|
|
14677
|
+
declare type TableAttributes = AttributesOf<typeof elementDeclarations.Table>;
|
|
14678
|
+
|
|
14679
|
+
export declare const tableColumn: {
|
|
14680
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
14681
|
+
header?: string | undefined;
|
|
14682
|
+
rowHeader?: boolean | undefined;
|
|
14683
|
+
}>> | undefined): ElementSpec;
|
|
14684
|
+
(props?: ElementProps<Partial<{
|
|
14685
|
+
header?: string | undefined;
|
|
14686
|
+
rowHeader?: boolean | undefined;
|
|
14687
|
+
}>> | undefined): ElementSpec;
|
|
14688
|
+
};
|
|
14689
|
+
|
|
14690
|
+
declare type TableProps = ElementProps<Omit<TableAttributes, 'items'> & {
|
|
14691
|
+
items?: TableAttributes['items'] | string;
|
|
14692
|
+
}>;
|
|
14693
|
+
|
|
14541
14694
|
export declare type TagType = 'class' | 'element' | 'id';
|
|
14542
14695
|
|
|
14543
14696
|
/** Colour names beside the palette: a space's tokens (`surface: 'var(--surface)'`), or a palette name redefined. */
|
|
@@ -14865,6 +15018,12 @@ declare type TypedListProps<Item> = Omit<ListProps, 'items' | 'row'> & {
|
|
|
14865
15018
|
row?: string | RowWriter<SourceRow<Item>>;
|
|
14866
15019
|
};
|
|
14867
15020
|
|
|
15021
|
+
/** A table fed by a typed source: its `row` is handed the item typed, and writes the columns. */
|
|
15022
|
+
declare type TypedTableProps<Item> = Omit<TableProps, 'items' | 'row'> & {
|
|
15023
|
+
items: SourcePath<readonly Item[]>;
|
|
15024
|
+
row?: string | RowWriter<SourceRow<Item>>;
|
|
15025
|
+
};
|
|
15026
|
+
|
|
14868
15027
|
/** The triggers only some types fire, by action name — for a step builder that wants the title the builder shows. */
|
|
14869
15028
|
export declare const typeTriggerDefinitions: Record<string, InteractionCallback>;
|
|
14870
15029
|
|
|
@@ -15130,6 +15289,9 @@ export declare const video: {
|
|
|
15130
15289
|
}>> | undefined): ElementSpec;
|
|
15131
15290
|
};
|
|
15132
15291
|
|
|
15292
|
+
/** What a visibility compares its source with: `visibleIf('state.step', '>=', 2)`. */
|
|
15293
|
+
export declare type VisibleComparison = '==' | '!=' | '>' | '>=' | '<' | '<=';
|
|
15294
|
+
|
|
15133
15295
|
/**
|
|
15134
15296
|
* A visibility the data does not answer on its own: a template over the value, read as a yes or a no —
|
|
15135
15297
|
* `{ source: 'state.genre', template: "{{ source == '' or source == list_games.item.genre }}" }`. `false`, `0`, an
|
|
@@ -15143,6 +15305,14 @@ export declare interface VisibleCondition {
|
|
|
15143
15305
|
template: string;
|
|
15144
15306
|
}
|
|
15145
15307
|
|
|
15308
|
+
/**
|
|
15309
|
+
* The visibility most conditions are: shown once a source compares so with a value — `visible: visibleIf('state.step',
|
|
15310
|
+
* '>=', 2)` — and hidden while the source has none yet. It writes the condition a `{ source, template }` is
|
|
15311
|
+
* (`{{ source is defined and source >= 2 }}`); anything more — two sources, a row and the state — is that form written
|
|
15312
|
+
* out.
|
|
15313
|
+
*/
|
|
15314
|
+
export declare const visibleIf: (source: SourceName, comparison: VisibleComparison, value: string | number | boolean) => VisibleCondition;
|
|
15315
|
+
|
|
15146
15316
|
/** A visibility condition whose source may be a typed source's path as well as a name. */
|
|
15147
15317
|
export declare type VisibleInput = Omit<VisibleCondition, 'source'> & {
|
|
15148
15318
|
source: SourceName;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as readDevTools, $a as carouselTrack, $i as onBlur, $n as css, $o as
|
|
1
|
+
import { $ as readDevTools, $a as carouselTrack, $i as onBlur, $n as css, $o as authorBinding, $r as SET_STATE_TYPES, $s as l, $t as journeyStartWarnings, A as withElement, Aa as openDialog, Ai as when, An as pressFailure, Ao as tabContainer, As as elementPublishes, At as actionSpecFromEntry, B as pageDecorations, Ba as updateElement, Bi as carouselNext, Bn as grid, Bo as variants, Br as instanceSelectorFor, Bs as n$1, Bt as suggestClassOverrides, C as stepLines, Ca as onPageChange, Ci as toggleState, Cn as HYDRATION_MS, Co as pagination, Cs as elementAttributeValues, Ct as searchScore, D as e2eStepProblems, Da as onSubmit, Di as authorFlows, Dn as hoverElement, Do as richText, Ds as elementLeafTypes, Dt as specToSource, E as unit, Ea as onScroll, Ei as authorFlow, En as fieldsOf, Eo as reference, Es as elementDefaultAttributes, Et as SPACE_FIELDS, F as PAGE_TEXT_LIMIT, Fa as scrollBy, Fi as applyBuiltinCallback, Fn as STATE_PATH_PARAMS, Fo as tableColumn, Fs as typeCallbackDefinitions, Ft as suggestTransformer, G as profilePictures, Ga as i, Gi as closeModal, Gn as isClassModifier, Go as defaultLabel, Gr as flagSpecOf, Gs as e, Gt as familyOf, H as comparePictures, Ha as pluginTypesOf, Hi as carouselPlay, Hn as className, Ho as component, Hr as pathForSlug, Hs as t$1, Ht as PAGE_SPEC_FIELDS, I as compareTexts, Ia as scrollIntoView, Ii as getGlobalCallback, In as tokens, Io as text, Is as typeTriggerDefinitions, It as transformerCatalog, J as inspectDocument, Ja as avatar, Ji as focus, Jn as modifierClassName, Jo as inferredLinkMode, Jr as taskAction, Js as r$1, Jt as withNotificationsCss, K as loadImages, Ka as account, Ki as declaredCallback, Kn as isClassRef, Ko as defineElement, Kr as authoringCodesTable, Ks as i$2, Kt as pageFamily, L as pageTexts, La as scrollTo, Li as announceOn, Ln as createTw, Lo as themeToggle, Lr as digest, Lt as assertSnippetValid, M as shortcutKey, Ma as publishOn, Mi as whenSucceeded, Mn as settle, Mo as tabContainerHeader, Ms as elementSourceTypes, Mt as withNamedIds, N as inspectRenders, Na as reloadApi, Ni as whileRunning, Nn as targetId, No as tabContainerItem, Ns as elementTriggers, Nt as BUILTIN_TRANSFORMERS, O as readSpaceTests, Oa as onThemeChange, Oi as flowStepIds, On as locateField, Oo as signInForm, Os as elementMarks, Ot as specFromSpace, P as summariseRenders, Pa as resetForm, Pi as BUILTIN_GLOBAL_CALLBACKS, Pn as targetOf, Po as table, Ps as elementTypeNames, Pt as getTransformer, Q as failedFlowText, Qa as carousel, Qi as onApiSuccess, Qn as STYLE_STATES, Qo as activeWhen, Qr as getUtility, Qs as i$1, Qt as e2eTestProblems, R as PAGE_DECORATION_LIMIT, Ra as setFieldValue, Ri as cancelApi, Rn as tw, Ro as timeWindow, Rr as slugify, Rs as n, Rt as assertSpaceValid, S as parseE2eSteps, Sa as onMouseLeave, Si as toggleInState, Sn as FIELD, So as nodeHtml, Ss as elementAncestorTypes, St as explanationText, T as e2e, Ta as onPointerDown, Ti as webHook, Tn as endlesslyMovedInPage, To as plitziSdk, Ts as elementCatalog, Tt as ELEMENT_FIELDS, U as diffPictures, Ua as withPluginCatalogs, Ui as carouselPrevious, Un as classNames, Uo as declaresAttribute, Ur as selectorFor, Ut as SpaceRefusedError, V as alignPictures, Va as elementsFromManifest, Vi as carouselPause, Vn as row, Vo as video, Vr as locate, Vs as r, Vt as unusedDeclarations, W as pageRegions, Wa as d, Wi as closeDialog, Wn as classRefs, Wo as defaultAttributes, Wr as flagGateOf, Ws as elementAttributeNames, Wt as refusalOf, X as onScreen, Xa as blockJsx, Xi as on, Xn as styles, Xo as GLOBAL_SOURCES, Xr as BUILTIN_UTILITIES, Xs as a, Xt as FIXABLE_CODES, Y as inspectPage, Ya as blockHtml, Yi as fullscreen, Yn as splitClassList, Yo as COMPONENT_SOURCES, Ys as t$2, Yt as navOf, Z as onScreenIfChosen, Za as button, Zi as onApiError, Zn as BREAKPOINTS, Zo as activeOn, Zr as applyUtility, Zs as c, Zt as unitTestProblems, _ as durationMs, _a as onLoad, _i as runServerAction, _n as dragElement, _o as link, _r as suggestCssProperty, _s as AUTHORING_CODES, _t as GLOBAL_CALLBACK_BUILDERS, a as locateClasses, aa as onDialogOpen, ac as r$4, ai as authRefreshDetails, an as playE2eStep, ao as dialogContainer, ar as expandShorthand, as as resolveSource, at as blankTemplateFiles, b as leadingTarget, ba as onModalOpen, bi as share, bn as shownCopy, bo as markdown, bs as authoringCodeEntry, bt as explainList, c as suggestSpace, ca as onFlowError, cc as a$2, ci as copyToClipboard, cn as unitReportText, co as dropdown, cr as shorthandLonghands, cs as variantFrom, ct as toPortableSource, d as compactSvg, da as onHover, di as hostAction, dn as EDGES, do as focusGroup, dr as cssNumberValue, ds as withVisibility, dt as darkScheme, ea as onChange, ec as o, ei as addNotification, en as testAccountWarnings, eo as channel, er as isRuleSetSpec, es as bindTemplate, et as readDevToolsInPage, f as e2eResultText, fa as onInterval, fi as invalidateQueries, fn as parseRelation, fo as fontAwesome, fr as cssProperties, fs as actionSource, ft as importSlug, g as MAX_WAIT_FOR_MS, ga as onLeave, gi as removeState, gn as answered, go as image, gr as replacedCssProperty, gs as scope, gt as EXPLAIN_KINDS, h as E2E_STEP_USAGE, ha as onKey, hi as reachGoal, hn as sidePx, ho as heading, hr as isCustomProperty, hs as closest, ht as BUILDER_NAMES, i as lintSpace, ia as onDialogClose, ic as n$2, ii as authLogoutEverywhere, in as isExpectation, io as custom, ir as cssShorthands, is as hiddenWhen, it as blankSpace, j as pressShortcut, ja as openModal, ji as whenFailed, jn as pressOnce, jo as tabContainerBody, js as elementSlots, jt as actionToSource, k as singlePageSpace, ka as onView, ki as named, kn as locateTarget, ko as svg, ks as elementPartTypes, kt as compareSpaces, l as validateSnippet, la as onFlowProgress, lc as i$3, li as cycleState, ln as resolveElement, lo as dropdownPopup, lr as ambiguousShorthands, ls as visibleIf, lt as space$1, m as runE2eTest, ma as onJoin, mi as navigate, mn as relationHolds, mo as formControl, mr as isCssProperty, ms as twig, mt as importProbe, n as authorSpace, na as onCountdownEnd, nc as u, ni as authLogin, nn as pageAt, no as container, nr as toBlocks, ns as groupBindings, nt as answerAction, o as locateElements, oa as onDialogReject, oc as s$1, oi as cancelServerAction, on as runUnitTest, oo as disclosure, or as expandShorthandPatch, os as scopedHint, ot as catalogTemplateFiles, p as journeyAccount, pa as onInvalid, pi as moveState, pn as relationElements, po as form, pr as cssPropertyName, ps as source, pt as importedFiles, q as unrollPage, qa as apiContainer, qi as declaredTrigger, qn as isStyleDeclaration, qo as element, qr as defineAction, qs as n$3, qt as notificationsCss, r as fixSpace, ra as onDialogAccept, rc as c$1, ri as authLogout, rn as bridge, ro as countdown, rr as toResponsive, rs as hasVisibilityBinding, rt as CATALOG_TEMPLATE_IDENTITY, s as planFixes, sa as onFlowEnd, sc as t, si as clearState, sn as runUnitTests, so as disclosureSummary, sr as expandShorthandTraced, ss as toBindingSpecs, st as emptyTemplateFiles, t as authorSnippet, ta as onClick, tc as s, ti as appendState, tn as audienceAt, to as chart, tr as sameBlocks, ts as boundAttribute, tt as dataIssues, u as validateSpace, ua as onFocus, uc as o$1, ui as delay, un as openPage, uo as embed, ur as fontUnread, us as visibleWhen, ut as space, v as e2eStepText, va as onMessage, vi as runServerActionOrNotify, vn as giveValue, vo as list, vs as AUTHORING_ONLY_CODES, vt as explain, w as unquoted, wa as onPageLoad, wi as twigTemplate, wn as awaitHydration, wo as paragraph, ws as elementCallbacks, wt as searchWords, x as parseE2eStep, xa as onMouseEnter, xi as stepState, xn as valueFieldIn, xo as modalContainer, xs as isSuggestionCode, xt as explainSearch, y as isE2eStepWord, ya as onModalClose, yi as setState, yn as hiddenAtWidth, yo as listItem, ys as AuthoringError, yt as explainKindOf, z as compareDecorations, za as toggleElement, zi as carouselGoTo, zn as column, zo as variantItem, zr as buildHandles, zs as r$3, zt as withoutQuieted } from "./index-src.js";
|
|
2
2
|
import { n as e$1, r as r$2, t as a$1 } from "./index-declare.js";
|
|
3
|
-
export { AUTHORING_CODES, AUTHORING_ONLY_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, c as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, s as FULLSCREEN_CALLBACKS, o as FULLSCREEN_MODES, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STATE_PATH_PARAMS, STYLE_STATES, SpaceRefusedError, account, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, u as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, avatar, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, countdown, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, disclosure, disclosureSummary, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, endlesslyMovedInPage, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, focusGroup, fontAwesome, fontUnread, form, formControl, fullscreen, l as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, hoverElement, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onCountdownEnd, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pluginTypesOf, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, reachGoal, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, share, shortcutKey, shorthandLonghands, shownCopy, sidePx, signInForm, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, text, themeToggle, timeWindow, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, variantItem, variants, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
|
|
3
|
+
export { AUTHORING_CODES, AUTHORING_ONLY_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, c as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, s as FULLSCREEN_CALLBACKS, o as FULLSCREEN_MODES, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STATE_PATH_PARAMS, STYLE_STATES, SpaceRefusedError, account, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, u as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, avatar, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, countdown, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, disclosure, disclosureSummary, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, endlesslyMovedInPage, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, focusGroup, fontAwesome, fontUnread, form, formControl, fullscreen, l as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, hoverElement, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onCountdownEnd, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pluginTypesOf, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, reachGoal, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, share, shortcutKey, shorthandLonghands, shownCopy, sidePx, signInForm, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, table, tableColumn, targetId, targetOf, taskAction, testAccountWarnings, text, themeToggle, timeWindow, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, variantItem, variants, video, visibleIf, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
|
package/dist/node.d.ts
CHANGED
|
@@ -317,8 +317,8 @@ declare const AUTHORING_CODES: {
|
|
|
317
317
|
};
|
|
318
318
|
readonly 'control-without-name': {
|
|
319
319
|
readonly kind: "warned";
|
|
320
|
-
readonly means: "a button or a
|
|
321
|
-
readonly fix: "`
|
|
320
|
+
readonly means: "a button, a link or a disclosure’s summary with no words, or a field nothing names";
|
|
321
|
+
readonly fix: "`label` on the control (a button’s `title` adds the tooltip), `label` (with `hideLabel: true`) on the field";
|
|
322
322
|
};
|
|
323
323
|
readonly 'embed-without-title': {
|
|
324
324
|
readonly kind: "warned";
|
|
@@ -808,7 +808,7 @@ declare const AUTHORING_CODES: {
|
|
|
808
808
|
readonly 'template-short-source': {
|
|
809
809
|
readonly kind: "refused";
|
|
810
810
|
readonly means: "a source named without its prefix inside a template or a step";
|
|
811
|
-
readonly fix: "the full name: `apiContainer_stats`, `list_rows` — a list's row
|
|
811
|
+
readonly fix: "the full name: `apiContainer_stats`, `list_rows` — a list's row is `r.item`, completed in a template too";
|
|
812
812
|
};
|
|
813
813
|
readonly 'template-source-out-of-scope': {
|
|
814
814
|
readonly kind: "refused";
|
|
@@ -933,18 +933,18 @@ declare const AUTHORING_CODES: {
|
|
|
933
933
|
};
|
|
934
934
|
readonly 'row-and-children': {
|
|
935
935
|
readonly kind: "refused";
|
|
936
|
-
readonly means: "a list with a `row` and `children` — the row is what it renders";
|
|
936
|
+
readonly means: "a list or a table with a `row` and `children` — the row is what it renders, a table’s its columns";
|
|
937
937
|
readonly fix: "one of the two";
|
|
938
938
|
};
|
|
939
939
|
readonly 'row-without-id': {
|
|
940
940
|
readonly kind: "refused";
|
|
941
|
-
readonly means: "a list whose `row` is a function, with no `id` — the row's sources are named after it";
|
|
941
|
+
readonly means: "a list, a carousel or a table whose `row` is a function, with no `id` — the row's sources are named after it";
|
|
942
942
|
readonly fix: "`list({ id: 'products', items, row: r => … })`";
|
|
943
943
|
};
|
|
944
944
|
readonly 'row-outside-list': {
|
|
945
945
|
readonly kind: "refused";
|
|
946
|
-
readonly means: "`row` on an element that is not a list";
|
|
947
|
-
readonly fix: "a `list` around it";
|
|
946
|
+
readonly means: "`row` on an element that is not a list, a carousel or a table";
|
|
947
|
+
readonly fix: "a `list` (or a `table`) around it";
|
|
948
948
|
};
|
|
949
949
|
readonly 'source-name-missing': {
|
|
950
950
|
readonly kind: "refused";
|
package/dist/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as o$3,
|
|
1
|
+
import { Ar as o$3, Cr as b$1, Dr as g$1, Er as f$2, Fr as v$1, Ho as component, Ir as y$1, Ls as $, Mr as s$3, Nr as t$1, Or as l$3, Pr as u$3, Sr as _, Tr as d$2, Us as e$2, Yr as c$3, br as N$1, d as compactSvg, jr as p$2, kr as m$2, n as authorSpace, no as container, qo as element, u as validateSpace, vr as C$1, wr as c$4, xr as P, yr as M$1, zr as buildHandles } from "./index-src.js";
|
|
2
2
|
import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import e from "node:path";
|
|
@@ -494,7 +494,7 @@ var SpacePreviewError = class extends Error {
|
|
|
494
494
|
};
|
|
495
495
|
Object.defineProperty(SpacePreviewError, "name", { value: "SpacePreviewError" });
|
|
496
496
|
var PREVIEW_ID = N$1;
|
|
497
|
-
var BUILT_IN = new Set(Object.values(
|
|
497
|
+
var BUILT_IN = new Set(Object.values($).map((declaration) => declaration.type));
|
|
498
498
|
/** A preview file read as one, or why it is not, said whole. */
|
|
499
499
|
var parsePreview = (value) => {
|
|
500
500
|
if (!e$2(value) || typeof value.element !== "string" || value.element === "") return { problem: "it names no element: write { \"element\": \"<a component or an element type>\", \"copies\": [{ … }] }" };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-authoring",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.16",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/index.js",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@microsoft/api-extractor": "^7.60.1",
|
|
69
69
|
"@plitzi/plitzi-ui": "^1.6.41",
|
|
70
|
-
"@plitzi/sdk-elements": "0.39.
|
|
71
|
-
"@plitzi/sdk-interactions": "0.39.
|
|
72
|
-
"@plitzi/sdk-schema": "0.39.
|
|
73
|
-
"@plitzi/sdk-shared": "0.39.
|
|
74
|
-
"@plitzi/sdk-style": "0.39.
|
|
70
|
+
"@plitzi/sdk-elements": "0.39.16",
|
|
71
|
+
"@plitzi/sdk-interactions": "0.39.16",
|
|
72
|
+
"@plitzi/sdk-schema": "0.39.16",
|
|
73
|
+
"@plitzi/sdk-shared": "0.39.16",
|
|
74
|
+
"@plitzi/sdk-style": "0.39.16",
|
|
75
75
|
"@types/react": "^19.3.0",
|
|
76
76
|
"eslint": "^9.39.5",
|
|
77
77
|
"prettier": "^3.10.1",
|