@os-team/profile 1.0.32 → 1.0.36

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.
Files changed (101) hide show
  1. package/dist/cjs/components/profile/ProfileConfigContext.js +1 -1
  2. package/dist/cjs/components/profile/ProfileContext.js +1 -1
  3. package/dist/cjs/components/profile/ProfileDrawer.js +1 -1
  4. package/dist/cjs/components/profile/ProfileUpdateNameModal.js +12 -9
  5. package/dist/cjs/components/profile/ProfileUpdateNameModal.js.map +1 -1
  6. package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js +12 -9
  7. package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
  8. package/dist/cjs/components/profile/ProtectedWrapper.js +28 -19
  9. package/dist/cjs/components/profile/ProtectedWrapper.js.map +1 -1
  10. package/dist/cjs/components/profile/UserAvatar.js +1 -1
  11. package/dist/cjs/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js +7 -9
  12. package/dist/cjs/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js.map +1 -1
  13. package/dist/cjs/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js +7 -12
  14. package/dist/cjs/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js.map +1 -1
  15. package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +7 -13
  16. package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
  17. package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +7 -11
  18. package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
  19. package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +7 -13
  20. package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
  21. package/dist/cjs/components/session/SessionDrawer.js +1 -1
  22. package/dist/cjs/components/session/SessionDrawerContent.js +9 -7
  23. package/dist/cjs/components/session/SessionDrawerContent.js.map +1 -1
  24. package/dist/cjs/components/session/SessionList.js +1 -1
  25. package/dist/cjs/components/session/SessionListItem.js +1 -1
  26. package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js +7 -34
  27. package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
  28. package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +7 -9
  29. package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
  30. package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +7 -11
  31. package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
  32. package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js +7 -1
  33. package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
  34. package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js +7 -34
  35. package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
  36. package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js +7 -5
  37. package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js.map +1 -1
  38. package/dist/cjs/index.js +1 -1
  39. package/dist/esm/components/profile/ProfileDrawer.js +9 -3
  40. package/dist/esm/components/profile/ProfileDrawer.js.map +1 -1
  41. package/dist/esm/components/profile/ProfileUpdateNameModal.js +10 -9
  42. package/dist/esm/components/profile/ProfileUpdateNameModal.js.map +1 -1
  43. package/dist/esm/components/profile/ProfileUpdatePasswordModal.js +10 -9
  44. package/dist/esm/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
  45. package/dist/esm/components/profile/ProtectedWrapper.js +24 -25
  46. package/dist/esm/components/profile/ProtectedWrapper.js.map +1 -1
  47. package/dist/esm/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js +7 -9
  48. package/dist/esm/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js.map +1 -1
  49. package/dist/esm/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js +7 -12
  50. package/dist/esm/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js.map +1 -1
  51. package/dist/esm/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +7 -13
  52. package/dist/esm/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
  53. package/dist/esm/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +7 -11
  54. package/dist/esm/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
  55. package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +7 -13
  56. package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
  57. package/dist/esm/components/session/SessionDrawerContent.js +7 -5
  58. package/dist/esm/components/session/SessionDrawerContent.js.map +1 -1
  59. package/dist/esm/components/session/SessionList.js +2 -2
  60. package/dist/esm/components/session/SessionList.js.map +1 -1
  61. package/dist/esm/components/session/__generated__/SessionDrawerContentQuery.graphql.js +7 -34
  62. package/dist/esm/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
  63. package/dist/esm/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +7 -9
  64. package/dist/esm/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
  65. package/dist/esm/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +7 -11
  66. package/dist/esm/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
  67. package/dist/esm/components/session/__generated__/SessionListItem_session.graphql.js +7 -1
  68. package/dist/esm/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
  69. package/dist/esm/components/session/__generated__/SessionListRefetchQuery.graphql.js +7 -34
  70. package/dist/esm/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
  71. package/dist/esm/components/session/__generated__/SessionList_sessions.graphql.js +8 -3
  72. package/dist/esm/components/session/__generated__/SessionList_sessions.graphql.js.map +1 -1
  73. package/dist/esm/components/shared/ErrorResult.js +3 -1
  74. package/dist/esm/components/shared/ErrorResult.js.map +1 -1
  75. package/dist/types/components/profile/ProfileUpdateNameModal.d.ts.map +1 -1
  76. package/dist/types/components/profile/ProfileUpdatePasswordModal.d.ts.map +1 -1
  77. package/dist/types/components/profile/ProtectedWrapper.d.ts.map +1 -1
  78. package/dist/types/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts +5 -5
  79. package/dist/types/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts.map +1 -1
  80. package/dist/types/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts +6 -6
  81. package/dist/types/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts.map +1 -1
  82. package/dist/types/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts +5 -5
  83. package/dist/types/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts.map +1 -1
  84. package/dist/types/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts +5 -5
  85. package/dist/types/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts.map +1 -1
  86. package/dist/types/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts +5 -5
  87. package/dist/types/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +1 -1
  88. package/dist/types/components/session/SessionDrawerContent.d.ts.map +1 -1
  89. package/dist/types/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts +6 -6
  90. package/dist/types/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts.map +1 -1
  91. package/dist/types/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts +5 -5
  92. package/dist/types/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts.map +1 -1
  93. package/dist/types/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts +5 -5
  94. package/dist/types/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts.map +1 -1
  95. package/dist/types/components/session/__generated__/SessionListItem_session.graphql.d.ts +4 -5
  96. package/dist/types/components/session/__generated__/SessionListItem_session.graphql.d.ts.map +1 -1
  97. package/dist/types/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts +6 -6
  98. package/dist/types/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map +1 -1
  99. package/dist/types/components/session/__generated__/SessionList_sessions.graphql.d.ts +5 -6
  100. package/dist/types/components/session/__generated__/SessionList_sessions.graphql.d.ts.map +1 -1
  101. package/package.json +59 -61
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -105,6 +105,16 @@ var ProfileUpdateNameModal = function ProfileUpdateNameModal(_ref) {
105
105
  }
106
106
  });
107
107
  }, [commit, data, onClose, t]);
108
+ var formContext = (0, _react.useMemo)(function () {
109
+ return {
110
+ data: data,
111
+ setData: setData,
112
+ fieldErrors: fieldErrors,
113
+ setFieldErrors: setFieldErrors,
114
+ formError: formError,
115
+ setFormError: setFormError
116
+ };
117
+ }, [data, fieldErrors, formError]);
108
118
  return /*#__PURE__*/_react.default.createElement(_core.Modal, {
109
119
  title: t('profile:updateNameModal.title'),
110
120
  visible: visibility,
@@ -113,14 +123,7 @@ var ProfileUpdateNameModal = function ProfileUpdateNameModal(_ref) {
113
123
  onOk: onSubmit,
114
124
  onClose: onClose
115
125
  }, /*#__PURE__*/_react.default.createElement(_formUtils.FormContext.Provider, {
116
- value: {
117
- data: data,
118
- setData: setData,
119
- fieldErrors: fieldErrors,
120
- setFieldErrors: setFieldErrors,
121
- formError: formError,
122
- setFormError: setFormError
123
- }
126
+ value: formContext
124
127
  }, /*#__PURE__*/_react.default.createElement(_ProfileUpdateNameForm.default, null)));
125
128
  };
