@yext/visual-editor 2.0.0-beta.6 → 2.0.0-beta.8

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 (92) hide show
  1. package/dist/{SectionLibraryVisualEditorProvider-D48NB__d.js → SectionLibraryVisualEditorProvider-B4oMQHkI.js} +37301 -28992
  2. package/dist/cli/assets/directory-locator-source/components/sections/directory/Directory.tsx +39 -1
  3. package/dist/cli/assets/directory-locator-source/components/sections/directory/DirectoryWrapper.tsx +13 -5
  4. package/dist/cli/assets/directory-locator-source/sectionLibrarySupport.ts +9 -0
  5. package/dist/cli/yextve.js +17 -3
  6. package/dist/{locatorEntityTypes-Cx069o6O.d.ts → createYextFieldTransforms-CPEwasy9.d.ts} +299 -27
  7. package/dist/index.d.ts +38 -67
  8. package/dist/locales/platform/cs/visual-editor.json +120 -0
  9. package/dist/locales/platform/da/visual-editor.json +106 -0
  10. package/dist/locales/platform/de/visual-editor.json +106 -0
  11. package/dist/locales/platform/en/visual-editor.json +106 -0
  12. package/dist/locales/platform/en-GB/visual-editor.json +106 -0
  13. package/dist/locales/platform/es/visual-editor.json +113 -0
  14. package/dist/locales/platform/et/visual-editor.json +106 -0
  15. package/dist/locales/platform/fi/visual-editor.json +106 -0
  16. package/dist/locales/platform/fr/visual-editor.json +113 -0
  17. package/dist/locales/platform/hr/visual-editor.json +113 -0
  18. package/dist/locales/platform/hu/visual-editor.json +106 -0
  19. package/dist/locales/platform/it/visual-editor.json +113 -0
  20. package/dist/locales/platform/ja/visual-editor.json +106 -0
  21. package/dist/locales/platform/lt/visual-editor.json +120 -0
  22. package/dist/locales/platform/lv/visual-editor.json +110 -0
  23. package/dist/locales/platform/nb/visual-editor.json +106 -0
  24. package/dist/locales/platform/nl/visual-editor.json +106 -0
  25. package/dist/locales/platform/pl/visual-editor.json +120 -0
  26. package/dist/locales/platform/pt/visual-editor.json +113 -0
  27. package/dist/locales/platform/ro/visual-editor.json +113 -0
  28. package/dist/locales/platform/sk/visual-editor.json +120 -0
  29. package/dist/locales/platform/sv/visual-editor.json +106 -0
  30. package/dist/locales/platform/tr/visual-editor.json +106 -0
  31. package/dist/locales/platform/zh/visual-editor.json +106 -0
  32. package/dist/locales/platform/zh-TW/visual-editor.json +106 -0
  33. package/dist/plugin/internal/layoutGeneration/limits.d.ts +28 -0
  34. package/dist/plugin/plugin.js +6795 -2063
  35. package/dist/plugin/types/generationPrompts.d.ts +19 -0
  36. package/dist/plugin/types/generationSettings.d.ts +12 -0
  37. package/dist/plugin/types/sectionLibrary.d.ts +11 -4
  38. package/dist/plugin/vite-plugin/layout-generation/generationLogger.d.ts +5 -0
  39. package/dist/plugin/vite-plugin/layout-generation/generationReports.d.ts +13 -0
  40. package/dist/plugin/vite-plugin/layout-generation/middleware.d.ts +14 -0
  41. package/dist/plugin/vite-plugin/layout-generation/modelProxy.d.ts +9 -0
  42. package/dist/plugin/vite-plugin/layout-generation/prompts.d.ts +17 -0
  43. package/dist/plugin/vite-plugin/layout-generation/settings.d.ts +3 -0
  44. package/dist/plugin/vite-plugin/local-editor/artifacts.d.ts +4 -2
  45. package/dist/plugin/vite-plugin/local-editor/data.d.ts +2 -0
  46. package/dist/plugin/vite-plugin/local-editor/generatedFiles.d.ts +2 -3
  47. package/dist/plugin/vite-plugin/local-editor/server.d.ts +17 -1
  48. package/dist/plugin/vite-plugin/local-editor/types.d.ts +18 -2
  49. package/dist/plugin/vite-plugin/plugin.d.ts +1 -1
  50. package/dist/section-library-support.js +122 -118
  51. package/dist/sectionLibrarySupport.d.ts +61 -4
  52. package/dist/visual-editor-6mKs9VUe.js +842 -0
  53. package/dist/{visual-editor-DC1pCUtq.js → visual-editor-BK6fTU7k.js} +335 -228
  54. package/dist/{visual-editor-BKK2RKRg.js → visual-editor-BruRrJYN.js} +342 -235
  55. package/dist/visual-editor-Bs3wAslG.js +804 -0
  56. package/dist/{visual-editor-aXXSZO_i.js → visual-editor-C9TLeAzP.js} +355 -248
  57. package/dist/{visual-editor-bEaD2J5r.js → visual-editor-CHWtMtlu.js} +364 -250
  58. package/dist/{visual-editor-EZ39Q-Cf.js → visual-editor-CcfUKpnd.js} +346 -239
  59. package/dist/visual-editor-ClC6hoz3.js +804 -0
  60. package/dist/visual-editor-CtQwadxQ.js +842 -0
  61. package/dist/{visual-editor-Dpc4OfjE.js → visual-editor-D7VeTRK_.js} +358 -247
  62. package/dist/{visual-editor-DM0HkCii.js → visual-editor-DTE5kxrA.js} +351 -244
  63. package/dist/{visual-editor-5YEXG9DH.js → visual-editor-DjTEbi-1.js} +370 -249
  64. package/dist/{visual-editor-DKurZtUt.js → visual-editor-DkHhrFsX.js} +341 -234
  65. package/dist/visual-editor-DtL-Zuv_.js +804 -0
  66. package/dist/visual-editor-Duishbsa.js +842 -0
  67. package/dist/visual-editor-LXMNWXry.js +823 -0
  68. package/dist/visual-editor-QpGupjY5.js +823 -0
  69. package/dist/visual-editor-_TatCCAS.js +804 -0
  70. package/dist/{visual-editor-BQsdxhUz.js → visual-editor-gEaWoNRu.js} +352 -245
  71. package/dist/{visual-editor-1L5yvx9x.js → visual-editor-gjpr-NAN.js} +358 -251
  72. package/dist/{visual-editor-BZSN_IFr.js → visual-editor-qJW0uCiQ.js} +366 -259
  73. package/dist/visual-editor-sOPDMkOR.js +823 -0
  74. package/dist/visual-editor-tPb7n5l8.js +823 -0
  75. package/dist/visual-editor-vomNdlNO.js +804 -0
  76. package/dist/visual-editor-zKhC7_0C.js +823 -0
  77. package/dist/visual-editor.css +1 -1
  78. package/dist/visual-editor.js +12865 -9706
  79. package/package.json +6 -3
  80. package/dist/visual-editor-7MhH35_G.js +0 -709
  81. package/dist/visual-editor-BZiKZha2.js +0 -709
  82. package/dist/visual-editor-C3JS3OQU.js +0 -697
  83. package/dist/visual-editor-CGPLMAQn.js +0 -721
  84. package/dist/visual-editor-CIo2noVV.js +0 -709
  85. package/dist/visual-editor-CX5aaC7B.js +0 -709
  86. package/dist/visual-editor-CZouujLr.js +0 -697
  87. package/dist/visual-editor-CdwYNJ-y.js +0 -721
  88. package/dist/visual-editor-CwLtLH7t.js +0 -697
  89. package/dist/visual-editor-HIaH9B9G.js +0 -697
  90. package/dist/visual-editor-J0zs1Agv.js +0 -721
  91. package/dist/visual-editor-SYachtCo.js +0 -709
  92. 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。",
@@ -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;