@vectoriox/iox-ui 5.198.0 → 5.199.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/actions-core/index.d.ts +7 -1
- package/data-core/index.d.ts +11 -3
- package/design-core/index.d.ts +26 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +6 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-data-core.mjs +30 -4
- package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +65 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +10821 -10094
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +243 -38
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +463 -126
- package/harness-core/index.d.ts +93 -6
- package/package.json +1 -1
- package/src/actions-core/element-actions.ts +6 -0
- package/src/data-core/placeholder-rows.ts +29 -4
- package/src/design-core/menu-look.ts +23 -0
- package/src/design-core/node-classes.ts +39 -0
- package/src/generation-core/check-free.ts +17 -9
- package/src/generation-core/compose-free.ts +7 -2
- package/src/generation-core/compose-site.ts +167 -46
- package/src/generation-core/footer-mix.ts +161 -15
- package/src/generation-core/free-opening.ts +13 -2
- package/src/generation-core/free-wire.ts +8 -0
- package/src/generation-core/header-mix.ts +31 -2
- package/src/generation-core/legal.ts +24 -0
- package/src/generation-core/menu-shelves.ts +138 -0
- package/src/generation-core/nav-shape.ts +138 -15
- package/src/generation-core/node-baselines.generated.ts +1 -0
- package/src/generation-core/patterns.ts +7 -0
- package/src/generation-core/plan-wire.ts +1 -0
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-build-run.ts +8 -0
- package/src/generation-core/site-plan.model.ts +3 -0
- package/src/generation-core/site-spec.generated.ts +230 -70
- package/src/generation-core/validate-site-plan.ts +2 -0
- package/src/harness-core/business-types.ts +4 -0
- package/src/harness-core/harness-spec.generated.ts +189 -30
- package/src/harness-core/popup-stance.ts +56 -3
- package/src/harness-core/run-compose-context.ts +25 -5
- package/styles/iox-design.css +25 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
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
|
-
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';
|
|
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, PicturesRefused, composeContextOf } from '@vectoriox/iox-ui/generation-core';
|
|
3
|
+
import { POPUP_BODY_MAX_CHARS } from '@vectoriox/iox-ui/composite-core';
|
|
3
4
|
|
|
4
5
|
// GENERATED from iox-ai-guidance flavor-spec.v1.json — do not edit; re-run scripts/gen-flavor-spec.mjs
|
|
5
6
|
// (npm run gen:flavor-spec). The JSON is itself generated by iox-ai-guidance
|
|
@@ -310,7 +311,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
310
311
|
"slice": true,
|
|
311
312
|
"stock": false,
|
|
312
313
|
"booking": "sometimes",
|
|
313
|
-
"sells": "offered"
|
|
314
|
+
"sells": "offered",
|
|
315
|
+
"opening": [
|
|
316
|
+
"frame:full",
|
|
317
|
+
"media:photo",
|
|
318
|
+
"words:wordmark"
|
|
319
|
+
]
|
|
314
320
|
},
|
|
315
321
|
{
|
|
316
322
|
"id": "interior-design",
|
|
@@ -465,7 +471,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
465
471
|
"slice": true,
|
|
466
472
|
"stock": false,
|
|
467
473
|
"booking": "none",
|
|
468
|
-
"sells": "none"
|
|
474
|
+
"sells": "none",
|
|
475
|
+
"opening": [
|
|
476
|
+
"frame:full",
|
|
477
|
+
"media:photo",
|
|
478
|
+
"words:wordmark"
|
|
479
|
+
]
|
|
469
480
|
},
|
|
470
481
|
{
|
|
471
482
|
"id": "architecture",
|
|
@@ -615,7 +626,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
615
626
|
"slice": false,
|
|
616
627
|
"stock": false,
|
|
617
628
|
"booking": "none",
|
|
618
|
-
"sells": "none"
|
|
629
|
+
"sells": "none",
|
|
630
|
+
"opening": [
|
|
631
|
+
"frame:full",
|
|
632
|
+
"media:photo",
|
|
633
|
+
"words:wordmark"
|
|
634
|
+
]
|
|
619
635
|
},
|
|
620
636
|
{
|
|
621
637
|
"id": "creative-studio",
|
|
@@ -754,7 +770,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
754
770
|
"slice": false,
|
|
755
771
|
"stock": false,
|
|
756
772
|
"booking": "none",
|
|
757
|
-
"sells": "none"
|
|
773
|
+
"sells": "none",
|
|
774
|
+
"opening": [
|
|
775
|
+
"frame:full",
|
|
776
|
+
"media:photo",
|
|
777
|
+
"words:wordmark"
|
|
778
|
+
]
|
|
758
779
|
},
|
|
759
780
|
{
|
|
760
781
|
"id": "artist",
|
|
@@ -897,7 +918,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
897
918
|
"slice": false,
|
|
898
919
|
"stock": false,
|
|
899
920
|
"booking": "none",
|
|
900
|
-
"sells": "offered"
|
|
921
|
+
"sells": "offered",
|
|
922
|
+
"opening": [
|
|
923
|
+
"frame:full",
|
|
924
|
+
"media:photo",
|
|
925
|
+
"words:wordmark"
|
|
926
|
+
]
|
|
901
927
|
},
|
|
902
928
|
{
|
|
903
929
|
"id": "makers",
|
|
@@ -1044,7 +1070,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1044
1070
|
"slice": true,
|
|
1045
1071
|
"stock": false,
|
|
1046
1072
|
"booking": "sometimes",
|
|
1047
|
-
"sells": "inferred"
|
|
1073
|
+
"sells": "inferred",
|
|
1074
|
+
"opening": [
|
|
1075
|
+
"frame:full",
|
|
1076
|
+
"media:photo",
|
|
1077
|
+
"words:wordmark"
|
|
1078
|
+
]
|
|
1048
1079
|
},
|
|
1049
1080
|
{
|
|
1050
1081
|
"id": "jewellery",
|
|
@@ -1187,7 +1218,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1187
1218
|
"slice": false,
|
|
1188
1219
|
"stock": false,
|
|
1189
1220
|
"booking": "none",
|
|
1190
|
-
"sells": "inferred"
|
|
1221
|
+
"sells": "inferred",
|
|
1222
|
+
"opening": [
|
|
1223
|
+
"frame:full",
|
|
1224
|
+
"media:photo",
|
|
1225
|
+
"words:wordmark"
|
|
1226
|
+
]
|
|
1191
1227
|
},
|
|
1192
1228
|
{
|
|
1193
1229
|
"id": "tattoo",
|
|
@@ -1324,7 +1360,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1324
1360
|
"slice": false,
|
|
1325
1361
|
"stock": false,
|
|
1326
1362
|
"booking": "must",
|
|
1327
|
-
"sells": "none"
|
|
1363
|
+
"sells": "none",
|
|
1364
|
+
"opening": [
|
|
1365
|
+
"frame:full",
|
|
1366
|
+
"media:photo",
|
|
1367
|
+
"words:wordmark"
|
|
1368
|
+
]
|
|
1328
1369
|
},
|
|
1329
1370
|
{
|
|
1330
1371
|
"id": "spa",
|
|
@@ -1523,7 +1564,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1523
1564
|
"slice": true,
|
|
1524
1565
|
"stock": true,
|
|
1525
1566
|
"booking": "must",
|
|
1526
|
-
"sells": "none"
|
|
1567
|
+
"sells": "none",
|
|
1568
|
+
"opening": [
|
|
1569
|
+
"frame:full",
|
|
1570
|
+
"media:photo",
|
|
1571
|
+
"words:wordmark"
|
|
1572
|
+
]
|
|
1527
1573
|
},
|
|
1528
1574
|
{
|
|
1529
1575
|
"id": "salon",
|
|
@@ -1677,7 +1723,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1677
1723
|
"slice": true,
|
|
1678
1724
|
"stock": true,
|
|
1679
1725
|
"booking": "must",
|
|
1680
|
-
"sells": "none"
|
|
1726
|
+
"sells": "none",
|
|
1727
|
+
"opening": [
|
|
1728
|
+
"frame:full",
|
|
1729
|
+
"media:photo",
|
|
1730
|
+
"words:wordmark"
|
|
1731
|
+
]
|
|
1681
1732
|
},
|
|
1682
1733
|
{
|
|
1683
1734
|
"id": "yoga",
|
|
@@ -1826,7 +1877,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1826
1877
|
"slice": false,
|
|
1827
1878
|
"stock": true,
|
|
1828
1879
|
"booking": "must",
|
|
1829
|
-
"sells": "none"
|
|
1880
|
+
"sells": "none",
|
|
1881
|
+
"opening": [
|
|
1882
|
+
"frame:full",
|
|
1883
|
+
"media:photo",
|
|
1884
|
+
"words:wordmark"
|
|
1885
|
+
]
|
|
1830
1886
|
},
|
|
1831
1887
|
{
|
|
1832
1888
|
"id": "fitness",
|
|
@@ -1983,7 +2039,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
1983
2039
|
"slice": false,
|
|
1984
2040
|
"stock": true,
|
|
1985
2041
|
"booking": "must",
|
|
1986
|
-
"sells": "none"
|
|
2042
|
+
"sells": "none",
|
|
2043
|
+
"opening": [
|
|
2044
|
+
"frame:full",
|
|
2045
|
+
"media:photo",
|
|
2046
|
+
"words:wordmark"
|
|
2047
|
+
]
|
|
1987
2048
|
},
|
|
1988
2049
|
{
|
|
1989
2050
|
"id": "therapist",
|
|
@@ -2191,7 +2252,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2191
2252
|
"slice": false,
|
|
2192
2253
|
"stock": true,
|
|
2193
2254
|
"booking": "must",
|
|
2194
|
-
"sells": "never"
|
|
2255
|
+
"sells": "never",
|
|
2256
|
+
"opening": [
|
|
2257
|
+
"frame:inset",
|
|
2258
|
+
"media:photo",
|
|
2259
|
+
"words:headline"
|
|
2260
|
+
]
|
|
2195
2261
|
},
|
|
2196
2262
|
{
|
|
2197
2263
|
"id": "clinic",
|
|
@@ -2403,7 +2469,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2403
2469
|
"slice": true,
|
|
2404
2470
|
"stock": true,
|
|
2405
2471
|
"booking": "must",
|
|
2406
|
-
"sells": "never"
|
|
2472
|
+
"sells": "never",
|
|
2473
|
+
"opening": [
|
|
2474
|
+
"frame:inset",
|
|
2475
|
+
"media:photo",
|
|
2476
|
+
"words:headline"
|
|
2477
|
+
]
|
|
2407
2478
|
},
|
|
2408
2479
|
{
|
|
2409
2480
|
"id": "dental",
|
|
@@ -2599,7 +2670,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2599
2670
|
"slice": false,
|
|
2600
2671
|
"stock": true,
|
|
2601
2672
|
"booking": "must",
|
|
2602
|
-
"sells": "never"
|
|
2673
|
+
"sells": "never",
|
|
2674
|
+
"opening": [
|
|
2675
|
+
"frame:inset",
|
|
2676
|
+
"media:photo",
|
|
2677
|
+
"words:headline"
|
|
2678
|
+
]
|
|
2603
2679
|
},
|
|
2604
2680
|
{
|
|
2605
2681
|
"id": "vet",
|
|
@@ -2778,7 +2854,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2778
2854
|
"slice": false,
|
|
2779
2855
|
"stock": true,
|
|
2780
2856
|
"booking": "must",
|
|
2781
|
-
"sells": "none"
|
|
2857
|
+
"sells": "none",
|
|
2858
|
+
"opening": [
|
|
2859
|
+
"frame:inset",
|
|
2860
|
+
"media:photo",
|
|
2861
|
+
"words:headline"
|
|
2862
|
+
]
|
|
2782
2863
|
},
|
|
2783
2864
|
{
|
|
2784
2865
|
"id": "restaurant",
|
|
@@ -2930,7 +3011,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
2930
3011
|
"slice": false,
|
|
2931
3012
|
"stock": true,
|
|
2932
3013
|
"booking": "tables",
|
|
2933
|
-
"sells": "none"
|
|
3014
|
+
"sells": "none",
|
|
3015
|
+
"opening": [
|
|
3016
|
+
"frame:full",
|
|
3017
|
+
"media:photo",
|
|
3018
|
+
"words:wordmark"
|
|
3019
|
+
]
|
|
2934
3020
|
},
|
|
2935
3021
|
{
|
|
2936
3022
|
"id": "cafe-bakery",
|
|
@@ -3083,7 +3169,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3083
3169
|
"slice": true,
|
|
3084
3170
|
"stock": true,
|
|
3085
3171
|
"booking": "none",
|
|
3086
|
-
"sells": "offered"
|
|
3172
|
+
"sells": "offered",
|
|
3173
|
+
"opening": [
|
|
3174
|
+
"frame:full",
|
|
3175
|
+
"media:photo",
|
|
3176
|
+
"words:wordmark"
|
|
3177
|
+
]
|
|
3087
3178
|
},
|
|
3088
3179
|
{
|
|
3089
3180
|
"id": "bar-winery",
|
|
@@ -3231,7 +3322,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3231
3322
|
"slice": false,
|
|
3232
3323
|
"stock": true,
|
|
3233
3324
|
"booking": "none",
|
|
3234
|
-
"sells": "offered"
|
|
3325
|
+
"sells": "offered",
|
|
3326
|
+
"opening": [
|
|
3327
|
+
"frame:full",
|
|
3328
|
+
"media:photo",
|
|
3329
|
+
"words:wordmark"
|
|
3330
|
+
]
|
|
3235
3331
|
},
|
|
3236
3332
|
{
|
|
3237
3333
|
"id": "boutique",
|
|
@@ -3369,7 +3465,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3369
3465
|
"slice": false,
|
|
3370
3466
|
"stock": true,
|
|
3371
3467
|
"booking": "none",
|
|
3372
|
-
"sells": "inferred"
|
|
3468
|
+
"sells": "inferred",
|
|
3469
|
+
"opening": [
|
|
3470
|
+
"frame:full",
|
|
3471
|
+
"media:photo",
|
|
3472
|
+
"words:wordmark"
|
|
3473
|
+
]
|
|
3373
3474
|
},
|
|
3374
3475
|
{
|
|
3375
3476
|
"id": "florist",
|
|
@@ -3515,7 +3616,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3515
3616
|
"slice": false,
|
|
3516
3617
|
"stock": true,
|
|
3517
3618
|
"booking": "none",
|
|
3518
|
-
"sells": "inferred"
|
|
3619
|
+
"sells": "inferred",
|
|
3620
|
+
"opening": [
|
|
3621
|
+
"frame:full",
|
|
3622
|
+
"media:photo",
|
|
3623
|
+
"words:wordmark"
|
|
3624
|
+
]
|
|
3519
3625
|
},
|
|
3520
3626
|
{
|
|
3521
3627
|
"id": "home-goods",
|
|
@@ -3654,7 +3760,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3654
3760
|
"slice": false,
|
|
3655
3761
|
"stock": true,
|
|
3656
3762
|
"booking": "none",
|
|
3657
|
-
"sells": "inferred"
|
|
3763
|
+
"sells": "inferred",
|
|
3764
|
+
"opening": [
|
|
3765
|
+
"frame:full",
|
|
3766
|
+
"media:photo",
|
|
3767
|
+
"words:wordmark"
|
|
3768
|
+
]
|
|
3658
3769
|
},
|
|
3659
3770
|
{
|
|
3660
3771
|
"id": "consultant",
|
|
@@ -3837,7 +3948,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
3837
3948
|
"slice": true,
|
|
3838
3949
|
"stock": true,
|
|
3839
3950
|
"booking": "sometimes",
|
|
3840
|
-
"sells": "none"
|
|
3951
|
+
"sells": "none",
|
|
3952
|
+
"opening": [
|
|
3953
|
+
"frame:inset",
|
|
3954
|
+
"media:photo",
|
|
3955
|
+
"words:headline"
|
|
3956
|
+
]
|
|
3841
3957
|
},
|
|
3842
3958
|
{
|
|
3843
3959
|
"id": "coach",
|
|
@@ -4012,7 +4128,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4012
4128
|
"slice": false,
|
|
4013
4129
|
"stock": true,
|
|
4014
4130
|
"booking": "must",
|
|
4015
|
-
"sells": "none"
|
|
4131
|
+
"sells": "none",
|
|
4132
|
+
"opening": [
|
|
4133
|
+
"frame:inset",
|
|
4134
|
+
"media:photo",
|
|
4135
|
+
"words:headline"
|
|
4136
|
+
]
|
|
4016
4137
|
},
|
|
4017
4138
|
{
|
|
4018
4139
|
"id": "law-accounting",
|
|
@@ -4223,7 +4344,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4223
4344
|
"slice": false,
|
|
4224
4345
|
"stock": true,
|
|
4225
4346
|
"booking": "sometimes",
|
|
4226
|
-
"sells": "never"
|
|
4347
|
+
"sells": "never",
|
|
4348
|
+
"opening": [
|
|
4349
|
+
"frame:inset",
|
|
4350
|
+
"media:photo",
|
|
4351
|
+
"words:headline"
|
|
4352
|
+
]
|
|
4227
4353
|
},
|
|
4228
4354
|
{
|
|
4229
4355
|
"id": "real-estate",
|
|
@@ -4375,7 +4501,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4375
4501
|
"slice": false,
|
|
4376
4502
|
"stock": false,
|
|
4377
4503
|
"booking": "sometimes",
|
|
4378
|
-
"sells": "none"
|
|
4504
|
+
"sells": "none",
|
|
4505
|
+
"opening": [
|
|
4506
|
+
"frame:inset",
|
|
4507
|
+
"media:photo",
|
|
4508
|
+
"words:headline"
|
|
4509
|
+
]
|
|
4379
4510
|
},
|
|
4380
4511
|
{
|
|
4381
4512
|
"id": "nonprofit",
|
|
@@ -4549,7 +4680,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4549
4680
|
"slice": false,
|
|
4550
4681
|
"stock": true,
|
|
4551
4682
|
"booking": "none",
|
|
4552
|
-
"sells": "none"
|
|
4683
|
+
"sells": "none",
|
|
4684
|
+
"opening": [
|
|
4685
|
+
"frame:inset",
|
|
4686
|
+
"media:photo",
|
|
4687
|
+
"words:headline"
|
|
4688
|
+
]
|
|
4553
4689
|
},
|
|
4554
4690
|
{
|
|
4555
4691
|
"id": "venue-events",
|
|
@@ -4696,7 +4832,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4696
4832
|
"slice": false,
|
|
4697
4833
|
"stock": true,
|
|
4698
4834
|
"booking": "tables",
|
|
4699
|
-
"sells": "none"
|
|
4835
|
+
"sells": "none",
|
|
4836
|
+
"opening": [
|
|
4837
|
+
"frame:full",
|
|
4838
|
+
"media:photo",
|
|
4839
|
+
"words:wordmark"
|
|
4840
|
+
]
|
|
4700
4841
|
},
|
|
4701
4842
|
{
|
|
4702
4843
|
"id": "hotel-bnb",
|
|
@@ -4843,7 +4984,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4843
4984
|
"slice": false,
|
|
4844
4985
|
"stock": true,
|
|
4845
4986
|
"booking": "tables",
|
|
4846
|
-
"sells": "none"
|
|
4987
|
+
"sells": "none",
|
|
4988
|
+
"opening": [
|
|
4989
|
+
"frame:full",
|
|
4990
|
+
"media:photo",
|
|
4991
|
+
"words:wordmark"
|
|
4992
|
+
]
|
|
4847
4993
|
},
|
|
4848
4994
|
{
|
|
4849
4995
|
"id": "classes",
|
|
@@ -4997,7 +5143,12 @@ const SPEC_BUSINESS_TYPES = [
|
|
|
4997
5143
|
"slice": false,
|
|
4998
5144
|
"stock": true,
|
|
4999
5145
|
"booking": "must",
|
|
5000
|
-
"sells": "offered"
|
|
5146
|
+
"sells": "offered",
|
|
5147
|
+
"opening": [
|
|
5148
|
+
"frame:inset",
|
|
5149
|
+
"media:photo",
|
|
5150
|
+
"words:headline"
|
|
5151
|
+
]
|
|
5001
5152
|
}
|
|
5002
5153
|
];
|
|
5003
5154
|
const SPEC_ANALYSIS_SHAPE = {
|
|
@@ -5567,6 +5718,15 @@ const SPEC_STATED_FACTS = {
|
|
|
5567
5718
|
"how": "only news the prompt states — an offer, an opening, a date (\"a November offer: transfer included\", \"our second shop opens on 1 December\"); never inferred",
|
|
5568
5719
|
"reads": "PU3",
|
|
5569
5720
|
"feeds": "popup"
|
|
5721
|
+
},
|
|
5722
|
+
"social": {
|
|
5723
|
+
"label": {
|
|
5724
|
+
"en": "Your social links",
|
|
5725
|
+
"he": "הקישורים שלך ברשתות החברתיות"
|
|
5726
|
+
},
|
|
5727
|
+
"how": "only addresses of the owner's own pages on social networks that the prompt states (instagram.com/…, facebook.com/…, wa.me/…), as written and separated by spaces; never searched for, completed or guessed",
|
|
5728
|
+
"reads": "FV1",
|
|
5729
|
+
"feeds": "footer"
|
|
5570
5730
|
}
|
|
5571
5731
|
};
|
|
5572
5732
|
|
|
@@ -5796,7 +5956,10 @@ function withoutAddress(text, address) {
|
|
|
5796
5956
|
* - the Plan step's two LINES — "Show your news in a popup" exists only when the owner STATED news (`news`, a stated fact:
|
|
5797
5957
|
* never inferred, never a placeholder) and the stance is offer, and starts ticked; "Invite visitors to your newsletter
|
|
5798
5958
|
* in a popup" is offered when the site has a newsletter form and the stance is not never, and is never ticked by itself.
|
|
5799
|
-
*
|
|
5959
|
+
* - the Plan step's QUESTION (popup-ask, PA-D1…PA-D4) — "Any news or an offer to announce?" — asked whenever the stance is
|
|
5960
|
+
* not never; it starts with the stated news when the news line would show. The owner's answer IS stated news (their
|
|
5961
|
+
* own words are its value and its quote); an empty answer is no news, also over news the prompt stated.
|
|
5962
|
+
* A generated site gets a popup only from one of these lines. Pure: no transport, no clock.
|
|
5800
5963
|
*/
|
|
5801
5964
|
/** How a popup is suggested. */
|
|
5802
5965
|
var PopupStance;
|
|
@@ -5836,14 +5999,39 @@ function popupStanceFor(type, words) {
|
|
|
5836
5999
|
return base;
|
|
5837
6000
|
}
|
|
5838
6001
|
const HIDDEN = { shown: false, ticked: false };
|
|
5839
|
-
/** The Plan step's
|
|
6002
|
+
/** The longest answer a popup holds (composite-core `POPUP_BODY_MAX_CHARS`): the Plan step's field stops there, and a
|
|
6003
|
+
* longer one makes no popup (`checkPopup` refuses it, said) — the owner's words are never cut. */
|
|
6004
|
+
const POPUP_NEWS_MAX_CHARS = POPUP_BODY_MAX_CHARS;
|
|
6005
|
+
/** The Plan step's popup lines and question for a site (PU-D12, PA-D1). */
|
|
5840
6006
|
function popupSuggestion(input) {
|
|
5841
6007
|
const words = popupWordsIn(input.prompt);
|
|
5842
6008
|
const stance = popupStanceFor(businessTypeById(input.businessType), words);
|
|
5843
6009
|
const stated = !!(input.news?.value?.trim() && input.news?.quote?.trim());
|
|
5844
6010
|
const news = stated && stance === PopupStance.Offer ? { shown: true, ticked: true } : HIDDEN;
|
|
5845
6011
|
const newsletter = input.newsletterForm && stance !== PopupStance.Never ? { shown: true, ticked: false } : HIDDEN;
|
|
5846
|
-
|
|
6012
|
+
const ask = { shown: stance !== PopupStance.Never, starting: news.shown ? newsFromAnswer(input.news.value).value : '' };
|
|
6013
|
+
return { stance, ask, news, newsletter, words };
|
|
6014
|
+
}
|
|
6015
|
+
/** The owner's answer to "Any news or an offer to announce?" as stated news (PA-D3): their own words are its value AND
|
|
6016
|
+
* its quote — so every figure in it is the owner's (`checkPopup`'s figure check holds by construction). White space is
|
|
6017
|
+
* folded to single spaces (a line break in a one-line field); nothing else changes and nothing is cut. Null: no answer. */
|
|
6018
|
+
function newsFromAnswer(answer) {
|
|
6019
|
+
const value = typeof answer === 'string' ? answer.replace(/\s+/g, ' ').trim() : '';
|
|
6020
|
+
return value ? { value, quote: value } : null;
|
|
6021
|
+
}
|
|
6022
|
+
/**
|
|
6023
|
+
* The news a build's popup is stamped from (PU-D11 / PU-D12 / PA-D3) — the ONE rule, judged by the same `popupSuggestion`
|
|
6024
|
+
* the Plan step draws: an ANSWER counts when the question was shown (the stance is not never) and is the news, an empty
|
|
6025
|
+
* one meaning none — also over news the prompt stated; without an answer, the reading's stated news counts when its line
|
|
6026
|
+
* showed and is ticked. Null: no news popup. Never invented — every word is the owner's.
|
|
6027
|
+
*/
|
|
6028
|
+
function popupNewsOf(input, choice) {
|
|
6029
|
+
const lines = popupSuggestion(input);
|
|
6030
|
+
if (typeof choice?.answer === 'string')
|
|
6031
|
+
return lines.ask.shown ? newsFromAnswer(choice.answer) : null;
|
|
6032
|
+
if (!choice?.news || !lines.news.shown || !input.news)
|
|
6033
|
+
return null;
|
|
6034
|
+
return { value: input.news.value.trim(), quote: input.news.quote };
|
|
5847
6035
|
}
|
|
5848
6036
|
|
|
5849
6037
|
/**
|
|
@@ -7167,10 +7355,12 @@ function filmIdeaFor(input) {
|
|
|
7167
7355
|
* - `footerNever` — what that kind of business's footer never wears (AW12-D10, harness FOOTER_NEVER), mended and said by
|
|
7168
7356
|
* `checkFooter` (`type-never`);
|
|
7169
7357
|
* - `headerNever` — what that kind of business's header never stands on (HI3-D12, harness HEADER_NEVER), mended to its
|
|
7170
|
-
* own ground and said by `checkHeader` (`type-never`)
|
|
7358
|
+
* own ground and said by `checkHeader` (`type-never`);
|
|
7359
|
+
* - `opening` — pictures first: the Home opening the kind of business takes when its plan names none (harness
|
|
7360
|
+
* OPENING_PICTURE), given only when a picture can come (`pictureCanCome`).
|
|
7171
7361
|
* An unknown or absent type gives nothing: the composer's defaults hold. (`calm` stays `composeContextOf`'s own argument.)
|
|
7172
7362
|
*/
|
|
7173
|
-
function businessComposeContext(typeId) {
|
|
7363
|
+
function businessComposeContext(typeId, decisions) {
|
|
7174
7364
|
const type = typeId ? businessTypeById(typeId) : undefined;
|
|
7175
7365
|
if (!type)
|
|
7176
7366
|
return {};
|
|
@@ -7180,8 +7370,23 @@ function businessComposeContext(typeId) {
|
|
|
7180
7370
|
return {
|
|
7181
7371
|
businessType: type.id, ...(refuses ? { footerNever: never } : {}),
|
|
7182
7372
|
...(header && header.grounds.length > 0 ? { headerNever: header } : {}),
|
|
7373
|
+
...(type.opening?.length && pictureCanCome(type, decisions) ? { opening: [...type.opening] } : {}),
|
|
7183
7374
|
};
|
|
7184
7375
|
}
|
|
7376
|
+
/** The layout photo ids that are the owner's own (`own:<asset>`). */
|
|
7377
|
+
const OWN_PHOTO = /^own:/;
|
|
7378
|
+
/**
|
|
7379
|
+
* Pictures first: can a picture come for the Home's opening? Never when the owner ruled pictures out; the owner's own photo
|
|
7380
|
+
* always can; else stock, where the kind of business lets stock stand in (`BusinessType.stock` — never the work itself) and
|
|
7381
|
+
* the owner did not refuse stock. Pure.
|
|
7382
|
+
*/
|
|
7383
|
+
function pictureCanCome(type, decisions) {
|
|
7384
|
+
const refused = decisions?.picturesRefused;
|
|
7385
|
+
if (refused === PicturesRefused.All)
|
|
7386
|
+
return false;
|
|
7387
|
+
const own = (decisions?.ownPhotos?.length ?? 0) > 0 || Object.keys(decisions?.layoutPhotos ?? {}).some(id => OWN_PHOTO.test(id));
|
|
7388
|
+
return own || (type.stock && refused !== PicturesRefused.Stock);
|
|
7389
|
+
}
|
|
7185
7390
|
/**
|
|
7186
7391
|
* THE compose context of a build run (moved from iox-cms `site-builds.service`, iox-cms-client#111): its year, its
|
|
7187
7392
|
* layouts' photos, its tier, the legal context its preflight read (AW1), whether its business is calm (AW6 — the body
|
|
@@ -7194,7 +7399,7 @@ function runComposeContext(run) {
|
|
|
7194
7399
|
const decisions = run.decisions ?? undefined;
|
|
7195
7400
|
const context = {
|
|
7196
7401
|
...composeContextOf(run.year, decisions?.layoutPhotos, run.tier ?? undefined, decisions?.legal ?? null, isCalmBusinessType(decisions?.businessType)),
|
|
7197
|
-
...businessComposeContext(decisions?.businessType),
|
|
7402
|
+
...businessComposeContext(decisions?.businessType, decisions),
|
|
7198
7403
|
// HI3-D5: the preflight judged the words at rest once, on the pixels it held; every step composes with that answer.
|
|
7199
7404
|
...(typeof decisions?.headerReadable === 'boolean' ? { headerReadable: decisions.headerReadable } : {}),
|
|
7200
7405
|
};
|
|
@@ -7215,5 +7420,5 @@ function runComposeContext(run) {
|
|
|
7215
7420
|
* Generated bundle index. Do not edit.
|
|
7216
7421
|
*/
|
|
7217
7422
|
|
|
7218
|
-
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 };
|
|
7423
|
+
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_NEWS_MAX_CHARS, 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, newsFromAnswer, normalizeAddress, offeredNeeds, oklchHue, paletteBrand, paletteGround, paletteSamples, pictureCanCome, pictureStyleRead, pixelSamples, popupNewsOf, popupStanceFor, popupSuggestion, popupWordsIn, presetDesign, presetHasSerifHeadings, presetLook, presetReason, presetsByFlavor, rankStylePresets, rankWithReferences, readPalette, referenceSeed, runComposeContext, seedPassesPreset, siteAnalysisJsonSchema, siteReadingJsonSchema, startingDesign, structureFor, unplacedPicturesOf, userAvoidRule, validateSiteAnalysis, validateSiteReading, withSellingNeed, withoutAddress };
|
|
7219
7424
|
//# sourceMappingURL=vectoriox-iox-ui-harness-core.mjs.map
|