@vectoriox/iox-ui 5.192.0 → 5.194.0
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/fesm2022/vectoriox-iox-ui-forms-core.mjs +186 -122
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +193 -95
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-seo-core.mjs +37 -11
- package/fesm2022/vectoriox-iox-ui-seo-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +249 -146
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +17 -2
- package/harness-core/index.d.ts +102 -12
- package/index.d.ts +20 -6
- package/package.json +1 -1
- package/seo-core/index.d.ts +8 -1
- package/src/forms-core/messages.ts +72 -1
- package/src/forms-core/submit-lifecycle.ts +4 -5
- package/src/harness-core/business-types.ts +14 -9
- package/src/harness-core/harness-spec.generated.ts +168 -84
- package/src/harness-core/lint.ts +29 -11
- package/src/seo-core/redirects.ts +35 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MOOD_IDS, MOOD_LABELS, STYLE_PRESETS, SPEC_FLAVORS, flavorPackById, parseFontFamilies, SPEC_AXES, motionWordTier, MotionWordTier, parseHexColor, rgbToOklab, presetChoices, toHexColor, stylePresetById, resolveTokenValues, designTokenRows, wcagContrastRatio, auditDesignContrast, PRELOADER_LEVELS, SCRUB_LEVELS } from '@vectoriox/iox-ui/design-core';
|
|
1
|
+
import { MOOD_IDS, MOOD_LABELS, STYLE_PRESETS, SPEC_FLAVORS, flavorPackById, parseFontFamilies, SPEC_AXES, motionWordTier, MotionWordTier, languageOf, parseHexColor, rgbToOklab, presetChoices, toHexColor, stylePresetById, resolveTokenValues, designTokenRows, wcagContrastRatio, auditDesignContrast, PRELOADER_LEVELS, SCRUB_LEVELS } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
import { HEBREW_PREFIXES, shapeKeys, requiredShapeKeys, PathIssueCollector, isPlainObject, pathAt, FACT_KEYS, jsonText, jsonOneOf, jsonListOf, jsonShapedObject, describeShapeKey, SPEC_SITE_LIBRARY, patternById, SITE_FACT_LABELS, SITE_TEMPLATES, STUDIO_TEMPLATE, jsonInteger, pictureSlotPage, composeContextOf } from '@vectoriox/iox-ui/generation-core';
|
|
3
3
|
|
|
4
4
|
// GENERATED from iox-ai-guidance flavor-spec.v1.json — do not edit; re-run scripts/gen-flavor-spec.mjs
|
|
@@ -81,7 +81,8 @@ const SPEC_USER_AVOIDS = {
|
|
|
81
81
|
"dark"
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
|
-
"say": "You asked for no dark backgrounds."
|
|
84
|
+
"say": "You asked for no dark backgrounds.",
|
|
85
|
+
"sayHe": "ביקשתם בלי רקעים כהים."
|
|
85
86
|
},
|
|
86
87
|
"loud-colour": {
|
|
87
88
|
"when": {
|
|
@@ -90,7 +91,8 @@ const SPEC_USER_AVOIDS = {
|
|
|
90
91
|
"energetic"
|
|
91
92
|
]
|
|
92
93
|
},
|
|
93
|
-
"say": "You asked for nothing loud."
|
|
94
|
+
"say": "You asked for nothing loud.",
|
|
95
|
+
"sayHe": "ביקשתם בלי דברים רועשים."
|
|
94
96
|
},
|
|
95
97
|
"lots-of-motion": {
|
|
96
98
|
"when": {
|
|
@@ -99,7 +101,8 @@ const SPEC_USER_AVOIDS = {
|
|
|
99
101
|
"lively"
|
|
100
102
|
]
|
|
101
103
|
},
|
|
102
|
-
"say": "You asked for little movement."
|
|
104
|
+
"say": "You asked for little movement.",
|
|
105
|
+
"sayHe": "ביקשתם מעט תנועה."
|
|
103
106
|
},
|
|
104
107
|
"too-cute": {
|
|
105
108
|
"when": {
|
|
@@ -107,7 +110,8 @@ const SPEC_USER_AVOIDS = {
|
|
|
107
110
|
"playful"
|
|
108
111
|
]
|
|
109
112
|
},
|
|
110
|
-
"say": "You asked for nothing cute or childish."
|
|
113
|
+
"say": "You asked for nothing cute or childish.",
|
|
114
|
+
"sayHe": "ביקשתם בלי חמוד או ילדותי."
|
|
111
115
|
},
|
|
112
116
|
"too-corporate": {
|
|
113
117
|
"when": {
|
|
@@ -116,7 +120,8 @@ const SPEC_USER_AVOIDS = {
|
|
|
116
120
|
"technical"
|
|
117
121
|
]
|
|
118
122
|
},
|
|
119
|
-
"say": "You asked for nothing corporate."
|
|
123
|
+
"say": "You asked for nothing corporate.",
|
|
124
|
+
"sayHe": "ביקשתם בלי מראה תאגידי."
|
|
120
125
|
}
|
|
121
126
|
};
|
|
122
127
|
const SPEC_STRUCTURES = {
|
|
@@ -270,21 +275,25 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
270
275
|
"playful"
|
|
271
276
|
]
|
|
272
277
|
},
|
|
273
|
-
"say": "Loud colour and bouncy shapes fight the photos for attention."
|
|
278
|
+
"say": "Loud colour and bouncy shapes fight the photos for attention.",
|
|
279
|
+
"sayHe": "צבע רועש וצורות קופצניות מתחרים בתמונות על תשומת הלב."
|
|
274
280
|
},
|
|
275
281
|
{
|
|
276
282
|
"check": "needs-family",
|
|
277
283
|
"family": "collection",
|
|
278
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
284
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
285
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
279
286
|
},
|
|
280
287
|
{
|
|
281
288
|
"check": "image-hero",
|
|
282
|
-
"say": "Lead with a picture: the first screen should show the place or the work, not only words."
|
|
289
|
+
"say": "Lead with a picture: the first screen should show the place or the work, not only words.",
|
|
290
|
+
"sayHe": "פתחו בתמונה: המסך הראשון צריך להראות את המקום או את העבודה, לא רק מילים."
|
|
283
291
|
},
|
|
284
292
|
{
|
|
285
293
|
"check": "copy-length",
|
|
286
294
|
"max": "standard",
|
|
287
|
-
"say": "Heavy text buries the pictures."
|
|
295
|
+
"say": "Heavy text buries the pictures.",
|
|
296
|
+
"sayHe": "טקסט כבד קובר את התמונות."
|
|
288
297
|
}
|
|
289
298
|
],
|
|
290
299
|
"words": [
|
|
@@ -413,7 +422,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
413
422
|
"playful"
|
|
414
423
|
]
|
|
415
424
|
},
|
|
416
|
-
"say": "Playful shapes cheapen a portfolio of finished rooms."
|
|
425
|
+
"say": "Playful shapes cheapen a portfolio of finished rooms.",
|
|
426
|
+
"sayHe": "צורות שובבות מוזילות תיק עבודות של חללים גמורים."
|
|
417
427
|
},
|
|
418
428
|
{
|
|
419
429
|
"when": {
|
|
@@ -421,16 +431,19 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
421
431
|
"compact"
|
|
422
432
|
]
|
|
423
433
|
},
|
|
424
|
-
"say": "A cramped page is the opposite of a well-designed room."
|
|
434
|
+
"say": "A cramped page is the opposite of a well-designed room.",
|
|
435
|
+
"sayHe": "עמוד צפוף הוא ההפך מחדר מעוצב היטב."
|
|
425
436
|
},
|
|
426
437
|
{
|
|
427
438
|
"check": "needs-family",
|
|
428
439
|
"family": "collection",
|
|
429
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
440
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
441
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
430
442
|
},
|
|
431
443
|
{
|
|
432
444
|
"check": "image-hero",
|
|
433
|
-
"say": "Lead with a picture: the first screen should show the place or the work, not only words."
|
|
445
|
+
"say": "Lead with a picture: the first screen should show the place or the work, not only words.",
|
|
446
|
+
"sayHe": "פתחו בתמונה: המסך הראשון צריך להראות את המקום או את העבודה, לא רק מילים."
|
|
434
447
|
}
|
|
435
448
|
],
|
|
436
449
|
"words": [
|
|
@@ -555,23 +568,27 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
555
568
|
"playful"
|
|
556
569
|
]
|
|
557
570
|
},
|
|
558
|
-
"say": "Playful shapes undercut the precision clients pay for."
|
|
571
|
+
"say": "Playful shapes undercut the precision clients pay for.",
|
|
572
|
+
"sayHe": "צורות שובבות פוגעות בדיוק שלקוחות משלמים עליו."
|
|
559
573
|
},
|
|
560
574
|
{
|
|
561
575
|
"check": "brand-hue",
|
|
562
576
|
"from": 270,
|
|
563
577
|
"to": 335,
|
|
564
578
|
"minChroma": 0.12,
|
|
565
|
-
"say": "A purple-pink brand is the colour of AI tools right now; on this kind of site it can read as generic."
|
|
579
|
+
"say": "A purple-pink brand is the colour of AI tools right now; on this kind of site it can read as generic.",
|
|
580
|
+
"sayHe": "מותג סגול-ורוד הוא הצבע של כלי ה-AI עכשיו; באתר מהסוג הזה הוא עלול להיראות גנרי."
|
|
566
581
|
},
|
|
567
582
|
{
|
|
568
583
|
"check": "needs-family",
|
|
569
584
|
"family": "collection",
|
|
570
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
585
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
586
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
571
587
|
},
|
|
572
588
|
{
|
|
573
589
|
"check": "image-hero",
|
|
574
|
-
"say": "Lead with a picture: the first screen should show the place or the work, not only words."
|
|
590
|
+
"say": "Lead with a picture: the first screen should show the place or the work, not only words.",
|
|
591
|
+
"sayHe": "פתחו בתמונה: המסך הראשון צריך להראות את המקום או את העבודה, לא רק מילים."
|
|
575
592
|
}
|
|
576
593
|
],
|
|
577
594
|
"words": [
|
|
@@ -698,12 +715,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
698
715
|
{
|
|
699
716
|
"check": "needs-family",
|
|
700
717
|
"family": "collection",
|
|
701
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
718
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
719
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
702
720
|
},
|
|
703
721
|
{
|
|
704
722
|
"check": "no-pattern",
|
|
705
723
|
"pattern": "pricing.tiers",
|
|
706
|
-
"say": "Studios that sell projects rarely list fixed prices; a price table can undersell you."
|
|
724
|
+
"say": "Studios that sell projects rarely list fixed prices; a price table can undersell you.",
|
|
725
|
+
"sayHe": "סטודיו שמוכר פרויקטים כמעט לא מפרסם מחירים קבועים; טבלת מחירים עלולה להוזיל את העבודה."
|
|
707
726
|
}
|
|
708
727
|
],
|
|
709
728
|
"words": [
|
|
@@ -835,12 +854,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
835
854
|
"crisp"
|
|
836
855
|
]
|
|
837
856
|
},
|
|
838
|
-
"say": "A corporate look makes an artist look like a firm."
|
|
857
|
+
"say": "A corporate look makes an artist look like a firm.",
|
|
858
|
+
"sayHe": "מראה תאגידי גורם לאמן להיראות כמו חברה."
|
|
839
859
|
},
|
|
840
860
|
{
|
|
841
861
|
"check": "needs-family",
|
|
842
862
|
"family": "collection",
|
|
843
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
863
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
864
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
844
865
|
}
|
|
845
866
|
],
|
|
846
867
|
"words": [
|
|
@@ -974,12 +995,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
974
995
|
"technical"
|
|
975
996
|
]
|
|
976
997
|
},
|
|
977
|
-
"say": "A cold, technical look hides the hand that made the work."
|
|
998
|
+
"say": "A cold, technical look hides the hand that made the work.",
|
|
999
|
+
"sayHe": "מראה קר וטכני מסתיר את היד שיצרה את העבודה."
|
|
978
1000
|
},
|
|
979
1001
|
{
|
|
980
1002
|
"check": "needs-family",
|
|
981
1003
|
"family": "collection",
|
|
982
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
1004
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
1005
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
983
1006
|
}
|
|
984
1007
|
],
|
|
985
1008
|
"words": [
|
|
@@ -1106,7 +1129,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1106
1129
|
"playful"
|
|
1107
1130
|
]
|
|
1108
1131
|
},
|
|
1109
|
-
"say": "Playful colours read as costume jewellery."
|
|
1132
|
+
"say": "Playful colours read as costume jewellery.",
|
|
1133
|
+
"sayHe": "צבעים שובבים נראים כמו תכשיטים זולים."
|
|
1110
1134
|
},
|
|
1111
1135
|
{
|
|
1112
1136
|
"when": {
|
|
@@ -1115,7 +1139,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1115
1139
|
"lively"
|
|
1116
1140
|
]
|
|
1117
1141
|
},
|
|
1118
|
-
"say": "Fast animation feels cheap next to fine pieces."
|
|
1142
|
+
"say": "Fast animation feels cheap next to fine pieces.",
|
|
1143
|
+
"sayHe": "אנימציה מהירה מרגישה זולה ליד פריטים עדינים."
|
|
1119
1144
|
}
|
|
1120
1145
|
],
|
|
1121
1146
|
"words": [
|
|
@@ -1241,12 +1266,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1241
1266
|
"romantic"
|
|
1242
1267
|
]
|
|
1243
1268
|
},
|
|
1244
|
-
"say": "Soft pastels don't match the shop people expect."
|
|
1269
|
+
"say": "Soft pastels don't match the shop people expect.",
|
|
1270
|
+
"sayHe": "פסטלים רכים לא מתאימים לחנות שאנשים מצפים לה."
|
|
1245
1271
|
},
|
|
1246
1272
|
{
|
|
1247
1273
|
"check": "needs-family",
|
|
1248
1274
|
"family": "collection",
|
|
1249
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
1275
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
1276
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
1250
1277
|
}
|
|
1251
1278
|
],
|
|
1252
1279
|
"words": [
|
|
@@ -1405,7 +1432,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1405
1432
|
"dark"
|
|
1406
1433
|
]
|
|
1407
1434
|
},
|
|
1408
|
-
"say": "Dark pages feel like a night club, not a place to rest."
|
|
1435
|
+
"say": "Dark pages feel like a night club, not a place to rest.",
|
|
1436
|
+
"sayHe": "עמודים כהים מרגישים כמו מועדון לילה, לא כמו מקום למנוחה."
|
|
1409
1437
|
},
|
|
1410
1438
|
{
|
|
1411
1439
|
"when": {
|
|
@@ -1414,7 +1442,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1414
1442
|
"energetic"
|
|
1415
1443
|
]
|
|
1416
1444
|
},
|
|
1417
|
-
"say": "Loud, bright colour is the opposite of a quiet room."
|
|
1445
|
+
"say": "Loud, bright colour is the opposite of a quiet room.",
|
|
1446
|
+
"sayHe": "צבע רועש ובוהק הוא ההפך מחדר שקט."
|
|
1418
1447
|
},
|
|
1419
1448
|
{
|
|
1420
1449
|
"when": {
|
|
@@ -1423,12 +1452,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1423
1452
|
"lively"
|
|
1424
1453
|
]
|
|
1425
1454
|
},
|
|
1426
|
-
"say": "Fast, bouncy motion works against the calm people come for."
|
|
1455
|
+
"say": "Fast, bouncy motion works against the calm people come for.",
|
|
1456
|
+
"sayHe": "תנועה מהירה וקופצנית פועלת נגד השקט שאנשים באים בשבילו."
|
|
1427
1457
|
},
|
|
1428
1458
|
{
|
|
1429
1459
|
"check": "needs-fact",
|
|
1430
1460
|
"fact": "hours",
|
|
1431
|
-
"say": "People look for your opening hours first; a site without them sends them elsewhere."
|
|
1461
|
+
"say": "People look for your opening hours first; a site without them sends them elsewhere.",
|
|
1462
|
+
"sayHe": "אנשים מחפשים קודם את שעות הפתיחה; אתר בלעדיהן שולח אותם למקום אחר."
|
|
1432
1463
|
}
|
|
1433
1464
|
],
|
|
1434
1465
|
"words": [
|
|
@@ -1565,17 +1596,20 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1565
1596
|
"technical"
|
|
1566
1597
|
]
|
|
1567
1598
|
},
|
|
1568
|
-
"say": "A technical look feels clinical in a salon."
|
|
1599
|
+
"say": "A technical look feels clinical in a salon.",
|
|
1600
|
+
"sayHe": "מראה טכני מרגיש קליני בסלון."
|
|
1569
1601
|
},
|
|
1570
1602
|
{
|
|
1571
1603
|
"check": "needs-family",
|
|
1572
1604
|
"family": "collection",
|
|
1573
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
1605
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
1606
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
1574
1607
|
},
|
|
1575
1608
|
{
|
|
1576
1609
|
"check": "needs-fact",
|
|
1577
1610
|
"fact": "hours",
|
|
1578
|
-
"say": "People look for your opening hours first; a site without them sends them elsewhere."
|
|
1611
|
+
"say": "People look for your opening hours first; a site without them sends them elsewhere.",
|
|
1612
|
+
"sayHe": "אנשים מחפשים קודם את שעות הפתיחה; אתר בלעדיהן שולח אותם למקום אחר."
|
|
1579
1613
|
}
|
|
1580
1614
|
],
|
|
1581
1615
|
"words": [
|
|
@@ -1708,7 +1742,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1708
1742
|
"bold"
|
|
1709
1743
|
]
|
|
1710
1744
|
},
|
|
1711
|
-
"say": "Bold, loud design fights the calm a class promises."
|
|
1745
|
+
"say": "Bold, loud design fights the calm a class promises.",
|
|
1746
|
+
"sayHe": "עיצוב נועז ורועש נלחם בשקט ששיעור מבטיח."
|
|
1712
1747
|
},
|
|
1713
1748
|
{
|
|
1714
1749
|
"when": {
|
|
@@ -1717,7 +1752,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1717
1752
|
"lively"
|
|
1718
1753
|
]
|
|
1719
1754
|
},
|
|
1720
|
-
"say": "Fast, bouncy motion works against the calm people come for."
|
|
1755
|
+
"say": "Fast, bouncy motion works against the calm people come for.",
|
|
1756
|
+
"sayHe": "תנועה מהירה וקופצנית פועלת נגד השקט שאנשים באים בשבילו."
|
|
1721
1757
|
}
|
|
1722
1758
|
],
|
|
1723
1759
|
"words": [
|
|
@@ -1859,7 +1895,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1859
1895
|
"calm"
|
|
1860
1896
|
]
|
|
1861
1897
|
},
|
|
1862
|
-
"say": "A still, slow site feels low-energy for training."
|
|
1898
|
+
"say": "A still, slow site feels low-energy for training.",
|
|
1899
|
+
"sayHe": "אתר דומם ואיטי מרגיש חסר אנרגיה לאימונים."
|
|
1863
1900
|
},
|
|
1864
1901
|
{
|
|
1865
1902
|
"when": {
|
|
@@ -1867,7 +1904,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1867
1904
|
"luxurious"
|
|
1868
1905
|
]
|
|
1869
1906
|
},
|
|
1870
|
-
"say": "Hushed luxury can feel unwelcoming to beginners."
|
|
1907
|
+
"say": "Hushed luxury can feel unwelcoming to beginners.",
|
|
1908
|
+
"sayHe": "יוקרה שקטה עלולה להרגיש לא מזמינה למתחילים."
|
|
1871
1909
|
}
|
|
1872
1910
|
],
|
|
1873
1911
|
"words": [
|
|
@@ -2045,7 +2083,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2045
2083
|
"energetic"
|
|
2046
2084
|
]
|
|
2047
2085
|
},
|
|
2048
|
-
"say": "Bright, loud design can feel overwhelming to someone looking for help."
|
|
2086
|
+
"say": "Bright, loud design can feel overwhelming to someone looking for help.",
|
|
2087
|
+
"sayHe": "עיצוב בוהק ורועש עלול להציף מי שמחפש עזרה."
|
|
2049
2088
|
},
|
|
2050
2089
|
{
|
|
2051
2090
|
"when": {
|
|
@@ -2054,12 +2093,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2054
2093
|
"lively"
|
|
2055
2094
|
]
|
|
2056
2095
|
},
|
|
2057
|
-
"say": "Fast, bouncy motion works against the calm people come for."
|
|
2096
|
+
"say": "Fast, bouncy motion works against the calm people come for.",
|
|
2097
|
+
"sayHe": "תנועה מהירה וקופצנית פועלת נגד השקט שאנשים באים בשבילו."
|
|
2058
2098
|
},
|
|
2059
2099
|
{
|
|
2060
2100
|
"check": "no-pattern",
|
|
2061
2101
|
"pattern": "proof.testimonial-carousel",
|
|
2062
|
-
"say": "Client quotes can reveal who saw you; ask before showing any."
|
|
2102
|
+
"say": "Client quotes can reveal who saw you; ask before showing any.",
|
|
2103
|
+
"sayHe": "דברי לקוחות עלולים לחשוף מי היה אצלכם; בקשו רשות לפני שמציגים אותם."
|
|
2063
2104
|
}
|
|
2064
2105
|
],
|
|
2065
2106
|
"words": [
|
|
@@ -2237,24 +2278,28 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2237
2278
|
"playful"
|
|
2238
2279
|
]
|
|
2239
2280
|
},
|
|
2240
|
-
"say": "Playful design can make patients doubt the care."
|
|
2281
|
+
"say": "Playful design can make patients doubt the care.",
|
|
2282
|
+
"sayHe": "עיצוב שובב עלול לגרום למטופלים לפקפק בטיפול."
|
|
2241
2283
|
},
|
|
2242
2284
|
{
|
|
2243
2285
|
"check": "brand-hue",
|
|
2244
2286
|
"from": 270,
|
|
2245
2287
|
"to": 335,
|
|
2246
2288
|
"minChroma": 0.12,
|
|
2247
|
-
"say": "A purple-pink brand is the colour of AI tools right now; on this kind of site it can read as generic."
|
|
2289
|
+
"say": "A purple-pink brand is the colour of AI tools right now; on this kind of site it can read as generic.",
|
|
2290
|
+
"sayHe": "מותג סגול-ורוד הוא הצבע של כלי ה-AI עכשיו; באתר מהסוג הזה הוא עלול להיראות גנרי."
|
|
2248
2291
|
},
|
|
2249
2292
|
{
|
|
2250
2293
|
"check": "needs-fact",
|
|
2251
2294
|
"fact": "phone",
|
|
2252
|
-
"say": "A phone number is the first thing people need here."
|
|
2295
|
+
"say": "A phone number is the first thing people need here.",
|
|
2296
|
+
"sayHe": "מספר טלפון הוא הדבר הראשון שאנשים צריכים כאן."
|
|
2253
2297
|
},
|
|
2254
2298
|
{
|
|
2255
2299
|
"check": "needs-fact",
|
|
2256
2300
|
"fact": "hours",
|
|
2257
|
-
"say": "People look for your opening hours first; a site without them sends them elsewhere."
|
|
2301
|
+
"say": "People look for your opening hours first; a site without them sends them elsewhere.",
|
|
2302
|
+
"sayHe": "אנשים מחפשים קודם את שעות הפתיחה; אתר בלעדיהן שולח אותם למקום אחר."
|
|
2258
2303
|
}
|
|
2259
2304
|
],
|
|
2260
2305
|
"words": [
|
|
@@ -2426,17 +2471,20 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2426
2471
|
"dark"
|
|
2427
2472
|
]
|
|
2428
2473
|
},
|
|
2429
|
-
"say": "Dark pages feel heavy for a dental practice."
|
|
2474
|
+
"say": "Dark pages feel heavy for a dental practice.",
|
|
2475
|
+
"sayHe": "עמודים כהים מרגישים כבדים למרפאת שיניים."
|
|
2430
2476
|
},
|
|
2431
2477
|
{
|
|
2432
2478
|
"check": "needs-fact",
|
|
2433
2479
|
"fact": "phone",
|
|
2434
|
-
"say": "A phone number is the first thing people need here."
|
|
2480
|
+
"say": "A phone number is the first thing people need here.",
|
|
2481
|
+
"sayHe": "מספר טלפון הוא הדבר הראשון שאנשים צריכים כאן."
|
|
2435
2482
|
},
|
|
2436
2483
|
{
|
|
2437
2484
|
"check": "needs-fact",
|
|
2438
2485
|
"fact": "hours",
|
|
2439
|
-
"say": "People look for your opening hours first; a site without them sends them elsewhere."
|
|
2486
|
+
"say": "People look for your opening hours first; a site without them sends them elsewhere.",
|
|
2487
|
+
"sayHe": "אנשים מחפשים קודם את שעות הפתיחה; אתר בלעדיהן שולח אותם למקום אחר."
|
|
2440
2488
|
}
|
|
2441
2489
|
],
|
|
2442
2490
|
"words": [
|
|
@@ -2597,12 +2645,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2597
2645
|
"dark"
|
|
2598
2646
|
]
|
|
2599
2647
|
},
|
|
2600
|
-
"say": "Dark pages feel unfriendly for pet owners."
|
|
2648
|
+
"say": "Dark pages feel unfriendly for pet owners.",
|
|
2649
|
+
"sayHe": "עמודים כהים מרגישים לא ידידותיים לבעלי חיות."
|
|
2601
2650
|
},
|
|
2602
2651
|
{
|
|
2603
2652
|
"check": "needs-fact",
|
|
2604
2653
|
"fact": "phone",
|
|
2605
|
-
"say": "A phone number is the first thing people need here."
|
|
2654
|
+
"say": "A phone number is the first thing people need here.",
|
|
2655
|
+
"sayHe": "מספר טלפון הוא הדבר הראשון שאנשים צריכים כאן."
|
|
2606
2656
|
}
|
|
2607
2657
|
],
|
|
2608
2658
|
"words": [
|
|
@@ -2730,21 +2780,25 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2730
2780
|
"technical"
|
|
2731
2781
|
]
|
|
2732
2782
|
},
|
|
2733
|
-
"say": "A cold, technical look kills appetite."
|
|
2783
|
+
"say": "A cold, technical look kills appetite.",
|
|
2784
|
+
"sayHe": "מראה קר וטכני הורג את התיאבון."
|
|
2734
2785
|
},
|
|
2735
2786
|
{
|
|
2736
2787
|
"check": "needs-fact",
|
|
2737
2788
|
"fact": "hours",
|
|
2738
|
-
"say": "People look for your opening hours first; a site without them sends them elsewhere."
|
|
2789
|
+
"say": "People look for your opening hours first; a site without them sends them elsewhere.",
|
|
2790
|
+
"sayHe": "אנשים מחפשים קודם את שעות הפתיחה; אתר בלעדיהן שולח אותם למקום אחר."
|
|
2739
2791
|
},
|
|
2740
2792
|
{
|
|
2741
2793
|
"check": "needs-fact",
|
|
2742
2794
|
"fact": "address",
|
|
2743
|
-
"say": "Visitors need the address to find you."
|
|
2795
|
+
"say": "Visitors need the address to find you.",
|
|
2796
|
+
"sayHe": "מבקרים צריכים את הכתובת כדי למצוא את המקום."
|
|
2744
2797
|
},
|
|
2745
2798
|
{
|
|
2746
2799
|
"check": "image-hero",
|
|
2747
|
-
"say": "Lead with a picture: the first screen should show the place or the work, not only words."
|
|
2800
|
+
"say": "Lead with a picture: the first screen should show the place or the work, not only words.",
|
|
2801
|
+
"sayHe": "פתחו בתמונה: המסך הראשון צריך להראות את המקום או את העבודה, לא רק מילים."
|
|
2748
2802
|
}
|
|
2749
2803
|
],
|
|
2750
2804
|
"words": [
|
|
@@ -2880,17 +2934,20 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2880
2934
|
"dark"
|
|
2881
2935
|
]
|
|
2882
2936
|
},
|
|
2883
|
-
"say": "A café is a daytime place; dark pages feel closed."
|
|
2937
|
+
"say": "A café is a daytime place; dark pages feel closed.",
|
|
2938
|
+
"sayHe": "בית קפה הוא מקום של יום; עמודים כהים מרגישים סגורים."
|
|
2884
2939
|
},
|
|
2885
2940
|
{
|
|
2886
2941
|
"check": "needs-fact",
|
|
2887
2942
|
"fact": "hours",
|
|
2888
|
-
"say": "People look for your opening hours first; a site without them sends them elsewhere."
|
|
2943
|
+
"say": "People look for your opening hours first; a site without them sends them elsewhere.",
|
|
2944
|
+
"sayHe": "אנשים מחפשים קודם את שעות הפתיחה; אתר בלעדיהן שולח אותם למקום אחר."
|
|
2889
2945
|
},
|
|
2890
2946
|
{
|
|
2891
2947
|
"check": "needs-fact",
|
|
2892
2948
|
"fact": "address",
|
|
2893
|
-
"say": "Visitors need the address to find you."
|
|
2949
|
+
"say": "Visitors need the address to find you.",
|
|
2950
|
+
"sayHe": "מבקרים צריכים את הכתובת כדי למצוא את המקום."
|
|
2894
2951
|
}
|
|
2895
2952
|
],
|
|
2896
2953
|
"words": [
|
|
@@ -3020,17 +3077,20 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3020
3077
|
"bloom"
|
|
3021
3078
|
]
|
|
3022
3079
|
},
|
|
3023
|
-
"say": "Round, bouncy design reads as a kids' brand, not a cellar."
|
|
3080
|
+
"say": "Round, bouncy design reads as a kids' brand, not a cellar.",
|
|
3081
|
+
"sayHe": "עיצוב עגול וקופצני נראה כמו מותג לילדים, לא כמו יקב."
|
|
3024
3082
|
},
|
|
3025
3083
|
{
|
|
3026
3084
|
"check": "needs-fact",
|
|
3027
3085
|
"fact": "hours",
|
|
3028
|
-
"say": "People look for your opening hours first; a site without them sends them elsewhere."
|
|
3086
|
+
"say": "People look for your opening hours first; a site without them sends them elsewhere.",
|
|
3087
|
+
"sayHe": "אנשים מחפשים קודם את שעות הפתיחה; אתר בלעדיהן שולח אותם למקום אחר."
|
|
3029
3088
|
},
|
|
3030
3089
|
{
|
|
3031
3090
|
"check": "needs-fact",
|
|
3032
3091
|
"fact": "address",
|
|
3033
|
-
"say": "Visitors need the address to find you."
|
|
3092
|
+
"say": "Visitors need the address to find you.",
|
|
3093
|
+
"sayHe": "מבקרים צריכים את הכתובת כדי למצוא את המקום."
|
|
3034
3094
|
}
|
|
3035
3095
|
],
|
|
3036
3096
|
"words": [
|
|
@@ -3156,12 +3216,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3156
3216
|
{
|
|
3157
3217
|
"check": "copy-length",
|
|
3158
3218
|
"max": "standard",
|
|
3159
|
-
"say": "Text-heavy pages slow down shoppers."
|
|
3219
|
+
"say": "Text-heavy pages slow down shoppers.",
|
|
3220
|
+
"sayHe": "עמודים עמוסי טקסט מאטים את הקונים."
|
|
3160
3221
|
},
|
|
3161
3222
|
{
|
|
3162
3223
|
"check": "needs-family",
|
|
3163
3224
|
"family": "collection",
|
|
3164
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
3225
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
3226
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
3165
3227
|
}
|
|
3166
3228
|
],
|
|
3167
3229
|
"words": [
|
|
@@ -3295,12 +3357,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3295
3357
|
"dark"
|
|
3296
3358
|
]
|
|
3297
3359
|
},
|
|
3298
|
-
"say": "Flowers lose their colour on a dark page."
|
|
3360
|
+
"say": "Flowers lose their colour on a dark page.",
|
|
3361
|
+
"sayHe": "פרחים מאבדים את הצבע שלהם על עמוד כהה."
|
|
3299
3362
|
},
|
|
3300
3363
|
{
|
|
3301
3364
|
"check": "needs-family",
|
|
3302
3365
|
"family": "collection",
|
|
3303
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
3366
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
3367
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
3304
3368
|
}
|
|
3305
3369
|
],
|
|
3306
3370
|
"words": [
|
|
@@ -3427,12 +3491,14 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3427
3491
|
"playful"
|
|
3428
3492
|
]
|
|
3429
3493
|
},
|
|
3430
|
-
"say": "Excessive decoration distracts from the pieces."
|
|
3494
|
+
"say": "Excessive decoration distracts from the pieces.",
|
|
3495
|
+
"sayHe": "קישוט מופרז מסיח את הדעת מהפריטים."
|
|
3431
3496
|
},
|
|
3432
3497
|
{
|
|
3433
3498
|
"check": "needs-family",
|
|
3434
3499
|
"family": "collection",
|
|
3435
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
3500
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
3501
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
3436
3502
|
}
|
|
3437
3503
|
],
|
|
3438
3504
|
"words": [
|
|
@@ -3593,14 +3659,16 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3593
3659
|
"playful"
|
|
3594
3660
|
]
|
|
3595
3661
|
},
|
|
3596
|
-
"say": "Playful reads as unserious to a client buying advice."
|
|
3662
|
+
"say": "Playful reads as unserious to a client buying advice.",
|
|
3663
|
+
"sayHe": "עיצוב שובב נראה לא רציני ללקוח שקונה ייעוץ."
|
|
3597
3664
|
},
|
|
3598
3665
|
{
|
|
3599
3666
|
"check": "brand-hue",
|
|
3600
3667
|
"from": 270,
|
|
3601
3668
|
"to": 335,
|
|
3602
3669
|
"minChroma": 0.12,
|
|
3603
|
-
"say": "A purple-pink brand is the colour of AI tools right now; on this kind of site it can read as generic."
|
|
3670
|
+
"say": "A purple-pink brand is the colour of AI tools right now; on this kind of site it can read as generic.",
|
|
3671
|
+
"sayHe": "מותג סגול-ורוד הוא הצבע של כלי ה-AI עכשיו; באתר מהסוג הזה הוא עלול להיראות גנרי."
|
|
3604
3672
|
}
|
|
3605
3673
|
],
|
|
3606
3674
|
"words": [
|
|
@@ -3763,7 +3831,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3763
3831
|
"technical"
|
|
3764
3832
|
]
|
|
3765
3833
|
},
|
|
3766
|
-
"say": "A cold, technical look is the opposite of personal."
|
|
3834
|
+
"say": "A cold, technical look is the opposite of personal.",
|
|
3835
|
+
"sayHe": "מראה קר וטכני הוא ההפך מאישי."
|
|
3767
3836
|
}
|
|
3768
3837
|
],
|
|
3769
3838
|
"words": [
|
|
@@ -3943,7 +4012,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3943
4012
|
"bloom"
|
|
3944
4013
|
]
|
|
3945
4014
|
},
|
|
3946
|
-
"say": "Playful design undermines the trust clients need."
|
|
4015
|
+
"say": "Playful design undermines the trust clients need.",
|
|
4016
|
+
"sayHe": "עיצוב שובב מערער את האמון שלקוחות צריכים."
|
|
3947
4017
|
},
|
|
3948
4018
|
{
|
|
3949
4019
|
"when": {
|
|
@@ -3951,14 +4021,16 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3951
4021
|
"lively"
|
|
3952
4022
|
]
|
|
3953
4023
|
},
|
|
3954
|
-
"say": "Bouncy motion feels out of place for legal or financial advice."
|
|
4024
|
+
"say": "Bouncy motion feels out of place for legal or financial advice.",
|
|
4025
|
+
"sayHe": "תנועה קופצנית לא במקומה בייעוץ משפטי או פיננסי."
|
|
3955
4026
|
},
|
|
3956
4027
|
{
|
|
3957
4028
|
"check": "brand-hue",
|
|
3958
4029
|
"from": 270,
|
|
3959
4030
|
"to": 335,
|
|
3960
4031
|
"minChroma": 0.12,
|
|
3961
|
-
"say": "A purple-pink brand is the colour of AI tools right now; on this kind of site it can read as generic."
|
|
4032
|
+
"say": "A purple-pink brand is the colour of AI tools right now; on this kind of site it can read as generic.",
|
|
4033
|
+
"sayHe": "מותג סגול-ורוד הוא הצבע של כלי ה-AI עכשיו; באתר מהסוג הזה הוא עלול להיראות גנרי."
|
|
3962
4034
|
}
|
|
3963
4035
|
],
|
|
3964
4036
|
"words": [
|
|
@@ -4093,16 +4165,19 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4093
4165
|
"playful"
|
|
4094
4166
|
]
|
|
4095
4167
|
},
|
|
4096
|
-
"say": "Playful design doesn't fit a large purchase."
|
|
4168
|
+
"say": "Playful design doesn't fit a large purchase.",
|
|
4169
|
+
"sayHe": "עיצוב שובב לא מתאים לרכישה גדולה."
|
|
4097
4170
|
},
|
|
4098
4171
|
{
|
|
4099
4172
|
"check": "image-hero",
|
|
4100
|
-
"say": "Lead with a picture: the first screen should show the place or the work, not only words."
|
|
4173
|
+
"say": "Lead with a picture: the first screen should show the place or the work, not only words.",
|
|
4174
|
+
"sayHe": "פתחו בתמונה: המסך הראשון צריך להראות את המקום או את העבודה, לא רק מילים."
|
|
4101
4175
|
},
|
|
4102
4176
|
{
|
|
4103
4177
|
"check": "needs-fact",
|
|
4104
4178
|
"fact": "phone",
|
|
4105
|
-
"say": "A phone number is the first thing people need here."
|
|
4179
|
+
"say": "A phone number is the first thing people need here.",
|
|
4180
|
+
"sayHe": "מספר טלפון הוא הדבר הראשון שאנשים צריכים כאן."
|
|
4106
4181
|
}
|
|
4107
4182
|
],
|
|
4108
4183
|
"words": [
|
|
@@ -4264,7 +4339,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4264
4339
|
"luxurious"
|
|
4265
4340
|
]
|
|
4266
4341
|
},
|
|
4267
|
-
"say": "Looking expensive makes donors ask where the money goes."
|
|
4342
|
+
"say": "Looking expensive makes donors ask where the money goes.",
|
|
4343
|
+
"sayHe": "מראה יקר גורם לתורמים לשאול לאן הולך הכסף."
|
|
4268
4344
|
}
|
|
4269
4345
|
],
|
|
4270
4346
|
"words": [
|
|
@@ -4394,16 +4470,19 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4394
4470
|
"technical"
|
|
4395
4471
|
]
|
|
4396
4472
|
},
|
|
4397
|
-
"say": "A technical look takes the romance out of the day."
|
|
4473
|
+
"say": "A technical look takes the romance out of the day.",
|
|
4474
|
+
"sayHe": "מראה טכני מוציא את הרומנטיקה מהיום."
|
|
4398
4475
|
},
|
|
4399
4476
|
{
|
|
4400
4477
|
"check": "needs-family",
|
|
4401
4478
|
"family": "collection",
|
|
4402
|
-
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page."
|
|
4479
|
+
"say": "Show the work: a site like this needs a gallery or a grid of projects on the home page.",
|
|
4480
|
+
"sayHe": "הראו את העבודה: אתר כזה צריך גלריה או רשת של פרויקטים בעמוד הבית."
|
|
4403
4481
|
},
|
|
4404
4482
|
{
|
|
4405
4483
|
"check": "image-hero",
|
|
4406
|
-
"say": "Lead with a picture: the first screen should show the place or the work, not only words."
|
|
4484
|
+
"say": "Lead with a picture: the first screen should show the place or the work, not only words.",
|
|
4485
|
+
"sayHe": "פתחו בתמונה: המסך הראשון צריך להראות את המקום או את העבודה, לא רק מילים."
|
|
4407
4486
|
}
|
|
4408
4487
|
],
|
|
4409
4488
|
"words": [
|
|
@@ -4533,16 +4612,19 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4533
4612
|
"technical"
|
|
4534
4613
|
]
|
|
4535
4614
|
},
|
|
4536
|
-
"say": "Cold and technical is the opposite of a welcome."
|
|
4615
|
+
"say": "Cold and technical is the opposite of a welcome.",
|
|
4616
|
+
"sayHe": "קר וטכני הוא ההפך מקבלת פנים חמה."
|
|
4537
4617
|
},
|
|
4538
4618
|
{
|
|
4539
4619
|
"check": "image-hero",
|
|
4540
|
-
"say": "Lead with a picture: the first screen should show the place or the work, not only words."
|
|
4620
|
+
"say": "Lead with a picture: the first screen should show the place or the work, not only words.",
|
|
4621
|
+
"sayHe": "פתחו בתמונה: המסך הראשון צריך להראות את המקום או את העבודה, לא רק מילים."
|
|
4541
4622
|
},
|
|
4542
4623
|
{
|
|
4543
4624
|
"check": "needs-fact",
|
|
4544
4625
|
"fact": "address",
|
|
4545
|
-
"say": "Visitors need the address to find you."
|
|
4626
|
+
"say": "Visitors need the address to find you.",
|
|
4627
|
+
"sayHe": "מבקרים צריכים את הכתובת כדי למצוא את המקום."
|
|
4546
4628
|
}
|
|
4547
4629
|
],
|
|
4548
4630
|
"words": [
|
|
@@ -4681,7 +4763,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4681
4763
|
"luxurious"
|
|
4682
4764
|
]
|
|
4683
4765
|
},
|
|
4684
|
-
"say": "An expensive look puts off parents comparing classes."
|
|
4766
|
+
"say": "An expensive look puts off parents comparing classes.",
|
|
4767
|
+
"sayHe": "מראה יקר מרתיע הורים שמשווים חוגים."
|
|
4685
4768
|
},
|
|
4686
4769
|
{
|
|
4687
4770
|
"when": {
|
|
@@ -4689,7 +4772,8 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4689
4772
|
"off"
|
|
4690
4773
|
]
|
|
4691
4774
|
},
|
|
4692
|
-
"say": "A still site feels low-energy for a class."
|
|
4775
|
+
"say": "A still site feels low-energy for a class.",
|
|
4776
|
+
"sayHe": "אתר דומם מרגיש חסר אנרגיה לשיעור."
|
|
4693
4777
|
}
|
|
4694
4778
|
],
|
|
4695
4779
|
"words": [
|
|
@@ -6056,6 +6140,16 @@ var LintKind;
|
|
|
6056
6140
|
LintKind["Content"] = "content";
|
|
6057
6141
|
LintKind["Fact"] = "fact";
|
|
6058
6142
|
})(LintKind || (LintKind = {}));
|
|
6143
|
+
/**
|
|
6144
|
+
* A finding's line in the reader's language — THE choice Home, the Publish dialog and anything else showing advice make:
|
|
6145
|
+
* Hebrew (`he`, `he-IL`, the old `iw`) reads `sayHe`, every other language the English `say`. A finding from an older
|
|
6146
|
+
* server, without `sayHe`, says its English.
|
|
6147
|
+
*/
|
|
6148
|
+
function lintSentence(finding, lang) {
|
|
6149
|
+
const language = languageOf(lang);
|
|
6150
|
+
return (language === 'he' || language === 'iw') && finding.sayHe ? finding.sayHe : finding.say;
|
|
6151
|
+
}
|
|
6152
|
+
const line = (kind, rule) => ({ kind, say: rule.say, sayHe: rule.sayHe });
|
|
6059
6153
|
const DEGREES = 180 / Math.PI;
|
|
6060
6154
|
const FULL_TURN = 360;
|
|
6061
6155
|
/** How far a site may move above what its kind of business usually wears before the lint says so. */
|
|
@@ -6080,42 +6174,46 @@ function lintDesign(site, typeId, types = BUSINESS_TYPES) {
|
|
|
6080
6174
|
for (const rule of type.avoid) {
|
|
6081
6175
|
if (isLookRule(rule)) {
|
|
6082
6176
|
if (lookMatches(rule.when, site.design, site.moods ?? []))
|
|
6083
|
-
out.push(
|
|
6177
|
+
out.push(line(LintKind.Look, rule));
|
|
6084
6178
|
continue;
|
|
6085
6179
|
}
|
|
6086
6180
|
switch (rule.check) {
|
|
6087
6181
|
case AvoidCheck.NeedsFamily:
|
|
6088
6182
|
if (!home.some(id => familyOf(id) === rule.family))
|
|
6089
|
-
out.push(
|
|
6183
|
+
out.push(line(LintKind.Content, rule));
|
|
6090
6184
|
break;
|
|
6091
6185
|
case AvoidCheck.NeedsFact:
|
|
6092
6186
|
if (!site.facts?.[rule.fact])
|
|
6093
|
-
out.push({
|
|
6187
|
+
out.push({ ...line(LintKind.Fact, rule), fact: rule.fact });
|
|
6094
6188
|
break;
|
|
6095
6189
|
case AvoidCheck.ImageHero:
|
|
6096
6190
|
if (!site.heroHasImage)
|
|
6097
|
-
out.push(
|
|
6191
|
+
out.push(line(LintKind.Content, rule));
|
|
6098
6192
|
break;
|
|
6099
6193
|
case AvoidCheck.NoPattern:
|
|
6100
6194
|
if (all.includes(rule.pattern))
|
|
6101
|
-
out.push(
|
|
6195
|
+
out.push(line(LintKind.Content, rule));
|
|
6102
6196
|
break;
|
|
6103
6197
|
case AvoidCheck.CopyLength:
|
|
6104
6198
|
if (site.copyLength && COPY_LENGTH_ORDER.indexOf(site.copyLength) > COPY_LENGTH_ORDER.indexOf(rule.max))
|
|
6105
|
-
out.push(
|
|
6199
|
+
out.push(line(LintKind.Content, rule));
|
|
6106
6200
|
break;
|
|
6107
6201
|
case AvoidCheck.BrandHue: {
|
|
6108
6202
|
const hue = oklchHue(site.design.seed);
|
|
6109
6203
|
if (hue && hue.chroma >= rule.minChroma && hue.hue >= rule.from && hue.hue <= rule.to)
|
|
6110
|
-
out.push(
|
|
6204
|
+
out.push(line(LintKind.Look, rule));
|
|
6111
6205
|
break;
|
|
6112
6206
|
}
|
|
6113
6207
|
}
|
|
6114
6208
|
}
|
|
6115
6209
|
const advice = motionAdvice(type.id, site.design.animate, types);
|
|
6116
6210
|
if (advice) {
|
|
6117
|
-
const usual = SPEC_AXES.animations[advice.usual]
|
|
6118
|
-
out.push({
|
|
6211
|
+
const usual = SPEC_AXES.animations[advice.usual];
|
|
6212
|
+
out.push({
|
|
6213
|
+
kind: LintKind.Look,
|
|
6214
|
+
say: `${type.label} sites usually move less (${usual.label}); this much movement as people scroll can feel restless.`,
|
|
6215
|
+
sayHe: `באתר של ${type.he} בדרך כלל יש פחות תנועה (${usual.he}); כל כך הרבה תנועה בזמן הגלילה עלולה להרגיש חסרת מנוחה.`,
|
|
6216
|
+
});
|
|
6119
6217
|
}
|
|
6120
6218
|
return out;
|
|
6121
6219
|
}
|
|
@@ -6896,5 +6994,5 @@ function runComposeContext(run) {
|
|
|
6896
6994
|
* Generated bundle index. Do not edit.
|
|
6897
6995
|
*/
|
|
6898
6996
|
|
|
6899
|
-
export { ANIMATE_ADVICE_STEPS, AnalysisIssueCode, AnalysisLocale, AvoidCheck, BUSINESS_TYPES, BUSINESS_TYPE_IDS, BookingNeed, COPY_LENGTH_ORDER, ComposedPageState, CopyLength, FILM_IDEAS, FILM_WORDS, FilmIdea, FilmIdeaReason, FilmStance, FilmStart, GENERATION_LIMITS, HARNESS_SOURCE, LITTLE_MOVEMENT_AVOID, LITTLE_MOVEMENT_CAP, LintKind, MAX_ANALYSIS_MOODS, MAX_PIXEL_SAMPLES, MAX_READ_PICTURES, NEEDS, NEED_IDS, NeedSource, PALETTE_SIZE, PALETTE_THRESHOLDS, POPUP_WORDS, PRODUCTS_NEED, PictureRole, PicturesUnavailable, PlanChangeOutcome, PopupStance, PresetFit, RANK_WEIGHTS, READING_SHAPE, READ_ANIMATE, READ_WEIGHTS, RankReason, ReaderState, ReadingIssueCode, SITE_ANALYSIS_SCHEMA_NAME, SITE_READING_SCHEMA_NAME, SPEC_ANALYSIS_SHAPE, SPEC_BUSINESS_TYPES, SPEC_FILM_IDEAS, SPEC_HARNESS_EXAMPLES, SPEC_HARNESS_SOURCE, SPEC_NEEDS, SPEC_POPUP_STANCES, SPEC_STATED_FACTS, SPEC_STRUCTURES, SPEC_USER_AVOIDS, STATED_FACTS, STATED_FACT_KEYS, STRUCTURES, SellingNeed, SiteReadRefusal, StyleReadGround, StyleReadHeadings, StyleReadMotion, StyleReadSourceKind, USER_AVOID_IDS, VoiceFormality, VoicePerson, addressesIn, analysisFromWire, analysisPromptContext, analysisToWire, bestRankedPreset, businessComposeContext, businessTypeById, calmerChoice, decodeSiteReading, filmIdeaFor, filmIdeasOf, filmStanceFor, filmWordsIn, inferNeeds, isCalmBusiness, isCalmBusinessType, isLookRule, keywordsIn, lintDesign, lookMatches, mapStyleRead, matchBusinessType, matchBusinessTypes, measurePalette, mergeStyleReads, motionAdvice, motionFor, needsSell, normalizeAddress, offeredNeeds, oklchHue, paletteBrand, paletteGround, paletteSamples, pictureStyleRead, pixelSamples, popupStanceFor, popupSuggestion, popupWordsIn, presetDesign, presetHasSerifHeadings, presetLook, presetReason, presetsByFlavor, rankStylePresets, rankWithReferences, readPalette, referenceSeed, runComposeContext, seedPassesPreset, siteAnalysisJsonSchema, siteReadingJsonSchema, startingDesign, structureFor, unplacedPicturesOf, userAvoidRule, validateSiteAnalysis, validateSiteReading, withSellingNeed, withoutAddress };
|
|
6997
|
+
export { ANIMATE_ADVICE_STEPS, AnalysisIssueCode, AnalysisLocale, AvoidCheck, BUSINESS_TYPES, BUSINESS_TYPE_IDS, BookingNeed, COPY_LENGTH_ORDER, ComposedPageState, CopyLength, FILM_IDEAS, FILM_WORDS, FilmIdea, FilmIdeaReason, FilmStance, FilmStart, GENERATION_LIMITS, HARNESS_SOURCE, LITTLE_MOVEMENT_AVOID, LITTLE_MOVEMENT_CAP, LintKind, MAX_ANALYSIS_MOODS, MAX_PIXEL_SAMPLES, MAX_READ_PICTURES, NEEDS, NEED_IDS, NeedSource, PALETTE_SIZE, PALETTE_THRESHOLDS, POPUP_WORDS, PRODUCTS_NEED, PictureRole, PicturesUnavailable, PlanChangeOutcome, PopupStance, PresetFit, RANK_WEIGHTS, READING_SHAPE, READ_ANIMATE, READ_WEIGHTS, RankReason, ReaderState, ReadingIssueCode, SITE_ANALYSIS_SCHEMA_NAME, SITE_READING_SCHEMA_NAME, SPEC_ANALYSIS_SHAPE, SPEC_BUSINESS_TYPES, SPEC_FILM_IDEAS, SPEC_HARNESS_EXAMPLES, SPEC_HARNESS_SOURCE, SPEC_NEEDS, SPEC_POPUP_STANCES, SPEC_STATED_FACTS, SPEC_STRUCTURES, SPEC_USER_AVOIDS, STATED_FACTS, STATED_FACT_KEYS, STRUCTURES, SellingNeed, SiteReadRefusal, StyleReadGround, StyleReadHeadings, StyleReadMotion, StyleReadSourceKind, USER_AVOID_IDS, VoiceFormality, VoicePerson, addressesIn, analysisFromWire, analysisPromptContext, analysisToWire, bestRankedPreset, businessComposeContext, businessTypeById, calmerChoice, decodeSiteReading, filmIdeaFor, filmIdeasOf, filmStanceFor, filmWordsIn, inferNeeds, isCalmBusiness, isCalmBusinessType, isLookRule, keywordsIn, lintDesign, lintSentence, lookMatches, mapStyleRead, matchBusinessType, matchBusinessTypes, measurePalette, mergeStyleReads, motionAdvice, motionFor, needsSell, normalizeAddress, offeredNeeds, oklchHue, paletteBrand, paletteGround, paletteSamples, pictureStyleRead, pixelSamples, popupStanceFor, popupSuggestion, popupWordsIn, presetDesign, presetHasSerifHeadings, presetLook, presetReason, presetsByFlavor, rankStylePresets, rankWithReferences, readPalette, referenceSeed, runComposeContext, seedPassesPreset, siteAnalysisJsonSchema, siteReadingJsonSchema, startingDesign, structureFor, unplacedPicturesOf, userAvoidRule, validateSiteAnalysis, validateSiteReading, withSellingNeed, withoutAddress };
|
|
6900
6998
|
//# sourceMappingURL=vectoriox-iox-ui-harness-core.mjs.map
|