veryfront 0.1.124 → 0.1.127

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 (41) hide show
  1. package/esm/deno.js +1 -1
  2. package/esm/src/html/hydration-script-builder/templates/router.d.ts.map +1 -1
  3. package/esm/src/html/hydration-script-builder/templates/router.js +9 -0
  4. package/esm/src/react/components/Head.d.ts.map +1 -1
  5. package/esm/src/react/components/Head.js +5 -0
  6. package/esm/src/react/components/ai/chat/composition/chat-root.d.ts.map +1 -1
  7. package/esm/src/react/components/ai/chat/composition/chat-root.js +3 -1
  8. package/esm/src/react/components/ai/chat-with-sidebar.d.ts.map +1 -1
  9. package/esm/src/react/components/ai/chat-with-sidebar.js +3 -1
  10. package/esm/src/react/components/ai/csp-nonce.d.ts +6 -0
  11. package/esm/src/react/components/ai/csp-nonce.d.ts.map +1 -0
  12. package/esm/src/react/components/ai/csp-nonce.js +13 -0
  13. package/esm/src/security/http/response/security-handler.d.ts.map +1 -1
  14. package/esm/src/security/http/response/security-handler.js +12 -4
  15. package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
  16. package/esm/src/server/handlers/dev/framework-candidates.generated.js +186 -0
  17. package/esm/src/transforms/mdx/esm-module-loader/import-transformer.js +1 -1
  18. package/esm/src/transforms/mdx/esm-module-loader/jsx-cache.js +1 -1
  19. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.d.ts +1 -14
  20. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.d.ts.map +1 -1
  21. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.js +50 -8
  22. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.js +1 -1
  23. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.d.ts.map +1 -1
  24. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.js +18 -17
  25. package/esm/src/utils/version-constant.d.ts +1 -1
  26. package/esm/src/utils/version-constant.js +1 -1
  27. package/package.json +1 -1
  28. package/src/deno.js +1 -1
  29. package/src/src/html/hydration-script-builder/templates/router.ts +9 -0
  30. package/src/src/react/components/Head.tsx +5 -0
  31. package/src/src/react/components/ai/chat/composition/chat-root.tsx +3 -1
  32. package/src/src/react/components/ai/chat-with-sidebar.tsx +3 -1
  33. package/src/src/react/components/ai/csp-nonce.ts +13 -0
  34. package/src/src/security/http/response/security-handler.ts +12 -4
  35. package/src/src/server/handlers/dev/framework-candidates.generated.ts +186 -0
  36. package/src/src/transforms/mdx/esm-module-loader/import-transformer.ts +1 -1
  37. package/src/src/transforms/mdx/esm-module-loader/jsx-cache.ts +1 -1
  38. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.ts +54 -12
  39. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/index.ts +1 -1
  40. package/src/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.ts +17 -13
  41. package/src/src/utils/version-constant.ts +1 -1
@@ -13,14 +13,17 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
13
13
  "!ReactMarkdown)",
14
14
  "!actions",
15
15
  "!branch",
16
+ "!condition())",
16
17
  "!context)",
17
18
  "!currentActiveId",
18
19
  "!disabled",
19
20
  "!doc",
21
+ "!doctype",
20
22
  "!e.shiftKey)",
21
23
  "!editing",
22
24
  "!el",
23
25
  "!el)",
26
+ "!element)",
24
27
  "!error)",
25
28
  "!gap-0",
26
29
  "!hasError",
@@ -234,6 +237,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
234
237
  "1.912a2",
235
238
  "1.92",
236
239
  "10",
240
+ "10));",
237
241
  "10)}.md",
238
242
  "10.2232",
239
243
  "10.5a4",
@@ -406,6 +410,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
406
410
  "30.6%",
407
411
  "300);",
408
412
  "300,",
413
+ "3000,",
409
414
  "300ms",
410
415
  "328),",
411
416
  "3879.6765l5.8144",
@@ -662,6 +667,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
662
667
  "COMPONENT_ERROR.create({",
663
668
  "COPY_ICON_ELEMENTS);",
664
669
  "COPY_ICON_ELEMENTS:",
670
+ "CSP",
665
671
  "CSS",
666
672
  "CSS-only",
667
673
  "CVA",
@@ -757,6 +763,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
757
763
  "ChatStyleProvider({",
758
764
  "ChatStyleProvider,",
