docusaurus-theme-openapi-docs 0.0.0-448 → 0.0.0-449

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.
@@ -23,7 +23,10 @@ function FormTextInput({
23
23
  password,
24
24
  onChange
25
25
  }) {
26
- return <input className={_stylesModule.default.input} type={password ? "password" : "text"} placeholder={placeholder} value={value} onChange={onChange} autoComplete="off" />;
26
+ var _placeholder;
27
+
28
+ placeholder = (_placeholder = placeholder) === null || _placeholder === void 0 ? void 0 : _placeholder.split("\n")[0];
29
+ return <input className={_stylesModule.default.input} type={password ? "password" : "text"} placeholder={placeholder} title={placeholder} value={value} onChange={onChange} autoComplete="off" />;
27
30
  }
28
31
 
29
32
  var _default = FormTextInput;
@@ -8,11 +8,13 @@ import React from "react";
8
8
  import styles from "./styles.module.css";
9
9
 
10
10
  function FormTextInput({ value, placeholder, password, onChange }) {
11
+ placeholder = placeholder?.split("\n")[0];
11
12
  return (
12
13
  <input
13
14
  className={styles.input}
14
15
  type={password ? "password" : "text"}
15
16
  placeholder={placeholder}
17
+ title={placeholder}
16
18
  value={value}
17
19
  onChange={onChange}
18
20
  autoComplete="off"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-theme-openapi-docs",
3
3
  "description": "OpenAPI theme for Docusaurus.",
4
- "version": "0.0.0-448",
4
+ "version": "0.0.0-449",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -50,7 +50,7 @@
50
50
  "buffer": "^6.0.3",
51
51
  "clsx": "^1.1.1",
52
52
  "crypto-js": "^4.1.1",
53
- "docusaurus-plugin-openapi-docs": "0.0.0-448",
53
+ "docusaurus-plugin-openapi-docs": "0.0.0-449",
54
54
  "immer": "^9.0.7",
55
55
  "lodash": "^4.17.20",
56
56
  "process": "^0.11.10",
@@ -69,5 +69,5 @@
69
69
  "engines": {
70
70
  "node": ">=14"
71
71
  },
72
- "gitHead": "9ca7fd6049b1e78fb047b1d99ed0bd61df2ffb10"
72
+ "gitHead": "ac8d7ebd3f5ef22b13300fe23ac4b11d5deef095"
73
73
  }
@@ -17,11 +17,13 @@ interface Props {
17
17
  }
18
18
 
19
19
  function FormTextInput({ value, placeholder, password, onChange }: Props) {
20
+ placeholder = placeholder?.split("\n")[0];
20
21
  return (
21
22
  <input
22
23
  className={styles.input}
23
24
  type={password ? "password" : "text"}
24
25
  placeholder={placeholder}
26
+ title={placeholder}
25
27
  value={value}
26
28
  onChange={onChange}
27
29
  autoComplete="off"