@blaze-cms/admin 0.146.0-rc-eagle-3.11 → 0.146.0-rc-eagle-3.13
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.
- package/lib/components/PageHeader/TitleEditor.js +1 -2
- package/lib/components/PageHeader/TitleEditor.js.map +1 -1
- package/lib-es/components/PageHeader/TitleEditor.js +1 -2
- package/lib-es/components/PageHeader/TitleEditor.js.map +1 -1
- package/package.json +12 -12
- package/src/components/PageHeader/TitleEditor.js +1 -2
|
@@ -17,7 +17,6 @@ const TitleEditor = ({
|
|
|
17
17
|
const [value, setValue] = (0, _react.useState)(title);
|
|
18
18
|
const inputRef = (0, _react.useRef)(null);
|
|
19
19
|
// Blur and the tick/cross clicks can both fire for one edit; only the first wins.
|
|
20
|
-
// Blur discards: a change is only kept through Enter or the tick.
|
|
21
20
|
const isDone = (0, _react.useRef)(false);
|
|
22
21
|
(0, _react.useEffect)(() => {
|
|
23
22
|
if (inputRef.current) {
|
|
@@ -60,7 +59,7 @@ const TitleEditor = ({
|
|
|
60
59
|
target
|
|
61
60
|
}) => setValue(target.value),
|
|
62
61
|
onKeyDown: onKeyDown,
|
|
63
|
-
onBlur:
|
|
62
|
+
onBlur: save,
|
|
64
63
|
"aria-label": "Title",
|
|
65
64
|
"data-testid": "page-header-title-input"
|
|
66
65
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleEditor.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_HeaderIconButton","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TitleEditor","title","onSave","onCancel","value","setValue","useState","inputRef","useRef","isDone","useEffect","current","focus","select","finish","callback","save","nextTitle","trim","cancel","onKeyDown","event","key","preventDefault","keepInputFocus","createElement","className","ref","type","onChange","target","onBlur","icon","label","onMouseDown","onClick","propTypes","PropTypes","string","isRequired","func","_default","exports"],"sources":["../../../src/components/PageHeader/TitleEditor.js"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport HeaderIconButton from './HeaderIconButton';\n\nconst TitleEditor = ({ title, onSave, onCancel }) => {\n const [value, setValue] = useState(title);\n const inputRef = useRef(null);\n // Blur and the tick/cross clicks can both fire for one edit; only the first wins.\n
|
|
1
|
+
{"version":3,"file":"TitleEditor.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_HeaderIconButton","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TitleEditor","title","onSave","onCancel","value","setValue","useState","inputRef","useRef","isDone","useEffect","current","focus","select","finish","callback","save","nextTitle","trim","cancel","onKeyDown","event","key","preventDefault","keepInputFocus","createElement","className","ref","type","onChange","target","onBlur","icon","label","onMouseDown","onClick","propTypes","PropTypes","string","isRequired","func","_default","exports"],"sources":["../../../src/components/PageHeader/TitleEditor.js"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport HeaderIconButton from './HeaderIconButton';\n\nconst TitleEditor = ({ title, onSave, onCancel }) => {\n const [value, setValue] = useState(title);\n const inputRef = useRef(null);\n // Blur and the tick/cross clicks can both fire for one edit; only the first wins.\n const isDone = useRef(false);\n\n useEffect(() => {\n if (inputRef.current) {\n inputRef.current.focus();\n inputRef.current.select();\n }\n }, []);\n\n const finish = callback => {\n if (isDone.current) return;\n isDone.current = true;\n callback();\n };\n\n const save = () =>\n finish(() => {\n const nextTitle = value.trim();\n if (!nextTitle || nextTitle === title) {\n onCancel();\n return;\n }\n onSave(nextTitle);\n });\n\n const cancel = () => finish(onCancel);\n\n const onKeyDown = event => {\n if (event.key === 'Enter') {\n event.preventDefault();\n save();\n } else if (event.key === 'Escape') {\n event.preventDefault();\n cancel();\n }\n };\n\n const keepInputFocus = event => event.preventDefault();\n\n return (\n <div className=\"page-header__title-editor\">\n <input\n ref={inputRef}\n type=\"text\"\n className=\"page-header__title-input\"\n value={value}\n onChange={({ target }) => setValue(target.value)}\n onKeyDown={onKeyDown}\n onBlur={save}\n aria-label=\"Title\"\n data-testid=\"page-header-title-input\"\n />\n <div className=\"page-header__title-editor-actions\">\n <HeaderIconButton\n icon=\"check\"\n label=\"Save title\"\n onMouseDown={keepInputFocus}\n onClick={save}\n data-testid=\"page-header-title-save\"\n />\n <HeaderIconButton\n icon=\"close\"\n label=\"Cancel\"\n onMouseDown={keepInputFocus}\n onClick={cancel}\n data-testid=\"page-header-title-cancel\"\n />\n </div>\n </div>\n );\n};\n\nTitleEditor.propTypes = {\n title: PropTypes.string.isRequired,\n onSave: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired\n};\n\nexport default TitleEditor;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAAkD,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EA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AgB,OAAA,CAAAkC,aAAA,CAAC7C,iBAAA,CAAAW,OAAgB;IACfyC,IAAI,EAAC,OAAO;IACZC,KAAK,EAAC,QAAQ;IACdC,WAAW,EAAEV,cAAe;IAC5BW,OAAO,EAAEhB,MAAO;IAChB,eAAY;EAA0B,CACvC,CACE,CACF,CAAC;AAEV,CAAC;AAEDnB,WAAW,CAACoC,SAAS,GAAG;EACtBnC,KAAK,EAAEoC,kBAAS,CAACC,MAAM,CAACC,UAAU;EAClCrC,MAAM,EAAEmC,kBAAS,CAACG,IAAI,CAACD,UAAU;EACjCpC,QAAQ,EAAEkC,kBAAS,CAACG,IAAI,CAACD;AAC3B,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAnD,OAAA,GAEaS,WAAW","ignoreList":[]}
|
|
@@ -9,7 +9,6 @@ const TitleEditor = ({
|
|
|
9
9
|
const [value, setValue] = useState(title);
|
|
10
10
|
const inputRef = useRef(null);
|
|
11
11
|
// Blur and the tick/cross clicks can both fire for one edit; only the first wins.
|
|
12
|
-
// Blur discards: a change is only kept through Enter or the tick.
|
|
13
12
|
const isDone = useRef(false);
|
|
14
13
|
useEffect(() => {
|
|
15
14
|
if (inputRef.current) {
|
|
@@ -52,7 +51,7 @@ const TitleEditor = ({
|
|
|
52
51
|
target
|
|
53
52
|
}) => setValue(target.value),
|
|
54
53
|
onKeyDown: onKeyDown,
|
|
55
|
-
onBlur:
|
|
54
|
+
onBlur: save,
|
|
56
55
|
"aria-label": "Title",
|
|
57
56
|
"data-testid": "page-header-title-input"
|
|
58
57
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleEditor.js","names":["React","useEffect","useRef","useState","PropTypes","HeaderIconButton","TitleEditor","title","onSave","onCancel","value","setValue","inputRef","isDone","current","focus","select","finish","callback","save","nextTitle","trim","cancel","onKeyDown","event","key","preventDefault","keepInputFocus","createElement","className","ref","type","onChange","target","onBlur","icon","label","onMouseDown","onClick","propTypes","string","isRequired","func"],"sources":["../../../src/components/PageHeader/TitleEditor.js"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport HeaderIconButton from './HeaderIconButton';\n\nconst TitleEditor = ({ title, onSave, onCancel }) => {\n const [value, setValue] = useState(title);\n const inputRef = useRef(null);\n // Blur and the tick/cross clicks can both fire for one edit; only the first wins.\n
|
|
1
|
+
{"version":3,"file":"TitleEditor.js","names":["React","useEffect","useRef","useState","PropTypes","HeaderIconButton","TitleEditor","title","onSave","onCancel","value","setValue","inputRef","isDone","current","focus","select","finish","callback","save","nextTitle","trim","cancel","onKeyDown","event","key","preventDefault","keepInputFocus","createElement","className","ref","type","onChange","target","onBlur","icon","label","onMouseDown","onClick","propTypes","string","isRequired","func"],"sources":["../../../src/components/PageHeader/TitleEditor.js"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport HeaderIconButton from './HeaderIconButton';\n\nconst TitleEditor = ({ title, onSave, onCancel }) => {\n const [value, setValue] = useState(title);\n const inputRef = useRef(null);\n // Blur and the tick/cross clicks can both fire for one edit; only the first wins.\n const isDone = useRef(false);\n\n useEffect(() => {\n if (inputRef.current) {\n inputRef.current.focus();\n inputRef.current.select();\n }\n }, []);\n\n const finish = callback => {\n if (isDone.current) return;\n isDone.current = true;\n callback();\n };\n\n const save = () =>\n finish(() => {\n const nextTitle = value.trim();\n if (!nextTitle || nextTitle === title) {\n onCancel();\n return;\n }\n onSave(nextTitle);\n });\n\n const cancel = () => finish(onCancel);\n\n const onKeyDown = event => {\n if (event.key === 'Enter') {\n event.preventDefault();\n save();\n } else if (event.key === 'Escape') {\n event.preventDefault();\n cancel();\n }\n };\n\n const keepInputFocus = event => event.preventDefault();\n\n return (\n <div className=\"page-header__title-editor\">\n <input\n ref={inputRef}\n type=\"text\"\n className=\"page-header__title-input\"\n value={value}\n onChange={({ target }) => setValue(target.value)}\n onKeyDown={onKeyDown}\n onBlur={save}\n aria-label=\"Title\"\n data-testid=\"page-header-title-input\"\n />\n <div className=\"page-header__title-editor-actions\">\n <HeaderIconButton\n icon=\"check\"\n label=\"Save title\"\n onMouseDown={keepInputFocus}\n onClick={save}\n data-testid=\"page-header-title-save\"\n />\n <HeaderIconButton\n icon=\"close\"\n label=\"Cancel\"\n onMouseDown={keepInputFocus}\n onClick={cancel}\n data-testid=\"page-header-title-cancel\"\n />\n </div>\n </div>\n );\n};\n\nTitleEditor.propTypes = {\n title: PropTypes.string.isRequired,\n onSave: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired\n};\n\nexport default TitleEditor;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,gBAAgB,MAAM,oBAAoB;AAEjD,MAAMC,WAAW,GAAGA,CAAC;EAAEC,KAAK;EAAEC,MAAM;EAAEC;AAAS,CAAC,KAAK;EACnD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGR,QAAQ,CAACI,KAAK,CAAC;EACzC,MAAMK,QAAQ,GAAGV,MAAM,CAAC,IAAI,CAAC;EAC7B;EACA,MAAMW,MAAM,GAAGX,MAAM,CAAC,KAAK,CAAC;EAE5BD,SAAS,CAAC,MAAM;IACd,IAAIW,QAAQ,CAACE,OAAO,EAAE;MACpBF,QAAQ,CAACE,OAAO,CAACC,KAAK,CAAC,CAAC;MACxBH,QAAQ,CAACE,OAAO,CAACE,MAAM,CAAC,CAAC;IAC3B;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,MAAM,GAAGC,QAAQ,IAAI;IACzB,IAAIL,MAAM,CAACC,OAAO,EAAE;IACpBD,MAAM,CAACC,OAAO,GAAG,IAAI;IACrBI,QAAQ,CAAC,CAAC;EACZ,CAAC;EAED,MAAMC,IAAI,GAAGA,CAAA,KACXF,MAAM,CAAC,MAAM;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AwB,CACrC,CAAC,eACFnB,KAAA,CAAA4B,aAAA,CAACvB,gBAAgB;IACf8B,IAAI,EAAC,OAAO;IACZC,KAAK,EAAC,QAAQ;IACdC,WAAW,EAAEV,cAAe;IAC5BW,OAAO,EAAEhB,MAAO;IAChB,eAAY;EAA0B,CACvC,CACE,CACF,CAAC;AAEV,CAAC;AAEDhB,WAAW,CAACiC,SAAS,GAAG;EACtBhC,KAAK,EAAEH,SAAS,CAACoC,MAAM,CAACC,UAAU;EAClCjC,MAAM,EAAEJ,SAAS,CAACsC,IAAI,CAACD,UAAU;EACjChC,QAAQ,EAAEL,SAAS,CAACsC,IAAI,CAACD;AAC3B,CAAC;AAED,eAAenC,WAAW","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/admin",
|
|
3
|
-
"version": "0.146.0-rc-eagle-3.
|
|
3
|
+
"version": "0.146.0-rc-eagle-3.13",
|
|
4
4
|
"description": "Blaze example project",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"license": "GPL-3.0",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@apollo/client": "3.13.8",
|
|
36
|
-
"@blaze-cms/admin-ui-utils": "0.146.0-rc-eagle-3.
|
|
36
|
+
"@blaze-cms/admin-ui-utils": "0.146.0-rc-eagle-3.13",
|
|
37
37
|
"@blaze-cms/core-errors-ui": "0.146.0-rc-eagle-3.0",
|
|
38
38
|
"@blaze-cms/core-ui": "0.146.0-rc-eagle-3.6",
|
|
39
|
-
"@blaze-cms/plugin-admin-core-ui": "0.146.0-rc-eagle-3.
|
|
40
|
-
"@blaze-cms/plugin-auth-local-ui": "0.146.0-rc-eagle-3.
|
|
41
|
-
"@blaze-cms/plugin-auth-ui": "0.146.0-rc-eagle-3.
|
|
42
|
-
"@blaze-cms/plugin-data-ui": "0.146.0-rc-eagle-3.
|
|
43
|
-
"@blaze-cms/plugin-google-maps-ui": "0.146.0-rc-eagle-3.
|
|
44
|
-
"@blaze-cms/plugin-gtm-ui": "0.146.0-rc-eagle-3.
|
|
45
|
-
"@blaze-cms/plugin-media-ui": "0.146.0-rc-eagle-3.
|
|
46
|
-
"@blaze-cms/plugin-page-builder-ui": "0.146.0-rc-eagle-3.
|
|
47
|
-
"@blaze-cms/react-form-builder": "0.146.0-rc-eagle-3.
|
|
39
|
+
"@blaze-cms/plugin-admin-core-ui": "0.146.0-rc-eagle-3.13",
|
|
40
|
+
"@blaze-cms/plugin-auth-local-ui": "0.146.0-rc-eagle-3.13",
|
|
41
|
+
"@blaze-cms/plugin-auth-ui": "0.146.0-rc-eagle-3.13",
|
|
42
|
+
"@blaze-cms/plugin-data-ui": "0.146.0-rc-eagle-3.13",
|
|
43
|
+
"@blaze-cms/plugin-google-maps-ui": "0.146.0-rc-eagle-3.13",
|
|
44
|
+
"@blaze-cms/plugin-gtm-ui": "0.146.0-rc-eagle-3.13",
|
|
45
|
+
"@blaze-cms/plugin-media-ui": "0.146.0-rc-eagle-3.13",
|
|
46
|
+
"@blaze-cms/plugin-page-builder-ui": "0.146.0-rc-eagle-3.13",
|
|
47
|
+
"@blaze-cms/react-form-builder": "0.146.0-rc-eagle-3.13",
|
|
48
48
|
"@blaze-cms/setup-ui": "0.146.0-rc-eagle-3.0",
|
|
49
49
|
"@blaze-react/alert": "^0.7.0",
|
|
50
50
|
"@blaze-react/modal": "^0.7.0",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"lib/*",
|
|
66
66
|
"lib-es/*"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "6be4e7667fe60c253af24e1f7833efd450e4186b"
|
|
69
69
|
}
|
|
@@ -6,7 +6,6 @@ const TitleEditor = ({ title, onSave, onCancel }) => {
|
|
|
6
6
|
const [value, setValue] = useState(title);
|
|
7
7
|
const inputRef = useRef(null);
|
|
8
8
|
// Blur and the tick/cross clicks can both fire for one edit; only the first wins.
|
|
9
|
-
// Blur discards: a change is only kept through Enter or the tick.
|
|
10
9
|
const isDone = useRef(false);
|
|
11
10
|
|
|
12
11
|
useEffect(() => {
|
|
@@ -55,7 +54,7 @@ const TitleEditor = ({ title, onSave, onCancel }) => {
|
|
|
55
54
|
value={value}
|
|
56
55
|
onChange={({ target }) => setValue(target.value)}
|
|
57
56
|
onKeyDown={onKeyDown}
|
|
58
|
-
onBlur={
|
|
57
|
+
onBlur={save}
|
|
59
58
|
aria-label="Title"
|
|
60
59
|
data-testid="page-header-title-input"
|
|
61
60
|
/>
|