126
129
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/components/profile/ProfileUpdateNameModal.tsx"],"names":["ProfileUpdateNameModal","visibility","onClose","t","firstName","lastName","fieldErrors","setFieldErrors","formError","setFormError","data","setData","commit","loading","onSubmit","variables","input","onError","error","onCompleted","undefined","message","success"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AAGA;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,sBAA6D,GAAG,SAAhEA,sBAAgE,OAGhE;AAAA,MAFJC,UAEI,QAFJA,UAEI;AAAA,MADJC,OACI,QADJA,OACI;;AACJ,wBAAc,kCAAe,SAAf,CAAd;AAAA,MAAQC,CAAR,mBAAQA,CAAR;;AACA,oBAAgC,iCAAhC;AAAA,MAAQC,SAAR,eAAQA,SAAR;AAAA,MAAmBC,QAAnB,eAAmBA,QAAnB;;AAEA,kBAAsC,qBACpC,EADoC,CAAtC;AAAA;AAAA,MAAOC,WAAP;AAAA,MAAoBC,cAApB;;AAGA,mBAAkC,sBAAlC;AAAA;AA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EF,UAFX;AAGE,IAAA,MAAM,EAAEE,CAAC,CAAC,gBAAD,CAHX;AAIE,IAAA,SAAS,EAAEU,OAJb;AAKE,IAAA,IAAI,EAAEC,QALR;AAME,IAAA,OAAO,EAAEZ;AANX,kBAQE,6BAAC,sBAAD,CAAa,QAAb;AACE,IAAA,KAAK,EAAE;AACLQ,MAAAA,IAAI,EAAJA,IADK;AAELC,MAAAA,OAAO,EAAPA,OAFK;AAGLL,MAAAA,WAAW,EAAXA,WAHK;AAILC,MAAAA,cAAc,EAAdA,cAJK;AAKLC,MAAAA,SAAS,EAATA,SALK;AAMLC,MAAAA,YAAY,EAAZA;AANK;AADT,kBAUE,6BAAC,8BAAD,OAVF,CARF,CADF;AAuBD,CA3ED;;eA6EeT,sB","sourcesContent":["import React, { useCallback, useEffect, useState } from 'react';\nimport { message, Modal } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\nimport { Constraint, handleFormErrors, FormContext } from '@os-team/form-utils';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport { useMutation } from 'react-relay/hooks';\nimport ProfileUpdateNameForm, {\n ProfileUpdateNameFormData,\n} from './ProfileUpdateNameForm';\nimport { useProfile } from './ProfileContext';\nimport { ProfileUpdateNameModalMutation } from './__generated__/ProfileUpdateNameModalMutation.graphql';\n\ninterface ProfileUpdateNameModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdateNameModal: React.FC<ProfileUpdateNameModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation('profile');\n const { firstName, lastName } = useProfile();\n\n const [fieldErrors, setFieldErrors] = useState<Record<string, Constraint>>(\n {}\n );\n const [formError, setFormError] = useState<string | undefined>();\n const [data, setData] = useState<ProfileUpdateNameFormData>({\n firstName: firstName || '',\n lastName: lastName || '',\n });\n\n const [commit, loading] = useMutation<ProfileUpdateNameModalMutation>(graphql`\n mutation ProfileUpdateNameModalMutation($input: UpdateProfileInput!) {\n updateProfile(input: $input) {\n firstName\n lastName\n }\n }\n `);\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) {\n setData({\n firstName: firstName || '',\n lastName: lastName || '',\n });\n }\n }, [firstName, lastName, visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: data,\n },\n onError: (error) => {\n handleFormErrors(error, { setFieldErrors, setFormError });\n },\n onCompleted: () => {\n setFieldErrors({});\n setFormError(undefined);\n message.success(t('profile:updated'));\n onClose();\n },\n });\n }, [commit, data, onClose, t]);\n\n return (\n <Modal\n title={t('profile:updateNameModal.title')}\n visible={visibility}\n okText={t('profile:update')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormContext.Provider\n value={{\n data,\n setData,\n fieldErrors,\n setFieldErrors,\n formError,\n setFormError,\n }}\n >\n <ProfileUpdateNameForm />\n </FormContext.Provider>\n </Modal>\n );\n};\n\nexport default ProfileUpdateNameModal;\n"],"file":"ProfileUpdateNameModal.js"}
1
+ {"version":3,"sources":["../../../../src/lib/components/profile/ProfileUpdateNameModal.tsx"],"names":["ProfileUpdateNameModal","visibility","onClose","t","firstName","lastName","fieldErrors","setFieldErrors","formError","setFormError","data","setData","commit","loading","onSubmit","variables","input","onError","error","onCompleted","undefined","message","success","formContext"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AAGA;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,sBAA6D,GAAG,SAAhEA,sBAAgE,OAGhE;AAAA,MAFJC,UAEI,QAFJA,UAEI;AAAA,MADJC,OACI,QADJA,OACI;;AACJ,wBAAc,kCAAe,SAAf,CAAd;AAAA,MAAQC,CAAR,mBAAQA,CAAR;;AACA,oBAAgC,iCAAhC;AAAA,MAAQC,SAAR,eAAQA,SAAR;AAAA,MAAmBC,QAAnB,eAAmBA,QAAnB;;AAEA,kBAAsC,qBACpC,EADoC,CAAtC;AAAA;AAAA,MAAOC,WAAP;AAAA,MAAoBC,cAApB;;AAGA,mBAAkC,sBAA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MAAAA,OAAO,EAAPA,OAFK;AAGLL,MAAAA,WAAW,EAAXA,WAHK;AAILC,MAAAA,cAAc,EAAdA,cAJK;AAKLC,MAAAA,SAAS,EAATA,SALK;AAMLC,MAAAA,YAAY,EAAZA;AANK,KAAP;AAAA,GADkB,EASlB,CAACC,IAAD,EAAOJ,WAAP,EAAoBE,SAApB,CATkB,CAApB;AAYA,sBACE,6BAAC,WAAD;AACE,IAAA,KAAK,EAAEL,CAAC,CAAC,+BAAD,CADV;AAEE,IAAA,OAAO,EAAEF,UAFX;AAGE,IAAA,MAAM,EAAEE,CAAC,CAAC,gBAAD,CAHX;AAIE,IAAA,SAAS,EAAEU,OAJb;AAKE,IAAA,IAAI,EAAEC,QALR;AAME,IAAA,OAAO,EAAEZ;AANX,kBAQE,6BAAC,sBAAD,CAAa,QAAb;AAAsB,IAAA,KAAK,EAAEqB;AAA7B,kBACE,6BAAC,8BAAD,OADF,CARF,CADF;AAcD,CA9ED;;eAgFevB,sB","sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { message, Modal } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\nimport { Constraint, handleFormErrors, FormContext } from '@os-team/form-utils';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport { useMutation } from 'react-relay/hooks';\nimport ProfileUpdateNameForm, {\n ProfileUpdateNameFormData,\n} from './ProfileUpdateNameForm';\nimport { useProfile } from './ProfileContext';\nimport { ProfileUpdateNameModalMutation } from './__generated__/ProfileUpdateNameModalMutation.graphql';\n\ninterface ProfileUpdateNameModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdateNameModal: React.FC<ProfileUpdateNameModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation('profile');\n const { firstName, lastName } = useProfile();\n\n const [fieldErrors, setFieldErrors] = useState<Record<string, Constraint>>(\n {}\n );\n const [formError, setFormError] = useState<string | undefined>();\n const [data, setData] = useState<ProfileUpdateNameFormData>({\n firstName: firstName || '',\n lastName: lastName || '',\n });\n\n const [commit, loading] = useMutation<ProfileUpdateNameModalMutation>(graphql`\n mutation ProfileUpdateNameModalMutation($input: UpdateProfileInput!) {\n updateProfile(input: $input) {\n firstName\n lastName\n }\n }\n `);\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) {\n setData({\n firstName: firstName || '',\n lastName: lastName || '',\n });\n }\n }, [firstName, lastName, visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: data,\n },\n onError: (error) => {\n handleFormErrors(error, { setFieldErrors, setFormError });\n },\n onCompleted: () => {\n setFieldErrors({});\n setFormError(undefined);\n message.success(t('profile:updated'));\n onClose();\n },\n });\n }, [commit, data, onClose, t]);\n\n const formContext = useMemo(\n () => ({\n data,\n setData,\n fieldErrors,\n setFieldErrors,\n formError,\n setFormError,\n }),\n [data, fieldErrors, formError]\n );\n\n return (\n <Modal\n title={t('profile:updateNameModal.title')}\n visible={visibility}\n okText={t('profile:update')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormContext.Provider value={formContext}>\n <ProfileUpdateNameForm />\n </FormContext.Provider>\n </Modal>\n );\n};\n\nexport default ProfileUpdateNameModal;\n"],"file":"ProfileUpdateNameModal.js"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -99,6 +99,16 @@ var ProfileUpdatePasswordModal = function ProfileUpdatePasswordModal(_ref) {
99
99
  }
100
100
  });
101
101
  }, [commit, data, onClose, t]);
102
+ var formContext = (0, _react.useMemo)(function () {
103
+ return {
104
+ data: data,
105
+ setData: setData,
106
+ fieldErrors: fieldErrors,
107
+ setFieldErrors: setFieldErrors,
108
+ formError: formError,
109
+ setFormError: setFormError
110
+ };
111
+ }, [data, fieldErrors, formError]);
102
112
  return /*#__PURE__*/_react.default.createElement(_core.Modal, {
103
113
  title: t('profile:updatePasswordModal.title'),
104
114
  visible: visibility,
@@ -107,14 +117,7 @@ var ProfileUpdatePasswordModal = function ProfileUpdatePasswordModal(_ref) {
107
117
  onOk: onSubmit,
108
118
  onClose: onClose
109
119
  }, /*#__PURE__*/_react.default.createElement(_formUtils.FormContext.Provider, {
110
- value: {
111
- data: data,
112
- setData: setData,
113
- fieldErrors: fieldErrors,
114
- setFieldErrors: setFieldErrors,
115
- formError: formError,
116
- setFormError: setFormError
117
- }
120
+ value: formContext
118
121
  }, /*#__PURE__*/_react.default.createElement(_ProfileUpdatePasswordForm.default, null)));
119
122
  };
