@strapi/plugin-documentation 4.11.3 → 4.11.5

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.
@@ -89,7 +89,6 @@ describe('Plugin | Documentation | PluginPage', () => {
89
89
  font-size: 0.75rem;
90
90
  line-height: 1.33;
91
91
  font-weight: 600;
92
- line-height: 0;
93
92
  color: #ffffff;
94
93
  }
95
94
 
@@ -57,7 +57,15 @@ const SettingsPage = () => {
57
57
  onSubmit={handleUpdateSettingsSubmit}
58
58
  validationSchema={schema}
59
59
  >
60
- {({ handleSubmit, values, handleChange, errors, setFieldTouched, setFieldValue }) => {
60
+ {({
61
+ handleSubmit,
62
+ values,
63
+ handleChange,
64
+ errors,
65
+ setFieldTouched,
66
+ setFieldValue,
67
+ dirty,
68
+ }) => {
61
69
  return (
62
70
  <Form noValidate onSubmit={handleSubmit}>
63
71
  <HeaderLayout
@@ -71,7 +79,7 @@ const SettingsPage = () => {
71
79
  })}
72
80
  primaryAction={
73
81
  <CheckPermissions permissions={PERMISSIONS.update}>
74
- <Button type="submit" startIcon={<Check />}>
82
+ <Button type="submit" startIcon={<Check />} disabled={!dirty}>
75
83
  {formatMessage({
76
84
  id: getTrad('pages.SettingsPage.Button.save'),
77
85
  defaultMessage: 'Save',
@@ -81,7 +81,6 @@ describe('Plugin | Documentation | SettingsPage', () => {
81
81
  font-size: 0.75rem;
82
82
  line-height: 1.33;
83
83
  font-weight: 600;
84
- line-height: 0;
85
84
  color: #ffffff;
86
85
  }
87
86
 
@@ -517,8 +516,9 @@ describe('Plugin | Documentation | SettingsPage', () => {
517
516
  </h1>
518
517
  </div>
519
518
  <button
520
- aria-disabled="false"
519
+ aria-disabled="true"
521
520
  class="c7 c8 c9 c10"
521
+ disabled=""
522
522
  type="submit"
523
523
  >
524
524
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-documentation",
3
- "version": "4.11.3",
3
+ "version": "4.11.5",
4
4
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,10 +30,10 @@
30
30
  "test:front:watch:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll"
31
31
  },
32
32
  "dependencies": {
33
- "@strapi/design-system": "1.8.0",
34
- "@strapi/helper-plugin": "4.11.3",
35
- "@strapi/icons": "1.8.0",
36
- "@strapi/utils": "4.11.3",
33
+ "@strapi/design-system": "1.8.1",
34
+ "@strapi/helper-plugin": "4.11.5",
35
+ "@strapi/icons": "1.8.1",
36
+ "@strapi/utils": "4.11.5",
37
37
  "bcryptjs": "2.4.3",
38
38
  "cheerio": "^1.0.0-rc.12",
39
39
  "formik": "2.4.0",
@@ -46,7 +46,7 @@
46
46
  "react-helmet": "^6.1.0",
47
47
  "react-intl": "6.4.1",
48
48
  "react-query": "3.39.3",
49
- "react-redux": "8.0.5",
49
+ "react-redux": "8.1.1",
50
50
  "redux": "^4.2.1",
51
51
  "reselect": "^4.1.7",
52
52
  "swagger-ui-dist": "4.19.0",
@@ -80,5 +80,5 @@
80
80
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
81
81
  "kind": "plugin"
82
82
  },
83
- "gitHead": "aac28413ada24fb8fff55c2908343cc3b8a2a3e0"
83
+ "gitHead": "7bdef3d27843c78666c85f30dc2f1bcf4d6b805e"
84
84
  }