@rocket.chat/onboarding-ui 0.6.3-dev.402 → 0.6.3-dev.405

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@ var StandaloneServerForm = function (_a) {
25
25
  var t = react_i18next_1.useTranslation().t;
26
26
  var form = react_hook_form_1.useForm({
27
27
  mode: 'onChange',
28
- defaultValues: __assign({ registerType: 'registered' }, initialValues),
28
+ defaultValues: __assign({ registerType: 'standalone' }, initialValues),
29
29
  });
30
30
  var _b = form.formState, isValidating = _b.isValidating, isSubmitting = _b.isSubmitting, isValid = _b.isValid, handleSubmit = form.handleSubmit;
31
31
  return (jsx_runtime_1.jsx(react_hook_form_1.FormProvider, __assign({}, form, { children: jsx_runtime_1.jsxs(Form_1.default, __assign({ onSubmit: handleSubmit(onSubmit) }, { children: [jsx_runtime_1.jsx(Form_1.default.Steps, { currentStep: currentStep, stepCount: stepCount }, void 0), jsx_runtime_1.jsx(Form_1.default.Title, { children: t('form.standaloneServerForm.title') }, void 0), jsx_runtime_1.jsx(fuselage_1.Box, __assign({ mbe: 'x24', mbs: 'x16' }, { children: jsx_runtime_1.jsxs(List_1.default, { children: [jsx_runtime_1.jsx(List_1.default.Item, __assign({ fontScale: 'c2', icon: 'warning', iconColor: 'warning' }, { children: t('form.standaloneServerForm.servicesUnavailable') }), void 0), jsx_runtime_1.jsx(List_1.default.Item, __assign({ fontScale: 'c1', icon: 'info', iconColor: 'neutral' }, { children: t('form.standaloneServerForm.publishOwnApp') }), void 0), jsx_runtime_1.jsx(List_1.default.Item, __assign({ fontScale: 'c1', icon: 'info', iconColor: 'neutral' }, { children: t('form.standaloneServerForm.manuallyIntegrate') }), void 0)] }, void 0) }), void 0), jsx_runtime_1.jsx(Form_1.default.Footer, { children: jsx_runtime_1.jsxs(fuselage_1.ButtonGroup, { children: [jsx_runtime_1.jsx(fuselage_1.Button, __assign({ onClick: onBackButtonClick }, { children: t('component.form.action.back') }), void 0), jsx_runtime_1.jsx(fuselage_1.Button, __assign({ type: 'submit', primary: true, disabled: isValidating || isSubmitting || !isValid }, { children: t('component.form.action.confirm') }), void 0)] }, void 0) }, void 0)] }), void 0) }), void 0));
@@ -20,7 +20,7 @@ var StandaloneServerForm = function (_a) {
20
20
  var t = useTranslation().t;
21
21
  var form = useForm({
22
22
  mode: 'onChange',
23
- defaultValues: __assign({ registerType: 'registered' }, initialValues),
23
+ defaultValues: __assign({ registerType: 'standalone' }, initialValues),
24
24
  });
25
25
  var _b = form.formState, isValidating = _b.isValidating, isSubmitting = _b.isSubmitting, isValid = _b.isValid, handleSubmit = form.handleSubmit;
26
26
  return (_jsx(FormProvider, __assign({}, form, { children: _jsxs(Form, __assign({ onSubmit: handleSubmit(onSubmit) }, { children: [_jsx(Form.Steps, { currentStep: currentStep, stepCount: stepCount }, void 0), _jsx(Form.Title, { children: t('form.standaloneServerForm.title') }, void 0), _jsx(Box, __assign({ mbe: 'x24', mbs: 'x16' }, { children: _jsxs(List, { children: [_jsx(List.Item, __assign({ fontScale: 'c2', icon: 'warning', iconColor: 'warning' }, { children: t('form.standaloneServerForm.servicesUnavailable') }), void 0), _jsx(List.Item, __assign({ fontScale: 'c1', icon: 'info', iconColor: 'neutral' }, { children: t('form.standaloneServerForm.publishOwnApp') }), void 0), _jsx(List.Item, __assign({ fontScale: 'c1', icon: 'info', iconColor: 'neutral' }, { children: t('form.standaloneServerForm.manuallyIntegrate') }), void 0)] }, void 0) }), void 0), _jsx(Form.Footer, { children: _jsxs(ButtonGroup, { children: [_jsx(Button, __assign({ onClick: onBackButtonClick }, { children: t('component.form.action.back') }), void 0), _jsx(Button, __assign({ type: 'submit', primary: true, disabled: isValidating || isSubmitting || !isValid }, { children: t('component.form.action.confirm') }), void 0)] }, void 0) }, void 0)] }), void 0) }), void 0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocket.chat/onboarding-ui",
3
- "version": "0.6.3-dev.402+374eecc1",
3
+ "version": "0.6.3-dev.405+1897af79",
4
4
  "description": "Set of components and functions for the onboarding experience on Rocket.Chat",
5
5
  "keywords": [
6
6
  "rocketchat"
@@ -70,10 +70,10 @@
70
70
  "typescript": "^4.3.4"
71
71
  },
72
72
  "dependencies": {
73
- "@rocket.chat/fuselage": "^0.6.3-dev.402+374eecc1",
74
- "@rocket.chat/fuselage-hooks": "^0.6.3-dev.402+374eecc1",
73
+ "@rocket.chat/fuselage": "^0.6.3-dev.405+1897af79",
74
+ "@rocket.chat/fuselage-hooks": "^0.31.1",
75
75
  "@rocket.chat/icons": "^0.31.1",
76
- "@rocket.chat/logo": "^0.6.3-dev.402+374eecc1",
76
+ "@rocket.chat/logo": "^0.31.1",
77
77
  "@rocket.chat/styled": "^0.31.1",
78
78
  "i18next": "^20.3.2",
79
79
  "react-hook-form": "^7.10.1",
@@ -85,5 +85,5 @@
85
85
  "react": "17.0.2",
86
86
  "react-dom": "17.0.2"
87
87
  },
88
- "gitHead": "374eecc16b19786b65a06341531b804c35889e7b"
88
+ "gitHead": "1897af7974631422ccd15eaf160e59a53200e54a"
89
89
  }