Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 9 additions & 3 deletions docs/src/app/pages/Components/ActiveCallButton/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ props.icon = KeypadIcon;
* A example of `ActiveCallButton`
*/
const ActiveCallButtonDemo = () => (
<ActiveCallButton
{...props}
/>
<div style={{
position: 'relative',
height: '200px',
width: '100px',
}}>
<ActiveCallButton
{...props}
/>
</div>
);
export default ActiveCallButtonDemo;
12 changes: 9 additions & 3 deletions docs/src/app/pages/Components/CircleButton/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ props.icon = EndIcon;
* A example of `CircleButton`
*/
const CircleButtonDemo = () => (
<CircleButton
{...props}
/>
<div style={{
position: 'relative',
height: '100px',
width: '100px',
}}>
<CircleButton
{...props}
/>
</div>
);
export default CircleButtonDemo;
4 changes: 2 additions & 2 deletions docs/src/app/pages/Components/ConversationMessageList/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ props.messages = [{
subject: 'I\'m fine.'
}];
props.dateTimeFormatter = ({
utcTimestamp,
}) => new Date(utcTimestamp).toString();
utcTimestamp,
}) => new Date(utcTimestamp).toString();

/**
* A example of `ConversationMessageList`
Expand Down
6 changes: 3 additions & 3 deletions docs/src/app/pages/Components/MessageItem/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ props.currentLocale = 'en-US';
props.dateTimeFormatter = () => null;
props.showConversationDetail = () => null;
props.brand = 'RingCentral';
props.markVoicemail = () => null;
props.readVoicemail = () => null;
props.unmarkVoicemail = () => null;
props.markMessage = () => null;
props.readMessage = () => null;
props.unmarkMessage = () => null;
props.onClickToDial = () => null;
props.onCreateContact = () => null;
/**
Expand Down
6 changes: 3 additions & 3 deletions docs/src/app/pages/Components/MessageList/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ props.brand = 'RingCentral';
props.showConversationDetail = () => null;
props.countryCode = '+1';
props.areaCode = '+1';
props.markVoicemail = () => null;
props.readVoicemail = () => null;
props.markMessage = () => null;
props.readMessage = () => null;
props.unmarkMessage = () => null;
props.onClickToDial = () => null;
props.onCreateContact = () => null;
props.unmarkVoicemail = () => null;

/**
* A example of `MessageList`
Expand Down
9 changes: 5 additions & 4 deletions docs/src/app/pages/Components/MessagesPanel/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ import MessagesPanel from 'ringcentral-widgets/components/MessagesPanel';
const props = {};
props.currentLocale = 'en-US';
props.goToComposeText = () => null;
props.readVoicemail = () => null;
props.unmarkVoicemail = () => null;
props.markVoicemail = () => null;
props.markMessage = () => null;
props.readMessage = () => null;
props.unmarkMessage = () => null;
props.showConversationDetail = () => null;
props.onClickToDial = () => null;
props.onViewContact = () => null;
props.onCreateContact = () => null;
props.brand = 'RingCentral';
props.textUnreadCounts = 0;
props.textUnreadCounts = 1;
props.voiceUnreadCounts = 0;
props.faxUnreadCounts = 0;
props.conversations = [{
id: 1,
conversationId: '1',
Expand Down
13 changes: 9 additions & 4 deletions docs/src/app/pages/Components/NavigationBar/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ props.tabs = [

props.goTo = path => alert(`go to ${path}`);
const NavigationBarDemo = () => (
<NavigationBar
button={TabNavigationButton}
{...props}
/>
<div style={{
position: 'relative',
width: '300px',
}}>
<NavigationBar
button={TabNavigationButton}
{...props}
/>
</div>
);
export default NavigationBarDemo;
13 changes: 9 additions & 4 deletions docs/src/app/pages/Components/PresenceSettingSection/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ props.setBusy = () => null;
props.setDoNotDisturb = () => null;
props.setInvisible = () => null;
props.toggleAcceptCallQueueCalls = () => null;
props.showPresenceSettings = false;
props.showPresenceSettings = true;

/**
* A example of `PresenceSettingSection`
*/
const PresenceSettingSectionDemo = () => (
<PresenceSettingSection
{...props}
/>
<div style={{
position: 'relative',
width: '300px',
}}>
<PresenceSettingSection
{...props}
/>
</div>
);
export default PresenceSettingSectionDemo;
1 change: 1 addition & 0 deletions docs/src/app/pages/Components/RadioBtnGroup/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ props.radioOptions = [{
props.disabled = false;
props.formatPhone = v => v;
props.onRadioSelect = () => null;
props.currentLocale = 'en-US';

/**
* A example of `RadioBtnGroup`
Expand Down
12 changes: 9 additions & 3 deletions docs/src/app/pages/Components/SettingsPanel/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ props.version = 'test string';
* A example of `SettingsPanel`
*/
const SettingsPanelDemo = () => (
<SettingsPanel
{...props}
/>
<div style={{
position: 'relative',
height: '500px',
width: '300px',
}}>
<SettingsPanel
{...props}
/>
</div>
);
export default SettingsPanelDemo;
12 changes: 9 additions & 3 deletions docs/src/app/pages/Components/Spinner/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ const props = {};
* A example of `Spinner`
*/
const SpinnerDemo = () => (
<Spinner
{...props}
/>
<div style={{
position: 'relative',
height: '50px',
width: '50px',
}}>
<Spinner
{...props}
/>
</div>
);
export default SpinnerDemo;
12 changes: 9 additions & 3 deletions docs/src/app/pages/Components/SpinnerOverlay/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ const props = {};
* A example of `SpinnerOverlay`
*/
const SpinnerOverlayDemo = () => (
<SpinnerOverlay
{...props}
/>
<div style={{
position: 'relative',
height: '300px',
width: '300px',
}}>
<SpinnerOverlay
{...props}
/>
</div>
);
export default SpinnerOverlayDemo;
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"peerDependencies": {
"babel-runtime": "^6.20.0",
"format-message": "^5.0.0",
"intl": "^1.2.5",
"isomorphic-fetch": "^2.2.1",
"locale-loader": "^1.4.5",
"moment": "^2.19.2",
Expand All @@ -38,7 +37,7 @@
"react-router-redux": "^4.0.7",
"ringcentral": "^3.1.3",
"ringcentral-client": "^1.0.0-beta.1",
"ringcentral-integration": "^0.7.37"
"ringcentral-integration": "^0.7.46"
},
"devDependencies": {
"alias-webpack-plugin": "^1.0.6",
Expand Down Expand Up @@ -74,7 +73,6 @@
"gulp-istanbul": "^1.1.1",
"gulp-sourcemaps": "^2.4.0",
"identity-obj-proxy": "^3.0.0",
"intl": "^1.2.5",
"jest": "^20.0.4",
"json-loader": "^0.5.4",
"locale-loader": "^1.4.5",
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4154,10 +4154,6 @@ interpret@^1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90"

intl@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/intl/-/intl-1.2.5.tgz#82244a2190c4e419f8371f5aa34daa3420e2abde"

invariant@^2.0.0, invariant@^2.1.0, invariant@^2.2.0, invariant@^2.2.1, invariant@^2.2.2:
version "2.2.2"
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360"
Expand Down