@transferwise/components 0.0.0-experimental-cbd2a4c → 0.0.0-experimental-984f79f

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.
@@ -1,13 +1,7 @@
1
- export default InlineMarkdown;
2
- declare function InlineMarkdown(props: any): import("react").JSX.Element;
3
- declare namespace InlineMarkdown {
4
- namespace propTypes {
5
- const children: any;
6
- const className: any;
7
- }
8
- namespace defaultProps {
9
- const className_1: undefined;
10
- export { className_1 as className };
11
- }
1
+ /// <reference types="react" />
2
+ export interface InlineMarkdownProps {
3
+ children?: string;
4
+ className?: string;
12
5
  }
6
+ export default function InlineMarkdown(props: InlineMarkdownProps): import("react").JSX.Element;
13
7
  //# sourceMappingURL=InlineMarkdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineMarkdown.d.ts","sourceRoot":"","sources":["../../../../src/alert/inlineMarkdown/InlineMarkdown.js"],"names":[],"mappings":";AAOA,yEAEC"}
1
+ {"version":3,"file":"InlineMarkdown.d.ts","sourceRoot":"","sources":["../../../../src/alert/inlineMarkdown/InlineMarkdown.tsx"],"names":[],"mappings":";AAKA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAEhE"}
@@ -1,2 +1,3 @@
1
- export { default } from "./InlineMarkdown";
1
+ export { default } from './InlineMarkdown';
2
+ export type { InlineMarkdownProps } from './InlineMarkdown';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/alert/inlineMarkdown/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/alert/inlineMarkdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-cbd2a4c",
3
+ "version": "0.0.0-experimental-984f79f",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -95,8 +95,8 @@
95
95
  "rollup": "^4.17.2",
96
96
  "storybook": "^7.6.19",
97
97
  "@transferwise/less-config": "3.1.0",
98
- "@transferwise/neptune-css": "14.10.0",
99
- "@wise/components-theming": "1.3.0"
98
+ "@wise/components-theming": "1.3.0",
99
+ "@transferwise/neptune-css": "14.10.0"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@transferwise/icons": "^3.7.0",
@@ -0,0 +1,13 @@
1
+ import { MarkdownNodeType } from '../../common';
2
+ import Markdown from '../../markdown';
3
+
4
+ const allowList = [MarkdownNodeType.STRONG];
5
+
6
+ export interface InlineMarkdownProps {
7
+ children?: string;
8
+ className?: string;
9
+ }
10
+
11
+ export default function InlineMarkdown(props: InlineMarkdownProps) {
12
+ return <Markdown {...props} as="span" allowList={allowList} blockList={undefined} />;
13
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './InlineMarkdown';
2
+ export type { InlineMarkdownProps } from './InlineMarkdown';
@@ -1,21 +0,0 @@
1
- import PropTypes from 'prop-types';
2
-
3
- import { MarkdownNodeType } from '../../common';
4
- import Markdown from '../../markdown';
5
-
6
- const allowList = [MarkdownNodeType.STRONG];
7
-
8
- const InlineMarkdown = (props) => {
9
- return <Markdown {...props} as="span" allowList={allowList} blockList={undefined} />;
10
- };
11
-
12
- InlineMarkdown.propTypes = {
13
- children: PropTypes.string.isRequired,
14
- className: PropTypes.string,
15
- };
16
-
17
- InlineMarkdown.defaultProps = {
18
- className: undefined,
19
- };
20
-
21
- export default InlineMarkdown;
@@ -1 +0,0 @@
1
- export { default } from './InlineMarkdown';