759
765
  "ChatStyleProvider.displayName",
766
+ "ChatStyleProvider>",
760
767
  "ChatStyleProviderProps",
761
768
  "ChatStyleProviderProps):",
762
769
  "ChatTab",
@@ -910,6 +917,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
910
917
  "Date(todayStart.getTime()",
911
918
  "Date.now()",
912
919
  "Date.now(),",
920
+ "Date.now();",
913
921
  "Debounced",
914
922
  "Default",
915
923
  "Default:",
@@ -944,6 +952,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
944
952
  "Each",
945
953
  "Edit",
946
954
  "Editing",
955
+ "Element:",
947
956
  "Elements",
948
957
  "Empty",
949
958
  "Empty:",
@@ -951,6 +960,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
951
960
  "End",
952
961
  "Enter",
953
962
  "Error",
963
+ "Error(",
954
964
  "Error)",
955
965
  "Error):",
956
966
  "Error,",
@@ -968,6 +978,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
968
978
  "ErrorBannerProps>(",
969
979
  "Escape",
970
980
  "Escapes",
981
+ "Expected",
971
982
  "Export",
972
983
  "Extra",
973
984
  "Extract",
@@ -999,6 +1010,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
999
1010
  "Focus",
1000
1011
  "For",
1001
1012
  "Format",
1013
+ "FrameRequestCallback)",
1002
1014
  "Framer",
1003
1015
  "GPT-4o",
1004
1016
  "Gemini",
@@ -1011,15 +1023,25 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1011
1023
  "HTML",
1012
1024
  "HTMLButtonElement,",
1013
1025
  "HTMLDivElement,",
1026
+ "HTMLElement:",
1014
1027
  "HTMLInputElement",
1028
+ "HTMLStyleElement:",
1015
1029
  "HTMLTextAreaElement,",
1030
+ "HTMLTextAreaElement:",
1016
1031
  "HTMLTextAreaElement>)",
1017
1032
  "HTMLTextAreaElement>,",
1033
+ "Head",
1034
+ "Head-managed",
1035
+ "Head.tsx",
1036
+ "Head>",
1018
1037
  "Hello",
1019
1038
  "Helpful",
1020
1039
  "Hide",
1021
1040
  "Home",
1022
1041
  "Hover",
1042
+ "HydratingChatRootFixture():",
1043
+ "HydratingChatStyleProviderFixture():",
1044
+ "HydratingHeadStyleFixture():",
1023
1045
  "I",
1024
1046
  "IconElementSpec",
1025
1047
  "IconElementType",
@@ -1056,6 +1078,9 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1056
1078
  "InputBoxProps",
1057
1079
  "InputBoxProps,",
1058
1080
  "Internal",
1081
+ "JSDOM",
1082
+ "JSDOM(",
1083
+ "JSDOM):",
1059
1084
  "JSON",
1060
1085
  "JSON.parse(raw)",
1061
1086
  "JSON.stringify(index));",
@@ -1258,9 +1283,11 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1258
1283
  "ModelSelectorProps,",
1259
1284
  "Motion",
1260
1285
  "MouseEvent):",
1286
+ "MutationObserver:",
1261
1287
  "New",
1262
1288
  "Next",
1263
1289
  "No",
1290
+ "Node:",
1264
1291
  "Node;",
1265
1292
  "NonNullable<ChatProps[",
1266
1293
  "Not",
@@ -1269,6 +1296,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1269
1296
  "Object.assign",
1270
1297
  "Object.assign(Chat,",
1271
1298
  "Object.assign(MessageRoot,",
1299
+ "Object.assign(globalThis,",
1272
1300
  "Object.entries(tokens)",
1273
1301
  "Object.entries(tokens).map(([k,",
1274
1302
  "Object.keys(firstItem);",
@@ -1320,10 +1348,12 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1320
1348
  "Preview",
1321
1349
  "Previous",
1322
1350
  "Primitives",
1351
+ "Promise((resolve)",
1323
1352
  "Promise.all([",
1324
1353
  "Promise<MermaidModule>",
1325
1354
  "Promise<T>",
1326
1355
  "Promise<any",
1356
+ "Promise<string",
1327
1357
  "Promise<void>",
1328
1358
  "Promise<void>;",
1329
1359
  "Promise<{",
@@ -1367,6 +1397,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1367
1397
  "React.MouseEvent<HTMLButtonElement>):",