120
123
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"names":["ProfileUpdatePasswordModal","visibility","onClose","t","fieldErrors","setFieldErrors","formError","setFormError","currentPassword","password","data","setData","commit","loading","onSubmit","variables","input","onError","error","onCompleted","undefined","message","success"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,0BAAqE,GAAG,SAAxEA,0BAAwE,OAGxE;AAAA,MAFJC,UAEI,QAFJA,UAEI;AAAA,MADJC,OACI,QADJA,OACI;;AACJ,wBAAc,kCAAe,SAAf,CAAd;AAAA,MAAQC,CAAR,mBAAQA,CAAR;;AAEA,kBAAsC,qBACpC,EADoC,CAAtC;AAAA;AAA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AAM,EAAEE,CAAC,CAAC,oCAAD,CAHX;AAIE,IAAA,SAAS,EAAEU,OAJb;AAKE,IAAA,IAAI,EAAEC,QALR;AAME,IAAA,OAAO,EAAEZ;AANX,kBAQE,6BAAC,sBAAD,CAAa,QAAb;AACE,IAAA,KAAK,EAAE;AACLQ,MAAAA,IAAI,EAAJA,IADK;AAELC,MAAAA,OAAO,EAAPA,OAFK;AAGLP,MAAAA,WAAW,EAAXA,WAHK;AAILC,MAAAA,cAAc,EAAdA,cAJK;AAKLC,MAAAA,SAAS,EAATA,SALK;AAMLC,MAAAA,YAAY,EAAZA;AANK;AADT,kBAUE,6BAAC,kCAAD,OAVF,CARF,CADF;AAuBD,CA5ED;;eA8EeP,0B","sourcesContent":["import React, { useCallback, useEffect, useState } from 'react';\nimport { message, Modal } from '@os-design/core';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport { useMutation } from 'react-relay/hooks';\nimport { useTranslation } from 'react-i18next';\nimport { Constraint, handleFormErrors, FormContext } from '@os-team/form-utils';\nimport ProfileUpdatePasswordForm, {\n ProfileUpdatePasswordFormData,\n} from './ProfileUpdatePasswordForm';\nimport { ProfileUpdatePasswordModalMutation } from './__generated__/ProfileUpdatePasswordModalMutation.graphql';\n\ninterface ProfileUpdatePasswordModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdatePasswordModal: React.FC<ProfileUpdatePasswordModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation('profile');\n\n const [fieldErrors, setFieldErrors] = useState<Record<string, Constraint>>(\n {}\n );\n const [formError, setFormError] = useState<string | undefined>();\n const [data, setData] = useState<ProfileUpdatePasswordFormData>({\n currentPassword: '',\n password: '',\n });\n\n const [commit, loading] =\n useMutation<ProfileUpdatePasswordModalMutation>(graphql`\n mutation ProfileUpdatePasswordModalMutation(\n $input: UpdatePasswordInput!\n ) {\n updatePassword(input: $input) {\n id\n }\n }\n `);\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) {\n setData({\n currentPassword: '',\n password: '',\n });\n }\n }, [visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: data,\n },\n onError: (error) => {\n handleFormErrors(error, { setFieldErrors, setFormError });\n },\n onCompleted: () => {\n setFieldErrors({});\n setFormError(undefined);\n message.success(t('profile:updatePasswordModal.success'));\n onClose();\n },\n });\n }, [commit, data, onClose, t]);\n\n return (\n <Modal\n title={t('profile:updatePasswordModal.title')}\n visible={visibility}\n okText={t('profile:updatePasswordModal.button')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormContext.Provider\n value={{\n data,\n setData,\n fieldErrors,\n setFieldErrors,\n formError,\n setFormError,\n }}\n >\n <ProfileUpdatePasswordForm />\n </FormContext.Provider>\n </Modal>\n );\n};\n\nexport default ProfileUpdatePasswordModal;\n"],"file":"ProfileUpdatePasswordModal.js"}
1
+ {"version":3,"sources":["../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"names":["ProfileUpdatePasswordModal","visibility","onClose","t","fieldErrors","setFieldErrors","formError","setFormError","currentPassword","password","data","setData","commit","loading","onSubmit","variables","input","onError","error","onCompleted","undefined","message","success","formContext"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,0BAAqE,GAAG,SAAxEA,0BAAwE,OAGxE;AAAA,MAFJC,UAEI,QAFJA,UAEI;AAAA,MADJC,OACI,QADJA,OACI;;AACJ,wBAAc,kCAAe,SAAf,CAAd;AAAA,MAAQC,CAAR,mBAAQA,CAAR;;AAEA,kBAAsC,qBACpC,EADoC,CAAtC;AAAA;AAAA,MAAOC,WAAP;AAAA,MAAoBC,cAApB;;AAGA,mBAAkC,sBAAlC;AAAA;AAAA,MAAOC,SAAP;AAAA,MAAkBC,YAAlB;;AACA,mBAAwB,qBAAwC;AAC9DC,IAAAA,eAAe,EAAE,EAD6C;AAE9DC,IAAAA,QAAQ,E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,CAApB;AAYA,sBACE,6BAAC,WAAD;AACE,IAAA,KAAK,EAAEH,CAAC,CAAC,mCAAD,CADV;AAEE,IAAA,OAAO,EAAEF,UAFX;AAGE,IAAA,MAAM,EAAEE,CAAC,CAAC,oCAAD,CAHX;AAIE,IAAA,SAAS,EAAEU,OAJb;AAKE,IAAA,IAAI,EAAEC,QALR;AAME,IAAA,OAAO,EAAEZ;AANX,kBAQE,6BAAC,sBAAD,CAAa,QAAb;AAAsB,IAAA,KAAK,EAAEqB;AAA7B,kBACE,6BAAC,kCAAD,OADF,CARF,CADF;AAcD,CA/ED;;eAiFevB,0B","sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { message, Modal } from '@os-design/core';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport { useMutation } from 'react-relay/hooks';\nimport { useTranslation } from 'react-i18next';\nimport { Constraint, handleFormErrors, FormContext } from '@os-team/form-utils';\nimport ProfileUpdatePasswordForm, {\n ProfileUpdatePasswordFormData,\n} from './ProfileUpdatePasswordForm';\nimport { ProfileUpdatePasswordModalMutation } from './__generated__/ProfileUpdatePasswordModalMutation.graphql';\n\ninterface ProfileUpdatePasswordModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdatePasswordModal: React.FC<ProfileUpdatePasswordModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation('profile');\n\n const [fieldErrors, setFieldErrors] = useState<Record<string, Constraint>>(\n {}\n );\n const [formError, setFormError] = useState<string | undefined>();\n const [data, setData] = useState<ProfileUpdatePasswordFormData>({\n currentPassword: '',\n password: '',\n });\n\n const [commit, loading] =\n useMutation<ProfileUpdatePasswordModalMutation>(graphql`\n mutation ProfileUpdatePasswordModalMutation(\n $input: UpdatePasswordInput!\n ) {\n updatePassword(input: $input) {\n id\n }\n }\n `);\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) {\n setData({\n currentPassword: '',\n password: '',\n });\n }\n }, [visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: data,\n },\n onError: (error) => {\n handleFormErrors(error, { setFieldErrors, setFormError });\n },\n onCompleted: () => {\n setFieldErrors({});\n setFormError(undefined);\n message.success(t('profile:updatePasswordModal.success'));\n onClose();\n },\n });\n }, [commit, data, onClose, t]);\n\n const formContext = useMemo(\n () => ({\n data,\n setData,\n fieldErrors,\n setFieldErrors,\n formError,\n setFormError,\n }),\n [data, fieldErrors, formError]\n );\n\n return (\n <Modal\n title={t('profile:updatePasswordModal.title')}\n visible={visibility}\n okText={t('profile:updatePasswordModal.button')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormContext.Provider value={formContext}>\n <ProfileUpdatePasswordForm />\n </FormContext.Provider>\n </Modal>\n );\n};\n\nexport default ProfileUpdatePasswordModal;\n"],"file":"ProfileUpdatePasswordModal.js"}
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.default = void 0;
7
9
 
8
- var _react = _interopRequireDefault(require("react"));
10
+ var _react = _interopRequireWildcard(require("react"));
9
11
 
10
12
  var _hooks = require("react-relay/hooks");
11
13
 
