@@ -5,7 +5,11 @@ import {mapKeys} from '../../Util'
55const camelCase = Util . camelCase ;
66const snakeCase = Util . snakeCase ;
77
8- export default class CloudinaryComponent extends Component {
8+ /**
9+ * A base component for Cloudinary components.
10+ * @protected
11+ */
12+ class CloudinaryComponent extends Component {
913 constructor ( props , context ) {
1014 super ( props , context ) ;
1115 }
@@ -41,6 +45,7 @@ export default class CloudinaryComponent extends Component {
4145 * and any children.
4246 * @param options
4347 * @returns {object } a hash of transformation and configuration parameters
48+ * @protected
4449 */
4550 getTransformation ( options ) {
4651 var transformation ;
@@ -56,7 +61,8 @@ export default class CloudinaryComponent extends Component {
5661
5762 /**
5863 * Combine properties of all options to create an option Object that can be passed to Cloudinary methods.<br>
59- * All names are converted to snake_case. undefined and null values are filtered out.
64+ * `undefined` and `null` values are filtered out.
65+ * @protected
6066 * @returns {Object }
6167 * @param options one or more options objects
6268 */
@@ -77,6 +83,7 @@ export default class CloudinaryComponent extends Component {
7783 * Generate a Cloudinary resource URL based on the options provided and child Transformation elements
7884 * @param options
7985 * @returns {string } a cloudinary URL
86+ * @protected
8087 */
8188 getUrl ( options ) {
8289 let transformation = this . getTransformation ( options ) ;
@@ -98,6 +105,7 @@ CloudinaryComponent.childContextTypes = {};
98105 * Create a React type definition object. All items are PropTypes.string or [string] or object or [object].
99106 * @param {Array } configParams a list of parameter names
100107 * @returns {Object }
108+ * @private
101109 */
102110function typesFrom ( configParams ) {
103111 configParams = configParams || [ ] ;
@@ -109,3 +117,4 @@ function typesFrom(configParams) {
109117 return types ;
110118}
111119
120+ export default CloudinaryComponent ;
0 commit comments