1368
1398
  "React.PropsWithChildren<{",
1369
1399
  "React.ReactElement",
1400
+ "React.ReactElement):",
1401
+ "React.ReactElement,",
1370
1402
  "React.ReactNode",
1371
1403
  "React.ReactNode);",
1372
1404
  "React.ReactNode;",
@@ -1416,6 +1448,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1416
1448
  "React.useRef<HTMLInputElement>(null);",
1417
1449
  "React.useRef<HTMLTextAreaElement>(null);",
1418
1450
  "React.useRef<ReturnType<typeof",
1451
+ "React.useState(",
1419
1452
  "React.useState(()",
1420
1453
  "React.useState(-1);",
1421
1454
  "React.useState(false);",
@@ -1463,6 +1496,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1463
1496
  "Return",
1464
1497
  "ReturnType<typeof",
1465
1498
  "Returns",
1499
+ "Reuse",
1466
1500
  "RichCodeBlock",
1467
1501
  "RichCodeBlock({",
1468
1502
  "RichCodeBlock,",
@@ -1477,6 +1511,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1477
1511
  "SEND_ICON_ELEMENTS:",
1478
1512
  "SKILL_TOOL_NAMES.has(tool.toolName);",
1479
1513
  "SKILL_TOOL_NAMES:",
1514
+ "SPA",
1480
1515
  "SPARKLES_ICON_ELEMENTS);",
1481
1516
  "SPARKLES_ICON_ELEMENTS:",
1482
1517
  "SSR",
@@ -1598,6 +1633,9 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1598
1633
  "TABS:",
1599
1634
  "TARGET_ICON_ELEMENTS);",
1600
1635
  "TARGET_ICON_ELEMENTS:",
1636
+ "TEST_NONCE",
1637
+ "TEST_NONCE);",
1638
+ "TEST_NONCE}",
1601
1639
  "TOKENS_DARK",
1602
1640
  "TOKENS_LIGHT",
1603
1641
  "TOOL_STATUS_CONFIG:",
@@ -1653,6 +1691,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1653
1691
  "Thread[];",
1654
1692
  "Thread[]>",
1655
1693
  "Thread[]>();",
1694
+ "Timed",
1656
1695
  "Title",
1657
1696
  "Today",
1658
1697
  "Tokens",
@@ -1819,6 +1858,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1819
1858
  "[focusedIndex,",
1820
1859
  "[fresh];",
1821
1860
  "[getBranches,",
1861
+ "[hydrated,",
1862
+ "[input,",
1822
1863
  "[internalOpen,",
1823
1864
  "[internalTab,",
1824
1865
  "[isAtBottom,",
@@ -1971,6 +2012,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1971
2012
  "anything",
1972
2013
  "api/chat",
1973
2014
  "api:",
2015
+ "append",
1974
2016
  "application",
1975
2017
  "applies",
1976
2018
  "approval-requested",
@@ -1997,6 +2039,10 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
1997
2039
  "arrays",
1998
2040
  "as",
1999
2041
  "asking",
2042
+ "assert(root,",
2043
+ "assert(style,",
2044
+ "assert,",
2045
+ "assertEquals",
2000
2046
  "assertEquals((first",
2001
2047
  "assertEquals(first.type,",
2002
2048
  "assertEquals(getTextContent(message),",
@@ -2004,6 +2050,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2004
2050
  "assertEquals(groups.length,",
2005
2051
  "assertEquals(isReasoningPart(part),",
2006
2052
  "assertEquals(isToolPart(part),",
2053
+ "assertEquals(nonce,",
2007
2054
  "assertEquals(second.type,",
2008
2055
  "assertEquals(third.type,",
2009
2056
  "assertEquals,",
@@ -2072,6 +2119,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2072
2119
  "be",
2073
2120
  "because",
2074
2121
  "before",
2122
+ "behavior",
2075
2123
  "behavior:",
2076
2124
  "beneath",
2077
2125
  "bg-[#181818]",
@@ -2123,6 +2171,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2123
2171
  "blocks",
2124
2172
  "boolean",
2125
2173
  "boolean);",
2174
+ "boolean,",
2126
2175
  "boolean;",
2127
2176
  "border",
2128
2177
  "border-2",
@@ -2188,12 +2237,15 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2188
2237
  "c.toUpperCase())}",
