@coorpacademy/components 11.34.4-alpha.3 → 11.34.5-alpha.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
@@ -3,7 +3,6 @@ import IconPreview from '../../molecule/icon-preview';
3
3
  import InputText from '../../atom/input-text';
4
4
  import ButtonLink from '../../atom/button-link';
5
5
  import Provider, { GetTranslateFromContext } from '../../atom/provider';
6
- import { validateColor } from '../../util/validate-color';
7
6
  import { COLORS } from '../../variables/colors';
8
7
  import style from './style.css';
9
8
  import propTypes from './types';
@@ -18,35 +17,24 @@ const IconEditor = (props, legacyContext) => {
18
17
  title,
19
18
  icon
20
19
  } = iconPreview;
21
- const {
22
- value,
23
- description,
24
- handleChange
25
- } = inputText;
26
- const isValidColor = validateColor(inputText.value);
27
- const previewColor = isValidColor ? value : COLORS.white;
28
- const inputError = value && (!isValidColor ? translate('invalid_color') : undefined);
20
+ const inputTextProps = {
21
+ ...inputText,
22
+ type: 'text',
23
+ title: translate('icon_editor_color'),
24
+ placeholder: COLORS.white,
25
+ theme: 'coorpmanager',
26
+ disabled: false,
27
+ valid: false,
28
+ inputColor: true
29
+ };
29
30
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPreview, {
30
31
  icon: {
31
- ...icon,
32
- color: previewColor
32
+ ...icon
33
33
  },
34
34
  title: title
35
35
  }), /*#__PURE__*/React.createElement("div", {
36
36
  className: style.inputButtonContainer
37
- }, /*#__PURE__*/React.createElement(InputText, {
38
- type: "text",
39
- title: translate('icon_editor_color'),
40
- placeholder: COLORS.white,
41
- theme: "coorpmanager",
42
- description: description,
43
- value: value,
44
- error: inputError,
45
- disabled: false,
46
- valid: false,
47
- onChange: handleChange,
48
- inputColor: true
49
- }), /*#__PURE__*/React.createElement(ButtonLink, buttonLink)));
37
+ }, /*#__PURE__*/React.createElement(InputText, inputTextProps), /*#__PURE__*/React.createElement(ButtonLink, buttonLink)));
50
38
  };
