@aglyn/aglyn 1.0.0-beta.292 → 1.0.0-beta.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/src/lib/app-utils/analytics-events.d.ts +12 -2
- package/src/lib/app-utils/analytics-events.js.map +1 -1
- package/src/lib/app-utils/business-profile-values.d.ts +3 -2
- package/src/lib/app-utils/business-profile-values.js +4 -3
- package/src/lib/app-utils/business-profile-values.js.map +1 -1
- package/src/lib/app-utils/crm-kinds.d.ts +7 -1
- package/src/lib/app-utils/crm-kinds.js +11 -0
- package/src/lib/app-utils/crm-kinds.js.map +1 -1
- package/src/lib/app-utils/crm.d.ts +5 -1
- package/src/lib/app-utils/crm.js +51 -4
- package/src/lib/app-utils/crm.js.map +1 -1
- package/src/lib/app-utils/docs-help-sections.generated.js +8 -7
- package/src/lib/app-utils/docs-help-sections.generated.js.map +1 -1
- package/src/lib/app-utils/docs-help.generated.d.ts +9 -3
- package/src/lib/app-utils/docs-help.generated.js +20 -1
- package/src/lib/app-utils/docs-help.generated.js.map +1 -1
- package/src/lib/app-utils/docs-index.generated.js +124 -40
- package/src/lib/app-utils/docs-index.generated.js.map +1 -1
- package/src/lib/app-utils/notifications.d.ts +31 -2
- package/src/lib/app-utils/notifications.js +18 -2
- package/src/lib/app-utils/notifications.js.map +1 -1
- package/src/lib/app-utils/screen-version-publish.d.ts +71 -0
- package/src/lib/app-utils/screen-version-publish.js +82 -0
- package/src/lib/app-utils/screen-version-publish.js.map +1 -0
- package/src/lib/app-utils/server.d.ts +1 -0
- package/src/lib/app-utils/server.js +1 -0
- package/src/lib/app-utils/server.js.map +1 -1
- package/src/lib/app-utils/site-create-return.d.ts +63 -0
- package/src/lib/app-utils/site-create-return.js +72 -0
- package/src/lib/app-utils/site-create-return.js.map +1 -0
- package/src/lib/app-utils/site-starter-pick.d.ts +51 -0
- package/src/lib/app-utils/site-starter-pick.js +47 -0
- package/src/lib/app-utils/site-starter-pick.js.map +1 -0
- package/src/lib/app-utils/site-styles.d.ts +110 -0
- package/src/lib/app-utils/site-styles.js +126 -0
- package/src/lib/app-utils/site-styles.js.map +1 -0
- package/src/lib/app-utils/site-unavailable.d.ts +96 -0
- package/src/lib/app-utils/site-unavailable.js +80 -0
- package/src/lib/app-utils/site-unavailable.js.map +1 -0
- package/src/lib/app-utils/version-draft.d.ts +31 -0
- package/src/lib/app-utils/version-draft.js +29 -0
- package/src/lib/app-utils/version-draft.js.map +1 -0
- package/src/lib/app-utils/visitor-upload.d.ts +19 -0
- package/src/lib/app-utils/visitor-upload.js +29 -1
- package/src/lib/app-utils/visitor-upload.js.map +1 -1
- package/src/lib/foundation/definitions/platform.types.d.ts +9 -0
- package/src/lib/foundation/definitions/platform.types.js.map +1 -1
- package/src/lib/plugin-manager/feature-plugins.d.ts +68 -13
- package/src/lib/plugin-manager/feature-plugins.js +16 -9
- package/src/lib/plugin-manager/feature-plugins.js.map +1 -1
- package/src/lib/plugin-manager/plugin-record-timeline.d.ts +5 -2
- package/src/lib/plugin-manager/plugin-record-timeline.js.map +1 -1
- package/src/lib/plugin-manager/plugin-site-starters.d.ts +30 -0
- package/src/lib/plugin-manager/plugin-site-starters.js +19 -0
- package/src/lib/plugin-manager/plugin-site-starters.js.map +1 -1
- package/src/lib/plugin-manager/plugin-site-style-looks.d.ts +43 -0
- package/src/lib/plugin-manager/plugin-site-style-looks.js +30 -0
- package/src/lib/plugin-manager/plugin-site-style-looks.js.map +1 -0
- package/src/lib/plugin-manager/plugin-upload-storage-gate.d.ts +60 -0
- package/src/lib/plugin-manager/plugin-upload-storage-gate.js +32 -0
- package/src/lib/plugin-manager/plugin-upload-storage-gate.js.map +1 -0
|
@@ -797,10 +797,12 @@ export declare const CONSOLE_WIDGET_SLOTS: {
|
|
|
797
797
|
*
|
|
798
798
|
* "Create site" draws this zone first, with `pendingSite` and no site: the
|
|
799
799
|
* name and address are asked inside the widget's own first step, and the
|
|
800
|
-
* site is created only by a choice that needs it — the starter
|
|
801
|
-
*
|
|
802
|
-
*
|
|
803
|
-
*
|
|
800
|
+
* site is created only by a choice that needs it — the starter in a style
|
|
801
|
+
* the person chose (AGL-4049: nothing is chosen for them, so there is no
|
|
802
|
+
* Skip), or a start the widget begins. A dismissal there is `leave`, and
|
|
803
|
+
* creates nothing. A zone with no widget, or a widget that answers
|
|
804
|
+
* `ready(false)`, gets the shell's plain dialog instead, which asks the
|
|
805
|
+
* name, the address and the style.
|
|
804
806
|
*/
|
|
805
807
|
readonly hostFirstRun: "hostFirstRun";
|
|
806
808
|
/**
|
|
@@ -809,11 +811,16 @@ export declare const CONSOLE_WIDGET_SLOTS: {
|
|
|
809
811
|
* workspace, how the site will be filled, the person's search and filter,
|
|
810
812
|
* `onPick` and `ready`.
|
|
811
813
|
*
|
|
812
|
-
* A pick is required: there is no Skip, and
|
|
813
|
-
*
|
|
814
|
-
*
|
|
815
|
-
*
|
|
816
|
-
*
|
|
814
|
+
* A pick is required: there is no Skip, and nothing is picked for anyone —
|
|
815
|
+
* the platform's own styles are listed first, and none is chosen until the
|
|
816
|
+
* person clicks one. A widget here lists and picks and creates nothing; the
|
|
817
|
+
* site is created by the dialog from the starter it was handed. A starter
|
|
818
|
+
* with a price the workspace has not paid is bought from the widget, which
|
|
819
|
+
* is the marketplace's to sell, and the person comes back to the dialog on
|
|
820
|
+
* the same pick (`app-utils/site-create-return.ts`). Mounted by "Create
|
|
821
|
+
* site"'s "Choose your starter", behind `release_site_starters`. Not a
|
|
822
|
+
* staff zone and not host-gated: the widget's own extension gates it, as
|
|
823
|
+
* on any other zone.
|
|
817
824
|
*/
|
|
818
825
|
readonly hostStarterPicker: "hostStarterPicker";
|
|
819
826
|
/**
|
|
@@ -1217,9 +1224,15 @@ export interface ConsolePendingSite {
|
|
|
1217
1224
|
* `start: 'import'` names a site brought in from somewhere else (AGL-4086),
|
|
1218
1225
|
* which starts in preview unless the person switched {@link previewControl}
|
|
1219
1226
|
* off.
|
|
1227
|
+
*
|
|
1228
|
+
* `style` is the style the person chose in the widget's questions
|
|
1229
|
+
* (AGL-4049): a `SITE_STYLES` id, or `SITE_STYLE_AUTO` for a card that lets
|
|
1230
|
+
* the answers pick. It is recorded on the site (`starterChoice`) and
|
|
1231
|
+
* changes nothing it is created with: the start builds the look.
|
|
1220
1232
|
*/
|
|
1221
1233
|
create: (options?: {
|
|
1222
1234
|
start?: 'import';
|
|
1235
|
+
style?: string;
|
|
1223
1236
|
}) => Promise<ConsoleCreatedSite | {
|
|
1224
1237
|
error: string;
|
|
1225
1238
|
address?: boolean;
|
|
@@ -1285,8 +1298,16 @@ export interface ConsoleHostFirstRunZoneProps {
|
|
|
1285
1298
|
* rather than after them, and — for a widget that takes the screen — what
|
|
1286
1299
|
* every way of dismissing it does BEFORE it has started anything. See
|
|
1287
1300
|
* `hostFirstRun` in {@link CONSOLE_WIDGET_SLOTS}.
|
|
1301
|
+
*
|
|
1302
|
+
* `style` is the style the person chose for it (AGL-4049), a `SITE_STYLES`
|
|
1303
|
+
* id: the starter's pages start in that style's look. With
|
|
1304
|
+
* {@link pendingSite} and no site created yet a style is REQUIRED — nothing
|
|
1305
|
+
* in Create site is chosen for a person, so the shell creates nothing
|
|
1306
|
+
* without one and resolves `false`.
|
|
1288
1307
|
*/
|
|
1289
|
-
startBlank: (
|
|
1308
|
+
startBlank: (options?: {
|
|
1309
|
+
style?: string;
|
|
1310
|
+
}) => void | Promise<boolean>;
|
|
1290
1311
|
/**
|
|
1291
1312
|
* Closes the zone after its widget STARTED the site some other way — a
|
|
1292
1313
|
* guided start whose job is running (AGL-3594). The shell records that the
|
|
@@ -1301,10 +1322,23 @@ export interface ConsoleHostFirstRunZoneProps {
|
|
|
1301
1322
|
leave?: () => void;
|
|
1302
1323
|
/**
|
|
1303
1324
|
* Present when the zone is drawn by "Create site" before the site exists
|
|
1304
|
-
* (AGL-3761). `startBlank` then CREATES the site with the starter,
|
|
1305
|
-
* resolves `false` when it could not,
|
|
1325
|
+
* (AGL-3761). `startBlank` then CREATES the site with the starter, in the
|
|
1326
|
+
* style it is handed (AGL-4049), and resolves `false` when it could not,
|
|
1327
|
+
* with the reason shown.
|
|
1306
1328
|
*/
|
|
1307
1329
|
pendingSite?: ConsolePendingSite;
|
|
1330
|
+
/**
|
|
1331
|
+
* Opens the shell's "Choose your starter" for the starter path (AGL-4049),
|
|
1332
|
+
* where the person picks a starter site from the marketplace — the
|
|
1333
|
+
* platform's styles first — before the site exists. Present only when the
|
|
1334
|
+
* shell offers that picker (its release, and a widget on the
|
|
1335
|
+
* `hostStarterPicker` zone); a widget that is handed it calls it from its
|
|
1336
|
+
* starter choice instead of asking a style itself. Absent, the widget asks
|
|
1337
|
+
* the style and calls `startBlank` with it, as before. It creates nothing:
|
|
1338
|
+
* the shell creates the site from the pick, and closing it leaves the
|
|
1339
|
+
* person where they were.
|
|
1340
|
+
*/
|
|
1341
|
+
chooseStarter?: () => void;
|
|
1308
1342
|
/**
|
|
1309
1343
|
* Present when staff build the site for a client (AGL-3958), from the
|
|
1310
1344
|
* one-screen build. See {@link ConsoleClientBuildStart}.
|
|
@@ -1555,10 +1589,31 @@ export interface ConsoleHostStarterPickerZoneProps {
|
|
|
1555
1589
|
search: string;
|
|
1556
1590
|
/** The facets the person narrowed to; an absent one is any. */
|
|
1557
1591
|
filter: Partial<SiteStarterFacets>;
|
|
1558
|
-
/**
|
|
1592
|
+
/**
|
|
1593
|
+
* Hands the dialog the starter the person picked. Called again with the
|
|
1594
|
+
* same listing once the widget has read a pick the dialog restored through
|
|
1595
|
+
* {@link selected}, and with `owned: true` once the widget learns the
|
|
1596
|
+
* workspace owns it.
|
|
1597
|
+
*/
|
|
1559
1598
|
onPick: (pick: SiteStarterSummary) => void;
|
|
1560
1599
|
/** Reports whether the widget drew a picker; `false` gives the dialog its own default. */
|
|
1561
1600
|
ready: (shown: boolean) => void;
|
|
1601
|
+
/**
|
|
1602
|
+
* The pick the dialog holds, or `null` for none (AGL-4049). Absent, the
|
|
1603
|
+
* widget keeps its own pick from the clicks it is given.
|
|
1604
|
+
*
|
|
1605
|
+
* The dialog sets it to restore the person's OWN earlier pick — the way
|
|
1606
|
+
* back from buying it — or to clear one the create refused; it never
|
|
1607
|
+
* picks for anyone. The widget shows that card chosen, listing it even
|
|
1608
|
+
* where the search would not, and hands it back through {@link onPick}
|
|
1609
|
+
* once it has read it. `owned` is what the dialog knows better than the
|
|
1610
|
+
* search: `true` straight after paying for it, `false` when the create
|
|
1611
|
+
* still asked for payment; absent, the search's own answer stands.
|
|
1612
|
+
*/
|
|
1613
|
+
selected?: {
|
|
1614
|
+
listingId: string;
|
|
1615
|
+
owned?: boolean;
|
|
1616
|
+
} | null;
|
|
1562
1617
|
}
|
|
1563
1618
|
/** What the `hostTheme` zone hands each widget (AGL-2938). */
|
|
1564
1619
|
export interface ConsoleHostThemeZoneProps {
|
|
@@ -289,10 +289,12 @@ import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
|
289
289
|
*
|
|
290
290
|
* "Create site" draws this zone first, with `pendingSite` and no site: the
|
|
291
291
|
* name and address are asked inside the widget's own first step, and the
|
|
292
|
-
* site is created only by a choice that needs it — the starter
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
292
|
+
* site is created only by a choice that needs it — the starter in a style
|
|
293
|
+
* the person chose (AGL-4049: nothing is chosen for them, so there is no
|
|
294
|
+
* Skip), or a start the widget begins. A dismissal there is `leave`, and
|
|
295
|
+
* creates nothing. A zone with no widget, or a widget that answers
|
|
296
|
+
* `ready(false)`, gets the shell's plain dialog instead, which asks the
|
|
297
|
+
* name, the address and the style.
|
|
296
298
|
*/ hostFirstRun: 'hostFirstRun',
|
|
297
299
|
/**
|
|
298
300
|
* The starter picker inside "Start your site" (AGL-4049), drawn before the
|
|
@@ -300,11 +302,16 @@ import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
|
300
302
|
* workspace, how the site will be filled, the person's search and filter,
|
|
301
303
|
* `onPick` and `ready`.
|
|
302
304
|
*
|
|
303
|
-
* A pick is required: there is no Skip, and
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
305
|
+
* A pick is required: there is no Skip, and nothing is picked for anyone —
|
|
306
|
+
* the platform's own styles are listed first, and none is chosen until the
|
|
307
|
+
* person clicks one. A widget here lists and picks and creates nothing; the
|
|
308
|
+
* site is created by the dialog from the starter it was handed. A starter
|
|
309
|
+
* with a price the workspace has not paid is bought from the widget, which
|
|
310
|
+
* is the marketplace's to sell, and the person comes back to the dialog on
|
|
311
|
+
* the same pick (`app-utils/site-create-return.ts`). Mounted by "Create
|
|
312
|
+
* site"'s "Choose your starter", behind `release_site_starters`. Not a
|
|
313
|
+
* staff zone and not host-gated: the widget's own extension gates it, as
|
|
314
|
+
* on any other zone.
|
|
308
315
|
*/ hostStarterPicker: 'hostStarterPicker',
|
|
309
316
|
/**
|
|
310
317
|
* The host setup Theme section, between the Theme picker and the editor
|