2189
2238
  "call",
2190
2239
  "call:",
2240
+ "callback(Date.now()),",
2241
+ "callback:",
2191
2242
  "callbacks",
2192
2243
  "calls",
2193
2244
  "calls,",
2194
2245
  "can",
2195
2246
  "canSubmit:",
2196
2247
  "cancelAnimationFrame(frame);",
2248
+ "cancelAnimationFrame:",
2197
2249
  "cancelled",
2198
2250
  "cancelled)",
2199
2251
  "capitalize",
@@ -2241,6 +2293,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2241
2293
  "chat/components/code-block.tsx",
2242
2294
  "chat/components/sidebar.tsx",
2243
2295
  "chat/components/tab-switcher.tsx",
2296
+ "chat/composition/chat-root.tsx",
2244
2297
  "chat/hooks/use-threads.ts",
2245
2298
  "chat/index.tsx",
2246
2299
  "chat:",
@@ -2307,6 +2360,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2307
2360
  "clearError",
2308
2361
  "clearError,",
2309
2362
  "clearError:",
2363
+ "clearTimeout(handle),",
2310
2364
  "clearTimeout(saveTimerRef.current),",
2311
2365
  "clearTimeout(saveTimerRef.current);",
2312
2366
  "clearTimeout(timer);",
@@ -2314,6 +2368,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2314
2368
  "clearTimeout(timerRef.current);",
2315
2369
  "click",
2316
2370
  "client",
2371
+ "client-created",
2317
2372
  "client-side",
2318
2373
  "clip:",
2319
2374
  "clipboard",
@@ -2404,6 +2459,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2404
2459
  "const,",
2405
2460
  "const;",
2406
2461
  "consumes",
2462
+ "contain",
2407
2463
  "container",
2408
2464
  "container:",
2409
2465
  "container?:",
@@ -2452,6 +2508,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2452
2508
  "createThread,",
2453
2509
  "createThread:",
2454
2510
  "createdAt:",
2511
+ "csp-nonce.ts",
2455
2512
  "csv:",
2456
2513
  "ctx",
2457
2514
  "ctx:",
@@ -2505,6 +2562,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2505
2562
  "data-agent-status=",
2506
2563
  "data-chat-container=",
2507
2564
  "data-dynamic={dynamic",
2565
+ "data-hydrated={hydrated",
2508
2566
  "data-index={flatIndex}",
2509
2567
  "data-input-box=",
2510
2568
  "data-loading-indicator=",
@@ -2611,6 +2669,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2611
2669
  "doc.url",
2612
2670
  "docs",
2613
2671
  "docs)",
2672
+ "document",
2614
2673
  "document.addEventListener(",
2615
2674
  "document.body.appendChild(a);",
2616
2675
  "document.body.appendChild(textarea);",
@@ -2619,9 +2678,17 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2619
2678
  "document.createElement(",
2620
2679
  "document.documentElement;",
2621
2680
  "document.execCommand(",
2681
+ "document.getElementById(",
2682
+ "document.head.querySelector('style[data-veryfront-managed=",
2683
+ "document.querySelector('[data-hydrated=",
2684
+ "document.querySelector<HTMLElement>(",
2622
2685
  "document.removeEventListener(",
2686
+ "document:",
2623
2687
  "documents",
2624
2688
  "docx:",
2689
+ "dom",
2690
+ "dom.window.close();",
2691
+ "dom.window;",
2625
2692
  "don't",
2626
2693
  "done",
2627
2694
  "dot",
@@ -2700,9 +2767,15 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2700
2767
  "el.selectionStart",
2701
2768
  "el.style.height",
2702
2769
  "el.value.length;",
2770
+ "element",
2771
+ "element);",
2703
2772
  "element.",
2773
+ "element.getAttribute(",
2774
+ "element.nonce",
2704
2775
  "element.props,",
2705
2776
  "element.type}-${index}",
2777
+ "element:",
2778
+ "elements",
2706
2779
  "elements.map((element,",
2707
2780
  "elements:",
2708
2781
  "else",
@@ -2750,9 +2823,11 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2750
2823
  "eslint-disable-next-line",
2751
2824
  "etc.",
2752
2825
  "etc.,",
2826
+ "event?.preventDefault()}",
2753
2827
  "execute-skill-script",
2754
2828
  "execute-skill-script)",
2755
2829
  "execute-skill-script).",
