@primer/view-components 0.25.0-rc.f334329d → 0.25.1-rc.8c7e46b4
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.25.
|
3
|
+
"version": "0.25.1-rc.8c7e46b4",
|
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.
|
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": "^
|
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",
|
package/static/info_arch.json
CHANGED
@@ -11630,7 +11630,7 @@
|
|
11630
11630
|
{
|
11631
11631
|
"fully_qualified_name": "Primer::Beta::ClipboardCopy",
|
11632
11632
|
"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.",
|
11633
|
+
"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
11634
|
"is_form_component": false,
|
11635
11635
|
"is_published": true,
|
11636
11636
|
"requires_js": true,
|
@@ -11797,7 +11797,7 @@
|
|
11797
11797
|
{
|
11798
11798
|
"fully_qualified_name": "Primer::Beta::ClipboardCopyButton",
|
11799
11799
|
"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":
|
11800
|
+
"accessibility_docs": "This component has a built-in `aria-live` region that announces \"Copied!\" when the copy button is pressed.",
|
11801
11801
|
"is_form_component": false,
|
11802
11802
|
"is_published": true,
|
11803
11803
|
"requires_js": false,
|