@yext/visual-editor 2.0.0-beta.6 → 2.0.0-beta.7
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/{SectionLibraryVisualEditorProvider-D48NB__d.js → SectionLibraryVisualEditorProvider-DKUR2CCF.js} +19645 -15052
- package/dist/cli/assets/directory-locator-source/components/sections/directory/Directory.tsx +39 -1
- package/dist/cli/assets/directory-locator-source/components/sections/directory/DirectoryWrapper.tsx +13 -5
- package/dist/cli/assets/directory-locator-source/sectionLibrarySupport.ts +5 -0
- package/dist/cli/yextve.js +17 -3
- package/dist/index.d.ts +14 -4
- package/dist/locales/platform/cs/visual-editor.json +120 -0
- package/dist/locales/platform/da/visual-editor.json +106 -0
- package/dist/locales/platform/de/visual-editor.json +106 -0
- package/dist/locales/platform/en/visual-editor.json +106 -0
- package/dist/locales/platform/en-GB/visual-editor.json +106 -0
- package/dist/locales/platform/es/visual-editor.json +113 -0
- package/dist/locales/platform/et/visual-editor.json +106 -0
- package/dist/locales/platform/fi/visual-editor.json +106 -0
- package/dist/locales/platform/fr/visual-editor.json +113 -0
- package/dist/locales/platform/hr/visual-editor.json +113 -0
- package/dist/locales/platform/hu/visual-editor.json +106 -0
- package/dist/locales/platform/it/visual-editor.json +113 -0
- package/dist/locales/platform/ja/visual-editor.json +106 -0
- package/dist/locales/platform/lt/visual-editor.json +120 -0
- package/dist/locales/platform/lv/visual-editor.json +110 -0
- package/dist/locales/platform/nb/visual-editor.json +106 -0
- package/dist/locales/platform/nl/visual-editor.json +106 -0
- package/dist/locales/platform/pl/visual-editor.json +120 -0
- package/dist/locales/platform/pt/visual-editor.json +113 -0
- package/dist/locales/platform/ro/visual-editor.json +113 -0
- package/dist/locales/platform/sk/visual-editor.json +120 -0
- package/dist/locales/platform/sv/visual-editor.json +106 -0
- package/dist/locales/platform/tr/visual-editor.json +106 -0
- package/dist/locales/platform/zh/visual-editor.json +106 -0
- package/dist/locales/platform/zh-TW/visual-editor.json +106 -0
- package/dist/{locatorEntityTypes-Cx069o6O.d.ts → locatorEntityTypes-CBKnACVV.d.ts} +61 -2
- package/dist/plugin/internal/layoutGeneration/limits.d.ts +28 -0
- package/dist/plugin/plugin.js +6784 -2065
- package/dist/plugin/types/generationPrompts.d.ts +19 -0
- package/dist/plugin/types/generationSettings.d.ts +12 -0
- package/dist/plugin/types/sectionLibrary.d.ts +11 -4
- package/dist/plugin/vite-plugin/layout-generation/generationLogger.d.ts +5 -0
- package/dist/plugin/vite-plugin/layout-generation/generationReports.d.ts +13 -0
- package/dist/plugin/vite-plugin/layout-generation/middleware.d.ts +14 -0
- package/dist/plugin/vite-plugin/layout-generation/modelProxy.d.ts +9 -0
- package/dist/plugin/vite-plugin/layout-generation/prompts.d.ts +17 -0
- package/dist/plugin/vite-plugin/layout-generation/settings.d.ts +3 -0
- package/dist/plugin/vite-plugin/local-editor/artifacts.d.ts +4 -2
- package/dist/plugin/vite-plugin/local-editor/data.d.ts +2 -0
- package/dist/plugin/vite-plugin/local-editor/generatedFiles.d.ts +2 -3
- package/dist/plugin/vite-plugin/local-editor/server.d.ts +17 -1
- package/dist/plugin/vite-plugin/local-editor/types.d.ts +18 -2
- package/dist/plugin/vite-plugin/plugin.d.ts +1 -1
- package/dist/section-library-support.js +107 -105
- package/dist/sectionLibrarySupport.d.ts +61 -4
- package/dist/visual-editor-6mKs9VUe.js +842 -0
- package/dist/{visual-editor-DC1pCUtq.js → visual-editor-BK6fTU7k.js} +335 -228
- package/dist/{visual-editor-BKK2RKRg.js → visual-editor-BruRrJYN.js} +342 -235
- package/dist/visual-editor-Bs3wAslG.js +804 -0
- package/dist/{visual-editor-aXXSZO_i.js → visual-editor-C9TLeAzP.js} +355 -248
- package/dist/{visual-editor-bEaD2J5r.js → visual-editor-CHWtMtlu.js} +364 -250
- package/dist/{visual-editor-EZ39Q-Cf.js → visual-editor-CcfUKpnd.js} +346 -239
- package/dist/visual-editor-ClC6hoz3.js +804 -0
- package/dist/visual-editor-CtQwadxQ.js +842 -0
- package/dist/{visual-editor-Dpc4OfjE.js → visual-editor-D7VeTRK_.js} +358 -247
- package/dist/{visual-editor-DM0HkCii.js → visual-editor-DTE5kxrA.js} +351 -244
- package/dist/{visual-editor-5YEXG9DH.js → visual-editor-DjTEbi-1.js} +370 -249
- package/dist/{visual-editor-DKurZtUt.js → visual-editor-DkHhrFsX.js} +341 -234
- package/dist/visual-editor-DtL-Zuv_.js +804 -0
- package/dist/visual-editor-Duishbsa.js +842 -0
- package/dist/visual-editor-LXMNWXry.js +823 -0
- package/dist/visual-editor-QpGupjY5.js +823 -0
- package/dist/visual-editor-_TatCCAS.js +804 -0
- package/dist/{visual-editor-BQsdxhUz.js → visual-editor-gEaWoNRu.js} +352 -245
- package/dist/{visual-editor-1L5yvx9x.js → visual-editor-gjpr-NAN.js} +358 -251
- package/dist/{visual-editor-BZSN_IFr.js → visual-editor-qJW0uCiQ.js} +366 -259
- package/dist/visual-editor-sOPDMkOR.js +823 -0
- package/dist/visual-editor-tPb7n5l8.js +823 -0
- package/dist/visual-editor-vomNdlNO.js +804 -0
- package/dist/visual-editor-zKhC7_0C.js +823 -0
- package/dist/visual-editor.css +1 -1
- package/dist/visual-editor.js +13890 -7324
- package/package.json +6 -3
- package/dist/visual-editor-7MhH35_G.js +0 -709
- package/dist/visual-editor-BZiKZha2.js +0 -709
- package/dist/visual-editor-C3JS3OQU.js +0 -697
- package/dist/visual-editor-CGPLMAQn.js +0 -721
- package/dist/visual-editor-CIo2noVV.js +0 -709
- package/dist/visual-editor-CX5aaC7B.js +0 -709
- package/dist/visual-editor-CZouujLr.js +0 -697
- package/dist/visual-editor-CdwYNJ-y.js +0 -721
- package/dist/visual-editor-CwLtLH7t.js +0 -697
- package/dist/visual-editor-HIaH9B9G.js +0 -697
- package/dist/visual-editor-J0zs1Agv.js +0 -721
- package/dist/visual-editor-SYachtCo.js +0 -709
- package/dist/visual-editor-VsL3_PCS.js +0 -697
|
@@ -347,6 +347,112 @@
|
|
|
347
347
|
"kilometer_one": "公里",
|
|
348
348
|
"kilometer_other": "公里",
|
|
349
349
|
"knowledgeGraphContent": "知识图内容",
|
|
350
|
+
"layoutGenerationChat": {
|
|
351
|
+
"applicationStopped": "已在应用任何更改之前取消",
|
|
352
|
+
"appliedSuccessfully": "申请成功。",
|
|
353
|
+
"applyingLayout": "正在应用布局...",
|
|
354
|
+
"assistant": "助手",
|
|
355
|
+
"buildingSection": "建筑部分…",
|
|
356
|
+
"cancelledBeforeChanges": "在应用任何更改之前请求已取消。",
|
|
357
|
+
"checkDraftSaveStatus": "检查草稿保存状态",
|
|
358
|
+
"checkingRequirements": "检查页面要求...",
|
|
359
|
+
"conversation": "世代对话",
|
|
360
|
+
"creatingIntentPage": "正在创建意向页面...",
|
|
361
|
+
"currentPlugin": "当前插件",
|
|
362
|
+
"details": "细节",
|
|
363
|
+
"emptyDescription": "描述页面,或要求更改当前布局。",
|
|
364
|
+
"emptyTitle": "你想创造什么?",
|
|
365
|
+
"failedBeforeChanges": "在应用任何更改之前请求失败。",
|
|
366
|
+
"fullPageUpdateCancelled_zero": "页面更新已取消。已完成的步骤:{{count}}。其余部分已保留。",
|
|
367
|
+
"fullPageUpdateCancelled_one": "页面更新已取消。已完成的步骤:{{count}}。其余部分已保留。",
|
|
368
|
+
"fullPageUpdateCancelled_other": "页面更新已取消。已完成的步骤:{{count}}。其余部分已保留。",
|
|
369
|
+
"fullPageUpdateInProgress": "正在更新页面…",
|
|
370
|
+
"fullPageUpdateProgress_zero": "已完成的步骤:{{count}}...",
|
|
371
|
+
"fullPageUpdateProgress_one": "已完成的步骤:{{count}}...",
|
|
372
|
+
"fullPageUpdateProgress_other": "已完成的步骤:{{count}}...",
|
|
373
|
+
"generating": "生成…",
|
|
374
|
+
"generatingLayout": "生成布局...",
|
|
375
|
+
"generationCancelled": "页面生成已取消。",
|
|
376
|
+
"generationFailed": "页面生成失败。",
|
|
377
|
+
"generationInterrupted": "发电可能已中断。您可以在这里重新启动它。",
|
|
378
|
+
"historyIndex": "历史索引",
|
|
379
|
+
"intentGenerationStatus": "意图页面生成:{{status}}",
|
|
380
|
+
"intentStage": {
|
|
381
|
+
"clarification": "澄清",
|
|
382
|
+
"completed": "完全的",
|
|
383
|
+
"failed": "失败的",
|
|
384
|
+
"generating": "生成",
|
|
385
|
+
"idle": "闲置的",
|
|
386
|
+
"interrupted": "被打断",
|
|
387
|
+
"recovery": "恢复",
|
|
388
|
+
"saving": "保存",
|
|
389
|
+
"starting": "开始"
|
|
390
|
+
},
|
|
391
|
+
"intentStatus": {
|
|
392
|
+
"completed": "完全的",
|
|
393
|
+
"failed": "失败的",
|
|
394
|
+
"pending": "待办的",
|
|
395
|
+
"running": "跑步"
|
|
396
|
+
},
|
|
397
|
+
"keyboardHint": "Enter 发送 · Shift+Enter 换行",
|
|
398
|
+
"label": "布局聊天",
|
|
399
|
+
"manualEdit": "手动编辑",
|
|
400
|
+
"newConversation": "新对话",
|
|
401
|
+
"newSection": "新部分·{{label}}",
|
|
402
|
+
"noSectionChange": "本节没有发生任何变化。",
|
|
403
|
+
"outcomes": {
|
|
404
|
+
"applied_one": "{{count}} 应用",
|
|
405
|
+
"applied_other": "{{count}} 应用",
|
|
406
|
+
"cancelled_one": "{{count}} 已取消",
|
|
407
|
+
"cancelled_other": "{{count}} 已取消",
|
|
408
|
+
"failed_one": "{{count}} 失败",
|
|
409
|
+
"failed_other": "{{count}} 失败",
|
|
410
|
+
"skipped_one": "{{count}} 已跳过",
|
|
411
|
+
"skipped_other": "{{count}} 已跳过"
|
|
412
|
+
},
|
|
413
|
+
"planningChanges": "计划变更…",
|
|
414
|
+
"promptLabel": "描述你想要什么",
|
|
415
|
+
"promptPlaceholder": "描述一下你想要改变什么…",
|
|
416
|
+
"ready": "准备好",
|
|
417
|
+
"recheckAttemptAndSaveDraft": "重新检查尝试并保存草稿",
|
|
418
|
+
"requestCancelled": "请求已取消。",
|
|
419
|
+
"requiredTaskFailed": "前置任务失败。",
|
|
420
|
+
"restartGeneration": "重启一代",
|
|
421
|
+
"restartNotice": "重新启动将取代之前的尝试。",
|
|
422
|
+
"retryDraftSave": "重试草稿保存",
|
|
423
|
+
"retryingPlan": "重试计划...",
|
|
424
|
+
"sectionAdded": "添加了此部分。",
|
|
425
|
+
"sectionChanges": "部分更改:{{outcomes}}。",
|
|
426
|
+
"sectionKept": "保留了这一段。",
|
|
427
|
+
"sectionLabel": "节 {{number}} · {{label}}",
|
|
428
|
+
"sectionMoved": "移动了这一段。",
|
|
429
|
+
"sectionNumber": "第 {{number}} 节",
|
|
430
|
+
"sectionProgress": "部分进度",
|
|
431
|
+
"sectionReady": "准备好",
|
|
432
|
+
"sectionRemoved": "删除了这一部分。",
|
|
433
|
+
"sectionsApplied": "应用 {{total}} 部分中的 {{applied}}。",
|
|
434
|
+
"sectionsAppliedGenerating_zero": "应用 {{count}} 部分。生成布局...",
|
|
435
|
+
"sectionsAppliedGenerating_one": "应用 {{count}} 部分。生成布局...",
|
|
436
|
+
"sectionsAppliedGenerating_other": "应用 {{count}} 部分。生成布局...",
|
|
437
|
+
"sectionUpdated": "更新了本节。",
|
|
438
|
+
"send": "发送",
|
|
439
|
+
"status": {
|
|
440
|
+
"applied": "应用",
|
|
441
|
+
"applying": "应用更改",
|
|
442
|
+
"cancelled": "取消",
|
|
443
|
+
"failed": "失败的",
|
|
444
|
+
"generating": "正在生成",
|
|
445
|
+
"skipped": "跳过",
|
|
446
|
+
"waiting": "等待"
|
|
447
|
+
},
|
|
448
|
+
"stop": "停止",
|
|
449
|
+
"stopGenerating": "停止生成",
|
|
450
|
+
"subtitle": "构建和完善您的页面",
|
|
451
|
+
"title": "布局助理",
|
|
452
|
+
"updateSection": "更新此部分。",
|
|
453
|
+
"waitingForDecision": "等待分区计划",
|
|
454
|
+
"you": "你"
|
|
455
|
+
},
|
|
350
456
|
"linkedEntityFields": "链接实体字段",
|
|
351
457
|
"linkedEntityMultiValueWarning": "{{linkedField}} 包含多个链接实体。将第一个用于 {{resolvedField}}。",
|
|
352
458
|
"linkOverrideDirectoryTooltip": "对每张卡片的标题链接使用自定义 URL 路径。如果该值为空,则将使用生成的目录 URL。",
|
|
@@ -347,6 +347,112 @@
|
|
|
347
347
|
"kilometer_one": "公里",
|
|
348
348
|
"kilometer_other": "公里",
|
|
349
349
|
"knowledgeGraphContent": "知識圖內容",
|
|
350
|
+
"layoutGenerationChat": {
|
|
351
|
+
"applicationStopped": "已在套用任何變更之前取消",
|
|
352
|
+
"appliedSuccessfully": "申請成功。",
|
|
353
|
+
"applyingLayout": "正在套用佈局...",
|
|
354
|
+
"assistant": "助理",
|
|
355
|
+
"buildingSection": "建築部分…",
|
|
356
|
+
"cancelledBeforeChanges": "在應用任何變更之前請求已取消。",
|
|
357
|
+
"checkDraftSaveStatus": "檢查草稿保存狀態",
|
|
358
|
+
"checkingRequirements": "檢查頁面要求...",
|
|
359
|
+
"conversation": "世代對話",
|
|
360
|
+
"creatingIntentPage": "正在建立意向頁面...",
|
|
361
|
+
"currentPlugin": "目前插件",
|
|
362
|
+
"details": "細節",
|
|
363
|
+
"emptyDescription": "描述頁面,或要求更改目前佈局。",
|
|
364
|
+
"emptyTitle": "你想創造什麼?",
|
|
365
|
+
"failedBeforeChanges": "在應用任何變更之前請求失敗。",
|
|
366
|
+
"fullPageUpdateCancelled_zero": "頁面更新已取消。已完成的步驟:{{count}}。其餘區塊已保留。",
|
|
367
|
+
"fullPageUpdateCancelled_one": "頁面更新已取消。已完成的步驟:{{count}}。其餘區塊已保留。",
|
|
368
|
+
"fullPageUpdateCancelled_other": "頁面更新已取消。已完成的步驟:{{count}}。其餘區塊已保留。",
|
|
369
|
+
"fullPageUpdateInProgress": "正在更新頁面…",
|
|
370
|
+
"fullPageUpdateProgress_zero": "已完成的步驟:{{count}}...",
|
|
371
|
+
"fullPageUpdateProgress_one": "已完成的步驟:{{count}}...",
|
|
372
|
+
"fullPageUpdateProgress_other": "已完成的步驟:{{count}}...",
|
|
373
|
+
"generating": "生成…",
|
|
374
|
+
"generatingLayout": "生成佈局...",
|
|
375
|
+
"generationCancelled": "頁面產生已取消。",
|
|
376
|
+
"generationFailed": "頁面產生失敗。",
|
|
377
|
+
"generationInterrupted": "發電可能已中斷。您可以在這裡重新啟動它。",
|
|
378
|
+
"historyIndex": "歷史索引",
|
|
379
|
+
"intentGenerationStatus": "意圖頁產生:{{status}}",
|
|
380
|
+
"intentStage": {
|
|
381
|
+
"clarification": "澄清",
|
|
382
|
+
"completed": "完全的",
|
|
383
|
+
"failed": "失敗的",
|
|
384
|
+
"generating": "產生",
|
|
385
|
+
"idle": "閒置的",
|
|
386
|
+
"interrupted": "被打斷",
|
|
387
|
+
"recovery": "恢復",
|
|
388
|
+
"saving": "儲存",
|
|
389
|
+
"starting": "開始"
|
|
390
|
+
},
|
|
391
|
+
"intentStatus": {
|
|
392
|
+
"completed": "完全的",
|
|
393
|
+
"failed": "失敗的",
|
|
394
|
+
"pending": "待辦的",
|
|
395
|
+
"running": "跑步"
|
|
396
|
+
},
|
|
397
|
+
"keyboardHint": "Enter 發送 · Shift+Enter 換行",
|
|
398
|
+
"label": "佈局聊天",
|
|
399
|
+
"manualEdit": "手動編輯",
|
|
400
|
+
"newConversation": "新對話",
|
|
401
|
+
"newSection": "新部分·{{label}}",
|
|
402
|
+
"noSectionChange": "本節沒有發生任何變化。",
|
|
403
|
+
"outcomes": {
|
|
404
|
+
"applied_one": "{{count}} 應用",
|
|
405
|
+
"applied_other": "{{count}} 應用",
|
|
406
|
+
"cancelled_one": "{{count}} 已取消",
|
|
407
|
+
"cancelled_other": "{{count}} 已取消",
|
|
408
|
+
"failed_one": "{{count}} 失敗",
|
|
409
|
+
"failed_other": "{{count}} 失敗",
|
|
410
|
+
"skipped_one": "{{count}} 已跳過",
|
|
411
|
+
"skipped_other": "{{count}} 已跳過"
|
|
412
|
+
},
|
|
413
|
+
"planningChanges": "計劃變更…",
|
|
414
|
+
"promptLabel": "描述你想要什麼",
|
|
415
|
+
"promptPlaceholder": "描述一下你想要改變什麼…",
|
|
416
|
+
"ready": "準備好",
|
|
417
|
+
"recheckAttemptAndSaveDraft": "重新檢查嘗試並儲存草稿",
|
|
418
|
+
"requestCancelled": "請求已取消。",
|
|
419
|
+
"requiredTaskFailed": "前置任務失敗。",
|
|
420
|
+
"restartGeneration": "重啟一代",
|
|
421
|
+
"restartNotice": "重新啟動將取代先前的嘗試。",
|
|
422
|
+
"retryDraftSave": "重試草稿保存",
|
|
423
|
+
"retryingPlan": "重試計劃...",
|
|
424
|
+
"sectionAdded": "新增了此部分。",
|
|
425
|
+
"sectionChanges": "部分更改:{{outcomes}}。",
|
|
426
|
+
"sectionKept": "保留了這一段。",
|
|
427
|
+
"sectionLabel": "節 {{number}} · {{label}}",
|
|
428
|
+
"sectionMoved": "移動了這一段。",
|
|
429
|
+
"sectionNumber": "第 {{number}} 節",
|
|
430
|
+
"sectionProgress": "部分進度",
|
|
431
|
+
"sectionReady": "準備好",
|
|
432
|
+
"sectionRemoved": "刪除了這一部分。",
|
|
433
|
+
"sectionsApplied": "應用 {{total}} 部分中的 {{applied}}。",
|
|
434
|
+
"sectionsAppliedGenerating_zero": "應用 {{count}} 部分。生成佈局...",
|
|
435
|
+
"sectionsAppliedGenerating_one": "應用 {{count}} 部分。生成佈局...",
|
|
436
|
+
"sectionsAppliedGenerating_other": "應用 {{count}} 部分。生成佈局...",
|
|
437
|
+
"sectionUpdated": "更新了本節。",
|
|
438
|
+
"send": "傳送",
|
|
439
|
+
"status": {
|
|
440
|
+
"applied": "應用",
|
|
441
|
+
"applying": "應用程式變更",
|
|
442
|
+
"cancelled": "取消",
|
|
443
|
+
"failed": "失敗的",
|
|
444
|
+
"generating": "正在產生",
|
|
445
|
+
"skipped": "跳過",
|
|
446
|
+
"waiting": "等待"
|
|
447
|
+
},
|
|
448
|
+
"stop": "停止",
|
|
449
|
+
"stopGenerating": "停止生成",
|
|
450
|
+
"subtitle": "建立和完善您的頁面",
|
|
451
|
+
"title": "佈局助理",
|
|
452
|
+
"updateSection": "更新此部分。",
|
|
453
|
+
"waitingForDecision": "等待區段計畫",
|
|
454
|
+
"you": "你"
|
|
455
|
+
},
|
|
350
456
|
"linkedEntityFields": "連結實體字段",
|
|
351
457
|
"linkedEntityMultiValueWarning": "{{linkedField}} 包含多個連結實體。將第一個用於 {{resolvedField}}。",
|
|
352
458
|
"linkOverrideDirectoryTooltip": "對每張卡片的標題連結使用自訂 URL 路徑。如果該值為空,則將使用產生的目錄 URL。",
|
|
@@ -7,6 +7,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
import * as _yext_search_headless_react from '@yext/search-headless-react';
|
|
9
9
|
import { SearchAnalyticsConfig } from '@yext/search-ui-react';
|
|
10
|
+
import { z } from 'zod';
|
|
10
11
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
11
12
|
import * as react_i18next from 'react-i18next';
|
|
12
13
|
import { TOptions } from 'i18next';
|
|
@@ -1089,11 +1090,55 @@ type OptionalNumberField = BaseField & {
|
|
|
1089
1090
|
type OptionalNumberFieldProps = FieldProps<OptionalNumberField, OptionalNumberValue>;
|
|
1090
1091
|
declare const OptionalNumberFieldOverride: ({ field, value, onChange, }: OptionalNumberFieldProps) => React__default.JSX.Element;
|
|
1091
1092
|
|
|
1093
|
+
/** Generation limits supplied by ALPHA, independently of prompt wording. */
|
|
1094
|
+
declare const generationSettingsSchema: z.ZodObject<{
|
|
1095
|
+
attemptTimeoutMs: z.ZodNumber;
|
|
1096
|
+
maxOutputTokens: z.ZodObject<{
|
|
1097
|
+
page: z.ZodNumber;
|
|
1098
|
+
prepare: z.ZodNumber;
|
|
1099
|
+
plan: z.ZodNumber;
|
|
1100
|
+
section: z.ZodNumber;
|
|
1101
|
+
}, z.core.$strict>;
|
|
1102
|
+
}, z.core.$strict>;
|
|
1103
|
+
type GenerationSettings = z.infer<typeof generationSettingsSchema>;
|
|
1104
|
+
|
|
1105
|
+
/** Contract version changes when keys or substitutions change. */
|
|
1106
|
+
declare const generationPromptBundleSchema: z.ZodObject<{
|
|
1107
|
+
contractVersion: z.ZodLiteral<1>;
|
|
1108
|
+
prompts: z.ZodObject<{
|
|
1109
|
+
prepare: z.ZodString;
|
|
1110
|
+
create: z.ZodString;
|
|
1111
|
+
fullPageUpdate: z.ZodString;
|
|
1112
|
+
plan: z.ZodString;
|
|
1113
|
+
section: z.ZodString;
|
|
1114
|
+
}, z.core.$strict>;
|
|
1115
|
+
context: z.ZodObject<{
|
|
1116
|
+
createLists: z.ZodString;
|
|
1117
|
+
fullPageUpdateLists: z.ZodString;
|
|
1118
|
+
createRecommendations: z.ZodString;
|
|
1119
|
+
fullPageUpdateRecommendations: z.ZodString;
|
|
1120
|
+
}, z.core.$strict>;
|
|
1121
|
+
}, z.core.$strict>;
|
|
1122
|
+
type GenerationPromptBundle = z.infer<typeof generationPromptBundleSchema>;
|
|
1123
|
+
|
|
1092
1124
|
type HeadDeployStatus = "RUNNING" | "INACTIVE" | "FAILED" | "ACTIVE";
|
|
1125
|
+
type IntentPageGeneration = {
|
|
1126
|
+
prompt?: string;
|
|
1127
|
+
status?: "PENDING" | "RUNNING" | "FAILED" | "COMPLETED";
|
|
1128
|
+
attemptId?: string;
|
|
1129
|
+
};
|
|
1130
|
+
type AiPageGeneration = {
|
|
1131
|
+
prompts?: GenerationPromptBundle;
|
|
1132
|
+
generationSettings?: GenerationSettings;
|
|
1133
|
+
intentPageGeneration?: IntentPageGeneration;
|
|
1134
|
+
layoutGenerationEnabled: boolean;
|
|
1135
|
+
model: string;
|
|
1136
|
+
};
|
|
1093
1137
|
type TemplateMetadata = {
|
|
1138
|
+
aiPageGeneration?: AiPageGeneration;
|
|
1094
1139
|
siteId: number;
|
|
1095
1140
|
templateId: string;
|
|
1096
|
-
layoutId?:
|
|
1141
|
+
layoutId?: string;
|
|
1097
1142
|
entityId?: number;
|
|
1098
1143
|
themeEntityId?: number;
|
|
1099
1144
|
assignment: "ALL" | "ENTITY";
|
|
@@ -1412,11 +1457,19 @@ type YextObjectField<Props extends {
|
|
|
1412
1457
|
};
|
|
1413
1458
|
type YextCustomFieldRenderProps<ValueType> = Parameters<CustomField<ValueType>["render"]>[0];
|
|
1414
1459
|
type YextFieldDefinition<ValueType = any> = Field<ValueType, YextPuckField> | Field<NonNullable<ValueType>, YextPuckField> | YextPuckField | (ValueType extends Record<string, any>[] ? YextArrayField<ValueType> : never) | (ValueType extends Record<string, any> ? YextObjectField<ValueType> : never);
|
|
1460
|
+
/** Provides a formal zod type describing the props for AI layout generation. */
|
|
1461
|
+
type LayoutGenerationMetadata = {
|
|
1462
|
+
props: z.ZodObject;
|
|
1463
|
+
/** JSON Pointer paths relative to props whose resolved values survive chat edit preservation. */
|
|
1464
|
+
resolvedProps?: string[];
|
|
1465
|
+
slottedItemSource?: SlottedItemSourceGenerationMetadata;
|
|
1466
|
+
};
|
|
1415
1467
|
type YextComponentConfig<Props extends DefaultComponentProps = DefaultComponentProps> = Omit<ComponentConfig<{
|
|
1416
1468
|
props: Props;
|
|
1417
1469
|
fields: YextPuckFields;
|
|
1418
1470
|
}>, "fields" | "resolveFields"> & {
|
|
1419
1471
|
fields?: YextFields<Props>;
|
|
1472
|
+
layoutGenerationMetadata?: LayoutGenerationMetadata;
|
|
1420
1473
|
resolveFields?: ComponentConfig<{
|
|
1421
1474
|
props: Props;
|
|
1422
1475
|
fields: YextPuckFields;
|
|
@@ -1495,8 +1548,14 @@ type CreateSlottedItemSourceOptions<TMappings extends Record<string, unknown>, T
|
|
|
1495
1548
|
defaultItemProps?: TCardProps | (() => TCardProps);
|
|
1496
1549
|
defaultItems?: number;
|
|
1497
1550
|
};
|
|
1551
|
+
/** Opt-in generation ownership for the helper's fixed data and CardSlot locations. */
|
|
1552
|
+
type SlottedItemSourceGenerationMetadata = {
|
|
1553
|
+
cardType: string;
|
|
1554
|
+
defaultItemProps?: Record<string, unknown> | (() => Record<string, unknown>);
|
|
1555
|
+
};
|
|
1498
1556
|
type SlottedItemSourceInstance<TMappings extends Record<string, unknown>> = {
|
|
1499
1557
|
field: YextFieldDefinition<SlotMappedCardsData<TMappings>>;
|
|
1558
|
+
generationMetadata: SlottedItemSourceGenerationMetadata;
|
|
1500
1559
|
defaultValue: SlotMappedCardsData<TMappings>;
|
|
1501
1560
|
defaultWrapperProps: {
|
|
1502
1561
|
data: SlotMappedCardsData<TMappings>;
|
|
@@ -1855,4 +1914,4 @@ declare function isLocatorEntityType(value: string): value is LocatorEntityType;
|
|
|
1855
1914
|
declare const getLocatorEntityTypeSourceMap: (streamDocument?: StreamDocument) => Partial<Record<LocatorEntityType, string | undefined>>;
|
|
1856
1915
|
declare const getEntityTypeLabel: (entityType: LocatorEntityType) => string;
|
|
1857
1916
|
|
|
1858
|
-
export { type
|
|
1917
|
+
export { type StyledTextField as $, type AiPageGeneration as A, type BasicSelectorField as B, type CreateItemSourceOptions as C, type DateTimeSelectorField as D, type EntityFieldTypes as E, type FontRegistry as F, type MultiSelectorField as G, type HeadingProps as H, type ItemSourceInstance as I, type FontSizeSelectorField as J, type ImageField as K, type LocatorEntityType as L, type MsgString as M, type StyledButtonField as N, type OptionalNumberField as O, type ProductPrice as P, type StyledButtonValue as Q, type RichText as R, type StreamFields as S, type TranslationDictionary as T, type StyledImageField as U, type StyledImageValue as V, type StyledLinkField as W, type StyledLinkValue as X, type YextComponentConfig as Y, type StyledPageSectionField as Z, type StyledPageSectionValue as _, type StreamDocument as a, type PageSectionProps as a$, type TranslatableStringField as a0, type VideoField as a1, type AssetVideo as a2, type SectionLibraryTranslationLoaders as a3, Accordion as a4, AccordionContent as a5, AccordionItem as a6, AccordionTrigger as a7, type AssetImageType as a8, Background as a9, FOOD_DELIVERY_SERVICES as aA, type Font as aB, FontSizeSelectorFieldOverride as aC, type FoodDeliveryServiceType as aD, type GenerationPromptBundle as aE, type GenerationSettings as aF, Heading as aG, type HeroSectionType as aH, HoursStatusAtom as aI, type HoursStatusAtomProps as aJ, HoursTableAtom as aK, type HoursTableAtomProps as aL, Image as aM, type ImageContentData as aN, ImageFieldOverride as aO, type ImageProps as aP, type InsightSectionType as aQ, type InsightStruct as aR, type LayoutGenerationMetadata as aS, type LocalizedAssetImage as aT, MaybeLink as aU, type MaybeLinkProps as aV, MultiSelectorFieldOverride as aW, type MultiSelectorOption as aX, type MultiSelectorOptions as aY, OptionalNumberFieldOverride as aZ, PageSection as a_, type BackgroundProps as aa, BackgroundProvider as ab, BasicSelectorFieldOverride as ac, Body as ad, type BreadcrumbLink as ae, Button as af, type ButtonProps as ag, CTA as ah, CTASelectorFieldOverride as ai, CodeFieldOverride as aj, ComprehensiveCTAFieldOverride as ak, type CreateSlottedItemSourceOptions as al, DateTimeSelectorFieldOverride as am, DropdownMenu as an, DropdownMenuContent as ao, DropdownMenuItem as ap, DropdownMenuTrigger as aq, EmbeddedFieldStringInputFromEntity as ar, EmbeddedFieldStringInputFromOptions as as, type EnhancedTranslatableCTA as at, EntityField as au, EntityFieldSelectorFieldOverride as av, type EventSectionType as aw, type EventStruct as ax, type FAQSectionType as ay, type FAQStruct as az, type ThemeConfig as b, getThemeColorCssValue as b$, type PersonStruct as b0, PhoneAtom as b1, type PhoneAtomProps as b2, type PresetImageType as b3, type ProductSectionType as b4, type ProductStruct as b5, type PromoSectionType as b6, type RenderYextEntityFieldSelectorProps as b7, type SlottedItemSourceGenerationMetadata as b8, StyledButtonFieldOverride as b9, type YextFieldDefinition as bA, type YextFieldMap as bB, type YextFields as bC, type YextObjectField as bD, type YextPuckField as bE, type YextSchemaField as bF, type YextSchemaFieldDefinition as bG, backgroundColors as bH, bindSlots as bI, bodyVariants as bJ, buttonVariants as bK, constructFontSelectOptions as bL, createSearchAnalyticsConfig as bM, createSearchHeadlessConfig as bN, createSlottedItemSource as bO, deepMerge as bP, defaultFonts as bQ, defaultThemeTailwindExtensions as bR, fetchLocalesToPathsForEntity as bS, generationPromptBundleSchema as bT, generationSettingsSchema as bU, getDefaultForegroundColor as bV, getFontWeightOptions as bW, getFontWeightOverrideOptions as bX, getPageMetadata as bY, getPreferredDistanceUnit as bZ, getSurfaceColorStyle as b_, StyledImageFieldOverride as ba, StyledLinkFieldOverride as bb, StyledPageSectionFieldOverride as bc, StyledTextFieldOverride as bd, type TeamSectionType as be, TemplatePropsContext as bf, type TestimonialSectionType as bg, type TestimonialStruct as bh, TimestampAtom as bi, type TimestampAtomProps as bj, TimestampOption as bk, type TranslatableCTA as bl, TranslatableStringFieldOverride as bm, type TranslationLoader as bn, type TranslationLoaders as bo, VideoAtom as bp, type VideoAtomProps as bq, VideoFieldOverride as br, VisibilityWrapper as bs, VisualEditorComponentsContentPath as bt, VisualEditorThemeClassSafelist as bu, type YextArrayField as bv, YextAutoField as bw, type YextCTAField as bx, type YextCustomFieldRenderProps as by, YextEntityFieldSelector as bz, type TailwindConfig as c, getThemeColorHexValue as c0, headingVariants as c1, imgSizesHelper as c2, isDarkColor as c3, isLocalizedAssetImage as c4, mergeMeta as c5, msg as c6, normalizeLink as c7, normalizeSlug as c8, normalizeThemeColorToken as c9, type RootConfig as cA, buildLocatorDisplayOptions as cB, findField as cC, formatDistance as cD, formatPhoneNumber as cE, fromMeters as cF, getBackgroundColorClasses as cG, getBackgroundColorStyle as cH, getCTAType as cI, getDisplayValue as cJ, getEntityTypeLabel as cK, getImageAltText as cL, getLocatorEntityTypeSourceMap as cM, getTextColorClass as cN, getTextColorStyle as cO, hexToRGB as cP, isColorContrastWcagCompliant as cQ, isCtaVariantWithColor as cR, isLocatorEntityType as cS, isNonNormalizableLinkType as cT, loadTranslationDictionary as cU, resolveDirectoryRootProps as cV, resolveField as cW, toMeters as cX, toMiles as cY, useEntityTooltips as cZ, useTemplateMetadata as c_, pt as ca, resolveBreadcrumbs as cb, resolveComponentData as cc, resolveDataFromParent as cd, resolveLocalizedAssetImage as ce, resolveUrlTemplate as cf, resolveUrlTemplateOfChild as cg, resolveYextEntityField as ch, themeManagerCn as ci, themeManagerTwMergeConfiguration as cj, themeResolver as ck, toKilometers as cl, toPuckFields as cm, useBackground as cn, useDocument as co, usePlatformTranslation as cp, useTemplateProps as cq, type SlotMappedCardsData as cr, ConstantValueModeToggler as cs, DEFAULT_ENTITY_TYPE as ct, type EmbeddedStringOption as cu, EntityTooltipsProvider as cv, type FieldResolution as cw, type FieldTypeData as cx, type ImagePayload as cy, type LocatorConfig as cz, type ComponentRegistry as d, type TranslatableRichText as e, ThemeOptions as f, type ThemeColor as g, type YextEntityField as h, type CTAVariant as i, type TranslatableString as j, type HeadingLevel as k, type ImageFillType as l, type TranslatableAssetImage as m, type ImgSizesByBreakpoint as n, type SlottedItemSourceInstance as o, type BodyProps as p, type MultiSelectorValue as q, type StyledTextValue as r, type ComprehensiveCTAValue as s, type CTAProps as t, type BaseTextStyles as u, type CTASelectorField as v, type CodeField as w, type ComprehensiveCTAField as x, type EntityFieldSelectorField as y, type MultiSelectorOptionValue as z };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Maximum validation-feedback length included in a repair request. */
|
|
2
|
+
export declare const GENERATION_REPAIR_FEEDBACK_MAX_CHARACTERS = 4000;
|
|
3
|
+
/** Maximum number of independent section tasks allowed to run at once. */
|
|
4
|
+
export declare const SECTION_TASK_CONCURRENCY = 2;
|
|
5
|
+
/** Wait before generation so Puck can record pending manual edits in its history. */
|
|
6
|
+
export declare const PUCK_HISTORY_SETTLE_DELAY_MS = 260;
|
|
7
|
+
/** Maximum error-message length included in browser error reports. */
|
|
8
|
+
export declare const GENERATION_ERROR_MAX_CHARACTERS = 32768;
|
|
9
|
+
/** Maximum stack-trace length included in browser error reports. */
|
|
10
|
+
export declare const GENERATION_STACK_MAX_CHARACTERS = 65536;
|
|
11
|
+
/** Omit serialized candidates larger than this from browser error reports. */
|
|
12
|
+
export declare const GENERATION_CANDIDATE_MAX_CHARACTERS = 500000;
|
|
13
|
+
/** Omit serialized canvas snapshots larger than this from diagnostic reports. */
|
|
14
|
+
export declare const GENERATION_SNAPSHOT_MAX_BYTES = 2000000;
|
|
15
|
+
/** Maximum number of changed property paths recorded in a canvas diagnostic. */
|
|
16
|
+
export declare const GENERATION_CHANGED_PATHS_LIMIT = 100;
|
|
17
|
+
/** Maximum phase-label length included in local diagnostic reports. */
|
|
18
|
+
export declare const GENERATION_PHASE_MAX_CHARACTERS = 100;
|
|
19
|
+
/** Maximum JSON request-body size accepted by the local model proxy. */
|
|
20
|
+
export declare const GENERATION_MODEL_REQUEST_MAX_BYTES: number;
|
|
21
|
+
/** Maximum JSON request-body size accepted by local diagnostic and error endpoints. */
|
|
22
|
+
export declare const GENERATION_REPORT_MAX_BYTES: number;
|
|
23
|
+
/** Maximum upstream error-response length written to local generation logs. */
|
|
24
|
+
export declare const GENERATION_UPSTREAM_ERROR_MAX_CHARACTERS = 8192;
|
|
25
|
+
/** Interval for flushing buffered local generation logs to disk. */
|
|
26
|
+
export declare const GENERATION_LOG_FLUSH_INTERVAL_MS = 10000;
|
|
27
|
+
/** Flush local generation logs early when the buffered data reaches this size. */
|
|
28
|
+
export declare const GENERATION_LOG_BUFFER_MAX_BYTES: number;
|