2830
+ "exist",
2756
2831
  "expected:",
2757
2832
  "export",
2758
2833
  "export?:",
@@ -2910,7 +2985,11 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2910
2985
  "getChatTokensCSS",
2911
2986
  "getChatTokensCSS():",
2912
2987
  "getChatTokensCSS();",
2988
+ "getComputedStyle:",
2913
2989
  "getDerivedStateFromError(error:",
2990
+ "getDocumentNonce",
2991
+ "getDocumentNonce():",
2992
+ "getDocumentNonce();",
2914
2993
  "getExtension(attachment.name);",
2915
2994
  "getExtension(name:",
2916
2995
  "getRelativeGroup(thread.updatedAt);",
@@ -2929,9 +3008,22 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2929
3008
  "gfmModule,",
2930
3009
  "gfmModule.default;",
2931
3010
  "ghost:",
3011
+ "globalThis.Element,",
3012
+ "globalThis.HTMLElement,",
3013
+ "globalThis.HTMLStyleElement,",
3014
+ "globalThis.HTMLTextAreaElement,",
3015
+ "globalThis.MutationObserver,",
3016
+ "globalThis.Node,",
3017
+ "globalThis.cancelAnimationFrame,",
3018
+ "globalThis.document,",
3019
+ "globalThis.getComputedStyle,",
2932
3020
  "globalThis.innerHeight",
2933
3021
  "globalThis.innerWidth",
2934
3022
  "globalThis.matchMedia(",
3023
+ "globalThis.navigator,",
3024
+ "globalThis.requestAnimationFrame,",
3025
+ "globalThis.self,",
3026
+ "globalThis.window,",
2935
3027
  "google",
2936
3028
  "google:",
2937
3029
  "gpt",
@@ -2988,6 +3080,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
2988
3080
  "h3>",
2989
3081
  "h4",
2990
3082
  "h4>",
3083
+ "handle:",
2991
3084
  "handleClick",
2992
3085
  "handleCopy",
2993
3086
  "handleDismiss",
@@ -3031,6 +3124,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3031
3124
  "head>",
3032
3125
  "height:",
3033
3126
  "height=",
3127
+ "hello</div>",
3034
3128
  "help",
3035
3129
  "helper",
3036
3130
  "helpful",
@@ -3063,13 +3157,27 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3063
3157
  "hover:underline",
3064
3158
  "href={doc.url}",
3065
3159
  "href={props.href}",
3160
+ "html.replaceAll(",
3066
3161
  "html:",
3067
3162
  "html>",
3163
+ "html><div",
3164
+ "html><html><head><style",
3068
3165
  "https://ai-sdk.dev/elements)",
3069
3166
  "https://esm.sh/mermaid@11.4.1?pin=v135",
3070
3167
  "https://esm.sh/react-markdown@9.0.3?external=react",
3071
3168
  "https://esm.sh/rehype-highlight@7.0.2?target=es2022",
3072
3169
  "https://esm.sh/remark-gfm@4.0.1?target=es2022",
3170
+ "https://example.com/",
3171
+ "hydrateAndReadManagedHeadStyleNonce(",
3172
+ "hydrateAndReadManagedHeadStyleNonce(<HydratingHeadStyleFixture",
3173
+ "hydrateAndReadStyleNonce(<HydratingChatRootFixture",
3174
+ "hydrateAndReadStyleNonce(<HydratingChatStyleProviderFixture",
3175
+ "hydrateAndReadStyleNonce(element:",
3176
+ "hydrateRoot",
3177
+ "hydrateRoot(root,",
3178
+ "hydrated",
3179
+ "hydratedRoot",
3180
+ "hydratedRoot.unmount();",
3073
3181
  "hydration",
3074
3182
  "i)",
3075
3183
  "icon",
@@ -3094,6 +3202,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3094
3202
  "id)",
3095
3203
  "id);",
3096
3204
  "id:",
3205
+ "id=",
3097
3206
  "id={listboxId}",
3098
3207
  "idle",
3099
3208
  "ids:",
@@ -3129,6 +3238,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3129
3238
  "initialContent:",
3130
3239
  "initialContent={content}",
3131
3240
  "initialize(config:",
3241
+ "injectNonceIntoStyleTags(html:",
3242
+ "injectNonceIntoStyleTags(renderToString(element),",
3132
3243
  "injected",
