@blaze-cms/react-page-builder 0.143.0-alpha.1 → 0.143.0-core-styles.7
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/CHANGELOG.md +10 -2
- package/lib/components/DateTime/DateTime.js +5 -5
- package/lib/components/DateTime/DateTime.js.map +1 -1
- package/lib-es/components/DateTime/DateTime.js +5 -5
- package/lib-es/components/DateTime/DateTime.js.map +1 -1
- package/package.json +10 -10
- package/src/components/DateTime/DateTime.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [0.143.0-
|
|
6
|
+
# [0.143.0-core-styles.7](https://github.com/thebyte9/blaze/compare/v0.143.0-core-styles.6...v0.143.0-core-styles.7) (2024-06-18)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
9
9
|
|
|
@@ -11,7 +11,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
# [0.143.0-
|
|
14
|
+
# [0.143.0-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.142.1-core-styles.1...v0.143.0-core-styles.0) (2024-06-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.142.1-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.142.0...v0.142.1-core-styles.0) (2024-06-10)
|
|
15
23
|
|
|
16
24
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
17
25
|
|
|
@@ -16,13 +16,13 @@ var DateTime = function DateTime(_ref) {
|
|
|
16
16
|
var format = _ref.format,
|
|
17
17
|
customFormat = _ref.customFormat,
|
|
18
18
|
modifier = _ref.modifier;
|
|
19
|
-
var dateFormat = customFormat
|
|
19
|
+
var dateFormat = customFormat || format;
|
|
20
20
|
if (!dateFormat) return null;
|
|
21
|
-
var
|
|
21
|
+
var formattedDate = (0, _dayjs["default"])().format(dateFormat);
|
|
22
22
|
return /*#__PURE__*/_react["default"].createElement(_Wrapper["default"], {
|
|
23
23
|
className: "date",
|
|
24
24
|
modifiers: modifier
|
|
25
|
-
},
|
|
25
|
+
}, formattedDate);
|
|
26
26
|
};
|
|
27
27
|
DateTime.propTypes = {
|
|
28
28
|
format: _propTypes["default"].string.isRequired,
|
|
@@ -30,8 +30,8 @@ DateTime.propTypes = {
|
|
|
30
30
|
modifier: _propTypes["default"].string
|
|
31
31
|
};
|
|
32
32
|
DateTime.defaultProps = {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
customFormat: '',
|
|
34
|
+
modifier: null
|
|
35
35
|
};
|
|
36
36
|
var _default = exports["default"] = DateTime;
|
|
37
37
|
//# sourceMappingURL=DateTime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.js","names":["_react","_interopRequireDefault","require","_propTypes","_dayjs","_localizedFormat","_Wrapper","dayjs","extend","LocalizedFormat","DateTime","_ref","format","customFormat","modifier","dateFormat","
|
|
1
|
+
{"version":3,"file":"DateTime.js","names":["_react","_interopRequireDefault","require","_propTypes","_dayjs","_localizedFormat","_Wrapper","dayjs","extend","LocalizedFormat","DateTime","_ref","format","customFormat","modifier","dateFormat","formattedDate","createElement","className","modifiers","propTypes","PropTypes","string","isRequired","defaultProps","_default","exports"],"sources":["../../../src/components/DateTime/DateTime.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport dayjs from 'dayjs';\nimport LocalizedFormat from 'dayjs/plugin/localizedFormat';\nimport Wrapper from '../Wrapper';\n\ndayjs.extend(LocalizedFormat);\n\nconst DateTime = ({ format, customFormat, modifier }) => {\n const dateFormat = customFormat || format;\n\n if (!dateFormat) return null;\n\n const formattedDate = dayjs().format(dateFormat);\n\n return (\n <Wrapper className=\"date\" modifiers={modifier}>\n {formattedDate}\n </Wrapper>\n );\n};\n\nDateTime.propTypes = {\n format: PropTypes.string.isRequired,\n customFormat: PropTypes.string,\n modifier: PropTypes.string\n};\n\nDateTime.defaultProps = {\n customFormat: '',\n modifier: null\n};\n\nexport default DateTime;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,gBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,QAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEAK,iBAAK,CAACC,MAAM,CAACC,2BAAe,CAAC;AAE7B,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAA2C;EAAA,IAArCC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;EAChD,IAAMC,UAAU,GAAGF,YAAY,IAAID,MAAM;EAEzC,IAAI,CAACG,UAAU,EAAE,OAAO,IAAI;EAE5B,IAAMC,aAAa,GAAG,IAAAT,iBAAK,EAAC,CAAC,CAACK,MAAM,CAACG,UAAU,CAAC;EAEhD,oBACEf,MAAA,YAAAiB,aAAA,CAACX,QAAA,WAAO;IAACY,SAAS,EAAC,MAAM;IAACC,SAAS,EAAEL;EAAS,GAC3CE,aACM,CAAC;AAEd,CAAC;AAEDN,QAAQ,CAACU,SAAS,GAAG;EACnBR,MAAM,EAAES,qBAAS,CAACC,MAAM,CAACC,UAAU;EACnCV,YAAY,EAAEQ,qBAAS,CAACC,MAAM;EAC9BR,QAAQ,EAAEO,qBAAS,CAACC;AACtB,CAAC;AAEDZ,QAAQ,CAACc,YAAY,GAAG;EACtBX,YAAY,EAAE,EAAE;EAChBC,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,cAEahB,QAAQ"}
|
|
@@ -9,13 +9,13 @@ const DateTime = ({
|
|
|
9
9
|
customFormat,
|
|
10
10
|
modifier
|
|
11
11
|
}) => {
|
|
12
|
-
const dateFormat = customFormat
|
|
12
|
+
const dateFormat = customFormat || format;
|
|
13
13
|
if (!dateFormat) return null;
|
|
14
|
-
const
|
|
14
|
+
const formattedDate = dayjs().format(dateFormat);
|
|
15
15
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
16
16
|
className: "date",
|
|
17
17
|
modifiers: modifier
|
|
18
|
-
},
|
|
18
|
+
}, formattedDate);
|
|
19
19
|
};
|
|
20
20
|
DateTime.propTypes = {
|
|
21
21
|
format: PropTypes.string.isRequired,
|
|
@@ -23,8 +23,8 @@ DateTime.propTypes = {
|
|
|
23
23
|
modifier: PropTypes.string
|
|
24
24
|
};
|
|
25
25
|
DateTime.defaultProps = {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
customFormat: '',
|
|
27
|
+
modifier: null
|
|
28
28
|
};
|
|
29
29
|
export default DateTime;
|
|
30
30
|
//# sourceMappingURL=DateTime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.js","names":["React","PropTypes","dayjs","LocalizedFormat","Wrapper","extend","DateTime","format","customFormat","modifier","dateFormat","
|
|
1
|
+
{"version":3,"file":"DateTime.js","names":["React","PropTypes","dayjs","LocalizedFormat","Wrapper","extend","DateTime","format","customFormat","modifier","dateFormat","formattedDate","createElement","className","modifiers","propTypes","string","isRequired","defaultProps"],"sources":["../../../src/components/DateTime/DateTime.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport dayjs from 'dayjs';\nimport LocalizedFormat from 'dayjs/plugin/localizedFormat';\nimport Wrapper from '../Wrapper';\n\ndayjs.extend(LocalizedFormat);\n\nconst DateTime = ({ format, customFormat, modifier }) => {\n const dateFormat = customFormat || format;\n\n if (!dateFormat) return null;\n\n const formattedDate = dayjs().format(dateFormat);\n\n return (\n <Wrapper className=\"date\" modifiers={modifier}>\n {formattedDate}\n </Wrapper>\n );\n};\n\nDateTime.propTypes = {\n format: PropTypes.string.isRequired,\n customFormat: PropTypes.string,\n modifier: PropTypes.string\n};\n\nDateTime.defaultProps = {\n customFormat: '',\n modifier: null\n};\n\nexport default DateTime;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,MAAM,8BAA8B;AAC1D,OAAOC,OAAO,MAAM,YAAY;AAEhCF,KAAK,CAACG,MAAM,CAACF,eAAe,CAAC;AAE7B,MAAMG,QAAQ,GAAGA,CAAC;EAAEC,MAAM;EAAEC,YAAY;EAAEC;AAAS,CAAC,KAAK;EACvD,MAAMC,UAAU,GAAGF,YAAY,IAAID,MAAM;EAEzC,IAAI,CAACG,UAAU,EAAE,OAAO,IAAI;EAE5B,MAAMC,aAAa,GAAGT,KAAK,CAAC,CAAC,CAACK,MAAM,CAACG,UAAU,CAAC;EAEhD,oBACEV,KAAA,CAAAY,aAAA,CAACR,OAAO;IAACS,SAAS,EAAC,MAAM;IAACC,SAAS,EAAEL;EAAS,GAC3CE,aACM,CAAC;AAEd,CAAC;AAEDL,QAAQ,CAACS,SAAS,GAAG;EACnBR,MAAM,EAAEN,SAAS,CAACe,MAAM,CAACC,UAAU;EACnCT,YAAY,EAAEP,SAAS,CAACe,MAAM;EAC9BP,QAAQ,EAAER,SAAS,CAACe;AACtB,CAAC;AAEDV,QAAQ,CAACY,YAAY,GAAG;EACtBV,YAAY,EAAE,EAAE;EAChBC,QAAQ,EAAE;AACZ,CAAC;AAED,eAAeH,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/react-page-builder",
|
|
3
|
-
"version": "0.143.0-
|
|
3
|
+
"version": "0.143.0-core-styles.7",
|
|
4
4
|
"description": "Blaze react page builder",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/core-auth-ui": "0.143.0-
|
|
31
|
-
"@blaze-cms/core-errors": "
|
|
32
|
-
"@blaze-cms/core-errors-ui": "
|
|
30
|
+
"@blaze-cms/core-auth-ui": "0.143.0-core-styles.0",
|
|
31
|
+
"@blaze-cms/core-errors": "0.142.1-core-styles.0",
|
|
32
|
+
"@blaze-cms/core-errors-ui": "0.142.1-core-styles.0",
|
|
33
33
|
"@blaze-cms/image-cdn-react": "0.3.0-alpha.6",
|
|
34
|
-
"@blaze-cms/nextjs-components": "0.143.0-
|
|
35
|
-
"@blaze-cms/plugin-search-ui": "0.143.0-
|
|
36
|
-
"@blaze-cms/setup-ui": "
|
|
37
|
-
"@blaze-cms/utils": "0.143.0-
|
|
38
|
-
"@blaze-cms/utils-handlebars": "0.143.0-
|
|
34
|
+
"@blaze-cms/nextjs-components": "0.143.0-core-styles.0",
|
|
35
|
+
"@blaze-cms/plugin-search-ui": "0.143.0-core-styles.0",
|
|
36
|
+
"@blaze-cms/setup-ui": "0.142.1-core-styles.0",
|
|
37
|
+
"@blaze-cms/utils": "0.143.0-core-styles.0",
|
|
38
|
+
"@blaze-cms/utils-handlebars": "0.143.0-core-styles.0",
|
|
39
39
|
"@blaze-react/breadcrumb": "0.8.0-alpha.60",
|
|
40
40
|
"@blaze-react/button": "0.5.19",
|
|
41
41
|
"@blaze-react/checkboxes": "0.5.31",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"lib/*",
|
|
91
91
|
"lib-es/*"
|
|
92
92
|
],
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "879f1ac4a147898452572a45f29d68f5053022f5"
|
|
94
94
|
}
|
|
@@ -7,15 +7,15 @@ import Wrapper from '../Wrapper';
|
|
|
7
7
|
dayjs.extend(LocalizedFormat);
|
|
8
8
|
|
|
9
9
|
const DateTime = ({ format, customFormat, modifier }) => {
|
|
10
|
-
const dateFormat = customFormat
|
|
10
|
+
const dateFormat = customFormat || format;
|
|
11
11
|
|
|
12
12
|
if (!dateFormat) return null;
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const formattedDate = dayjs().format(dateFormat);
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<Wrapper className="date" modifiers={modifier}>
|
|
18
|
-
{
|
|
18
|
+
{formattedDate}
|
|
19
19
|
</Wrapper>
|
|
20
20
|
);
|
|
21
21
|
};
|
|
@@ -27,8 +27,8 @@ DateTime.propTypes = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
DateTime.defaultProps = {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
customFormat: '',
|
|
31
|
+
modifier: null
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export default DateTime;
|