@primer/view-components 0.25.0-rc.f334329d → 0.25.1-rc.6bf8e3c6

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.
@@ -20,7 +20,7 @@ let ToggleSwitchElement = class ToggleSwitchElement extends HTMLElement {
20
20
  }
21
21
  get csrf() {
22
22
  const csrfElement = this.querySelector('[data-csrf]');
23
- return this.getAttribute('csrf') || (csrfElement instanceof HTMLInputElement && csrfElement.value) || null;
23
+ return this.getAttribute('data-csrf') || (csrfElement instanceof HTMLInputElement && csrfElement.value) || null;
24
24
  }
25
25
  get csrfField() {
26
26
  // the authenticity token is passed into the element and is not generated in js land
@@ -1 +1 @@
1
- .breadcrumb-item{display:inline-block;list-style:none;margin-left:-.35em;white-space:nowrap}.breadcrumb-item:after{border-right:.1em solid var(--borderColor-neutral-emphasis);content:"";display:inline-block;height:.8em;margin:0 .5em;transform:rotate(15deg) translateY(.0625em)}.breadcrumb-item:first-child{margin-left:0}.breadcrumb-item-selected:after,.breadcrumb-item[aria-current]:not([aria-current=false]):after{content:none}.breadcrumb-item-selected a{color:var(--fgColor-default);cursor:default!important;-webkit-text-decoration:none!important;text-decoration:none!important}
1
+ .breadcrumb-item{display:inline-block;list-style:none;margin-left:-.35em}.breadcrumb-item:after{border-right:.1em solid var(--borderColor-neutral-emphasis);content:"";display:inline-block;height:.8em;margin:0 .5em;transform:rotate(15deg) translateY(.0625em)}.breadcrumb-item:first-child{margin-left:0}.breadcrumb-item-selected:after,.breadcrumb-item[aria-current]:not([aria-current=false]):after{content:none}.breadcrumb-item-selected a{color:var(--fgColor-default);cursor:default!important;-webkit-text-decoration:none!important;text-decoration:none!important}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.25.0-rc.f334329d",
3
+ "version": "0.25.1-rc.6bf8e3c6",
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",
@@ -62,7 +62,7 @@
62
62
  "@github/markdownlint-github": "^0.6.0",
63
63
  "@github/prettier-config": "0.0.6",
64
64
  "@playwright/test": "^1.35.1",
65
- "@primer/css": "21.2.2",
65
+ "@primer/css": "21.3.1",
66
66
  "@primer/primitives": "^8.1.0",
67
67
  "@primer/stylelint-config": "^12.7.2",
68
68
  "@rollup/plugin-node-resolve": "^15.2.3",
@@ -71,7 +71,7 @@
71
71
  "@typescript-eslint/parser": "^6.0.0",
72
72
  "axe-core": "^4.7.1",
73
73
  "chokidar-cli": "^3.0.0",
74
- "cssnano": "^6.0.1",
74
+ "cssnano": "^7.0.1",
75
75
  "eslint": "^8.23.1",
76
76
  "eslint-plugin-custom-elements": "^0.0.8",
77
77
  "eslint-plugin-github": "^4.9.2",
@@ -10921,6 +10921,32 @@
10921
10921
  "color-contrast"
10922
10922
  ]
10923
10923
  }
10924
+ },
10925
+ {
10926
+ "preview_path": "primer/beta/breadcrumbs/with_beta_truncate",
10927
+ "name": "with_beta_truncate",
10928
+ "snapshot": "true",
10929
+ "skip_rules": {
10930
+ "wont_fix": [
10931
+ "region"
10932
+ ],
10933
+ "will_fix": [
10934
+ "color-contrast"
10935
+ ]
10936
+ }
10937
+ },
10938
+ {
10939
+ "preview_path": "primer/beta/breadcrumbs/with_deprecated_truncate",
10940
+ "name": "with_deprecated_truncate",
10941
+ "snapshot": "true",
10942
+ "skip_rules": {
10943
+ "wont_fix": [
10944
+ "region"
10945
+ ],
10946
+ "will_fix": [
10947
+ "color-contrast"
10948
+ ]
10949
+ }
10924
10950
  }
10925
10951
  ],
10926
10952
  "subcomponents": [
@@ -11630,7 +11656,7 @@
11630
11656
  {
11631
11657
  "fully_qualified_name": "Primer::Beta::ClipboardCopy",
11632
11658
  "description": "Use `ClipboardCopy` to copy element text content or input values to the clipboard.\n\nThis component by itself is not styled as a button, and can therefore only be used in limited circumstances.\nIf you're looking for a button, consider using {{#link_to_component}}Primer::Beta::ClipboardCopyButton{{/link_to_component}}\ninstead.",
11633
- "accessibility_docs": "Always set an accessible label to help the user interact with the component.",
11659
+ "accessibility_docs": "Always set an accessible label to help the user interact with the component.\n\nThis component has a built-in `aria-live` region that announces \"Copied!\" when the copy element is pressed.",
11634
11660
  "is_form_component": false,
11635
11661
  "is_published": true,
11636
11662
  "requires_js": true,
@@ -11797,7 +11823,7 @@
11797
11823
  {
11798
11824
  "fully_qualified_name": "Primer::Beta::ClipboardCopyButton",
11799
11825
  "description": "`ClipboardCopyButton` uses the `ClipboardCopy` component to copy text to the clipboard,\nstyled as a Primer button. It can be used wherever a button is desired, and works well\nwith components like `ButtonGroup`.",
11800
- "accessibility_docs": null,
11826
+ "accessibility_docs": "This component has a built-in `aria-live` region that announces \"Copied!\" when the copy button is pressed.",
11801
11827
  "is_form_component": false,
11802
11828
  "is_published": true,
11803
11829
  "requires_js": false,
@@ -2011,6 +2011,32 @@
2011
2011
  "color-contrast"
2012
2012
  ]
2013
2013
  }
2014
+ },
2015
+ {
2016
+ "preview_path": "primer/beta/breadcrumbs/with_beta_truncate",
2017
+ "name": "with_beta_truncate",
2018
+ "snapshot": "true",
2019
+ "skip_rules": {
2020
+ "wont_fix": [
2021
+ "region"
2022
+ ],
2023
+ "will_fix": [
2024
+ "color-contrast"
2025
+ ]
2026
+ }
2027
+ },
2028
+ {
2029
+ "preview_path": "primer/beta/breadcrumbs/with_deprecated_truncate",
2030
+ "name": "with_deprecated_truncate",
2031
+ "snapshot": "true",
2032
+ "skip_rules": {
2033
+ "wont_fix": [
2034
+ "region"
2035
+ ],
2036
+ "will_fix": [
2037
+ "color-contrast"
2038
+ ]
2039
+ }
2014
2040
  }
2015
2041
  ]
2016
2042
  },