3133
3244
  "injection.",
3134
3245
  "inline",
@@ -3159,6 +3270,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3159
3270
  "input}",
3160
3271
  "inset-0",
3161
3272
  "inside",
3273
+ "installDomGlobals(dom);",
3274
+ "installDomGlobals(dom:",
3162
3275
  "instanceof",
3163
3276
  "intentionally",
3164
3277
  "interface",
@@ -3334,6 +3447,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3334
3447
  "lines.push(textParts.join(",
3335
3448
  "lines.push(toolSummaries.join(",
3336
3449
  "lines:",
3450
+ "link[nonce]",
3337
3451
  "list",
3338
3452
  "listbox",
3339
3453
  "listboxId",
@@ -3386,6 +3500,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3386
3500
  "m=localStorage.getItem(",
3387
3501
  "makeMessage([",
3388
3502
  "makeMessage(parts:",
3503
+ "managed",
3389
3504
  "map(([key,",
3390
3505
  "map((animationDelay)",
3391
3506
  "map((p)",
@@ -3489,6 +3604,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3489
3604
  "messages.map((msg)",
3490
3605
  "messages:",
3491
3606
  "messages;",
3607
+ "messages={[]}",
3492
3608
  "messages={chat.messages}",
3493
3609
  "messages={messages}",
3494
3610
  "messages?.length",
@@ -3609,6 +3725,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3609
3725
  "navigator.clipboard.writeText(code);",
3610
3726
  "navigator.clipboard.writeText(content);",
3611
3727
  "navigator.clipboard.writeText(textContent);",
3728
+ "navigator:",
3612
3729
  "nearest",
3613
3730
  "negative",
3614
3731
  "nested",
@@ -3627,14 +3744,23 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3627
3744
  "node",
3628
3745
  "non-renderable",
3629
3746
  "non-text",
3747
+ "nonce",
3748
+ "nonce-123",
3749
+ "nonce:",
3750
+ "nonce=",
3751
+ "nonce={nonce}",
3752
+ "nonces",
3753
+ "nonce}",
3630
3754
  "none",
3631
3755
  "noopener",
3632
3756
  "noreferrer",
3633
3757
  "not",
3634
3758
  "not-prose",
3635
3759
  "nowrap",
3760
+ "npm:jsdom@28.0.0",
3636
3761
  "null",
3637
3762
  "null)",
3763
+ "null);",
3638
3764
  "null,",
3639
3765
  "null;",
3640
3766
  "null>",
@@ -3644,6 +3770,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3644
3770
  "number",
3645
3771
  "number)",
3646
3772
  "number):",
3773
+ "number,",
3647
3774
  "number;",
3648
3775
  "o1",
3649
3776
  "o3",
@@ -3712,6 +3839,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3712
3839
  "onChange,",
3713
3840
  "onChange:",
3714
3841
  "onChange={(e)",
3842
+ "onChange={(event)",
3715
3843
  "onChange={chat.handleInputChange}",
3716
3844
  "onChange={onChange}",
3717
3845
  "onChange={onModelChange}",
@@ -3873,6 +4001,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3873
4001
  "onSubmit,",
3874
4002
  "onSubmit:",
3875
4003
  "onSubmit={(e)",
4004
+ "onSubmit={(event)",
3876
4005
  "onSubmit={chat.handleSubmit}",
3877
4006
  "onSubmit={onSubmit}",
3878
4007
  "onSubmit?.(e);",
@@ -3929,6 +4058,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
3929
4058
  "ordered",
3930
4059
  "other",
3931
4060
  "our",
4061
+ "out",
3932
4062
  "outline-none",
3933
4063
  "outline:",
3934
4064
  "output",
@@ -4056,6 +4186,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4056
4186
  "prefers-color-scheme:",
4057
4187
  "prefers-color-scheme:dark)",
4058
4188
  "prefix.",
4189
+ "preserves",
4059
4190
  "preset",
4060
4191
  "preset)",
4061
4192
  "prev",
@@ -4070,6 +4201,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4070
4201
  "prevention.",
4071
4202
  "preview",
4072
4203
  "preview?:",
4204
+ "previous",
4205
+ "previous);",
4073
4206
  "primary",
4074
4207
  "primary:",
4075
4208
  "primitives/index.ts",
@@ -4141,8 +4274,11 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4141
4274
  "raw",