51
39
  IconEditor.contextTypes = {
52
40
  translate: Provider.childContextTypes.translate
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","IconPreview","InputText","ButtonLink","Provider","GetTranslateFromContext","validateColor","COLORS","style","propTypes","IconEditor","props","legacyContext","translate","iconPreview","inputText","buttonLink","title","icon","value","description","handleChange","isValidColor","previewColor","white","inputError","undefined","createElement","Fragment","color","className","inputButtonContainer","type","placeholder","theme","error","disabled","valid","onChange","inputColor","contextTypes","childContextTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/icon-editor/index.tsx"],"sourcesContent":["import React from 'react';\nimport IconPreview from '../../molecule/icon-preview';\nimport InputText from '../../atom/input-text';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {validateColor} from '../../util/validate-color';\nimport type {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {IconEditorProps} from './types';\n\nconst IconEditor = (props: IconEditorProps, legacyContext: WebContextValues) => {\n const translate = GetTranslateFromContext(legacyContext);\n const {iconPreview, inputText, buttonLink} = props;\n const {title, icon} = iconPreview;\n const {value, description, handleChange} = inputText;\n\n const isValidColor = validateColor(inputText.value);\n const previewColor = isValidColor ? value : COLORS.white;\n const inputError = value && (!isValidColor ? translate('invalid_color') : undefined);\n\n return (\n <>\n <IconPreview icon={{...icon, color: previewColor}} title={title} />\n <div className={style.inputButtonContainer}>\n <InputText\n type=\"text\"\n title={translate('icon_editor_color')}\n placeholder={COLORS.white}\n theme=\"coorpmanager\"\n description={description}\n value={value}\n error={inputError}\n disabled={false}\n valid={false}\n onChange={handleChange}\n inputColor\n />\n <ButtonLink {...buttonLink} />\n </div>\n </>\n );\n};\n\nIconEditor.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nIconEditor.propTypes = propTypes;\n\nexport default IconEditor;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,WAAW,MAAM,6BAA6B;AACrD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AACrE,SAAQC,aAAa,QAAO,2BAA2B;AAEvD,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,SAAS,MAAyB,SAAS;AAElD,MAAMC,UAAU,GAAGA,CAACC,KAAsB,EAAEC,aAA+B,KAAK;EAC9E,MAAMC,SAAS,GAAGR,uBAAuB,CAACO,aAAa,CAAC;EACxD,MAAM;IAACE,WAAW;IAAEC,SAAS;IAAEC;EAAU,CAAC,GAAGL,KAAK;EAClD,MAAM;IAACM,KAAK;IAAEC;EAAI,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,QAAA,oBAAGnC,SAAS;AAEhC,eAAeC,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","IconPreview","InputText","ButtonLink","Provider","GetTranslateFromContext","COLORS","style","propTypes","IconEditor","props","legacyContext","translate","iconPreview","inputText","buttonLink","title","icon","inputTextProps","type","placeholder","white","theme","disabled","valid","inputColor","createElement","Fragment","className","inputButtonContainer","contextTypes","childContextTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/icon-editor/index.tsx"],"sourcesContent":["import React from 'react';\nimport IconPreview from '../../molecule/icon-preview';\nimport InputText from '../../atom/input-text';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport type {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {IconEditorProps} from './types';\n\nconst IconEditor = (props: IconEditorProps, legacyContext: WebContextValues) => {\n const translate = GetTranslateFromContext(legacyContext);\n const {iconPreview, inputText, buttonLink} = props;\n const {title, icon} = iconPreview;\n\n const inputTextProps = {\n ...inputText,\n type: 'text',\n title: translate('icon_editor_color'),\n placeholder: COLORS.white,\n theme: 'coorpmanager',\n disabled: false,\n valid: false,\n inputColor: true\n };\n\n return (\n <>\n <IconPreview icon={{...icon}} title={title} />\n <div className={style.inputButtonContainer}>\n <InputText {...inputTextProps} />\n <ButtonLink {...buttonLink} />\n </div>\n </>\n );\n};\n\nIconEditor.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nIconEditor.propTypes = propTypes;\n\nexport default IconEditor;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,WAAW,MAAM,6BAA6B;AACrD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,KAAK,MAAM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/index.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/icon-editor/index.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAkB,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,UAAU;YAAW,eAAe,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB1E,CAAC;AAQF,eAAe,UAAU,CAAC"}
@@ -7,7 +7,6 @@ var _iconPreview = _interopRequireDefault(require("../../molecule/icon-preview")
7
7
  var _inputText = _interopRequireDefault(require("../../atom/input-text"));
8
8
  var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
9
9
  var _provider = _interopRequireWildcard(require("../../atom/provider"));
10
- var _validateColor = require("../../util/validate-color");
11
10
  var _colors = require("../../variables/colors");
12
11
  var _style = _interopRequireDefault(require("./style.css"));
13
12
  var _types = _interopRequireDefault(require("./types"));
@@ -25,35 +24,24 @@ const IconEditor = (props, legacyContext) => {
25
24
  title,
26
25
  icon
27
26
  } = iconPreview;
28
- const {
29
- value,
30
- description,
31
- handleChange
32
- } = inputText;
33
- const isValidColor = (0, _validateColor.validateColor)(inputText.value);
34
- const previewColor = isValidColor ? value : _colors.COLORS.white;
35
- const inputError = value && (!isValidColor ? translate('invalid_color') : undefined);
27
+ const inputTextProps = {
28
+ ...inputText,
29
+ type: 'text',
30
+ title: translate('icon_editor_color'),
31
+ placeholder: _colors.COLORS.white,
32
+ theme: 'coorpmanager',
33
+ disabled: false,
34
+ valid: false,
35
+ inputColor: true
36
+ };
36
37
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_iconPreview.default, {
37
38
  icon: {
38
- ...icon,
39
- color: previewColor
39
+ ...icon
40
40
  },
41
41
  title: title
42
42
  }), /*#__PURE__*/_react.default.createElement("div", {
43
43
  className: _style.default.inputButtonContainer
44
- }, /*#__PURE__*/_react.default.createElement(_inputText.default, {
45
- type: "text",
46
- title: translate('icon_editor_color'),
47
- placeholder: _colors.COLORS.white,
48
- theme: "coorpmanager",
49
- description: description,
50
- value: value,
51
- error: inputError,
52
- disabled: false,
53
- valid: false,
54
- onChange: handleChange,
55
- inputColor: true
56
- }), /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)));
44
+ }, /*#__PURE__*/_react.default.createElement(_inputText.default, inputTextProps), /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)));
57
45
  };
