export async function getStepComponent( stepName ) { const moduleName = stepNameToModuleName[ stepName ]; const module = await import( /* webpackChunkName: "async-load-signup-steps-[request]", webpackInclude: /signup\/steps\/[0-9a-z-]+\/index.jsx$/ */ `calypso/signup/steps/${ moduleName }` ); return module.default; }
createInstance(config, clientName) { // async creator only support createInstanceAsync assert(!is.asyncFunction(this.create), `egg:singleton ${this.name} only support create asynchronous, please use createInstanceAsync`); // options.default will be merge in to options.clients[id] config = Object.assign({}, this.options.default, config); return this.create(config, this.app, clientName); }
(0, _textfieldHelpers.textfieldWrapper)(function (props) { var inputRef = props.inputRef, rest = babelHelpers.objectWithoutProperties(props, ["inputRef"]); // default number of rows if (!'rows' in rest) rest.rows = 2; return /*#__PURE__*/_react.default.createElement("textarea", babelHelpers.extends({ ref: inputRef }, rest)); })