4142
4275
  "raw)",
4143
4276
  "re-export",
4277
+ "re-renders",
4144
4278
  "reached",
4145
4279
  "react",
4280
+ "react-dom/client",
4281
+ "react-dom/server",
4146
4282
  "react-hooks/exhaustive-deps",
4147
4283
  "react/components/ai",
4148
4284
  "react/components/ai/icons",
@@ -4224,6 +4360,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4224
4360
  "renderReasoning)",
4225
4361
  "renderReasoning,",
4226
4362
  "renderReasoning?:",
4363
+ "renderToString",
4364
+ "renderToString(element);",
4227
4365
  "renderTool",
4228
4366
  "renderTool(group.tool)",
4229
4367
  "renderTool)",
@@ -4244,6 +4382,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4244
4382
  "replace(/",
4245
4383
  "replace(/:",
4246
4384
  "requestAnimationFrame(()",
4385
+ "requestAnimationFrame:",
4247
4386
  "reset",
4248
4387
  "reset:",
4249
4388
  "resize",
@@ -4259,6 +4398,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4259
4398
  "resolvedMode);",
4260
4399
  "resolvedMode,",
4261
4400
  "resolvedMode:",
4401
+ "restore",
4402
+ "restore();",
4262
4403
  "result",
4263
4404
  "result:",
4264
4405
  "result;",
@@ -4268,6 +4409,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4268
4409
  "return",
4269
4410
  "return;",
4270
4411
  "returns",
4412
+ "reuses",
4271
4413
  "right-aligned",
4272
4414
  "right:",
4273
4415
  "rmModule.default;",
@@ -4280,6 +4422,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4280
4422
  "root",
4281
4423
  "root,",
4282
4424
  "root.classList.toggle(",
4425
+ "root.querySelector(",
4283
4426
  "root.setAttribute(",
4284
4427
  "rotate-0",
4285
4428
  "rotate-180",
@@ -4314,6 +4457,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4314
4457
  "score:",
4315
4458
  "score?:",
4316
4459
  "script",
4460
+ "script[nonce],",
4317
4461
  "script}",
4318
4462
  "scrollAreaRef",
4319
4463
  "scrollAreaRef.current.scrollHeight,",
@@ -4327,6 +4471,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4327
4471
  "second,",
4328
4472
  "second]",
4329
4473
  "securityLevel:",
4474
+ "seed{color:black}</style></head><body><div",
4330
4475
  "selectThread",
4331
4476
  "selectThread(id);",
4332
4477
  "selectThread,",
@@ -4338,10 +4483,15 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4338
4483
  "selectedIdx",
4339
4484
  "selector,",
4340
4485
  "selects",
4486
+ "self:",
4341
4487
  "semantic",
4342
4488
  "sensible",
4343
4489
  "separates",
4490
+ "server-issued",
4344
4491
  "server-local",
4492
+ "serverMarkup",
4493
+ "serverMarkup}</div>",
4494
+ "serverMarkup}</div></body></html>",
4345
4495
  "set",
4346
4496
  "setActiveThreadId((current)",
4347
4497
  "setActiveThreadId(first.id);",
@@ -4386,7 +4536,10 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4386
4536
  "setFocusedIndex(models.length",
4387
4537
  "setFocusedIndex(selectedIdx",
4388
4538
  "setFocusedIndex]",
4539
+ "setHydrated(true);",
4540
+ "setHydrated]",
4389
4541
  "setInput",
4542
+ "setInput(event.target.value)}",
4390
4543
  "setInput(transcript);",
4391
4544
  "setInput)",
4392
4545
  "setInput,",
@@ -4394,6 +4547,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4394
4547
  "setInput={setInput}",
4395
4548
  "setInput?.(",
4396
4549
  "setInput?:",
4550
+ "setInput]",
4397
4551
  "setInput]);",
4398
4552
  "setInternalOpen((prev)",
4399
4553
  "setInternalOpen]",
@@ -4442,6 +4596,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4442
4596
  "setThreads([first]);",
4443
4597
  "setThreads]",
4444
4598
  "setTimeout(()",
4599
+ "setTimeout(resolve,",
4445
4600
  "setTimeout>>(undefined);",
4446
4601
  "shadow-lg",
4447
4602
  "shadow-md",
@@ -4580,6 +4735,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4580
4735
  "standalone,",
