@aglyn/plugins-ai 1.0.0-beta.269 → 1.0.0-beta.270

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.
Files changed (40) hide show
  1. package/package.json +17 -17
  2. package/src/lib/components/ai-credits-card.component.d.ts +4 -3
  3. package/src/lib/components/ai-credits-card.component.js +25 -8
  4. package/src/lib/components/ai-credits-card.component.js.map +1 -1
  5. package/src/lib/components/ai-job-links.d.ts +6 -0
  6. package/src/lib/components/ai-job-links.js +9 -0
  7. package/src/lib/components/ai-job-links.js.map +1 -1
  8. package/src/lib/components/ai-products-hub-card.component.d.ts +6 -0
  9. package/src/lib/components/ai-products-hub-card.component.js +21 -6
  10. package/src/lib/components/ai-products-hub-card.component.js.map +1 -1
  11. package/src/lib/components/ai-site-build-page.component.js +3 -2
  12. package/src/lib/components/ai-site-build-page.component.js.map +1 -1
  13. package/src/lib/components/ai-store-finish-card.component.d.ts +14 -3
  14. package/src/lib/components/ai-store-finish-card.component.js +67 -9
  15. package/src/lib/components/ai-store-finish-card.component.js.map +1 -1
  16. package/src/lib/components/assist-build-card.component.js +3 -2
  17. package/src/lib/components/assist-build-card.component.js.map +1 -1
  18. package/src/lib/jobs/ai-job-build-step.d.ts +3 -0
  19. package/src/lib/jobs/ai-job-build-step.js +8 -2
  20. package/src/lib/jobs/ai-job-build-step.js.map +1 -1
  21. package/src/lib/jobs/ai-job-form-step.d.ts +9 -0
  22. package/src/lib/jobs/ai-job-form-step.js +21 -2
  23. package/src/lib/jobs/ai-job-form-step.js.map +1 -1
  24. package/src/lib/jobs/ai-job-page-language.d.ts +22 -11
  25. package/src/lib/jobs/ai-job-page-language.js +31 -1
  26. package/src/lib/jobs/ai-job-page-language.js.map +1 -1
  27. package/src/lib/jobs/ai-job-page-step.js +4 -2
  28. package/src/lib/jobs/ai-job-page-step.js.map +1 -1
  29. package/src/lib/jobs/ai-layout-owner-photos.d.ts +57 -0
  30. package/src/lib/jobs/ai-layout-owner-photos.js +110 -0
  31. package/src/lib/jobs/ai-layout-owner-photos.js.map +1 -0
  32. package/src/lib/jobs/ai-layout-stock-photos.d.ts +35 -2
  33. package/src/lib/jobs/ai-layout-stock-photos.js +334 -54
  34. package/src/lib/jobs/ai-layout-stock-photos.js.map +1 -1
  35. package/src/lib/jobs/fixtures/ai-stock-photo-agl3942-recordings.d.ts +29 -0
  36. package/src/lib/jobs/fixtures/ai-stock-photo-agl3942-recordings.js +291 -0
  37. package/src/lib/jobs/fixtures/ai-stock-photo-agl3942-recordings.js.map +1 -0
  38. package/src/lib/native-nav.d.ts +26 -0
  39. package/src/lib/native-nav.js +58 -0
  40. package/src/lib/native-nav.js.map +1 -0
@@ -243,6 +243,12 @@ export interface AiStockSiteTerms {
243
243
  setting?: string;
244
244
  /** The craft's maker and tools as stems, which a record of its work never leads with ({@link CRAFT_KIN}, AGL-3856). */
245
245
  maker?: string[];
246
+ /**
247
+ * What a craft whose pictures are people at a moment shows wherever a page
248
+ * would show its maker ({@link aiStockWorkScenes}, AGL-3942): the scenes
249
+ * its site's own words name, set where the site is.
250
+ */
251
+ work?: AiStockScene[];
246
252
  }
247
253
  /** The site's terms, read from its business type. */
248
254
  export declare function aiStockSiteTerms(businessType: string): AiStockSiteTerms;
