openproject-primer_view_components 0.52.4 → 0.53.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/app/assets/javascripts/components/primer/open_project/danger_dialog_form_helper.d.ts +13 -0
- data/app/assets/javascripts/components/primer/primer.d.ts +1 -1
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/components/primer/open_project/{danger_confirmation_dialog → danger_dialog}/confirmation_check_box.rb +5 -5
- data/app/components/primer/open_project/{danger_confirmation_dialog → danger_dialog}/form_wrapper.rb +2 -2
- data/app/components/primer/open_project/{danger_confirmation_dialog.html.erb → danger_dialog.html.erb} +2 -2
- data/app/components/primer/open_project/{danger_confirmation_dialog.rb → danger_dialog.rb} +16 -12
- data/app/components/primer/open_project/danger_dialog_form_helper.d.ts +13 -0
- data/app/components/primer/open_project/{danger_confirmation_dialog_form_helper.js → danger_dialog_form_helper.js} +19 -14
- data/app/components/primer/open_project/danger_dialog_form_helper.ts +41 -0
- data/app/components/primer/open_project/feedback_dialog.rb +3 -2
- data/app/components/primer/primer.d.ts +1 -1
- data/app/components/primer/primer.js +1 -1
- data/app/components/primer/primer.ts +1 -1
- data/lib/primer/view_components/version.rb +2 -2
- data/previews/primer/open_project/danger_dialog_preview/deletion_form.rb +23 -0
- data/previews/primer/open_project/{danger_confirmation_dialog_preview → danger_dialog_preview}/playground.html.erb +4 -3
- data/previews/primer/open_project/{danger_confirmation_dialog_preview → danger_dialog_preview}/with_additional_details.html.erb +1 -1
- data/previews/primer/open_project/{danger_confirmation_dialog_preview → danger_dialog_preview}/with_form.html.erb +2 -2
- data/previews/primer/open_project/danger_dialog_preview/with_form_builder_form.html.erb +18 -0
- data/previews/primer/open_project/danger_dialog_preview/with_form_builder_form_test.html.erb +17 -0
- data/previews/primer/open_project/{danger_confirmation_dialog_preview → danger_dialog_preview}/with_form_test.html.erb +2 -2
- data/previews/primer/open_project/{danger_confirmation_dialog_preview.rb → danger_dialog_preview.rb} +18 -6
- data/previews/primer/open_project/feedback_dialog_preview/playground.html.erb +1 -1
- data/previews/primer/open_project/feedback_dialog_preview/with_additional_details.html.erb +1 -1
- data/previews/primer/open_project/feedback_dialog_preview/with_custom_footer.html.erb +1 -1
- data/static/arguments.json +36 -12
- data/static/audited_at.json +3 -3
- data/static/constants.json +8 -8
- data/static/info_arch.json +63 -26
- data/static/previews.json +24 -11
- data/static/statuses.json +3 -3
- metadata +19 -18
- data/app/assets/javascripts/components/primer/open_project/danger_confirmation_dialog_form_helper.d.ts +0 -13
- data/app/components/primer/open_project/danger_confirmation_dialog_form_helper.d.ts +0 -13
- data/app/components/primer/open_project/danger_confirmation_dialog_form_helper.ts +0 -36
- data/previews/primer/open_project/danger_confirmation_dialog_preview/with_form_builder_form.html.erb +0 -14
- data/previews/primer/open_project/danger_confirmation_dialog_preview/with_form_builder_form_test.html.erb +0 -13
- /data/app/components/primer/open_project/{danger_confirmation_dialog → danger_dialog}/form_wrapper.html.erb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a5ebd3e6efce535bd30f0428fd7cdd7771cef126a196dd41ff71519ac80a427
|
4
|
+
data.tar.gz: fec7772667aff0aa82f06cc19740eeb121e3228aa3142645e2c86938e58e57f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb26f8fa7cf53c73d6560c002e1568b6a217c18e4ad462464ed1f510507c7030b63a2986e84c7a1d8d1c64d952d5166226ae5948839ae418d18a94b7489d331a
|
7
|
+
data.tar.gz: ddd1fe830a42b9bfd9fe6918c057d7e90c323e69b68e8233a6555f1732107672d07331358a5519f8d2173e6206e313d37c851bccc12b15b925006f19bf8373c9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,35 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.53.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#236](https://github.com/opf/primer_view_components/pull/236) [`de1a205`](https://github.com/opf/primer_view_components/commit/de1a205fc5ddfec39373bf579c2a8b2417ad9ca3) Thanks [@myabc](https://github.com/myabc)! - Fix regression: callers unable to set custom button text
|
8
|
+
|
9
|
+
- [#237](https://github.com/opf/primer_view_components/pull/237) [`c2c98cf`](https://github.com/opf/primer_view_components/commit/c2c98cfc4bfc6cf62f116016a04015d7404d0a63) Thanks [@myabc](https://github.com/myabc)! - Make DangerDialog title param required: Axe will raise accessibility violations in the absence of a title. We want to ensure best a11y practice, so this change makes it a required param and documents it.
|
10
|
+
|
11
|
+
This is a BREAKING change.
|
12
|
+
|
13
|
+
- [#237](https://github.com/opf/primer_view_components/pull/237) [`694bdae`](https://github.com/opf/primer_view_components/commit/694bdae3523774a92632ce7c53c235cdadf29e3f) Thanks [@myabc](https://github.com/myabc)! - Make FeedbackDialog title param required: Axe will raise accessibility violations in the absence of a title. We want to ensure best a11y practice, so this change makes it a required param and documents it.
|
14
|
+
|
15
|
+
This is a BREAKING change.
|
16
|
+
|
17
|
+
## 0.53.0
|
18
|
+
|
19
|
+
### Minor Changes
|
20
|
+
|
21
|
+
- [#234](https://github.com/opf/primer_view_components/pull/234) [`cdb335c`](https://github.com/opf/primer_view_components/commit/cdb335ce1d5caad3cde8d4ee945461516f229577) Thanks [@myabc](https://github.com/myabc)! - [#60588] Implementation of Danger Dialog, a generalised dialog for "potentially dangerous" actions such as item deletion.
|
22
|
+
There are two variants:
|
23
|
+
|
24
|
+
1. **the default (or "warning") variant**, requiring the user to click the dialog confirmation button to continue.
|
25
|
+
2. **the second confirmation variant**, which requires the user to check a check box AND click confirm to continue with the operation.
|
26
|
+
|
27
|
+
This is a BREAKING change, which renames `DangerConfirmationDialog` to `DangerDialog`. Callers will need to update the class name and consider which behaviour they wish to present to the end user. The confirmation variant behaviour is enabled by defining a `confirmation_check_box` slot.
|
28
|
+
|
29
|
+
### Patch Changes
|
30
|
+
|
31
|
+
- [#234](https://github.com/opf/primer_view_components/pull/234) [`de20e6d`](https://github.com/opf/primer_view_components/commit/de20e6d74e1a5f4a97799d4664eed51e17e729cf) Thanks [@myabc](https://github.com/myabc)! - Fix DangerDialog body scroll behaviour: the dialog's body scroll behaviour should be in parity with that of the underlying `Primer::Alpha::Dialog` component.
|
32
|
+
|
3
33
|
## 0.52.4
|
4
34
|
|
5
35
|
### Patch Changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
declare class DangerDialogFormHelperElement extends HTMLElement {
|
2
|
+
#private;
|
3
|
+
checkbox: HTMLInputElement | undefined;
|
4
|
+
get submitButton(): HTMLButtonElement | HTMLInputElement;
|
5
|
+
connectedCallback(): void;
|
6
|
+
toggle(): void;
|
7
|
+
}
|
8
|
+
declare global {
|
9
|
+
interface Window {
|
10
|
+
DangerDialogFormHelperElement: typeof DangerDialogFormHelperElement;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
export {};
|
@@ -28,4 +28,4 @@ import './alpha/select_panel_element';
|
|
28
28
|
import './open_project/page_header_element';
|
29
29
|
import './open_project/zen_mode_button';
|
30
30
|
import './open_project/sub_header_element';
|
31
|
-
import './open_project/
|
31
|
+
import './open_project/danger_dialog_form_helper';
|