58
46
  IconEditor.contextTypes = {
59
47
  translate: _provider.default.childContextTypes.translate
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_iconPreview","_inputText","_buttonLink","_provider","_interopRequireWildcard","_validateColor","_colors","_style","_types","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","IconEditor","props","legacyContext","translate","GetTranslateFromContext","iconPreview","inputText","buttonLink","title","icon","value","description","handleChange","isValidColor","validateColor","previewColor","COLORS","white","inputError","undefined","createElement","Fragment","color","className","style","inputButtonContainer","type","placeholder","theme","error","disabled","valid","onChange","inputColor","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/icon-editor/index.tsx"],"sourcesContent":["import React from 'react';\nimport IconPreview from '../../molecule/icon-preview';\nimport InputText from '../../atom/input-text';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {validateColor} from '../../util/validate-color';\nimport type {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {IconEditorProps} from './types';\n\nconst IconEditor = (props: IconEditorProps, legacyContext: WebContextValues) => {\n const translate = GetTranslateFromContext(legacyContext);\n const {iconPreview, inputText, buttonLink} = props;\n const {title, icon} = iconPreview;\n const {value, description, handleChange} = inputText;\n\n const isValidColor = validateColor(inputText.value);\n const previewColor = isValidColor ? value : COLORS.white;\n const inputError = value && (!isValidColor ? translate('invalid_color') : undefined);\n\n return (\n <>\n <IconPreview icon={{...icon, color: previewColor}} title={title} />\n <div className={style.inputButtonContainer}>\n <InputText\n type=\"text\"\n title={translate('icon_editor_color')}\n placeholder={COLORS.white}\n theme=\"coorpmanager\"\n description={description}\n value={value}\n error={inputError}\n disabled={false}\n valid={false}\n onChange={handleChange}\n inputColor\n />\n <ButtonLink {...buttonLink} />\n </div>\n </>\n );\n};\n\nIconEditor.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nIconEditor.propTypes = propTypes;\n\nexport default IconEditor;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAEA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,MAAA,GAAAV,sBAAA,CAAAC,OAAA;AAAmD,SAAAU,yBAAAC,CAAA,6BAA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C,eACFjE,MAAA,CAAAkB,OAAA,CAAAkC,aAAA,CAAC/C,WAAA,CAAAa,OAAU,EAAKqB,UAAa,CAC1B,CACL,CAAC;AAEP,CAAC;AAEDP,UAAU,CAACkC,YAAY,GAAG;EACxB/B,SAAS,EAAEgC,iBAAQ,CAACC,iBAAiB,CAACjC;AACxC,CAAC;AAEDH,UAAU,CAACqC,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GAElBc,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_iconPreview","_inputText","_buttonLink","_provider","_interopRequireWildcard","_colors","_style","_types","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","IconEditor","props","legacyContext","translate","GetTranslateFromContext","iconPreview","inputText","buttonLink","title","icon","inputTextProps","type","placeholder","COLORS","white","theme","disabled","valid","inputColor","createElement","Fragment","className","style","inputButtonContainer","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/icon-editor/index.tsx"],"sourcesContent":["import React from 'react';\nimport IconPreview from '../../molecule/icon-preview';\nimport InputText from '../../atom/input-text';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport type {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {IconEditorProps} from './types';\n\nconst IconEditor = (props: IconEditorProps, legacyContext: WebContextValues) => {\n const translate = GetTranslateFromContext(legacyContext);\n const {iconPreview, inputText, buttonLink} = props;\n const {title, icon} = iconPreview;\n\n const inputTextProps = {\n ...inputText,\n type: 'text',\n title: translate('icon_editor_color'),\n placeholder: COLORS.white,\n theme: 'coorpmanager',\n disabled: false,\n valid: false,\n inputColor: true\n };\n\n return (\n <>\n <IconPreview icon={{...icon}} title={title} />\n <div className={style.inputButtonContainer}>\n <InputText {...inputTextProps} />\n <ButtonLink {...buttonLink} />\n </div>\n </>\n );\n};\n\nIconEditor.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nIconEditor.propTypes = propTypes;\n\nexport default IconEditor;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,MAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAmD,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CA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C,GAAGA;IAAI,CAAE;IAACD,KAAK,EAAEA;EAAM,CAAE,CAAC,eAC9CvC,MAAA,CAAAiB,OAAA,CAAAiC,aAAA;IAAKE,SAAS,EAAEC,cAAK,CAACC;EAAqB,gBACzCtD,MAAA,CAAAiB,OAAA,CAAAiC,aAAA,CAAC9C,UAAA,CAAAa,OAAS,EAAKwB,cAAiB,CAAC,eACjCzC,MAAA,CAAAiB,OAAA,CAAAiC,aAAA,CAAC7C,WAAA,CAAAY,OAAU,EAAKqB,UAAa,CAC1B,CACL,CAAC;AAEP,CAAC;AAEDP,UAAU,CAACwB,YAAY,GAAG;EACxBrB,SAAS,EAAEsB,iBAAQ,CAACC,iBAAiB,CAACvB;AACxC,CAAC;AAEDH,UAAU,CAAC2B,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAA9C,OAAA,GAElBc,UAAU","ignoreList":[]}
@@ -217,8 +217,8 @@
217
217
  "badge": "Die zusätzlichen Informationen zu Ihrem Zertifikat"
218
218
  },
219
219
  "css": {
220
- "modules": "{{count}} Ebene",
221
- "modules_plural": "{{count}} Ebenen",
220
+ "modules": "{{count}} Level",
221
+ "modules_plural": "{{count}} Levels",
222
222
  "modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> Pflichtlevel abgeschlossen",
223
223
  "modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> obligatorische Level abgeschlossen",
224
224
  "certification_module": "Level zum Abschließen"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.34.4-alpha.3+57efa9f51",
3
+ "version": "11.34.5-alpha.5+6f7d405ff",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -165,5 +165,5 @@
165
165
  "last 2 versions",
166
166
  "IE 11"
167
167
  ],
168
- "gitHead": "57efa9f51c919f7bf00a321a3b21f4028601c44d"
168
+ "gitHead": "6f7d405ff984682e1971dc76e9f6c4b2dae86cf3"
169
169
  }