@@ -308,6 +314,8 @@ export interface AiStockSearch extends StockPhotoSearchRequest {
308
314
  refuseLead?: readonly string[];
309
315
  /** Whether its hits are held to no world of the site's: a portfolio's record is of its subject, never of the craft (AGL-3856). */
310
316
  worldless?: boolean;
317
+ /** Stems of the places its hits are not set in, which none of their first tags name: a Blue Ridge couple's beach ({@link aiStockSettingAway}, AGL-3942). */
318
+ away?: readonly string[];
311
319
  /** Whether it fills a product: no room, no scene, no fragrance bottle ({@link PRODUCT_SCENES}, AGL-3660). */
312
320
  product?: boolean;
313
321
  /** Words its hits never carry unless the slot or the brief names them ({@link AiStockSiteTerms.shun}). */
@@ -355,6 +363,8 @@ export declare function aiStockRoleRefusals(role: Pick<AiStockPeopleRole, 'refus
355
363
  * anywhere on it, whatever else its words name ("school").
356
364
  */
357
365
  export declare function aiStockAdultsOnly(texts: ReadonlyArray<string | undefined>): boolean;
366
+ /** The stems of the places a setting is not ({@link SCENE_SETTINGS}); none for no setting. */
367
+ export declare function aiStockSettingAway(setting: string): string[];
358
368
  /** What a picture of a moment shows ({@link aiStockScene}). */
359
369
  export interface AiStockScene {
360
370
  /** The searches that ask for it, the people and their setting first. */
@@ -369,6 +379,8 @@ export interface AiStockScene {
369
379
  shun: string[];
370
380
  /** The stems of its words, which let in what they name: a family's children. */
371
381
  named: string[];
382
+ /** Stems of the places it is not set in, which none of a photo's first tags name ({@link aiStockSettingAway}, AGL-3942). */
383
+ away: string[];
372
384
  }
373
385
  /**
374
386
  * The scene a picture's words name (AGL-3856): the people at a moment, and
@@ -377,7 +389,7 @@ export interface AiStockScene {
377
389
  * family in autumn — read from every word, never only the first clause.
378
390
  * `null` where it names no people.
379
391
  */
380
- export declare function aiStockScene(text: string): AiStockScene | null;
392
+ export declare function aiStockScene(text: string, siteSetting?: string): AiStockScene | null;
381
393
  /** Where a text's words set a picture ({@link SCENE_SETTINGS}): "mountains" of "Couples planning mountain weddings"; empty for none. */
382
394
  export declare function aiStockSetting(text: string): string;
383
395
  /**
@@ -391,6 +403,17 @@ export declare function aiStockSetting(text: string): string;
391
403
  * neither names people at a moment nor a portrait.
392
404
  */
393
405
  export declare function aiStockRecordScene(name: string, category?: string, siteSetting?: string): AiStockScene | null;
406
+ /**
407
+ * The work a craft whose pictures are people at a moment shows (AGL-3942):
408
+ * the scenes its site's own words name, in the order they name them, each
409
+ * set where the site is — a wedding photographer "for couples planning
410
+ * mountain weddings, and families" shows a wedding couple in the mountains
411
+ * and a family in the mountains. A family session still never shows a
412
+ * bride, whatever else the site names. Empty where its words name no people.
413
+ */
414
+ export declare function aiStockWorkScenes(text: string, setting?: string): AiStockScene[];
415
+ /** Whether a setting is a place a photo shows on its own, a landscape searched by its name: "mountains", never "autumn". */
416
+ export declare function aiStockSettingIsLandscape(setting: string): boolean;
394
417
  /** What a product falls back to once its own searches find nothing ({@link aiStockProductSearches}). */
395
418
  export interface AiStockProductFallback {
396
419
  /** The site's broad searches ({@link AiStockSiteTerms.broad}): "handmade soap". */
@@ -451,7 +474,15 @@ export declare function aiStockProductSearches(slot: Pick<AiLayoutPictureSlot, '
451
474
  * asks first for the role its words or its list's name (`sectionName`) say,
452
475
  * in the site's world: "teacher classroom" for a "Math instructor" (AGL-3856).
453
476
  */
454
- export declare function aiStockSearchesFor(slot: Pick<AiLayoutPictureSlot, 'role' | 'alt' | 'aspect' | 'people' | 'record' | 'product'>, terms: Pick<AiStockSiteTerms, 'business' | 'craft' | 'domain' | 'broad'> & Partial<Pick<AiStockSiteTerms, 'making' | 'core' | 'scenes' | 'setting' | 'maker'>>, subject: string, part?: AiStockSlotPart, sectionName?: string): AiStockSearch[];
477
+ export declare function aiStockSearchesFor(slot: Pick<AiLayoutPictureSlot, 'role' | 'alt' | 'aspect' | 'people' | 'record' | 'product'>, terms: Pick<AiStockSiteTerms, 'business' | 'craft' | 'domain' | 'broad'> & Partial<Pick<AiStockSiteTerms, 'making' | 'core' | 'scenes' | 'setting' | 'maker' | 'work'>>, subject: string, part?: AiStockSlotPart, sectionName?: string): AiStockSearch[];
478
+ /**
479
+ * Whether a picture of a craft's site whose pictures are people at a moment
480
+ * shows that work wherever a page would show the maker (AGL-3942): an about
481
+ * picture, a story of the craft, an intro's cover. Not a record (which shows
482
+ * its own moment, {@link aiStockShowsTheWork}), a portrait of the business's
483
+ * people, nor a product; and only where the site's words name the work.
484
+ */
485
+ export declare function aiStockShowsItsWork(slot: Pick<AiLayoutPictureSlot, 'record' | 'people' | 'product'>, terms: Partial<Pick<AiStockSiteTerms, 'scenes' | 'work'>>): boolean;
455
486
  /**
456
487
  * Whether a slot is a portfolio's record of a craft whose work is people at a
457
488
  * moment (AGL-3856): a photographer's "Mountain Elopements" shows an
@@ -512,6 +543,8 @@ export interface AiStockJudgement {
512
543
  roleScene?: readonly string[];
513
544
  /** Stems of something else being done, which none of a hit's first tags may name ({@link AiStockPeopleRole.refuse}). */
514
545
  roleRefuse?: readonly string[];
546
+ /** Stems of the places the picture is not set in, which none of a hit's first tags may name ({@link AiStockSearch.away}). */
547
+ away?: readonly string[];
515
548
  }
516
549
  /**
517
550
  * Whether a hit carries a topic its site never named ({@link SENSITIVE_TOPICS}):