Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove prop-types definitions from mjml-react #93

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
210739b
Types: Add types for mjml-react
henrinormak Nov 4, 2018
dfdfbec
Types: Use correct version of typescript
henrinormak Nov 6, 2018
988c5cc
Types: Fix lint
VincentLanglet Feb 12, 2019
7edfc67
Types: [mjml-react] Move extensions and utils to correct location (#4…
CarsonF Feb 12, 2020
40d1aaf
Types: Add align to MjmlTableProps (#42312)
michalgrzelak Feb 18, 2020
ad874a4
Types: 🤖 Merge PR #47420 Children are optional in MjmlText. by @daliusd
daliusd Sep 16, 2020
164c06a
Types: 🤖 Merge PR #50503 MJML-React loosen children type by @IanEdington
IanEdington Jan 10, 2021
0093d65
Types: 🤖 Merge PR #50518 [mjml-react] Add iconPadding to social eleme…
tubbo Jan 11, 2021
dd6c048
Types: 🤖 Merge PR #53600 Add mjClass prop to ClassNameProps in mjml-r…
philipwindeyer Jun 4, 2021
f3d915f
Types: 🤖 Merge PR #53601 add cssClass prop to MjmlSocial component in…
philipwindeyer Jun 4, 2021
25f2711
Types: 🤖 Merge PR #53878 Add MjmlError by @adamth
adamth Jun 17, 2021
2bbe70d
Types: 🤖 Merge PR #53951 Update MjmlColumn props by @adamth
Jun 28, 2021
974c200
Types: Add undefined to optional properties, part H (#54355)
sandersn Jul 7, 2021
d119c24
Types: 🤖 Merge PR #54456 mjml-react: Add missing table props by @adamth
Jul 13, 2021
743952f
Types: 🤖 Merge PR #56254 [mjml-react] Add Explicit types for children…
eps1lon Nov 8, 2021
7d01e56
Types: [mjml-react] Add explicit types for children (#57301)
eps1lon Nov 25, 2021
6d3af69
Types: Change tslint.json 'extends' property (#57489)
sandersn Dec 2, 2021
b7a7db2
Types: [mjml-react] Add backgroundPosition to MjmlWrapperProps and Mj…
zecka Jan 20, 2022
7a7f782
Types: 🤖 Merge PR #59026 mjml-react v2.0.5: add MjmlHtmlAttributes ty…
philipwindeyer Mar 15, 2022
4d16a28
Types: Replace $ExpectError with @ts-expect-error (#60697)
jablko Jun 24, 2022
36016fe
Types: 🤖 Merge PR #61411 mjml-react: Allow Non-Number as MjmlButton f…
jdemangeon Aug 2, 2022
fa5ef3e
Types: 🤖 Merge PR #62082 Update `mjml-react` to allow `letterSpacing`…
nahtnam Sep 7, 2022
4ddb4ae
Update build tools for mjml-react and release the first version (#1)
harry-wang-faire Sep 21, 2022
ace15f3
Types: Rearrange files for Faire/mjml-react
IanEdington Sep 24, 2022
1316e63
Merge DefinitelyTyped mjml-react types
IanEdington Sep 24, 2022
d3fe52b
Add type definitions for compatibility with typescript projects (#4)
emmclaughlin Sep 24, 2022
9c05da2
Update the readme to include updated import and Faire's announcement …
harry-wang-faire Sep 26, 2022
0821bac
Update README.md (#6)
IanEdington Sep 26, 2022
8351a7b
Remove prop-types definitions from mjml-react
IanEdington Sep 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove prop-types definitions from mjml-react
  • Loading branch information
IanEdington committed Sep 28, 2022
commit 8351a7bae0a094b11d9441fdc3b135d76e2031ca
5 changes: 0 additions & 5 deletions src/extensions/mjml-comment.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { string } from 'prop-types';

import { handleMjmlProps } from '../utils';

export class MjmlComment extends Component {
static propTypes = {
children: string.isRequired,
};

render() {
const { children, ...rest } = this.props;
if (children && children.trim().length) {
Expand Down
6 changes: 0 additions & 6 deletions src/extensions/mjml-conditional-comment.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import React, { Component } from 'react';
import { string } from 'prop-types';

import { MjmlComment } from './mjml-comment';

export class MjmlConditionalComment extends Component {
static propTypes = {
children: string.isRequired,
condition: string.isRequired,
};

static defaultProps = {
condition: 'if gte mso 9',
};
Expand Down
6 changes: 0 additions & 6 deletions src/extensions/mjml-html.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import React, { Component } from 'react';
import { string } from 'prop-types';

export class MjmlHtml extends Component {
static propTypes = {
tag: string,
html: string.isRequired,
};

render() {
const { tag, html } = this.props;
return React.createElement(tag || 'mj-raw', {
Expand Down
5 changes: 0 additions & 5 deletions src/extensions/mjml-tracking-pixel.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { string } from 'prop-types';

import { MjmlRaw } from '../mjml-raw';

export class MjmlTrackingPixel extends Component {
static propTypes = {
src: string.isRequired,
};

render() {
const { src } = this.props;
const trackingPixelStyle = {
Expand Down
5 changes: 0 additions & 5 deletions src/extensions/mjml-yahoo-style.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { string } from 'prop-types';

import { MjmlRaw } from '../mjml-raw';

export class MjmlYahooStyle extends Component {
static propTypes = {
children: string.isRequired,
};

render() {
const { children, ...rest } = this.props;
if (children && children.trim().length) {
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-accordion-element.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlAccordionElement extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement(
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-accordion-text.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlAccordionText extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement(
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-accordion-title.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlAccordionTitle extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement(
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-accordion.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlAccordion extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-accordion', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-attributes.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlAttributes extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement(
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-body.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlBody extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-body', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-button.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlButton extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-button', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-carousel.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlCarousel extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-carousel', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-column.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlColumn extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-column', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-group.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlGroup extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-group', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-head.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlHead extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-head', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-hero.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlHero extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-hero', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-html-attribute.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlHtmlAttribute extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement(
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-html-attributes.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlHtmlAttributes extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement(
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-navbar-link.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlNavbarLink extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement(
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-navbar.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlNavbar extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-navbar', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-preview.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { string } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlPreview extends Component {
static propTypes = {
children: string,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-preview', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-raw.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlRaw extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-raw', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-section.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlSection extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-section', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-selector.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlSelector extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-selector', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-social-element.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlSocialElement extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement(
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-social.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { node } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlSocial extends Component {
static propTypes = {
children: node,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-social', handleMjmlProps(rest), children);
Expand Down
5 changes: 0 additions & 5 deletions src/mjml-style.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import React, { Component } from 'react';
import { string } from 'prop-types';

import { handleMjmlProps } from './utils';

export class MjmlStyle extends Component {
static propTypes = {
children: string,
};

render() {
const { children, ...rest } = this.props;
return React.createElement('mj-style', {
Expand Down
Loading