@primer/view-components 0.24.0-rc.b7391366 → 0.24.0-rc.ddb5f7a7
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/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/components/primer/anchored_position.js +2 -0
- package/package.json +1 -1
- package/static/arguments.json +0 -12
- package/static/info_arch.json +38 -13
- package/static/previews.json +26 -0
@@ -23,6 +23,8 @@ const updateWhenVisible = (() => {
|
|
23
23
|
return (el) => {
|
24
24
|
// eslint-disable-next-line github/prefer-observers
|
25
25
|
window.addEventListener('resize', updateVisibleAnchors);
|
26
|
+
// eslint-disable-next-line github/prefer-observers
|
27
|
+
window.addEventListener('scroll', updateVisibleAnchors);
|
26
28
|
intersectionObserver || (intersectionObserver = new IntersectionObserver(entries => {
|
27
29
|
for (const entry of entries) {
|
28
30
|
const target = entry.target;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.24.0-rc.
|
3
|
+
"version": "0.24.0-rc.ddb5f7a7",
|
4
4
|
"description": "ViewComponents for the Primer Design System",
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
6
6
|
"module": "app/components/primer/primer.js",
|
package/static/arguments.json
CHANGED
@@ -2468,18 +2468,6 @@
|
|
2468
2468
|
"default": "N/A",
|
2469
2469
|
"description": "One of `:left` or `:right`. - Defaults to left"
|
2470
2470
|
},
|
2471
|
-
{
|
2472
|
-
"name": "body_arguments",
|
2473
|
-
"type": "Hash",
|
2474
|
-
"default": "`{}`",
|
2475
|
-
"description": "[System arguments](/system-arguments) for the body wrapper."
|
2476
|
-
},
|
2477
|
-
{
|
2478
|
-
"name": "wrapper_arguments",
|
2479
|
-
"type": "Hash",
|
2480
|
-
"default": "`{}`",
|
2481
|
-
"description": "[System arguments](/system-arguments) for the `TabContainer` wrapper."
|
2482
|
-
},
|
2483
2471
|
{
|
2484
2472
|
"name": "system_arguments",
|
2485
2473
|
"type": "Hash",
|
package/static/info_arch.json
CHANGED
@@ -3453,6 +3453,19 @@
|
|
3453
3453
|
"color-contrast"
|
3454
3454
|
]
|
3455
3455
|
}
|
3456
|
+
},
|
3457
|
+
{
|
3458
|
+
"preview_path": "primer/alpha/dialog/with_header_filter",
|
3459
|
+
"name": "with_header_filter",
|
3460
|
+
"snapshot": "false",
|
3461
|
+
"skip_rules": {
|
3462
|
+
"wont_fix": [
|
3463
|
+
"region"
|
3464
|
+
],
|
3465
|
+
"will_fix": [
|
3466
|
+
"color-contrast"
|
3467
|
+
]
|
3468
|
+
}
|
3456
3469
|
}
|
3457
3470
|
],
|
3458
3471
|
"subcomponents": [
|
@@ -3514,7 +3527,18 @@
|
|
3514
3527
|
}
|
3515
3528
|
],
|
3516
3529
|
"slots": [
|
3517
|
-
|
3530
|
+
{
|
3531
|
+
"name": "filter",
|
3532
|
+
"description": "Optional filter slot for adding a filter input to the header.",
|
3533
|
+
"parameters": [
|
3534
|
+
{
|
3535
|
+
"name": "system_arguments",
|
3536
|
+
"type": "Hash",
|
3537
|
+
"default": "N/A",
|
3538
|
+
"description": "{{link_to_system_arguments_docs}}"
|
3539
|
+
}
|
3540
|
+
]
|
3541
|
+
}
|
3518
3542
|
],
|
3519
3543
|
"methods": [
|
3520
3544
|
|
@@ -6107,6 +6131,19 @@
|
|
6107
6131
|
"color-contrast"
|
6108
6132
|
]
|
6109
6133
|
}
|
6134
|
+
},
|
6135
|
+
{
|
6136
|
+
"preview_path": "primer/alpha/overlay/in_a_sticky_container",
|
6137
|
+
"name": "in_a_sticky_container",
|
6138
|
+
"snapshot": "false",
|
6139
|
+
"skip_rules": {
|
6140
|
+
"wont_fix": [
|
6141
|
+
"region"
|
6142
|
+
],
|
6143
|
+
"will_fix": [
|
6144
|
+
"color-contrast"
|
6145
|
+
]
|
6146
|
+
}
|
6110
6147
|
}
|
6111
6148
|
],
|
6112
6149
|
"subcomponents": [
|
@@ -7573,18 +7610,6 @@
|
|
7573
7610
|
"default": "N/A",
|
7574
7611
|
"description": "One of `:left` or `:right`. - Defaults to left"
|
7575
7612
|
},
|
7576
|
-
{
|
7577
|
-
"name": "body_arguments",
|
7578
|
-
"type": "Hash",
|
7579
|
-
"default": "`{}`",
|
7580
|
-
"description": "{{link_to_system_arguments_docs}} for the body wrapper."
|
7581
|
-
},
|
7582
|
-
{
|
7583
|
-
"name": "wrapper_arguments",
|
7584
|
-
"type": "Hash",
|
7585
|
-
"default": "`{}`",
|
7586
|
-
"description": "{{link_to_system_arguments_docs}} for the `TabContainer` wrapper."
|
7587
|
-
},
|
7588
7613
|
{
|
7589
7614
|
"name": "system_arguments",
|
7590
7615
|
"type": "Hash",
|
package/static/previews.json
CHANGED
@@ -3256,6 +3256,19 @@
|
|
3256
3256
|
"color-contrast"
|
3257
3257
|
]
|
3258
3258
|
}
|
3259
|
+
},
|
3260
|
+
{
|
3261
|
+
"preview_path": "primer/alpha/dialog/with_header_filter",
|
3262
|
+
"name": "with_header_filter",
|
3263
|
+
"snapshot": "false",
|
3264
|
+
"skip_rules": {
|
3265
|
+
"wont_fix": [
|
3266
|
+
"region"
|
3267
|
+
],
|
3268
|
+
"will_fix": [
|
3269
|
+
"color-contrast"
|
3270
|
+
]
|
3271
|
+
}
|
3259
3272
|
}
|
3260
3273
|
]
|
3261
3274
|
},
|
@@ -4939,6 +4952,19 @@
|
|
4939
4952
|
"color-contrast"
|
4940
4953
|
]
|
4941
4954
|
}
|
4955
|
+
},
|
4956
|
+
{
|
4957
|
+
"preview_path": "primer/alpha/overlay/in_a_sticky_container",
|
4958
|
+
"name": "in_a_sticky_container",
|
4959
|
+
"snapshot": "false",
|
4960
|
+
"skip_rules": {
|
4961
|
+
"wont_fix": [
|
4962
|
+
"region"
|
4963
|
+
],
|
4964
|
+
"will_fix": [
|
4965
|
+
"color-contrast"
|
4966
|
+
]
|
4967
|
+
}
|
4942
4968
|
}
|
4943
4969
|
]
|
4944
4970
|
},
|