4581
4736
  "start",
4582
4737
  "startOnLoad:",
4738
+ "startedAt",
4583
4739
  "state",
4584
4740
  "state,",
4585
4741
  "state:",
@@ -4644,9 +4800,13 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4644
4800
  "strokeWidth={2}",
4645
4801
  "style",
4646
4802
  "style,",
4803
+ "style.getAttribute(",
4804
+ "style/script",
4647
4805
  "style={cardStyle}",
4648
4806
  "style={{",
4649
4807
  "style>",
4808
+ "style>{",
4809
+ "style[nonce],",
4650
4810
  "styles",
4651
4811
  "sub-component",
4652
4812
  "sub-components",
@@ -4711,6 +4871,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4711
4871
  "tabs?:",
4712
4872
  "tabs]);",
4713
4873
  "tabular-nums",
4874
+ "tag",
4875
+ "tags",
4714
4876
  "tailwind-merge",
4715
4877
  "take",
4716
4878
  "target",
@@ -4855,6 +5017,8 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4855
5017
  "threads[0]?.id",
4856
5018
  "through",
4857
5019
  "throw",
5020
+ "timeoutMs",
5021
+ "timeoutMs)",
4858
5022
  "timer",
4859
5023
  "timerRef",
4860
5024
  "timerRef.current",
@@ -4958,6 +5122,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
4958
5122
  "transition:",
4959
5123
  "translateY(0)",
4960
5124
  "translateY(8px)",
5125
+ "tree",
4961
5126
  "tree.",
4962
5127
  "trigger",
4963
5128
  "triggerRef",
@@ -5020,6 +5185,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
5020
5185
  "updatedAt",
5021
5186
  "updatedAt:",
5022
5187
  "updates,",
5188
+ "updates.",
5023
5189
  "updates:",
5024
5190
  "uploaded",
5025
5191
  "uploading",
@@ -5110,6 +5276,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
5110
5276
  "value={content}",
5111
5277
  "value={contextValue}>",
5112
5278
  "value={editValue}",
5279
+ "value={input}",
5113
5280
  "value={isListening",
5114
5281
  "value={model}",
5115
5282
  "value={value}",
@@ -5131,10 +5298,13 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
5131
5298
  "veryfront/errors/error-registry.ts",
5132
5299
  "veryfront/platform/compat/runtime.ts",
5133
5300
  "veryfront/security/client/html-sanitizer.ts",
5301
+ "veryfront/testing/assert",
5134
5302
  "veryfront/testing/assert.ts",
5303
+ "veryfront/testing/bdd",
5135
5304
  "veryfront/testing/bdd.ts",
5136
5305
  "veryfront/utils/html-escape.ts",
5137
5306
  "vf-color-mode",
5307
+ "vf-head-style{color:red}",
5138
5308
  "vf-threads",
5139
5309
  "vf-upgrade-cta-dismissed",
5140
5310
  "via",
@@ -5172,15 +5342,30 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
5172
5342
  "w-fit",
5173
5343
  "w-full",
5174
5344
  "w/g,",
5345
+ "waitFor(",
5346
+ "waitFor(()",
5347
+ "waiting",
5175
5348
  "we",
5176
5349
  "when",
5177
5350
  "which",
5351
+ "while",
5178
5352
  "whiteSpace:",
5179
5353
  "whitespace-nowrap",
5180
5354
  "whitespace-pre-wrap",
5181
5355
  "width:",
5182
5356
  "width=",
5183
5357
  "window",
5358
+ "window,",
5359
+ "window.Element,",
5360
+ "window.HTMLElement,",
5361
+ "window.HTMLStyleElement,",
5362
+ "window.HTMLTextAreaElement,",
5363
+ "window.MutationObserver,",
5364
+ "window.Node,",
5365
+ "window.document,",
5366
+ "window.getComputedStyle.bind(window),",
5367
+ "window.navigator,",
5368
+ "window:",
5184
5369
  "with",
5185
5370
  "with?",
5186
5371
  "within",
@@ -5200,6 +5385,7 @@ export const FRAMEWORK_CANDIDATES: readonly string[] = [
5200
5385
  "y2=",
5201
5386
  "y:",
5202
5387
  "y=",
5388
+ "yes",
5203
5389
  "yesterdayStart",
5204
5390
  "yesterdayStart.getTime())",
5205
5391
  "yet</p>",