cozy-ui 111.8.1 → 111.10.0
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 +18 -0
- package/package.json +1 -2
- package/react/AppSections/generateI18nConfig.ts +4 -4
- package/react/Badge/Readme.md +20 -8
- package/react/Badge/index.jsx +18 -1
- package/react/ContactsListModal/ContactsListModal.jsx +2 -2
- package/react/Dialog/DialogEffects.spec.tsx +1 -1
- package/react/Markdown/Readme.md +71 -0
- package/react/Markdown/index.jsx +32 -0
- package/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +14 -0
- package/react/Paywall/Paywall.jsx +3 -6
- package/react/Paywall/Readme.md +3 -3
- package/react/__snapshots__/examples.spec.jsx.snap +2 -2
- package/react/index.js +1 -0
- package/transpiled/react/AppSections/generateI18nConfig.d.ts +1 -3
- package/transpiled/react/AppSections/generateI18nConfig.js +3 -3
- package/transpiled/react/Badge/index.js +12 -3
- package/transpiled/react/ContactsListModal/ContactsListModal.js +2 -2
- package/transpiled/react/Markdown/index.js +39 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeDarkInvertedOverrides.d.ts +14 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeDarkNormalOverrides.d.ts +14 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeLightInvertedOverrides.d.ts +14 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.d.ts +14 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +14 -0
- package/transpiled/react/Paywall/Paywall.js +3 -11
- package/transpiled/react/index.js +2 -1
- package/react/Icon/icons-sprite.js +0 -613
|
@@ -9,7 +9,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import React, { useEffect, useState } from 'react';
|
|
12
|
-
import ReactMarkdown from 'react-markdown';
|
|
13
12
|
import { useInstanceInfo } from 'cozy-client';
|
|
14
13
|
import { buildPremiumLink } from 'cozy-client/dist/models/instance';
|
|
15
14
|
import { isFlagshipApp } from 'cozy-device-helper';
|
|
@@ -21,6 +20,7 @@ import Button from "cozy-ui/transpiled/react/Buttons";
|
|
|
21
20
|
import { IllustrationDialog } from "cozy-ui/transpiled/react/CozyDialogs";
|
|
22
21
|
import Icon from "cozy-ui/transpiled/react/Icon";
|
|
23
22
|
import CozyUpgradeIcon from "cozy-ui/transpiled/react/Icons/CozyUpgrade";
|
|
23
|
+
import Markdown from "cozy-ui/transpiled/react/Markdown";
|
|
24
24
|
import Spinner from "cozy-ui/transpiled/react/Spinner";
|
|
25
25
|
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
26
26
|
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
|
@@ -140,16 +140,8 @@ var Paywall = function Paywall(_ref) {
|
|
|
140
140
|
label: isFlagshipAppIapAvailable === null ? t("action.loading") : canOpenPremiumLink ? t("".concat(variant, "Paywall.").concat(type, ".action")) : t("action.withoutIAP"),
|
|
141
141
|
busy: isFlagshipAppIapAvailable === null
|
|
142
142
|
}),
|
|
143
|
-
content: /*#__PURE__*/React.createElement(
|
|
144
|
-
|
|
145
|
-
renderers: {
|
|
146
|
-
paragraph: function paragraph(_ref3) {
|
|
147
|
-
var children = _ref3.children;
|
|
148
|
-
return /*#__PURE__*/React.createElement("p", {
|
|
149
|
-
className: "u-mt-0"
|
|
150
|
-
}, children);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
143
|
+
content: /*#__PURE__*/React.createElement(Markdown, {
|
|
144
|
+
content: t("".concat(variant, "Paywall.").concat(type, ".content"), _objectSpread({}, contentInterpolation))
|
|
153
145
|
}),
|
|
154
146
|
onClose: onClose
|
|
155
147
|
});
|
|
@@ -109,4 +109,5 @@ export { default as TimelineSeparator } from './TimelineSeparator';
|
|
|
109
109
|
export { default as AlertProvider, useAlert } from './Alert';
|
|
110
110
|
export { default as Modal } from './Modal';
|
|
111
111
|
export { ListSkeleton, ListItemSkeleton } from './Skeletons';
|
|
112
|
-
export { default as ActionsBar } from './ActionsBar';
|
|
112
|
+
export { default as ActionsBar } from './ActionsBar';
|
|
113
|
+
export { default as Markdown } from './Markdown';
|