@vectoriox/iox-ui 5.204.0 → 5.206.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/data-core/index.d.ts +13 -4
- package/design-core/index.d.ts +277 -6
- package/fesm2022/vectoriox-iox-ui-data-core.mjs +23 -4
- package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +3065 -2673
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1313 -197
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +71 -19
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +32 -4
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +145 -82
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +462 -41
- package/harness-core/index.d.ts +52 -12
- package/index.d.ts +44 -3
- package/package.json +1 -1
- package/scene-core/index.d.ts +16 -2
- package/src/data-core/placeholder-rows.ts +24 -3
- package/src/design-core/colour-eval.ts +22 -0
- package/src/design-core/contrast-audit.ts +96 -2
- package/src/design-core/design-token.model.ts +2 -0
- package/src/design-core/flavor-spec.generated.ts +184 -0
- package/src/design-core/font-metrics.ts +14 -1
- package/src/design-core/font-vertical.ts +80 -0
- package/src/design-core/node-links.ts +12 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/style-presets.ts +20 -1
- package/src/design-core/token-css.ts +3 -1
- package/src/generation-core/ai-run.ts +31 -0
- package/src/generation-core/audit-site.ts +5 -3
- package/src/generation-core/compose-free.ts +1 -1
- package/src/generation-core/compose-layout.ts +172 -22
- package/src/generation-core/critic-calibration.ts +30 -10
- package/src/generation-core/critic-numbers.ts +259 -0
- package/src/generation-core/critic-prompt.ts +74 -6
- package/src/generation-core/critic-rubric.generated.ts +7 -7
- package/src/generation-core/critic-sheet.ts +184 -6
- package/src/generation-core/critic.ts +27 -13
- package/src/generation-core/designer-brief.ts +4 -3
- package/src/generation-core/designer-estimate.ts +3 -3
- package/src/generation-core/layout-render-check.ts +35 -2
- package/src/generation-core/nav-shape.ts +67 -8
- package/src/generation-core/opening-mix.ts +61 -17
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/social-links.ts +47 -8
- package/src/generation-core/stock-photos.ts +149 -14
- package/src/generation-core/stock-search.ts +108 -19
- package/src/generation-core/stock-subjects.ts +204 -0
- package/src/harness-core/business-types.ts +3 -0
- package/src/harness-core/harness-spec.generated.ts +54 -15
- package/src/harness-core/intake.ts +18 -5
- package/src/scene-core/scene.ts +34 -3
- package/styles/iox-design.css +41 -2
- package/styles/iox-forms.css +7 -6
|
@@ -177,6 +177,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
177
177
|
"צלם",
|
|
178
178
|
"צילום"
|
|
179
179
|
],
|
|
180
|
+
"qualifiers": [],
|
|
180
181
|
"good": [
|
|
181
182
|
{
|
|
182
183
|
"preset": "night-gallery",
|
|
@@ -337,10 +338,10 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
337
338
|
"uupm": "161 Home Decoration & Interior Design · 84 Architecture / Interior",
|
|
338
339
|
"match": [
|
|
339
340
|
"interior",
|
|
340
|
-
"interiors",
|
|
341
341
|
"עיצוב פנים",
|
|
342
342
|
"decor"
|
|
343
343
|
],
|
|
344
|
+
"qualifiers": [],
|
|
344
345
|
"good": [
|
|
345
346
|
{
|
|
346
347
|
"preset": "gallery-minimal",
|
|
@@ -511,6 +512,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
511
512
|
"architecture",
|
|
512
513
|
"אדריכל"
|
|
513
514
|
],
|
|
515
|
+
"qualifiers": [],
|
|
514
516
|
"good": [
|
|
515
517
|
{
|
|
516
518
|
"preset": "swiss-grid",
|
|
@@ -680,6 +682,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
680
682
|
"סטודיו לעיצוב",
|
|
681
683
|
"מיתוג"
|
|
682
684
|
],
|
|
685
|
+
"qualifiers": [],
|
|
683
686
|
"good": [
|
|
684
687
|
{
|
|
685
688
|
"preset": "zine",
|
|
@@ -836,6 +839,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
836
839
|
"ציור",
|
|
837
840
|
"איור"
|
|
838
841
|
],
|
|
842
|
+
"qualifiers": [],
|
|
839
843
|
"good": [
|
|
840
844
|
{
|
|
841
845
|
"preset": "zine",
|
|
@@ -992,7 +996,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
992
996
|
"pottery",
|
|
993
997
|
"stoneware",
|
|
994
998
|
"handmade",
|
|
995
|
-
"
|
|
999
|
+
"craft",
|
|
996
1000
|
"maker",
|
|
997
1001
|
"workshop",
|
|
998
1002
|
"קרמיקה",
|
|
@@ -1000,6 +1004,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
1000
1004
|
"עבודת יד",
|
|
1001
1005
|
"סדנ"
|
|
1002
1006
|
],
|
|
1007
|
+
"qualifiers": [],
|
|
1003
1008
|
"good": [
|
|
1004
1009
|
{
|
|
1005
1010
|
"preset": "warm-editorial",
|
|
@@ -1156,6 +1161,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
1156
1161
|
"rings",
|
|
1157
1162
|
"תכשיט"
|
|
1158
1163
|
],
|
|
1164
|
+
"qualifiers": [],
|
|
1159
1165
|
"good": [
|
|
1160
1166
|
{
|
|
1161
1167
|
"preset": "quiet-luxury",
|
|
@@ -1316,6 +1322,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
1316
1322
|
"ברבר",
|
|
1317
1323
|
"מספרה לגברים"
|
|
1318
1324
|
],
|
|
1325
|
+
"qualifiers": [],
|
|
1319
1326
|
"good": [
|
|
1320
1327
|
{
|
|
1321
1328
|
"preset": "ink-studio",
|
|
@@ -1469,6 +1476,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
1469
1476
|
"עיסוי",
|
|
1470
1477
|
"טיפולי"
|
|
1471
1478
|
],
|
|
1479
|
+
"qualifiers": [],
|
|
1472
1480
|
"good": [
|
|
1473
1481
|
{
|
|
1474
1482
|
"preset": "soft-spa",
|
|
@@ -1684,8 +1692,10 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
1684
1692
|
"מספרה",
|
|
1685
1693
|
"סלון",
|
|
1686
1694
|
"ציפורניים",
|
|
1687
|
-
"קוסמטיקה"
|
|
1695
|
+
"קוסמטיקה",
|
|
1696
|
+
"שיער"
|
|
1688
1697
|
],
|
|
1698
|
+
"qualifiers": [],
|
|
1689
1699
|
"good": [
|
|
1690
1700
|
{
|
|
1691
1701
|
"preset": "soft-spa",
|
|
@@ -1852,6 +1862,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
1852
1862
|
"פילאטיס",
|
|
1853
1863
|
"מדיטציה"
|
|
1854
1864
|
],
|
|
1865
|
+
"qualifiers": [],
|
|
1855
1866
|
"good": [
|
|
1856
1867
|
{
|
|
1857
1868
|
"preset": "morning-glass",
|
|
@@ -2020,6 +2031,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
2020
2031
|
"מחול",
|
|
2021
2032
|
"ריקוד"
|
|
2022
2033
|
],
|
|
2034
|
+
"qualifiers": [],
|
|
2023
2035
|
"good": [
|
|
2024
2036
|
{
|
|
2025
2037
|
"preset": "coral-studio",
|
|
@@ -2190,6 +2202,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
2190
2202
|
"פסיכולוג",
|
|
2191
2203
|
"טיפול רגשי"
|
|
2192
2204
|
],
|
|
2205
|
+
"qualifiers": [],
|
|
2193
2206
|
"good": [
|
|
2194
2207
|
{
|
|
2195
2208
|
"preset": "fresh-practice",
|
|
@@ -2424,6 +2437,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
2424
2437
|
"רופא",
|
|
2425
2438
|
"פיזיותרפיה"
|
|
2426
2439
|
],
|
|
2440
|
+
"qualifiers": [],
|
|
2427
2441
|
"good": [
|
|
2428
2442
|
{
|
|
2429
2443
|
"preset": "clear-care",
|
|
@@ -2659,6 +2673,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
2659
2673
|
"שיניים",
|
|
2660
2674
|
"רופא שיניים"
|
|
2661
2675
|
],
|
|
2676
|
+
"qualifiers": [],
|
|
2662
2677
|
"good": [
|
|
2663
2678
|
{
|
|
2664
2679
|
"preset": "fresh-practice",
|
|
@@ -2881,9 +2896,10 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
2881
2896
|
"dog",
|
|
2882
2897
|
"groom",
|
|
2883
2898
|
"וטרינר",
|
|
2884
|
-
"
|
|
2899
|
+
"כלב",
|
|
2885
2900
|
"חיות"
|
|
2886
2901
|
],
|
|
2902
|
+
"qualifiers": [],
|
|
2887
2903
|
"good": [
|
|
2888
2904
|
{
|
|
2889
2905
|
"preset": "little-ones",
|
|
@@ -3077,6 +3093,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
3077
3093
|
"שף",
|
|
3078
3094
|
"ביסטרו"
|
|
3079
3095
|
],
|
|
3096
|
+
"qualifiers": [],
|
|
3080
3097
|
"good": [
|
|
3081
3098
|
{
|
|
3082
3099
|
"preset": "warm-editorial",
|
|
@@ -3247,6 +3264,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
3247
3264
|
"מאפייה",
|
|
3248
3265
|
"קונדיטוריה"
|
|
3249
3266
|
],
|
|
3267
|
+
"qualifiers": [],
|
|
3250
3268
|
"good": [
|
|
3251
3269
|
{
|
|
3252
3270
|
"preset": "corner-cafe",
|
|
@@ -3416,6 +3434,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
3416
3434
|
"יין",
|
|
3417
3435
|
"בירה"
|
|
3418
3436
|
],
|
|
3437
|
+
"qualifiers": [],
|
|
3419
3438
|
"good": [
|
|
3420
3439
|
{
|
|
3421
3440
|
"preset": "quiet-luxury",
|
|
@@ -3579,6 +3598,13 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
3579
3598
|
"אופנה",
|
|
3580
3599
|
"חנות"
|
|
3581
3600
|
],
|
|
3601
|
+
"qualifiers": [
|
|
3602
|
+
"boutique",
|
|
3603
|
+
"shop",
|
|
3604
|
+
"store",
|
|
3605
|
+
"בוטיק",
|
|
3606
|
+
"חנות"
|
|
3607
|
+
],
|
|
3582
3608
|
"good": [
|
|
3583
3609
|
{
|
|
3584
3610
|
"preset": "gallery-minimal",
|
|
@@ -3725,13 +3751,14 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
3725
3751
|
"uupm": "62 Florist/Plant Shop",
|
|
3726
3752
|
"match": [
|
|
3727
3753
|
"florist",
|
|
3728
|
-
"
|
|
3729
|
-
"
|
|
3754
|
+
"flower",
|
|
3755
|
+
"plant",
|
|
3730
3756
|
"bouquet",
|
|
3731
|
-
"
|
|
3757
|
+
"פרח",
|
|
3732
3758
|
"צמחים",
|
|
3733
3759
|
"זרים"
|
|
3734
3760
|
],
|
|
3761
|
+
"qualifiers": [],
|
|
3735
3762
|
"good": [
|
|
3736
3763
|
{
|
|
3737
3764
|
"preset": "garden-party",
|
|
@@ -3890,9 +3917,10 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
3890
3917
|
"home goods",
|
|
3891
3918
|
"homeware",
|
|
3892
3919
|
"decor shop",
|
|
3893
|
-
"
|
|
3920
|
+
"רהיט",
|
|
3894
3921
|
"כלי בית"
|
|
3895
3922
|
],
|
|
3923
|
+
"qualifiers": [],
|
|
3896
3924
|
"good": [
|
|
3897
3925
|
{
|
|
3898
3926
|
"preset": "warm-editorial",
|
|
@@ -4048,6 +4076,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
4048
4076
|
"יועץ",
|
|
4049
4077
|
"ייעוץ"
|
|
4050
4078
|
],
|
|
4079
|
+
"qualifiers": [],
|
|
4051
4080
|
"good": [
|
|
4052
4081
|
{
|
|
4053
4082
|
"preset": "trusted-advisor",
|
|
@@ -4247,6 +4276,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
4247
4276
|
"אימון אישי",
|
|
4248
4277
|
"קואצ'ינג"
|
|
4249
4278
|
],
|
|
4279
|
+
"qualifiers": [],
|
|
4250
4280
|
"good": [
|
|
4251
4281
|
{
|
|
4252
4282
|
"preset": "morning-glass",
|
|
@@ -4437,9 +4467,12 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
4437
4467
|
"accounting",
|
|
4438
4468
|
"עורך דין",
|
|
4439
4469
|
"עורכת דין",
|
|
4470
|
+
"עורכי דין",
|
|
4440
4471
|
"רואה חשבון",
|
|
4472
|
+
"רואי חשבון",
|
|
4441
4473
|
"משפט"
|
|
4442
4474
|
],
|
|
4475
|
+
"qualifiers": [],
|
|
4443
4476
|
"good": [
|
|
4444
4477
|
{
|
|
4445
4478
|
"preset": "trusted-advisor",
|
|
@@ -4669,11 +4702,13 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
4669
4702
|
"real estate",
|
|
4670
4703
|
"realtor",
|
|
4671
4704
|
"property",
|
|
4672
|
-
"
|
|
4705
|
+
"apartment",
|
|
4673
4706
|
"נדל\"ן",
|
|
4674
4707
|
"נדלן",
|
|
4708
|
+
"דירה",
|
|
4675
4709
|
"דירות"
|
|
4676
4710
|
],
|
|
4711
|
+
"qualifiers": [],
|
|
4677
4712
|
"good": [
|
|
4678
4713
|
{
|
|
4679
4714
|
"preset": "holiday-light",
|
|
@@ -4841,9 +4876,10 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
4841
4876
|
"volunteer",
|
|
4842
4877
|
"community",
|
|
4843
4878
|
"עמותה",
|
|
4844
|
-
"
|
|
4879
|
+
"מתנדב",
|
|
4845
4880
|
"קהילה"
|
|
4846
4881
|
],
|
|
4882
|
+
"qualifiers": [],
|
|
4847
4883
|
"good": [
|
|
4848
4884
|
{
|
|
4849
4885
|
"preset": "kind-community",
|
|
@@ -5025,15 +5061,16 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
5025
5061
|
"match": [
|
|
5026
5062
|
"venue",
|
|
5027
5063
|
"wedding",
|
|
5028
|
-
"events",
|
|
5029
5064
|
"event",
|
|
5030
5065
|
"hall",
|
|
5031
5066
|
"festival",
|
|
5032
5067
|
"אולם",
|
|
5068
|
+
"חתונה",
|
|
5033
5069
|
"חתונות",
|
|
5034
|
-
"
|
|
5070
|
+
"אירוע",
|
|
5035
5071
|
"גן אירועים"
|
|
5036
5072
|
],
|
|
5073
|
+
"qualifiers": [],
|
|
5037
5074
|
"good": [
|
|
5038
5075
|
{
|
|
5039
5076
|
"preset": "garden-party",
|
|
@@ -5195,6 +5232,7 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
5195
5232
|
"צימר",
|
|
5196
5233
|
"אירוח"
|
|
5197
5234
|
],
|
|
5235
|
+
"qualifiers": [],
|
|
5198
5236
|
"good": [
|
|
5199
5237
|
{
|
|
5200
5238
|
"preset": "holiday-light",
|
|
@@ -5350,18 +5388,19 @@ export const SPEC_BUSINESS_TYPES = [
|
|
|
5350
5388
|
"uupm": "153 Music Instrument Learning · 56 Childcare/Daycare",
|
|
5351
5389
|
"match": [
|
|
5352
5390
|
"tutor",
|
|
5353
|
-
"
|
|
5391
|
+
"lesson",
|
|
5354
5392
|
"teacher",
|
|
5355
5393
|
"classes",
|
|
5356
5394
|
"school",
|
|
5357
|
-
"music
|
|
5395
|
+
"music lesson",
|
|
5358
5396
|
"kids",
|
|
5359
5397
|
"מורה",
|
|
5360
|
-
"
|
|
5398
|
+
"שיעור",
|
|
5361
5399
|
"חוג",
|
|
5362
5400
|
"חוגים",
|
|
5363
5401
|
"ילדים"
|
|
5364
5402
|
],
|
|
5403
|
+
"qualifiers": [],
|
|
5365
5404
|
"good": [
|
|
5366
5405
|
{
|
|
5367
5406
|
"preset": "little-ones",
|
|
@@ -38,14 +38,27 @@ export interface BusinessTypeMatch {
|
|
|
38
38
|
score: number;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* The kind of business the words name, best first; empty when none of the keywords appears. Ties keep the board's order.
|
|
43
|
+
*
|
|
44
|
+
* A QUALIFIER (`BusinessType.qualifiers` — "boutique", "shop", "בוטיק") is a word that also describes other businesses: in
|
|
45
|
+
* "a boutique hotel", "a boutique law firm" or "מספרה בוטיק" it says how, not what. So a qualifier counts only when the
|
|
46
|
+
* words hold no plain keyword at all — "a boutique selling linen dresses" is still a boutique, "a boutique hotel" a hotel,
|
|
47
|
+
* whatever their letter counts (iox-ui#213: "boutique" (8) used to outweigh "hotel" (5)).
|
|
48
|
+
*/
|
|
42
49
|
export function matchBusinessTypes(text: string, types: ReadonlyArray<BusinessType> = BUSINESS_TYPES): BusinessTypeMatch[] {
|
|
43
50
|
const words = (text ?? '').toLocaleLowerCase();
|
|
44
51
|
if (!words.trim()) return [];
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
const found = types.map((type, order) => {
|
|
53
|
+
const keywords = keywordsIn(words, type.match);
|
|
54
|
+
const qualifiers = type.qualifiers ?? [];
|
|
55
|
+
return { type, order, keywords, plain: keywords.filter(k => !qualifiers.includes(k)) };
|
|
56
|
+
});
|
|
57
|
+
const anyPlain = found.some(f => f.plain.length > 0);
|
|
58
|
+
return found
|
|
59
|
+
.map(({ type, order, keywords, plain }) => {
|
|
60
|
+
const counted = anyPlain ? plain : keywords;
|
|
61
|
+
return { id: type.id, keywords: counted, score: counted.reduce((n, k) => n + k.length, 0), order };
|
|
49
62
|
})
|
|
50
63
|
.filter(m => m.score > 0)
|
|
51
64
|
.sort((a, b) => b.score - a.score || a.order - b.order)
|
package/src/scene-core/scene.ts
CHANGED
|
@@ -188,9 +188,40 @@ function validKey(key: unknown, colour: boolean): key is SceneKey {
|
|
|
188
188
|
return colour ? typeof value === 'string' && COLOUR.test(value) : typeof value === 'number' && Number.isFinite(value);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
/** What a track is plotted on: its property, its range and, for a Clip, its direction — one timeline each. */
|
|
192
|
+
const timelineOf = (track: { prop: string; range?: string; from?: string }): string =>
|
|
193
|
+
`${track.prop}|${track.range ?? SceneRange.Hold}|${track.prop === SceneProp.Clip ? track.from ?? '' : ''}`;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Tracks on ONE timeline (the same property and range; a Clip's same direction) are pieces of one movement: their keys
|
|
197
|
+
* merge into the first one's track, ascending by progress (an exact repeat dropped), its ease kept. A step that fades in
|
|
198
|
+
* and later out (`[0.4, 0] → [0.5, 1]` and `[0.6, 1] → [0.7, 0]`) reads as one track — read as two, the later piece held
|
|
199
|
+
* its first key before it began and the step stood at full opacity over the step before it (iox-ui#195). The one rule
|
|
200
|
+
* both renderers read through `normalizeTracks`, and the composer stamps its tracks with. Pure.
|
|
201
|
+
*/
|
|
202
|
+
export function mergeSceneTracks<T extends { prop: string; keys: ReadonlyArray<readonly [number, number | string]>; range?: string; from?: string }>(tracks: ReadonlyArray<T>): T[] {
|
|
203
|
+
const out: T[] = [];
|
|
204
|
+
const at = new Map<string, number>();
|
|
205
|
+
for (const track of tracks) {
|
|
206
|
+
const line = timelineOf(track);
|
|
207
|
+
const i = at.get(line);
|
|
208
|
+
if (i === undefined) {
|
|
209
|
+
at.set(line, out.length);
|
|
210
|
+
out.push(track);
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
const keys = [...out[i].keys, ...track.keys]
|
|
214
|
+
.sort((a, b) => a[0] - b[0])
|
|
215
|
+
.filter((key, k, all) => !k || all[k - 1][0] !== key[0] || all[k - 1][1] !== key[1]);
|
|
216
|
+
out[i] = { ...out[i], keys };
|
|
217
|
+
}
|
|
218
|
+
return out;
|
|
219
|
+
}
|
|
220
|
+
|
|
191
221
|
/**
|
|
192
222
|
* The tracks a saved value really holds: unknown properties, bad keys and colours that are not colours are dropped,
|
|
193
|
-
* keys sorted by progress, a track left with no key dropped
|
|
223
|
+
* keys sorted by progress, a track left with no key dropped, and tracks on one timeline merged (`mergeSceneTracks`).
|
|
224
|
+
* Never throws on what a page document holds.
|
|
194
225
|
*/
|
|
195
226
|
export function normalizeTracks(tracks: unknown): SceneTrack[] {
|
|
196
227
|
if (!Array.isArray(tracks)) return [];
|
|
@@ -212,7 +243,7 @@ export function normalizeTracks(tracks: unknown): SceneTrack[] {
|
|
|
212
243
|
...(typeof range === 'string' && RANGES.has(range) && range !== SceneRange.Hold ? { range } : {}),
|
|
213
244
|
});
|
|
214
245
|
}
|
|
215
|
-
return out;
|
|
246
|
+
return mergeSceneTracks(out);
|
|
216
247
|
}
|
|
217
248
|
|
|
218
249
|
/**
|
|
@@ -320,7 +351,7 @@ const TRANSFORM_REST: Readonly<Partial<Record<SceneProp, number>>> = { [ScenePro
|
|
|
320
351
|
*/
|
|
321
352
|
export function sceneFrame(tracks: ReadonlyArray<SceneTrack>, p: number | SceneProgress, options: SceneFrameOptions = {}): SceneFrame {
|
|
322
353
|
const frame: SceneFrame = {};
|
|
323
|
-
// Per property and range, the last track wins (
|
|
354
|
+
// Per property and range, the last track wins (normalized tracks hold one per timeline — `mergeSceneTracks`). Across ranges they compose: a hold that
|
|
324
355
|
// carries a layer and an exit that sinks it add their moves, and their scales and opacities multiply.
|
|
325
356
|
const byRange = new Map<string, { prop: SceneProp; value: number | string; from?: SceneRevealFrom }>();
|
|
326
357
|
for (const track of tracks) {
|
package/styles/iox-design.css
CHANGED
|
@@ -2539,9 +2539,43 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2539
2539
|
directions; the stylesheet holds the inline side and the two motions, in logical insets, so a Hebrew site mirrors.
|
|
2540
2540
|
Two classes, so it holds over the parts' own rules (one class each). */
|
|
2541
2541
|
.iox-role-opening :is(.iox-role-opening-badge, .iox-role-opening-card, .iox-role-opening-cue) { inset-inline-end: 4%; }
|
|
2542
|
+
/* iox-ui#196: the cue is as wide as its words and keeps the same 4% on its start side — a cue saved at a Text's own 100%
|
|
2543
|
+
started 4% off the screen (the hotel's caption at x −58, the salon's "תל אביב" past the right edge at 390). */
|
|
2544
|
+
.iox-role-opening .iox-role-opening-cue { width: auto; max-width: 92%; }
|
|
2542
2545
|
/* A display line is one line on a laptop (sized by its measured width) and wraps between words on a phone — never inside
|
|
2543
2546
|
a word, never cut by the screen (R-H6). */
|
|
2544
2547
|
.iox-role-opening .iox-role-opening-words .iox-role-opening-title { text-wrap: balance; overflow-wrap: normal; }
|
|
2548
|
+
/* vectoriox/iox-ui#211: words that stand OVER the opening's scrim layer (a sibling after it — on the edge, a wordmark,
|
|
2549
|
+
behind, apart, the aside and the scroll cue) read the scrim's fixed ink, as the words a scrim block HOLDS do (the contract's
|
|
2550
|
+
`inkScopes` for `media-scrim`). They used to read their frame's scheme: a pictured frame wears Inverse, which is a DARK
|
|
2551
|
+
ground in a light look and a LIGHT one in a dark look, so in a dark look (pro-ceramics, Midnight) the name was near-black
|
|
2552
|
+
on the dark wash, 1.88:1 on a laptop and 1.33:1 on a phone. Three classes, so it holds over a box's own `color:
|
|
2553
|
+
inherit` (two). The gate reads the same list (design-core `SCRIM_LAYER_WORD_ROLES`, pinned to this rule by a spec). */
|
|
2554
|
+
.iox-role-opening .iox-role-opening-scrim ~ :is(.iox-role-opening-words, .iox-role-opening-apart, .iox-role-opening-aside, .iox-role-opening-cue) {
|
|
2555
|
+
color: var(--iox-media-scrim-ink);
|
|
2556
|
+
--iox-heading-color: currentColor;
|
|
2557
|
+
--iox-eyebrow-color: currentColor;
|
|
2558
|
+
--iox-text-muted: currentColor;
|
|
2559
|
+
--iox-link-color: currentColor;
|
|
2560
|
+
--iox-link-hover-color: currentColor;
|
|
2561
|
+
--iox-icon-color: currentColor;
|
|
2562
|
+
--iox-button-ghost-ink: currentColor;
|
|
2563
|
+
}
|
|
2564
|
+
/* vectoriox/iox-ui#212: and they stand on the scrim wherever they are. The layer is a top-down gradient from `transparent`,
|
|
2565
|
+
so words at its top (the edge's aside) or high on a phone stood on the bare picture — pro-store's line 4.26:1. Each block
|
|
2566
|
+
lays the scrim under itself as a soft cloud: it reaches 40px past the box and blurs by half that, so the box's own edge
|
|
2567
|
+
still holds ~98% of it and it is gone a little further out — the wash, never a panel. Under every word the picture is
|
|
2568
|
+
dimmed at least as much as by the scrim itself: what the gate judges (`scrimFindings`, the scrim's ink over the scrim).
|
|
2569
|
+
The block is positioned with z-index 1 (its own stacking context), so the cloud stays under its words, over the picture. */
|
|
2570
|
+
.iox-role-opening .iox-role-opening-scrim ~ :is(.iox-role-opening-words, .iox-role-opening-apart, .iox-role-opening-aside, .iox-role-opening-cue)::before {
|
|
2571
|
+
content: '';
|
|
2572
|
+
position: absolute;
|
|
2573
|
+
inset: -40px;
|
|
2574
|
+
z-index: -1;
|
|
2575
|
+
pointer-events: none;
|
|
2576
|
+
background: var(--iox-media-scrim);
|
|
2577
|
+
filter: blur(20px);
|
|
2578
|
+
}
|
|
2545
2579
|
/* On a phone the card leaves the picture's corner and follows the words (board 4), and two pictures become one: the
|
|
2546
2580
|
second leaves. The node holds that hide too (`resp.mobile`), but an Image's own component rule (`display: block`, one
|
|
2547
2581
|
attribute) comes after the layout's styles on the engine and wins the tie — vectoriox/iox-ui#104 — so the two classes
|
|
@@ -2951,14 +2985,19 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2951
2985
|
--hdr-border: var(--iox-nav-border);
|
|
2952
2986
|
--hdr-shadow: var(--iox-nav-shadow);
|
|
2953
2987
|
}
|
|
2988
|
+
/* iox-ui#210 (all six Pro sites, 2026-12-01): the pill's bar is inset by `--hdr-float-block` — so the header's own block
|
|
2989
|
+
padding must be that inset PLUS the bar's inner air (`--hdr-float-pad-block`), or the name sits on the bar's top edge and
|
|
2990
|
+
the button on its bottom (the bar and the content box were one height; a 390 hotel bar 16.5 px around a 17 px name). */
|
|
2954
2991
|
[data-iox-header-shape] {
|
|
2955
2992
|
--hdr-float-block: 8px;
|
|
2956
2993
|
--hdr-float-inline: max(24px, calc((100% - var(--iox-content-width, 100%)) / 2));
|
|
2957
2994
|
--hdr-float-pad: 28px;
|
|
2995
|
+
--hdr-float-pad-block: 10px;
|
|
2958
2996
|
--hdr-float-radius: var(--iox-button-radius, 999px);
|
|
2959
2997
|
padding-block: var(--hdr-float-block) !important;
|
|
2960
2998
|
}
|
|
2961
2999
|
[data-iox-header-shape='pill'] {
|
|
3000
|
+
padding-block: calc(var(--hdr-float-block) + var(--hdr-float-pad-block)) !important;
|
|
2962
3001
|
padding-inline: calc(var(--hdr-float-inline) + var(--hdr-float-pad)) !important;
|
|
2963
3002
|
}
|
|
2964
3003
|
[data-iox-header-shape='pill']::before {
|
|
@@ -3019,12 +3058,12 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
3019
3058
|
}
|
|
3020
3059
|
/* On a phone the name fits (HI3-D23): a hanging logo would cover the heading on a narrow screen. */
|
|
3021
3060
|
@media (max-width: 767px) {
|
|
3022
|
-
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; }
|
|
3061
|
+
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; --hdr-float-pad-block: 8px; }
|
|
3023
3062
|
[data-iox-header-brand='hangs'] .iox-role-nav-brand img { block-size: auto; max-block-size: 100%; margin-block-end: 0; }
|
|
3024
3063
|
:root:has([data-iox-header-brand='hangs']) .iox-role-opening .iox-role-opening-words { padding-block-start: 0; }
|
|
3025
3064
|
}
|
|
3026
3065
|
@container iox-canvas (max-width: 767px) {
|
|
3027
|
-
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; }
|
|
3066
|
+
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; --hdr-float-pad-block: 8px; }
|
|
3028
3067
|
[data-iox-header-brand='hangs'] .iox-role-nav-brand img { block-size: auto; max-block-size: 100%; margin-block-end: 0; }
|
|
3029
3068
|
:root:has([data-iox-header-brand='hangs']) .iox-role-opening .iox-role-opening-words { padding-block-start: 0; }
|
|
3030
3069
|
}
|
package/styles/iox-forms.css
CHANGED
|
@@ -74,8 +74,9 @@
|
|
|
74
74
|
button side by side on a laptop, the way 8pm / Vonder / Atticus Finch sign up. The preset puts the consent tick FIRST,
|
|
75
75
|
so every part is drawn in the DOM's order and the keyboard meets them as the eye does (WCAG 2.4.3): the tick, then the
|
|
76
76
|
row, then the legal line and the answer blocks. Nothing here sets `order`.
|
|
77
|
-
It STACKS on a phone, and in any column narrower than about
|
|
78
|
-
|
|
77
|
+
It STACKS on a phone, and in any column narrower than about 44ch — room for an email box of about 24ch beside its
|
|
78
|
+
button (iox-ui#208: at 28ch the hotel's 255px footer column put a 96px box, "you@co", beside a 143px button): the email box and the button share the "albatross"
|
|
79
|
+
basis `(44ch - 100%) * 999` — negative (so 0, and they share the row) when the form is wider than 44ch, enormous (so
|
|
79
80
|
each takes a whole row) when it is narrower. No query on the form's own width is needed, so the footer column, the
|
|
80
81
|
popup and the builder's frame all get it from the one rule. Only an email box straight before the button makes the
|
|
81
82
|
row — a form saved in another order simply stacks.
|
|
@@ -95,19 +96,19 @@
|
|
|
95
96
|
min-inline-size: 0;
|
|
96
97
|
}
|
|
97
98
|
.iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]):has(+ .iox-submit) {
|
|
98
|
-
flex: 1 1 calc((
|
|
99
|
+
flex: 1 1 calc((44ch - 100%) * 999);
|
|
99
100
|
}
|
|
100
101
|
.iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]) > .iox-field__label {
|
|
101
102
|
line-height: 1.5;
|
|
102
103
|
}
|
|
103
104
|
.iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]) + .iox-submit {
|
|
104
|
-
flex: 0 1 calc((
|
|
105
|
+
flex: 0 1 calc((44ch - 100%) * 999);
|
|
105
106
|
min-inline-size: auto;
|
|
106
107
|
white-space: nowrap;
|
|
107
|
-
margin-block-start: clamp(0px, (100% -
|
|
108
|
+
margin-block-start: clamp(0px, (100% - 44ch) * 999, 1.5em);
|
|
108
109
|
}
|
|
109
110
|
.iox-form[data-iox-form^="newsletter-"] > .iox-es-field:has(input[type="email"]) + .iox-submit {
|
|
110
|
-
margin-block-start: clamp(0px, (100% -
|
|
111
|
+
margin-block-start: clamp(0px, (100% - 44ch) * 999, var(--iox-field-label-size) * 1.5);
|
|
111
112
|
}
|
|
112
113
|
.iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]):has(> .iox-field__label--hidden) + .iox-submit {
|
|
113
114
|
margin-block-start: 0;
|