@@ -19,35 +21,42 @@ var _ProtectedWrapperQuery;
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
23
 
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+
22
28
  var ProtectedWrapperLoader = function ProtectedWrapperLoader(_ref) {
23
29
  var children = _ref.children;
24
- var props = (0, _hooks.useLazyLoadQuery)(_ProtectedWrapperQuery !== void 0 ? _ProtectedWrapperQuery : (_ProtectedWrapperQuery = require("./__generated__/ProtectedWrapperQuery.graphql"), _ProtectedWrapperQuery.hash && _ProtectedWrapperQuery.hash !== "903b234e48f53b4a44dc0b4974ebc521" && console.error("The definition of 'ProtectedWrapperQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProtectedWrapperQuery), {}, {
30
+
31
+ var _useLazyLoadQuery = (0, _hooks.useLazyLoadQuery)(_ProtectedWrapperQuery !== void 0 ? _ProtectedWrapperQuery : (_ProtectedWrapperQuery = require("./__generated__/ProtectedWrapperQuery.graphql"), _ProtectedWrapperQuery.hash && _ProtectedWrapperQuery.hash !== "903b234e48f53b4a44dc0b4974ebc521" && console.error("The definition of 'ProtectedWrapperQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProtectedWrapperQuery), {}, {
25
32
  fetchPolicy: 'store-or-network'
26
- });
27
- var _props$profile = props.profile,
28
- id = _props$profile.id,
29
- email = _props$profile.email,
30
- firstName = _props$profile.firstName,
31
- lastName = _props$profile.lastName,
32
- avatar = _props$profile.avatar;
33
+ }),
34
+ profile = _useLazyLoadQuery.profile;
35
+
36
+ var profileContext = (0, _react.useMemo)(function () {
37
+ return {
38
+ id: profile.id,
39
+ email: profile.email,
40
+ firstName: profile.firstName || undefined,
41
+ lastName: profile.lastName || undefined,
42
+ avatar: profile.avatar || undefined
43
+ };
44
+ }, [profile.avatar, profile.email, profile.firstName, profile.id, profile.lastName]);
33
45
  return /*#__PURE__*/_react.default.createElement(_ProfileContext.default.Provider, {
34
- value: {
35
- id: id,
36
- email: email,
37
- firstName: firstName || undefined,
38
- lastName: lastName || undefined,
39
- avatar: avatar || undefined
40
- }
46
+ value: profileContext
41
47
  }, children);
42
48
  };
43
49
 
44
50
  var ProtectedWrapper = function ProtectedWrapper(_ref2) {
45
51
  var bucketId = _ref2.bucketId,
46
52
  children = _ref2.children;
47
- return /*#__PURE__*/_react.default.createElement(_ProfileConfigContext.default.Provider, {
48
- value: {
53
+ var profileConfigContext = (0, _react.useMemo)(function () {
54
+ return {
49
55
  bucketId: bucketId
50
- }
56
+ };
57
+ }, [bucketId]);
58
+ return /*#__PURE__*/_react.default.createElement(_ProfileConfigContext.default.Provider, {
59
+ value: profileConfigContext
51
60
  }, /*#__PURE__*/_react.default.createElement(_utils.ErrorBoundary, {
52
61
  fallback: function fallback() {
53
62
  window.location.href = '/auth/';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/components/profile/ProtectedWrapper.tsx"],"names":["ProtectedWrapperLoader","children","props","fetchPolicy","profile","id","email","firstName","lastName","avatar","undefined","ProtectedWrapper","bucketId","window","location","href"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;;;;;AAGA,IAAMA,sBAAgC,GAAG,SAAnCA,sBAAmC,OAAkB;AAAA,MAAfC,QAAe,QAAfA,QAAe;AACzD,MAAMC,KAAK,GAAG,kdAYZ,EAZY,EAaZ;AAAEC,IAAAA,WAAW,EAAE;AAAf,GAbY,CAAd;AAeA,uBAAmDD,KAAK,CAACE,OAAzD;AAAA,MAAQC,EAAR,kBAAQA,EAAR;AAAA,MAAYC,KAAZ,kBAAYA,KAAZ;AAAA,MAAmBC,SAAnB,kBAAmBA,SAAnB;AAAA,MAA8BC,QAA9B,kBAA8BA,QAA9B;AAAA,MAAwCC,MAAxC,kBAAwCA,MAAxC;AAEA,sBACE,6BAAC,uBAAD,CAAgB,QAAhB;AACE,IAAA,KAAK,EAAE;AACLJ,MAAAA,EAAE,EAAFA,EADK;AAELC,MAAAA,KAAK,EAALA,KAFK;AAGLC,MAAAA,SAAS,EAAEA,SAAS,IAAIG,SAHnB;AAILF,MAAAA,QAAQ,EAAEA,QAAQ,IAAIE,SAJjB;AAKLD,MAAAA,MAAM,EAAEA,MAAM,IAAIC;AALb;AADT,KASGT,QATH,CADF;AAaD,CA/BD;;AAqCA,IAAMU,gBAAiD,GAAG,SAApDA,gBAAoD;AAAA,MACxDC,QADwD,SACxDA,QADwD;AAAA,MAExDX,QAFwD,SAExDA,QAFwD;AAAA,sBAIxD,6BAAC,6BAAD,CAAsB,QAAtB;AAA+B,IAAA,KAAK,EAAE;AAAEW,MAAAA,QAAQ,EAARA;AAAF;AAAtC,kBACE,6BAAC,oBAAD;AACE,IAAA,QAAQ,EAAE,oBAAM;AACdC,MAAAA,MAAM,CAACC,QAAP,CAAgBC,IAAhB,GAAuB,QAAvB;AACA,aAAO,IAAP;AACD;AAJH,kBAME,6BAAC,sBAAD,QAAyBd,QAAzB,CANF,CADF,CAJwD;AAAA,CAA1D;;eAgBeU,gB","sourcesContent":["import React from 'react';\nimport graphql from 'babel-plugin-relay/macro';\nimport { useLazyLoadQuery } from 'react-relay/hooks';\nimport { ErrorBoundary } from '@os-design/utils';\nimport ProfileConfigContext from './ProfileConfigContext';\nimport ProfileContext from './ProfileContext';\nimport { ProtectedWrapperQuery } from './__generated__/ProtectedWrapperQuery.graphql';\n\nconst ProtectedWrapperLoader: React.FC = ({ children }) => {\n const props = useLazyLoadQuery<ProtectedWrapperQuery>(\n graphql`\n query ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n }\n }\n `,\n {},\n { fetchPolicy: 'store-or-network' }\n );\n const { id, email, firstName, lastName, avatar } = props.profile;\n\n return (\n <ProfileContext.Provider\n value={{\n id,\n email,\n firstName: firstName || undefined,\n lastName: lastName || undefined,\n avatar: avatar || undefined,\n }}\n >\n {children}\n </ProfileContext.Provider>\n );\n};\n\nexport interface ProtectedWrapperProps {\n bucketId: string;\n}\n\nconst ProtectedWrapper: React.FC<ProtectedWrapperProps> = ({\n bucketId,\n children,\n}) => (\n <ProfileConfigContext.Provider value={{ bucketId }}>\n <ErrorBoundary\n fallback={() => {\n window.location.href = '/auth/';\n return null;\n }}\n >\n <ProtectedWrapperLoader>{children}</ProtectedWrapperLoader>\n </ErrorBoundary>\n </ProfileConfigContext.Provider>\n);\n\nexport default ProtectedWrapper;\n"],"file":"ProtectedWrapper.js"}
1
+ {"version":3,"sources":["../../../../src/lib/components/profile/ProtectedWrapper.tsx"],"names":["ProtectedWrapperLoader","children","fetchPolicy","profile","profileContext","id","email","firstName","undefined","lastName","avatar","ProtectedWrapper","bucketId","profileConfigContext","window","location","href"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;AAGA,IAAMA,sBAAgC,GAAG,SAAnCA,sBAAmC,OAAkB;AAAA,MAAfC,QAAe,QAAfA,QAAe;;AACzD,0BAAoB,kdAYlB,EAZkB,EAalB;AAAEC,IAAAA,WAAW,EAAE;AAAf,GAbkB,CAApB;AAAA,MAAQC,OAAR,qBAAQA,OAAR;;AAgBA,MAAMC,cAAc,GAAG,oBACrB;AAAA,WAAO;AACLC,MAAAA,EAAE,EAAEF,OAAO,CAACE,EADP;AAELC,MAAAA,KAAK,EAAEH,OAAO,CAACG,KAFV;AAGLC,MAAAA,SAAS,EAAEJ,OAAO,CAACI,SAAR,IAAqBC,SAH3B;AAILC,MAAAA,QAAQ,EAAEN,OAAO,CAACM,QAAR,IAAoBD,SAJzB;AAKLE,MAAAA,MAAM,EAAEP,OAAO,CAACO,MAAR,IAAkBF;AALrB,KAAP;AAAA,GADqB,EAQrB,CACEL,OAAO,CAACO,MADV,EAEEP,OAAO,CAACG,KAFV,EAGEH,OAAO,CAACI,SAHV,EAIEJ,OAAO,CAACE,EAJV,EAKEF,OAAO,CAACM,QALV,CARqB,CAAvB;AAiBA,sBACE,6BAAC,uBAAD,CAAgB,QAAhB;AAAyB,IAAA,KAAK,EAAEL;AAAhC,KACGH,QADH,CADF;AAKD,CAvCD;;AA6CA,IAAMU,gBAAiD,GAAG,SAApDA,gBAAoD,QAGpD;AAAA,MAFJC,QAEI,SAFJA,QAEI;AAAA,MADJX,QACI,SADJA,QACI;AACJ,MAAMY,oBAAoB,GAAG,oBAAQ;AAAA,WAAO;AAAED,MAAAA,QAAQ,EAARA;AAAF,KAAP;AAAA,GAAR,EAA8B,CAACA,QAAD,CAA9B,CAA7B;AAEA,sBACE,6BAAC,6BAAD,CAAsB,QAAtB;AAA+B,IAAA,KAAK,EAAEC;AAAtC,kBACE,6BAAC,oBAAD;AACE,IAAA,QAAQ,EAAE,oBAAM;AACdC,MAAAA,MAAM,CAACC,QAAP,CAAgBC,IAAhB,GAAuB,QAAvB;AACA,aAAO,IAAP;AACD;AAJH,kBAME,6BAAC,sBAAD,QAAyBf,QAAzB,CANF,CADF,CADF;AAYD,CAlBD;;eAoBeU,gB","sourcesContent":["import React, { useMemo } from 'react';\nimport graphql from 'babel-plugin-relay/macro';\nimport { useLazyLoadQuery } from 'react-relay/hooks';\nimport { ErrorBoundary } from '@os-design/utils';\nimport ProfileConfigContext from './ProfileConfigContext';\nimport ProfileContext from './ProfileContext';\nimport { ProtectedWrapperQuery } from './__generated__/ProtectedWrapperQuery.graphql';\n\nconst ProtectedWrapperLoader: React.FC = ({ children }) => {\n const { profile } = useLazyLoadQuery<ProtectedWrapperQuery>(\n graphql`\n query ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n }\n }\n `,\n {},\n { fetchPolicy: 'store-or-network' }\n );\n\n const profileContext = useMemo(\n () => ({\n id: profile.id,\n email: profile.email,\n firstName: profile.firstName || undefined,\n lastName: profile.lastName || undefined,\n avatar: profile.avatar || undefined,\n }),\n [\n profile.avatar,\n profile.email,\n profile.firstName,\n profile.id,\n profile.lastName,\n ]\n );\n\n return (\n <ProfileContext.Provider value={profileContext}>\n {children}\n </ProfileContext.Provider>\n );\n};\n\nexport interface ProtectedWrapperProps {\n bucketId: string;\n}\n\nconst ProtectedWrapper: React.FC<ProtectedWrapperProps> = ({\n bucketId,\n children,\n}) => {\n const profileConfigContext = useMemo(() => ({ bucketId }), [bucketId]);\n\n return (\n <ProfileConfigContext.Provider value={profileConfigContext}>\n <ErrorBoundary\n fallback={() => {\n window.location.href = '/auth/';\n return null;\n }}\n >\n <ProtectedWrapperLoader>{children}</ProtectedWrapperLoader>\n </ErrorBoundary>\n </ProfileConfigContext.Provider>\n );\n};\n\nexport default ProtectedWrapper;\n"],"file":"ProtectedWrapper.js"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -5,18 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ /**
9
+ * @generated SignedSource<<51909761cb1c71a922e242d469a3408c>>
10
+ * @lightSyntaxTransform
11
+ * @nogrep
12
+ */
13
+
8
14
  /* tslint:disable */
9
15
 
10
16
  /* eslint-disable */
11
17
  // @ts-nocheck
12
-
13
- /*
14
- mutation ProfileDrawerSignOutMutation {
15
- signOut {
16
- ok
17
- }
18
- }
19
- */
20
18
  var node = function () {
21
19
  var v0 = [{
22
20
  "alias": null,
@@ -66,7 +64,7 @@ var node = function () {
66
64
  };
67
65
  }();
68
66
 
69
- node.hash = '8510e6462e8f7839ce100254080ba293';
67
+ node.hash = "8510e6462e8f7839ce100254080ba293";
70
68
  var _default = node;
71
69
  exports.default = _default;
72
70
  //# sourceMappingURL=ProfileDrawerSignOutMutation.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.ts"],"names":["node","v0","hash"],"mappings":";;;;;;;AAAA;;AACA;AACA;;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,aAAS,IADX;AAEE,YAAQ,IAFV;AAGE,oBAAgB,eAHlB;AAIE,YAAQ,aAJV;AAKE,YAAQ,SALV;AAME,cAAU,KANZ;AAOE,kBAAc,CACZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,IAJV;AAKE,oBAAc;AALhB,KADY,CAPhB;AAgBE,kBAAc;AAhBhB,GADO,CAAT;AAoBA,SAAO;AACL,gBAAY;AACV,6BAAuB,EADb;AAEV,cAAQ,UAFE;AAGV,kBAAY,IAHF;AAIV,cAAQ,8BAJE;AAKV,oBAAeA;AAAE;AALP;AAMV,cAAQ,UANE;AAOV,qBAAe;AAPL,KADP;AAUL,YAAQ,SAVH;AAWL,iBAAa;AACX,6BAAuB,EADZ;AAEX,cAAQ,WAFG;AAGX,cAAQ,8BAHG;AAIX,oBAAeA;AAAE;;AAJN,KAXR;AAiBL,cAAU;AACR,iBAAW,kCADH;AAER,YAAM,IAFE;AAGR,kBAAY,EAHJ;AAIR,cAAQ,8BAJA;AAKR,uBAAiB,UALT;AAMR,cAAQ;AANA;AAjBL,GAAP;AA0BC,CA/C6B,EAA9B;;AAgDCD,IAAD,CAAcE,IAAd,GAAqB,kCAArB;eACeF,I","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest } from \"relay-runtime\";\n\nexport type ProfileDrawerSignOutMutationVariables = {};\nexport type ProfileDrawerSignOutMutationResponse = {\n readonly signOut: {\n readonly ok: boolean;\n };\n};\nexport type ProfileDrawerSignOutMutation = {\n readonly response: ProfileDrawerSignOutMutationResponse;\n readonly variables: ProfileDrawerSignOutMutationVariables;\n};\n\n\n\n/*\nmutation ProfileDrawerSignOutMutation {\n signOut {\n ok\n }\n}\n*/\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"StatusPayload\",\n \"kind\": \"LinkedField\",\n \"name\": \"signOut\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"ok\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"79648ed72d7cb7d656929f005dbf8371\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerSignOutMutation {\\n signOut {\\n ok\\n }\\n}\\n\"\n }\n};\n})();\n(node as any).hash = '8510e6462e8f7839ce100254080ba293';\nexport default node;\n"],"file":"ProfileDrawerSignOutMutation.graphql.js"}
1
+ {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.ts"],"names":["node","v0","hash"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;;AACA;AACA;AAcA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,aAAS,IADX;AAEE,YAAQ,IAFV;AAGE,oBAAgB,eAHlB;AAIE,YAAQ,aAJV;AAKE,YAAQ,SALV;AAME,cAAU,KANZ;AAOE,kBAAc,CACZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,IAJV;AAKE,oBAAc;AALhB,KADY,CAPhB;AAgBE,kBAAc;AAhBhB,GADO,CAAT;AAoBA,SAAO;AACL,gBAAY;AACV,6BAAuB,EADb;AAEV,cAAQ,UAFE;AAGV,kBAAY,IAHF;AAIV,cAAQ,8BAJE;AAKV,oBAAeA;AAAE;AALP;AAMV,cAAQ,UANE;AAOV,qBAAe;AAPL,KADP;AAUL,YAAQ,SAVH;AAWL,iBAAa;AACX,6BAAuB,EADZ;AAEX,cAAQ,WAFG;AAGX,cAAQ,8BAHG;AAIX,oBAAeA;AAAE;;AAJN,KAXR;AAiBL,cAAU;AACR,iBAAW,kCADH;AAER,YAAM,IAFE;AAGR,kBAAY,EAHJ;AAIR,cAAQ,8BAJA;AAKR,uBAAiB,UALT;AAMR,cAAQ;AANA;AAjBL,GAAP;AA0BC,CA/C6B,EAA9B;;AAiDCD,IAAD,CAAcE,IAAd,GAAqB,kCAArB;eAEeF,I","sourcesContent":["/**\n * @generated SignedSource<<51909761cb1c71a922e242d469a3408c>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type ProfileDrawerSignOutMutation$variables = {};\nexport type ProfileDrawerSignOutMutation$data = {\n readonly signOut: {\n readonly ok: boolean;\n };\n};\nexport type ProfileDrawerSignOutMutation = {\n variables: ProfileDrawerSignOutMutation$variables;\n response: ProfileDrawerSignOutMutation$data;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"StatusPayload\",\n \"kind\": \"LinkedField\",\n \"name\": \"signOut\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"ok\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"79648ed72d7cb7d656929f005dbf8371\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerSignOutMutation {\\n signOut {\\n ok\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"8510e6462e8f7839ce100254080ba293\";\n\nexport default node;\n"],"file":"ProfileDrawerSignOutMutation.graphql.js"}
@@ -5,21 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ /**
9
+ * @generated SignedSource<<55ec946240339a8ef48835cf36146b25>>
10
+ * @lightSyntaxTransform
11
+ * @nogrep
12
+ */
13
+
8
14
  /* tslint:disable */
9
15
 
10
16
  /* eslint-disable */
11
17
  // @ts-nocheck
12
-
13
- /*
14
- mutation ProfileDrawerUpdateAvatarMutation(
15
- $input: UpdateAvatarInput!
16
- ) {
17
- updateAvatar(input: $input) {
18
- id
19
- avatar
20
- }
21
- }
22
- */
23
18
  var node = function () {
24
19
  var v0 = [{
25
20
  "defaultValue": null,
@@ -88,7 +83,7 @@ var node = function () {
88
83
  };
89
84
  }();
90
85
 
91
- node.hash = 'c129cb1974b7cb9090d6c5df4e0f790d';
86
+ node.hash = "c129cb1974b7cb9090d6c5df4e0f790d";
92
87
  var _default = node;
93
88
  exports.default = _default;
94
89
  //# sourceMappingURL=ProfileDrawerUpdateAvatarMutation.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.ts"],"names":["node","v0","v1","hash"],"mappings":";;;;;;;AAAA;;AACA;AACA;;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,oBAAgB,IADlB;AAEE,YAAQ,eAFV;AAGE,YAAQ;AAHV,GADO,CAAT;AAAA,MAOAC,EAAE,GAAG,CACH;AACE,aAAS,IADX;AAEE,YAAQ,CACN;AACE,cAAQ,UADV;AAEE,cAAQ,OAFV;AAGE,sBAAgB;AAHlB,KADM,CAFV;AASE,oBAAgB,MATlB;AAUE,YAAQ,aAVV;AAWE,YAAQ,cAXV;AAYE,cAAU,KAZZ;AAaE,kBAAc,CACZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,IAJV;AAKE,oBAAc;AALhB,KADY,EAQZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,QAJV;AAKE,oBAAc;AALhB,KARY,CAbhB;AA6BE,kBAAc;AA7BhB,GADG,CAPL;AAwCA,SAAO;AACL,gBAAY;AACV,6BAAwBD;AAAE;AADhB;AAEV,cAAQ,UAFE;AAGV,kBAAY,IAHF;AAIV,cAAQ,mCAJE;AAKV,oBAAeC;AAAE;AALP;AAMV,cAAQ,UANE;AAOV,qBAAe;AAPL,KADP;AAUL,YAAQ,SAVH;AAWL,iBAAa;AACX,6BAAwBD;AAAE;AADf;AAEX,cAAQ,WAFG;AAGX,cAAQ,mCAHG;AAIX,oBAAeC;AAAE;;AAJN,KAXR;AAiBL,cAAU;AACR,iBAAW,kCADH;AAER,YAAM,IAFE;AAGR,kBAAY,EAHJ;AAIR,cAAQ,mCAJA;AAKR,uBAAiB,UALT;AAMR,cAAQ;AANA;AAjBL,GAAP;AA0BC,CAnE6B,EAA9B;;AAoECF,IAAD,CAAcG,IAAd,GAAqB,kCAArB;eACeH,I","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest } from \"relay-runtime\";\n\nexport type UpdateAvatarInput = {\n avatar?: unknown | null;\n};\nexport type ProfileDrawerUpdateAvatarMutationVariables = {\n input: UpdateAvatarInput;\n};\nexport type ProfileDrawerUpdateAvatarMutationResponse = {\n readonly updateAvatar: {\n readonly id: string;\n readonly avatar: string | null;\n };\n};\nexport type ProfileDrawerUpdateAvatarMutation = {\n readonly response: ProfileDrawerUpdateAvatarMutationResponse;\n readonly variables: ProfileDrawerUpdateAvatarMutationVariables;\n};\n\n\n\n/*\nmutation ProfileDrawerUpdateAvatarMutation(\n $input: UpdateAvatarInput!\n) {\n updateAvatar(input: $input) {\n id\n avatar\n }\n}\n*/\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"defaultValue\": null,\n \"kind\": \"LocalArgument\",\n \"name\": \"input\"\n }\n],\nv1 = [\n {\n \"alias\": null,\n \"args\": [\n {\n \"kind\": \"Variable\",\n \"name\": \"input\",\n \"variableName\": \"input\"\n }\n ],\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updateAvatar\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"avatar\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerUpdateAvatarMutation\",\n \"selections\": (v1/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerUpdateAvatarMutation\",\n \"selections\": (v1/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"4e03df1e245723b6bb782fa62331d420\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerUpdateAvatarMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerUpdateAvatarMutation(\\n $input: UpdateAvatarInput!\\n) {\\n updateAvatar(input: $input) {\\n id\\n avatar\\n }\\n}\\n\"\n }\n};\n})();\n(node as any).hash = 'c129cb1974b7cb9090d6c5df4e0f790d';\nexport default node;\n"],"file":"ProfileDrawerUpdateAvatarMutation.graphql.js"}
1
+ {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.ts"],"names":["node","v0","v1","hash"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;;AACA;AACA;AAoBA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,oBAAgB,IADlB;AAEE,YAAQ,eAFV;AAGE,YAAQ;AAHV,GADO,CAAT;AAAA,MAOAC,EAAE,GAAG,CACH;AACE,aAAS,IADX;AAEE,YAAQ,CACN;AACE,cAAQ,UADV;AAEE,cAAQ,OAFV;AAGE,sBAAgB;AAHlB,KADM,CAFV;AASE,oBAAgB,MATlB;AAUE,YAAQ,aAVV;AAWE,YAAQ,cAXV;AAYE,cAAU,KAZZ;AAaE,kBAAc,CACZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,IAJV;AAKE,oBAAc;AALhB,KADY,EAQZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,QAJV;AAKE,oBAAc;AALhB,KARY,CAbhB;AA6BE,kBAAc;AA7BhB,GADG,CAPL;AAwCA,SAAO;AACL,gBAAY;AACV,6BAAwBD;AAAE;AADhB;AAEV,cAAQ,UAFE;AAGV,kBAAY,IAHF;AAIV,cAAQ,mCAJE;AAKV,oBAAeC;AAAE;AALP;AAMV,cAAQ,UANE;AAOV,qBAAe;AAPL,KADP;AAUL,YAAQ,SAVH;AAWL,iBAAa;AACX,6BAAwBD;AAAE;AADf;AAEX,cAAQ,WAFG;AAGX,cAAQ,mCAHG;AAIX,oBAAeC;AAAE;;AAJN,KAXR;AAiBL,cAAU;AACR,iBAAW,kCADH;AAER,YAAM,IAFE;AAGR,kBAAY,EAHJ;AAIR,cAAQ,mCAJA;AAKR,uBAAiB,UALT;AAMR,cAAQ;AANA;AAjBL,GAAP;AA0BC,CAnE6B,EAA9B;;AAqECF,IAAD,CAAcG,IAAd,GAAqB,kCAArB;eAEeH,I","sourcesContent":["/**\n * @generated SignedSource<<55ec946240339a8ef48835cf36146b25>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type UpdateAvatarInput = {\n avatar?: any | null;\n};\nexport type ProfileDrawerUpdateAvatarMutation$variables = {\n input: UpdateAvatarInput;\n};\nexport type ProfileDrawerUpdateAvatarMutation$data = {\n readonly updateAvatar: {\n readonly id: string;\n readonly avatar: string | null;\n };\n};\nexport type ProfileDrawerUpdateAvatarMutation = {\n variables: ProfileDrawerUpdateAvatarMutation$variables;\n response: ProfileDrawerUpdateAvatarMutation$data;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"defaultValue\": null,\n \"kind\": \"LocalArgument\",\n \"name\": \"input\"\n }\n],\nv1 = [\n {\n \"alias\": null,\n \"args\": [\n {\n \"kind\": \"Variable\",\n \"name\": \"input\",\n \"variableName\": \"input\"\n }\n ],\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updateAvatar\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"avatar\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerUpdateAvatarMutation\",\n \"selections\": (v1/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerUpdateAvatarMutation\",\n \"selections\": (v1/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"4e03df1e245723b6bb782fa62331d420\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerUpdateAvatarMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerUpdateAvatarMutation(\\n $input: UpdateAvatarInput!\\n) {\\n updateAvatar(input: $input) {\\n id\\n avatar\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"c129cb1974b7cb9090d6c5df4e0f790d\";\n\nexport default node;\n"],"file":"ProfileDrawerUpdateAvatarMutation.graphql.js"}
@@ -5,22 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ /**
9
+ * @generated SignedSource<<e5bc57bac6e609f80cce512a9176bef8>>
10
+ * @lightSyntaxTransform
11
+ * @nogrep
12
+ */
13
+
8
14
  /* tslint:disable */
9
15
 
10
16
  /* eslint-disable */
11
17
  // @ts-nocheck
12
-
13
- /*
14
- mutation ProfileUpdateNameModalMutation(
15
- $input: UpdateProfileInput!
16
- ) {
17
- updateProfile(input: $input) {
18
- firstName
19
- lastName
20
- id
21
- }
22
- }
23
- */
24
18
  var node = function () {
25
19
  var v0 = [{
26
20
  "defaultValue": null,
@@ -114,7 +108,7 @@ var node = function () {
114
108
  };
115
109
  }();
116
110
 
117
- node.hash = '7264a05b6738d5417df9f1dc462486aa';
111
+ node.hash = "7264a05b6738d5417df9f1dc462486aa";
118
112
  var _default = node;
119
113
  exports.default = _default;
120
114
  //# sourceMappingURL=ProfileUpdateNameModalMutation.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.ts"],"names":["node","v0","v1","v2","v3","hash"],"mappings":";;;;;;;AAAA;;AACA;AACA;;AAwBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,oBAAgB,IADlB;AAEE,YAAQ,eAFV;AAGE,YAAQ;AAHV,GADO,CAAT;AAAA,MAOAC,EAAE,GAAG,CACH;AACE,YAAQ,UADV;AAEE,YAAQ,OAFV;AAGE,oBAAgB;AAHlB,GADG,CAPL;AAAA,MAcAC,EAAE,GAAG;AACH,aAAS,IADN;AAEH,YAAQ,IAFL;AAGH,YAAQ,aAHL;AAIH,YAAQ,WAJL;AAKH,kBAAc;AAL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nimport { ConcreteRequest } from \"relay-runtime\";\n\nexport type UpdateProfileInput = {\n firstName?: string | null;\n lastName?: string | null;\n};\nexport type ProfileUpdateNameModalMutationVariables = {\n input: UpdateProfileInput;\n};\nexport type ProfileUpdateNameModalMutationResponse = {\n readonly updateProfile: {\n readonly firstName: string | null;\n readonly lastName: string | null;\n };\n};\nexport type ProfileUpdateNameModalMutation = {\n readonly response: ProfileUpdateNameModalMutationResponse;\n readonly variables: ProfileUpdateNameModalMutationVariables;\n};\n\n\n\n/*\nmutation ProfileUpdateNameModalMutation(\n $input: UpdateProfileInput!\n) {\n updateProfile(input: $input) {\n firstName\n lastName\n id\n }\n}\n*/\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"defaultValue\": null,\n \"kind\": \"LocalArgument\",\n \"name\": \"input\"\n }\n],\nv1 = [\n {\n \"kind\": \"Variable\",\n \"name\": \"input\",\n \"variableName\": \"input\"\n }\n],\nv2 = {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"firstName\",\n \"storageKey\": null\n},\nv3 = {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"lastName\",\n \"storageKey\": null\n};\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileUpdateNameModalMutation\",\n \"selections\": [\n {\n \"alias\": null,\n \"args\": (v1/*: any*/),\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updateProfile\",\n \"plural\": false,\n \"selections\": [\n (v2/*: any*/),\n (v3/*: any*/)\n ],\n \"storageKey\": null\n }\n ],\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Operation\",\n \"name\": \"ProfileUpdateNameModalMutation\",\n \"selections\": [\n {\n \"alias\": null,\n \"args\": (v1/*: any*/),\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updateProfile\",\n \"plural\": false,\n \"selections\": [\n (v2/*: any*/),\n (v3/*: any*/),\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n ]\n },\n \"params\": {\n \"cacheID\": \"f70f0aaabf917dc446c3a71cf7b4f25f\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileUpdateNameModalMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileUpdateNameModalMutation(\\n $input: UpdateProfileInput!\\n) {\\n updateProfile(input: $input) {\\n firstName\\n lastName\\n id\\n }\\n}\\n\"\n }\n};\n})();\n(node as any).hash = '7264a05b6738d5417df9f1dc462486aa';\nexport default node;\n"],"file":"ProfileUpdateNameModalMutation.graphql.js"}
1
+ {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.ts"],"names":["node","v0","v1","v2","v3","hash"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;;AACA;AACA;AAqBA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,oBAAgB,IADlB;AAEE,YAAQ,eAFV;AAGE,YAAQ;AAHV,GADO,CAAT;AAAA,MAOAC,EAAE,GAAG,CACH;AACE,YAAQ,UADV;AAEE,YAAQ,OAFV;AAGE,oBAAgB;AAHlB,GADG,CAPL;AAAA,MAcAC,EAAE,GAAG;AACH,aAAS,IADN;AAEH,YAAQ,IAFL;AAGH,YAAQ,aAHL;AAIH,YAAQ,WAJL;AAKH,kBAAc;AALX,GAdL;AAAA,MAqBAC,EAAE,GAAG;AACH,aAAS,IADN;AAEH,YAAQ,IAFL;AAGH,YAAQ,aAHL;AAIH,YAAQ,UAJL;AAKH,kBAAc;AALX,GArBL;AA4BA,SAAO;AACL,gBAAY;AACV,6BAAwBH;AAAE;AADhB;AAEV,cAAQ,UAFE;AAGV,kBAAY,IAHF;AAIV,cAAQ,gCAJE;AAKV,oBAAc,CACZ;AACE,iBAAS,IADX;AAEE,gBAASC;AAAE;AAFb;AAGE,wBAAgB,MAHlB;AAIE,gBAAQ,aAJV;AAKE,gBAAQ,eALV;AAME,kBAAU,KANZ;AAOE,sBAAc,CACXC;AAAE;AADS,UAEXC;AAAE;AAFS,SAPhB;AAWE,sBAAc;AAXhB,OADY,CALJ;AAoBV,cAAQ,UApBE;AAqBV,qBAAe;AArBL,KADP;AAwBL,YAAQ,SAxBH;AAyBL,iBAAa;AACX,6BAAwBH;AAAE;AADf;AAEX,cAAQ,WAFG;AAGX,cAAQ,gCAHG;AAIX,oBAAc,CACZ;AACE,iBAAS,IADX;AAEE,gBAASC;AAAE;AAFb;AAGE,wBAAgB,MAHlB;AAIE,gBAAQ,aAJV;AAKE,gBAAQ,eALV;AAME,kBAAU,KANZ;AAOE,sBAAc,CACXC;AAAE;AADS,UAEXC;AAAE;AAFS,UAGZ;AACE,mBAAS,IADX;AAEE,kBAAQ,IAFV;AAGE,kBAAQ,aAHV;AAIE,kBAAQ,IAJV;AAKE,wBAAc;AALhB,SAHY,CAPhB;AAkBE,sBAAc;AAlBhB,OADY;AAJH,KAzBR;AAoDL,cAAU;AACR,iBAAW,kCADH;AAER,YAAM,IAFE;AAGR,kBAAY,EAHJ;AAIR,cAAQ,gCAJA;AAKR,uBAAiB,UALT;AAMR,cAAQ;AANA;AApDL,GAAP;AA6DC,CA1F6B,EAA9B;;AA4FCJ,IAAD,CAAcK,IAAd,GAAqB,kCAArB;eAEeL,I","sourcesContent":["/**\n * @generated SignedSource<<e5bc57bac6e609f80cce512a9176bef8>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type UpdateProfileInput = {\n firstName?: string | null;\n lastName?: string | null;\n};\nexport type ProfileUpdateNameModalMutation$variables = {\n input: UpdateProfileInput;\n};\nexport type ProfileUpdateNameModalMutation$data = {\n readonly updateProfile: {\n readonly firstName: string | null;\n readonly lastName: string | null;\n };\n};\nexport type ProfileUpdateNameModalMutation = {\n variables: ProfileUpdateNameModalMutation$variables;\n response: ProfileUpdateNameModalMutation$data;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"defaultValue\": null,\n \"kind\": \"LocalArgument\",\n \"name\": \"input\"\n }\n],\nv1 = [\n {\n \"kind\": \"Variable\",\n \"name\": \"input\",\n \"variableName\": \"input\"\n }\n],\nv2 = {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"firstName\",\n \"storageKey\": null\n},\nv3 = {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"lastName\",\n \"storageKey\": null\n};\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileUpdateNameModalMutation\",\n \"selections\": [\n {\n \"alias\": null,\n \"args\": (v1/*: any*/),\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updateProfile\",\n \"plural\": false,\n \"selections\": [\n (v2/*: any*/),\n (v3/*: any*/)\n ],\n \"storageKey\": null\n }\n ],\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Operation\",\n \"name\": \"ProfileUpdateNameModalMutation\",\n \"selections\": [\n {\n \"alias\": null,\n \"args\": (v1/*: any*/),\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updateProfile\",\n \"plural\": false,\n \"selections\": [\n (v2/*: any*/),\n (v3/*: any*/),\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n ]\n },\n \"params\": {\n \"cacheID\": \"f70f0aaabf917dc446c3a71cf7b4f25f\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileUpdateNameModalMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileUpdateNameModalMutation(\\n $input: UpdateProfileInput!\\n) {\\n updateProfile(input: $input) {\\n firstName\\n lastName\\n id\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"7264a05b6738d5417df9f1dc462486aa\";\n\nexport default node;\n"],"file":"ProfileUpdateNameModalMutation.graphql.js"}
@@ -5,20 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ /**
9
+ * @generated SignedSource<<e5f3e57776e8511542aafb556fc45a4f>>
10
+ * @lightSyntaxTransform
11
+ * @nogrep
12
+ */
13
+
8
14
  /* tslint:disable */
9
15
 
10
16
  /* eslint-disable */
11
17
  // @ts-nocheck
12
-
13
- /*
14
- mutation ProfileUpdatePasswordModalMutation(
15
- $input: UpdatePasswordInput!
16
- ) {
17
- updatePassword(input: $input) {
18
- id
19
- }
20
- }
21
- */
22
18
  var node = function () {
23
19
  var v0 = [{
24
20
  "defaultValue": null,
@@ -81,7 +77,7 @@ var node = function () {
81
77
  };
82
78
  }();
83
79
 
84
- node.hash = 'efa37ccbe82fbace709f7e3992643c05';
80
+ node.hash = "efa37ccbe82fbace709f7e3992643c05";
85
81
  var _default = node;
86
82
  exports.default = _default;
87
83
  //# sourceMappingURL=ProfileUpdatePasswordModalMutation.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.ts"],"names":["node","v0","v1","hash"],"mappings":";;;;;;;AAAA;;AACA;AACA;;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,oBAAgB,IADlB;AAEE,YAAQ,eAFV;AAGE,YAAQ;AAHV,GADO,CAAT;AAAA,MAOAC,EAAE,GAAG,CACH;AACE,aAAS,IADX;AAEE,YAAQ,CACN;AACE,cAAQ,UADV;AAEE,cAAQ,OAFV;AAGE,sBAAgB;AAHlB,KADM,CAFV;AASE,oBAAgB,MATlB;AAUE,YAAQ,aAVV;AAWE,YAAQ,gBAXV;AAYE,cAAU,KAZZ;AAaE,kBAAc,CACZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,IAJV;AAKE,oBAAc;AALhB,KADY,CAbhB;AAsBE,kBAAc;AAtBhB,GADG,CAPL;AAiCA,SAAO;AACL,gBAAY;AACV,6BAAwBD;AAAE;AADhB;AAEV,cAAQ,UAFE;AAGV,kBAAY,IAHF;AAIV,cAAQ,oCAJE;AAKV,oBAAeC;AAAE;AALP;AAMV,cAAQ,UANE;AAOV,qBAAe;AAPL,KADP;AAUL,YAAQ,SAVH;AAWL,iBAAa;AACX,6BAAwBD;AAAE;AADf;AAEX,cAAQ,WAFG;AAGX,cAAQ,oCAHG;AAIX,oBAAeC;AAAE;;AAJN,KAXR;AAiBL,cAAU;AACR,iBAAW,kCADH;AAER,YAAM,IAFE;AAGR,kBAAY,EAHJ;AAIR,cAAQ,oCAJA;AAKR,uBAAiB,UALT;AAMR,cAAQ;AANA;AAjBL,GAAP;AA0BC,CA5D6B,EAA9B;;AA6DCF,IAAD,CAAcG,IAAd,GAAqB,kCAArB;eACeH,I","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest } from \"relay-runtime\";\n\nexport type UpdatePasswordInput = {\n password: string;\n currentPassword: string;\n};\nexport type ProfileUpdatePasswordModalMutationVariables = {\n input: UpdatePasswordInput;\n};\nexport type ProfileUpdatePasswordModalMutationResponse = {\n readonly updatePassword: {\n readonly id: string;\n };\n};\nexport type ProfileUpdatePasswordModalMutation = {\n readonly response: ProfileUpdatePasswordModalMutationResponse;\n readonly variables: ProfileUpdatePasswordModalMutationVariables;\n};\n\n\n\n/*\nmutation ProfileUpdatePasswordModalMutation(\n $input: UpdatePasswordInput!\n) {\n updatePassword(input: $input) {\n id\n }\n}\n*/\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"defaultValue\": null,\n \"kind\": \"LocalArgument\",\n \"name\": \"input\"\n }\n],\nv1 = [\n {\n \"alias\": null,\n \"args\": [\n {\n \"kind\": \"Variable\",\n \"name\": \"input\",\n \"variableName\": \"input\"\n }\n ],\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updatePassword\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileUpdatePasswordModalMutation\",\n \"selections\": (v1/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Operation\",\n \"name\": \"ProfileUpdatePasswordModalMutation\",\n \"selections\": (v1/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"64308136a7a18e3fb1ab2d16aa93add7\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileUpdatePasswordModalMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileUpdatePasswordModalMutation(\\n $input: UpdatePasswordInput!\\n) {\\n updatePassword(input: $input) {\\n id\\n }\\n}\\n\"\n }\n};\n})();\n(node as any).hash = 'efa37ccbe82fbace709f7e3992643c05';\nexport default node;\n"],"file":"ProfileUpdatePasswordModalMutation.graphql.js"}
1
+ {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.ts"],"names":["node","v0","v1","hash"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;;AACA;AACA;AAoBA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,oBAAgB,IADlB;AAEE,YAAQ,eAFV;AAGE,YAAQ;AAHV,GADO,CAAT;AAAA,MAOAC,EAAE,GAAG,CACH;AACE,aAAS,IADX;AAEE,YAAQ,CACN;AACE,cAAQ,UADV;AAEE,cAAQ,OAFV;AAGE,sBAAgB;AAHlB,KADM,CAFV;AASE,oBAAgB,MATlB;AAUE,YAAQ,aAVV;AAWE,YAAQ,gBAXV;AAYE,cAAU,KAZZ;AAaE,kBAAc,CACZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,IAJV;AAKE,oBAAc;AALhB,KADY,CAbhB;AAsBE,kBAAc;AAtBhB,GADG,CAPL;AAiCA,SAAO;AACL,gBAAY;AACV,6BAAwBD;AAAE;AADhB;AAEV,cAAQ,UAFE;AAGV,kBAAY,IAHF;AAIV,cAAQ,oCAJE;AAKV,oBAAeC;AAAE;AALP;AAMV,cAAQ,UANE;AAOV,qBAAe;AAPL,KADP;AAUL,YAAQ,SAVH;AAWL,iBAAa;AACX,6BAAwBD;AAAE;AADf;AAEX,cAAQ,WAFG;AAGX,cAAQ,oCAHG;AAIX,oBAAeC;AAAE;;AAJN,KAXR;AAiBL,cAAU;AACR,iBAAW,kCADH;AAER,YAAM,IAFE;AAGR,kBAAY,EAHJ;AAIR,cAAQ,oCAJA;AAKR,uBAAiB,UALT;AAMR,cAAQ;AANA;AAjBL,GAAP;AA0BC,CA5D6B,EAA9B;;AA8DCF,IAAD,CAAcG,IAAd,GAAqB,kCAArB;eAEeH,I","sourcesContent":["/**\n * @generated SignedSource<<e5f3e57776e8511542aafb556fc45a4f>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type UpdatePasswordInput = {\n password: string;\n currentPassword: string;\n};\nexport type ProfileUpdatePasswordModalMutation$variables = {\n input: UpdatePasswordInput;\n};\nexport type ProfileUpdatePasswordModalMutation$data = {\n readonly updatePassword: {\n readonly id: string;\n };\n};\nexport type ProfileUpdatePasswordModalMutation = {\n variables: ProfileUpdatePasswordModalMutation$variables;\n response: ProfileUpdatePasswordModalMutation$data;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"defaultValue\": null,\n \"kind\": \"LocalArgument\",\n \"name\": \"input\"\n }\n],\nv1 = [\n {\n \"alias\": null,\n \"args\": [\n {\n \"kind\": \"Variable\",\n \"name\": \"input\",\n \"variableName\": \"input\"\n }\n ],\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updatePassword\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileUpdatePasswordModalMutation\",\n \"selections\": (v1/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Operation\",\n \"name\": \"ProfileUpdatePasswordModalMutation\",\n \"selections\": (v1/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"64308136a7a18e3fb1ab2d16aa93add7\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileUpdatePasswordModalMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileUpdatePasswordModalMutation(\\n $input: UpdatePasswordInput!\\n) {\\n updatePassword(input: $input) {\\n id\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"efa37ccbe82fbace709f7e3992643c05\";\n\nexport default node;\n"],"file":"ProfileUpdatePasswordModalMutation.graphql.js"}
@@ -5,22 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ /**
9
+ * @generated SignedSource<<829abca3cb2e3ac7eea412c1b0ff18a5>>
10
+ * @lightSyntaxTransform
11
+ * @nogrep
12
+ */
13
+
8
14
  /* tslint:disable */
9
15
 
10
16
  /* eslint-disable */
11
17
  // @ts-nocheck
12
-
13
- /*
14
- query ProtectedWrapperQuery {
15
- profile {
16
- id
17
- email
18
- firstName
19
- lastName
20
- avatar
21
- }
22
- }
23
- */
24
18
  var node = function () {
25
19
  var v0 = [{
26
20
  "alias": null,
@@ -94,7 +88,7 @@ var node = function () {
94
88
  };
95
89
  }();
96
90
 
97
- node.hash = '903b234e48f53b4a44dc0b4974ebc521';
91
+ node.hash = "903b234e48f53b4a44dc0b4974ebc521";
98
92
  var _default = node;
99
93
  exports.default = _default;
100
94
  //# sourceMappingURL=ProtectedWrapperQuery.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.ts"],"names":["node","v0","hash"],"mappings":";;;;;;;AAAA;;AACA;AACA;;AAqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,IAAMA,IAAqB,GAAI,YAAU;AACzC,MAAIC,EAAE,GAAG,CACP;AACE,aAAS,IADX;AAEE,YAAQ,IAFV;AAGE,oBAAgB,MAHlB;AAIE,YAAQ,aAJV;AAKE,YAAQ,SALV;AAME,cAAU,KANZ;AAOE,kBAAc,CACZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,IAJV;AAKE,oBAAc;AALhB,KADY,EAQZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,OAJV;AAKE,oBAAc;AALhB,KARY,EAeZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,WAJV;AAKE,oBAAc;AALhB,KAfY,EAsBZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,UAJV;AAKE,oBAAc;AALhB,KAtBY,EA6BZ;AACE,eAAS,IADX;AAEE,cAAQ,IAFV;AAGE,cAAQ,aAHV;AAIE,cAAQ,QAJV;AAKE,oBAAc;AALhB,KA7BY,CAPhB;AA4CE,kBAAc;AA5ChB,GADO,CAAT;AAgDA,SAAO;AACL,gBAAY;AACV,6BAAuB,EADb;AAEV,cAAQ,UAFE;AAGV,kBAAY,IAHF;AAIV,cAAQ,uBAJE;AAKV,oBAAeA;AAAE;AALP;AAMV,cAAQ,OANE;AAOV,qBAAe;AAPL,KADP;AAUL,YAAQ,SAVH;AAWL,iBAAa;AACX,6BAAuB,EADZ;AAEX,cAAQ,WAFG;AAGX,cAAQ,uBAHG;AAIX,oBAAeA;AAAE;;AAJN,KAXR;AAiBL,cAAU;AACR,iBAAW,kCADH;AAER,YAAM,IAFE;AAGR,kBAAY,EAHJ;AAIR,cAAQ,uBAJA;AAKR,uBAAiB,OALT;AAMR,cAAQ;AANA;AAjBL,GAAP;AA0BC,CA3E6B,EAA9B;;AA4ECD,IAAD,CAAcE,IAAd,GAAqB,kCAArB;eACeF,I","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest } from \"relay-runtime\";\n\nexport type ProtectedWrapperQueryVariables = {};\nexport type ProtectedWrapperQueryResponse = {\n readonly profile: {\n readonly id: string;\n readonly email: string;\n readonly firstName: string | null;\n readonly lastName: string | null;\n readonly avatar: string | null;\n };\n};\nexport type ProtectedWrapperQuery = {\n readonly response: ProtectedWrapperQueryResponse;\n readonly variables: ProtectedWrapperQueryVariables;\n};\n\n\n\n/*\nquery ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n }\n}\n*/\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"profile\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"email\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"firstName\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"lastName\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"avatar\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProtectedWrapperQuery\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Query\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProtectedWrapperQuery\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"c77ada94a5456167ef4c0c17a1fd7cd7\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProtectedWrapperQuery\",\n \"operationKind\": \"query\",\n \"text\": \"query ProtectedWrapperQuery {\\n profile {\\n id\\n email\\n firstName\\n lastName\\n avatar\\n }\\n}\\n\"\n }\n};\n})();\n(node as any).hash = '903b234e48f53b4a44dc0b4974ebc521';\nexport default node;\n"],"file":"ProtectedWrapperQuery.graphql.js"}
1
+ {"version":3,"sources":["../../../../../src/lib/components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AAIR,cAAQ,uBAJA;AAKR,uBAAiB,OALT;AAMR,cAAQ;AANA;AAjBL,GAAP;AA0BC,CA3E6B,EAA9B;;AA6ECD,IAAD,CAAcE,IAAd,GAAqB,kCAArB;eAEeF,I","sourcesContent":["/**\n * @generated SignedSource<<829abca3cb2e3ac7eea412c1b0ff18a5>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Query } from 'relay-runtime';\nexport type ProtectedWrapperQuery$variables = {};\nexport type ProtectedWrapperQuery$data = {\n readonly profile: {\n readonly id: string;\n readonly email: string;\n readonly firstName: string | null;\n readonly lastName: string | null;\n readonly avatar: string | null;\n };\n};\nexport type ProtectedWrapperQuery = {\n variables: ProtectedWrapperQuery$variables;\n response: ProtectedWrapperQuery$data;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"profile\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"email\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"firstName\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"lastName\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"avatar\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProtectedWrapperQuery\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Query\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProtectedWrapperQuery\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"c77ada94a5456167ef4c0c17a1fd7cd7\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProtectedWrapperQuery\",\n \"operationKind\": \"query\",\n \"text\": \"query ProtectedWrapperQuery {\\n profile {\\n id\\n email\\n firstName\\n lastName\\n avatar\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"903b234e48f53b4a44dc0b4974ebc521\";\n\nexport default node;\n"],"file":"ProtectedWrapperQuery.graphql.js"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true