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

[4.6.0] Updated some test files, added ImageLoader and fixed Message no-Avatar bug. #983

Merged
merged 466 commits into from
Nov 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
466 commits
Select commit Hold shift + click to select a range
38d1441
Fixed fontFamily inheritance, decreased Select and MenuItem height.
Jun 13, 2017
3fccb66
:lipstick: Fixed icon alignment (#692)
Jun 13, 2017
e5b90c9
Button component test (#682)
tomoversluizen Jun 13, 2017
ac69053
Added test for channel-header (#683)
Jun 13, 2017
36256ad
Added test for checkbox (#686)
Jun 13, 2017
5622663
Docs icons (#693)
Jun 13, 2017
1f76d35
:wrench: Updated travis to node 8 (#694)
Jun 13, 2017
3986688
Added width and height to support images that don't match our design …
Jun 14, 2017
8947e0b
Added edited node to message time (#699)
IanCStewart Jun 14, 2017
fcd7459
Added test for dialog (#696)
Jun 14, 2017
87516d2
Added test for divider (#698)
Jun 14, 2017
c2fd1ae
:twisted_rightwards_arrows: Merged origin/master
Jun 14, 2017
1d698cf
Added edited prop to Message, added IconBomb, fixed IconMore color ov…
Jun 14, 2017
26b5de7
Fix/team (#710)
IanCStewart Jun 14, 2017
7b49334
Empty-state component test (#704)
tomoversluizen Jun 14, 2017
f63721d
RightButton in menu-item (#709)
IanCStewart Jun 14, 2017
2347c6c
Input component test (#708)
tomoversluizen Jun 15, 2017
eb5452a
List component test (#712)
tomoversluizen Jun 15, 2017
5fed24a
:lipstick: It's over nine thousand! (#715)
Jun 16, 2017
7e9d383
:twisted_rightwards_arrows: Merged origin/master
Jun 16, 2017
cda5131
Changed MenuItem active icon for rightButton, increased popOver zInde…
Jun 16, 2017
4b3bf01
MenuItem component test (#713)
tomoversluizen Jun 16, 2017
ee0819c
Modal component test (#716)
tomoversluizen Jun 16, 2017
d30179c
:bug: Fixed menu close on button (#720)
Jun 16, 2017
236996e
Overlay component test (#719)
tomoversluizen Jun 16, 2017
2cd1ea5
Component tests: Props fixes (#722)
Jun 16, 2017
807fb5d
Lightbox component test (#721)
Jun 18, 2017
eb04239
Created component test for Paper (#727)
tomoversluizen Jun 19, 2017
20f6477
PopOver component test (#729)
tomoversluizen Jun 19, 2017
2b5e919
Issue #700 (#714)
Jun 19, 2017
d646213
RadioButton component test (#731)
tomoversluizen Jun 19, 2017
f97d2ff
Created component test for profile-card (#730)
tomoversluizen Jun 20, 2017
6e47efc
Table component test (#734)
Jun 20, 2017
bdbb2b8
Added test for tab (#735)
Jun 20, 2017
c1eebb4
Switch component test (#736)
Jun 20, 2017
8386bfe
Message typing (#737)
Jun 20, 2017
f7eca0a
:globe_with_meridians: Added locale to Message (#728)
Jun 20, 2017
1fb4712
:twisted_rightwards_arrows: Merged origin/master
Jun 20, 2017
dcb30ab
Added DateSeparator, added separator, typing message and localse to M…
Jun 20, 2017
1767bce
Added test for slider (#741)
Jun 20, 2017
61f320b
Component tests: Added onClick tests (#739)
Jun 20, 2017
46c4af1
Mentions/commands (#742)
Jun 20, 2017
67a7a6b
Bug/pop over (#744)
IanCStewart Jun 21, 2017
d960112
Issue #740 (#743)
Jun 21, 2017
6ddcc93
Issue #605 (#747)
IanCStewart Jun 21, 2017
cfc6dd2
Menu component test (#732)
Jun 21, 2017
246a9d2
Merge remote-tracking branch 'origin/master' into develop
Jun 21, 2017
41dc0cb
Added whiteSpace: nowrap. (#749)
Jun 22, 2017
5a280e0
Added command avatar prop to Commands and made command description no…
Jun 22, 2017
cd5da71
Automated changelog (#754)
Jun 22, 2017
79708e2
Added check for open state. (#756)
Jun 23, 2017
c2ca800
Updated changelog.
Jun 23, 2017
c97ded7
Mentions/message (#746)
Jun 23, 2017
b7e6360
Component tests: Added onChange tests (#760)
Jun 23, 2017
b28e1fa
Issue #666 (#702)
IanCStewart Jun 23, 2017
5c36cef
Added option to match commands non leading, changed command.title to …
Jun 23, 2017
e45a819
:lipstick: Adjusted styles to conform with design. (#701)
IanCStewart Jun 23, 2017
cf9a230
Issue #705 (#707)
Jun 23, 2017
1b13717
Issue #725 (#750)
Jun 23, 2017
16c92d4
Issue #641 (#659)
IanCStewart Jun 23, 2017
c38590a
Issue #652 (#711)
Jun 23, 2017
726348a
Merge remote-tracking branch 'origin/master' into develop
Jun 23, 2017
b5ff17b
Fixed doc emoji css.
Jun 23, 2017
3273952
4.0.0
Jun 23, 2017
30d6c12
Removed unused npm script.
Jun 23, 2017
08211ee
Merge remote-tracking branch 'origin/master' into develop
Jun 26, 2017
69ca218
Fixed Searchbox changeSearchQuery (#765)
Jun 26, 2017
b74eacc
Made prop not required. (#766)
Jun 26, 2017
625c49e
Added textDecoration: none. (#767)
Jun 26, 2017
7e1bafb
Added textDecoration none to EmojiMenu attribution link, made onMenti…
Jun 26, 2017
af4fdd4
Merge remote-tracking branch 'origin/master' into develop
Jun 27, 2017
06531dc
Updated LABELS.md. (#771)
Jun 29, 2017
ee0079b
Component tests: Consistency and test fixes (#763)
Jun 29, 2017
f9c5692
added textAlign: 'left' (#772)
MrBamBam Jun 29, 2017
674c8de
Added secondaryText to ChannelHeader. (#773)
Jun 29, 2017
e5b973f
Issue #770 (#774)
Jun 29, 2017
346bbf5
Added secondaryText to ChannelHeader, fixed TableHeader text alignmen…
Jun 29, 2017
7f37c78
Fixed test.
Jun 29, 2017
150ba81
Fixed mistake with Button styling. (#776)
Jun 30, 2017
259644a
Fixed ChannelHeader styling for buttons.
Jun 30, 2017
bdcf050
Merge remote-tracking branch 'origin/master' into develop
Jun 30, 2017
86b0fe5
Eslint (#779)
Jun 30, 2017
b1ffbf9
Removed z-index to overcome z-index quirks & restructured avatar div …
IanCStewart Jul 4, 2017
abd5af2
Bug/doc table (#798)
IanCStewart Jul 20, 2017
ba9286e
Removed borderTop, fixes issue #787. (#794)
Jul 20, 2017
b780f7b
Issue #790 (#791)
Jul 20, 2017
e27feb4
Issue #789 (#792)
Jul 20, 2017
6fb0b25
Added placeholderStyle to SearchBox. (#795)
Jul 20, 2017
caf6fb3
Props to themeable component override color passed by theme, fixed is…
Jul 20, 2017
1fad4c8
Fixed EmojiMenu styling, closes issue #797. (#799)
Jul 20, 2017
7d2d572
Changed to longhand backgroundColor. (#801)
Jul 20, 2017
b7f70a2
Issue #800 (#802)
Jul 20, 2017
8cf7a18
Merge branch 'master' into develop
IanCStewart Jul 20, 2017
9209910
Prepared for extended theming capabilities.
IanCStewart Jul 20, 2017
cf68f08
Added activeStyle to MenuItem, fixed issue #808. (#811)
Jul 24, 2017
924e3da
Added iconColor to select, fixed issue #807. (#809)
Jul 24, 2017
6501a6f
Added iconColor to SearchBox, fixed issue #804. (#810)
Jul 24, 2017
6ffba85
Added more override capabilities.
IanCStewart Jul 24, 2017
cb839ac
Fixed merge conflicts.
IanCStewart Jul 24, 2017
59402c7
Added expandMenuItem to Message. (#814)
Jul 25, 2017
0f8caa8
Added commandStyle. (#815)
Jul 25, 2017
4b30876
Added more overiding styles capabilities.
IanCStewart Jul 25, 2017
302f347
Merge branch 'master' into develop
IanCStewart Jul 25, 2017
4cafacf
Merge remote-tracking branch 'origin/develop' into develop
IanCStewart Jul 25, 2017
dc3799c
Merge remote-tracking branch 'origin/master' into develop
Jul 25, 2017
8532106
Added check for expandMenuItem.
Jul 25, 2017
7a58117
Fixed Message expand menu item, added missing check for expandMenuIte…
Jul 25, 2017
bfe611a
Added key events to Commands (#818)
Jul 28, 2017
bd8c199
Emoji filter (#813)
Aug 1, 2017
70a3299
Multiline input (#785)
IanCStewart Aug 1, 2017
78a3c9b
Added multiline to Input and MessageInput. Added key events to Comman…
Aug 1, 2017
e32b1ff
Merge remote-tracking branch 'origin/master' into develop
Aug 1, 2017
51c38af
Added icons. (#820)
Aug 1, 2017
3734679
Destructed rowHeight prop. (#821)
Aug 1, 2017
7742424
Added four new icons, desctructed rowHeight prop in Input to prevent …
Aug 1, 2017
06511df
Merge remote-tracking branch 'origin/master' into develop
Aug 1, 2017
435044a
Patch/card header styles (#823)
IanCStewart Aug 7, 2017
8a3f5f7
Merge branch 'master' into develop
IanCStewart Aug 7, 2017
231c7e8
Added override for CardHeader.
IanCStewart Aug 7, 2017
f04909f
Changed mentions to highlights. (#824)
Aug 8, 2017
aaef3c1
Changed mentions to highlights, changed how highlights are matched.
Aug 8, 2017
cf7063c
Merge remote-tracking branch 'origin/master' into develop
Aug 8, 2017
ba1f527
Issue #830 (#831)
IanCStewart Aug 10, 2017
8756eb8
Added override capabilities to profile component.
IanCStewart Aug 10, 2017
5fc245d
herge branch 'master' into develop
IanCStewart Aug 10, 2017
a8a9c6a
Added `left: 50%` & `translate(-50%, -50%)`. Fixed #833. (#834)
IanCStewart Aug 23, 2017
2e38041
Merge branch 'master' into develop
IanCStewart Aug 23, 2017
2b9c555
Fixed profile styling.
IanCStewart Aug 23, 2017
c2ed303
Issue #778 (#836)
IanCStewart Aug 29, 2017
3dda002
Issue #837 (#839)
IanCStewart Aug 29, 2017
768471a
Tab change callback (#838)
IanCStewart Aug 29, 2017
ce76b6e
Merge branch 'master' into develop
IanCStewart Aug 29, 2017
ea19c0e
Added callback to Tabs and fixed badge styling bug.
IanCStewart Aug 29, 2017
8eee81d
Tabs selected index (#841)
IanCStewart Aug 31, 2017
5e546d8
Merge branch 'master' into develop
IanCStewart Aug 31, 2017
d6feb19
Made Tabs so it can work as a controlled component.
IanCStewart Aug 31, 2017
baa8da5
DocGen.
IanCStewart Aug 31, 2017
1f2d822
Tabs selected index (#844)
IanCStewart Aug 31, 2017
9386186
Fixed 0 is falsie check.
IanCStewart Aug 31, 2017
f69157a
Message badge (#846)
Sep 5, 2017
fd36665
Merge remote-tracking branch 'origin/master' into develop
Sep 5, 2017
1616e2f
Added badge prop to Message.
Sep 5, 2017
c874050
Merge branch 'master' into develop
IanCStewart Sep 8, 2017
50d18ba
Issue #851 (#852)
IanCStewart Sep 8, 2017
5edafea
Merge remote-tracking branch 'origin/develop' into develop
IanCStewart Sep 8, 2017
8e224d3
Fixed Message theming and override capabilities.
IanCStewart Sep 8, 2017
0b8a621
Changed to 0 in favor of null. (#854)
Sep 12, 2017
89f4e29
Changed selectedIndex default value to 0 to prevent TypeError if hand…
Sep 12, 2017
260e382
Merge remote-tracking branch 'origin/master' into develop
Sep 12, 2017
fe6896b
Removed safari windows latest from support list. (#858)
IanCStewart Sep 14, 2017
e7ea6c8
Issue #859 (#860)
IanCStewart Sep 14, 2017
3dcade5
Added defaultImage to avatar.
IanCStewart Sep 14, 2017
c097158
Merge branch 'master' into develop
IanCStewart Sep 14, 2017
863ba52
Fixed clickable error bug. Fixes #862. (#863)
IanCStewart Sep 21, 2017
924fa2a
Added icons (#865)
Sep 21, 2017
af7cdc9
Added arrow icons & fixed MessageInput clickable area.
IanCStewart Sep 21, 2017
e294182
Reverted changes.
Sep 21, 2017
523c302
Added arrow icons & fixed MessageInput clickable area.
Sep 21, 2017
62fb32f
Merge branch 'master' into develop
IanCStewart Sep 21, 2017
63cf0bd
Decreased Tab and ChannelHeader height. (#870)
Sep 27, 2017
28b20a5
Issue #868 (#869)
IanCStewart Sep 27, 2017
7fcdd1b
Used correct calculations. Fixes #871. (#873)
IanCStewart Sep 27, 2017
8254b17
Added giphy message, adjusted get-pop-over-position calculation & dec…
IanCStewart Sep 27, 2017
a0f66e6
Merge branch 'master' into develop
IanCStewart Sep 27, 2017
15fac16
Added onHeaderClick to IconMenu and PopOver. (#875)
Sep 27, 2017
26b018e
[4.3.12] Added onHeaderClick to IconMenu and PopOver.
Sep 27, 2017
7be7951
Merge remote-tracking branch 'origin/master' into develop
Sep 27, 2017
99e51dd
Fixed passthrough. (#877)
IanCStewart Sep 27, 2017
9a8700e
Removed opacity on giphy description. (#878)
IanCStewart Sep 28, 2017
97a379c
Fixed giphyDescription prop passthrough & giphyDescription styling.
IanCStewart Sep 28, 2017
a0c8e91
Merge branch 'master' into develop
IanCStewart Sep 28, 2017
b6b4072
Added object-fit cover to overcome image & giphy stretching. (#880)
IanCStewart Sep 29, 2017
2e08b84
Added npm version badge.
IanCStewart Sep 29, 2017
fc9fa02
Added object-fit to images & giphies, fixes stretching.
IanCStewart Sep 29, 2017
27965c3
Merge branch 'master' into develop
IanCStewart Sep 29, 2017
ed1566b
Added inputRef to SearchBox. (#884)
Oct 2, 2017
fc83293
Issue #882 (#883)
IanCStewart Oct 2, 2017
c2a7ba0
Merge branch 'master' into develop
IanCStewart Oct 4, 2017
afaf80b
Added gallery component, fixed image and gif stretching & added input…
IanCStewart Oct 4, 2017
e41021f
Added custom props to Gallery. (#886)
Oct 4, 2017
977019d
Added ...custom prop to gallery.
IanCStewart Oct 4, 2017
19b2afd
Merge branch 'master' into develop
IanCStewart Oct 4, 2017
9485868
Issue #889 (#892)
IanCStewart Oct 5, 2017
4370883
[WIP] Component tests (#867)
IanCStewart Oct 6, 2017
44dc417
Issue #895 (#896)
Oct 9, 2017
f427734
Issue #769 (#897)
Oct 9, 2017
35f91b6
Issue #864 (#894)
Oct 9, 2017
d9c5a9d
Issue #899 (#900)
IanCStewart Oct 10, 2017
01c0905
Messages patch (#901)
IanCStewart Oct 10, 2017
4e33095
Added lightbox option to gallery, removed pure exports, added overrid…
IanCStewart Oct 10, 2017
a60055a
Merge branch 'master' into develop
IanCStewart Oct 10, 2017
0b12c7b
Date separator (#903)
Oct 11, 2017
cff7ed5
Issue #552 admin badge (#904)
IanCStewart Oct 11, 2017
2855f9e
Issue #552 alert (#905)
IanCStewart Oct 11, 2017
24c754d
Issue #552 app header (#906)
IanCStewart Oct 11, 2017
c95d061
Issue #552 avatar (#907)
IanCStewart Oct 11, 2017
3f10cbd
Issue #910 (#911)
IanCStewart Oct 12, 2017
4ae94bb
Issue #552 banner (#909)
IanCStewart Oct 12, 2017
f83461e
Issue #552 badge (#908)
IanCStewart Oct 12, 2017
4f79d82
Adjusted date sepparator styles, fixed tests & fixed image/giphy mess…
IanCStewart Oct 12, 2017
9eb1b52
Merge branch 'master' into develop
IanCStewart Oct 12, 2017
beb5229
Adjusted date separator styles, fixed tests and fixed image/giphy mes…
Oct 12, 2017
98bca1a
Made sure myMessage style for stickers is correct. (#913)
IanCStewart Oct 12, 2017
c22f376
Fixed my sticker message style bug.
IanCStewart Oct 12, 2017
b55d7dd
Merge branch 'master' into develop
IanCStewart Oct 12, 2017
ca5ecd3
Media (#915)
Oct 19, 2017
16c80a8
Issue #898 (#917)
IanCStewart Oct 19, 2017
e6a8e09
Added Media component & added multiline capabilities to Message compo…
IanCStewart Oct 19, 2017
e9129db
Merge branch 'master' into develop
IanCStewart Oct 19, 2017
cc0c7be
Issue #916 (#919)
IanCStewart Oct 20, 2017
453df0b
Added top: ...px to header buttons. Fixes #891. (#921)
IanCStewart Oct 20, 2017
e551651
Issue #922 (#923)
IanCStewart Oct 23, 2017
31e25a6
Issue #926 (#928)
Oct 31, 2017
8ddef8e
Changed rm to rimraf, fixes #925. (#927)
Oct 31, 2017
129b289
Added optional icon to RadioButton, made label optional.
Oct 31, 2017
e5c3a29
Merge remote-tracking branch 'origin/master' into develop
Oct 31, 2017
67940ed
Updated react-onclickoutside. (#931)
Nov 1, 2017
c409091
Fixed bug in unmounting of media listeners. (#935)
Nov 2, 2017
c5429cb
Update dev dependencies (#933)
Nov 3, 2017
d37158b
Sjaak/docs code examples (#936)
Nov 3, 2017
049839f
Sjaakluthart/docs styles (#938)
Nov 4, 2017
77c9b29
Sjaakluthart/code examples (#939)
Nov 4, 2017
50c6904
Issue #937 (#940)
IanCStewart Nov 6, 2017
bf510af
Issue #552 button (#942)
IanCStewart Nov 6, 2017
144c357
Issue #941 (#943)
IanCStewart Nov 6, 2017
2fafe52
Sjaakluthart/code examples (#944)
Nov 6, 2017
b072d01
Updated react-onclickoutside, updated dev dependecies, fixed unmounti…
IanCStewart Nov 6, 2017
8624ecc
DocGen.
IanCStewart Nov 6, 2017
1361296
Merge branch 'master' into develop
IanCStewart Nov 6, 2017
9fb1c89
Added a check for numbers followed by "." to overcome Catastrophic Ba…
IanCStewart Nov 7, 2017
27e72d8
Issue #552 card (#952)
IanCStewart Nov 9, 2017
49fdfbf
Added backgroundColor and color. (#953)
Nov 10, 2017
ac213b1
Issue #552 card content (#958)
IanCStewart Nov 10, 2017
fb8f5db
Issue #552 checkbox (#962)
IanCStewart Nov 10, 2017
701ead1
Issue #552 card header (#960)
IanCStewart Nov 10, 2017
d9d40c3
Issue #552 channel header (#959)
IanCStewart Nov 10, 2017
24220ea
Bumped messageInput multiline check to `> 49`. Fixes firefox/Edge15 i…
IanCStewart Nov 10, 2017
8eac753
Issue #552 checkbox (#965)
IanCStewart Nov 13, 2017
3b0ec72
Issue #552 commands (#966)
IanCStewart Nov 13, 2017
1587679
Issue #552 date separator (#972)
IanCStewart Nov 14, 2017
a48f52d
Issue #552 dialog (#974)
IanCStewart Nov 14, 2017
2db8690
Sjaakluthart/image (#973)
Nov 14, 2017
82cc7c3
Fixed badge uncovered lines. (#975)
IanCStewart Nov 14, 2017
b8b76b3
Issue #552 divider (#976)
IanCStewart Nov 14, 2017
5c07782
Issue #552 emoji filter (#978)
IanCStewart Nov 14, 2017
ec250db
Issue #981 (#982)
IanCStewart Nov 15, 2017
27b35fb
Issue #977 (#980)
IanCStewart Nov 15, 2017
baa2039
Sjaakluthart/image loader message (#979)
Nov 15, 2017
5749649
Merge branch 'master' into develop
IanCStewart Nov 16, 2017
c0de8d4
Updated some test files, added ImageLoader and fixed Message no-Avata…
IanCStewart Nov 16, 2017
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
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"react/no-danger": 0
},
"globals": {
"Image": true,
"window": true
},
"plugins": [
Expand Down
9 changes: 9 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{
"reporter": [
"text"
],
"exclude": [
"test/**/*"
]
}
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ before_install:
cd docs && npm install && cd ../
before_script:
npm run compile && npm run lint
after_success: npm run coverage
before_deploy:
cd docs && npm run build && cd ../
deploy:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/anchorchat/anchor-ui.svg?branch=master)](https://travis-ci.org/anchorchat/anchor-ui)
[![npm version](https://badge.fury.io/js/anchor-ui.svg)](https://badge.fury.io/js/anchor-ui)
[![Coverage Status](https://img.shields.io/codecov/c/github/anchorchat/anchor-ui/develop.svg)](https://codecov.io/gh/anchorchat/anchor-ui/)

UI kit for chat engines with React

Expand Down
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment:
layout: "diff, flags, files"
behavior: once
require_changes: true # if true: only post the comment if coverage changes
191 changes: 181 additions & 10 deletions docs/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@
}
}
},
"components/card/index.jsx": {
"components/card/component.jsx": {
"description": "A Card is a piece of paper with unique related data",
"displayName": "Card",
"methods": [],
Expand All @@ -579,7 +579,7 @@
}
}
},
"components/card-content/index.jsx": {
"components/card-content/component.jsx": {
"description": "A Card is a piece of paper with unique related data",
"displayName": "CardContent",
"methods": [],
Expand All @@ -605,7 +605,7 @@
}
}
},
"components/card-header/index.jsx": {
"components/card-header/component.jsx": {
"description": "A Card is a piece of paper with unique related data",
"displayName": "CardHeader",
"methods": [],
Expand Down Expand Up @@ -701,7 +701,7 @@
}
}
},
"components/channel-header/index.jsx": {
"components/channel-header/component.jsx": {
"description": "A channel's header",
"displayName": "ChannelHeader",
"methods": [],
Expand Down Expand Up @@ -815,7 +815,7 @@
}
}
},
"components/checkbox/index.jsx": {
"components/checkbox/component.jsx": {
"description": "A checkbox is used to verify which options you want selected from a group.",
"displayName": "Checkbox",
"methods": [],
Expand Down Expand Up @@ -916,7 +916,7 @@
}
}
},
"components/commands/index.jsx": {
"components/commands/component.jsx": {
"description": "Used for displaying a list of commands",
"displayName": "Commands",
"methods": [
Expand Down Expand Up @@ -1211,7 +1211,7 @@
}
}
},
"components/date-separator/index.jsx": {
"components/date-separator/component.jsx": {
"description": "A separator to show above a Message",
"displayName": "DateSeparator",
"methods": [],
Expand Down Expand Up @@ -1281,7 +1281,7 @@
}
}
},
"components/dialog/index.jsx": {
"components/dialog/component.jsx": {
"description": "General purpose dialog",
"displayName": "Dialog",
"methods": [
Expand Down Expand Up @@ -1395,7 +1395,7 @@
}
}
},
"components/divider/index.jsx": {
"components/divider/component.jsx": {
"description": "Dividers group and separate content within lists and page layouts.",
"displayName": "Divider",
"methods": [],
Expand Down Expand Up @@ -1425,7 +1425,7 @@
}
}
},
"components/emoji-filter/index.jsx": {
"components/emoji-filter/component.jsx": {
"description": "Used for displaying a list of commands",
"displayName": "EmojiFilter",
"methods": [
Expand Down Expand Up @@ -3743,6 +3743,133 @@
}
}
},
"components/image-loader/index.jsx": {
"description": "",
"displayName": "ImageLoader",
"methods": [
{
"name": "handleError",
"docblock": null,
"modifiers": [],
"params": [
{
"name": "error",
"type": null
}
],
"returns": null
},
{
"name": "handleLoad",
"docblock": null,
"modifiers": [],
"params": [
{
"name": "e",
"type": null
}
],
"returns": null
},
{
"name": "create",
"docblock": null,
"modifiers": [],
"params": [],
"returns": null
},
{
"name": "destroy",
"docblock": null,
"modifiers": [],
"params": [],
"returns": null
},
{
"name": "renderImage",
"docblock": null,
"modifiers": [],
"params": [],
"returns": null
}
],
"props": {
"alt": {
"type": {
"name": "string"
},
"required": false,
"description": "The alt of the image to be loaded",
"defaultValue": {
"value": "''",
"computed": false
}
},
"error": {
"type": {
"name": "node"
},
"required": false,
"description": "Optional error component to show when image failed to load",
"defaultValue": {
"value": "null",
"computed": false
}
},
"imgProps": {
"type": {
"name": "instanceOf",
"value": "Object"
},
"required": false,
"description": "Optional props for the img element",
"defaultValue": {
"value": "{}",
"computed": false
}
},
"onError": {
"type": {
"name": "func"
},
"required": false,
"description": "Callback fired when loading throws an error\n\nfunction(event: object) => void",
"defaultValue": {
"value": "() => {}",
"computed": false
}
},
"onLoad": {
"type": {
"name": "func"
},
"required": false,
"description": "Callback fired when image is finished loading\n\nfunction(event: object) => void",
"defaultValue": {
"value": "() => {}",
"computed": false
}
},
"placeholder": {
"type": {
"name": "node"
},
"required": false,
"description": "Placeholder to show while the image is loading",
"defaultValue": {
"value": "null",
"computed": false
}
},
"src": {
"type": {
"name": "string"
},
"required": true,
"description": "The URL of the image to be loaded"
}
}
},
"components/input/index.jsx": {
"description": "General purpose form input",
"displayName": "Input",
Expand Down Expand Up @@ -5137,6 +5264,50 @@
"computed": false
}
},
"imagePlaceholder": {
"type": {
"name": "string"
},
"required": false,
"description": "Image placeholder url",
"defaultValue": {
"value": "'https://cdn.anchor.fish/client/assets/defaults/picture.f682bf93.jpg'",
"computed": false
}
},
"imageError": {
"type": {
"name": "string"
},
"required": false,
"description": "Image error url",
"defaultValue": {
"value": "'https://cdn.anchor.fish/client/assets/defaults/error.2838da1f.jpg'",
"computed": false
}
},
"onImageLoad": {
"type": {
"name": "func"
},
"required": false,
"description": "Callback fired when an image or giphy is finished loading\n\nfunction(event: object) => void",
"defaultValue": {
"value": "() => {}",
"computed": false
}
},
"onImageError": {
"type": {
"name": "func"
},
"required": false,
"description": "Callback fired when an image or giphy throws an error while loading\n\nfunction(event: object) => void",
"defaultValue": {
"value": "() => {}",
"computed": false
}
},
"color": {
"type": {
"name": "string"
Expand Down
44 changes: 44 additions & 0 deletions docs/src/components/image-loader/example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export default `
\`\`\`jsx
import React, { Component } from 'react';
import ImageLoader from 'anchor-ui/image-loader';

class ImageLoaderExample extends Component {
handleOnLoad = () => {
console.log('Loaded image');
}

handleOnError = () => {
console.log('Failed to load image');
}

render() {
const imgProps = {
style: {
height: '200px',
width: 'auto'
},
onClick: () => console.log('clicked image')
};

const error = <p>Error while loading image!</p>;

const placeholder = <p>Loading image...</p>;

return (
<ImageLoader
src="https://static.pexels.com/photos/205508/pexels-photo-205508.jpeg"
alt="macbook and coffee"
imgProps={imgProps}
error={error}
placeholder={placeholder}
onError={this.handleOnError}
onLoad={this.handleOnLoad}
/>
);
}
}

export default ImageLoaderExample;
\`\`\`
`;
Loading