@magmamath/students-features 1.8.4-rc.9 → 1.8.4
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.
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js +5 -1
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js.map +1 -1
- package/dist/commonjs/features/uiMode/index.js +7 -0
- package/dist/commonjs/features/uiMode/index.js.map +1 -1
- package/dist/commonjs/features/uiMode/uiMode.helpers.js +7 -2
- package/dist/commonjs/features/uiMode/uiMode.helpers.js.map +1 -1
- package/dist/commonjs/index.js +0 -12
- package/dist/commonjs/index.js.map +1 -1
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js +5 -1
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js.map +1 -1
- package/dist/module/features/uiMode/index.js +1 -0
- package/dist/module/features/uiMode/index.js.map +1 -1
- package/dist/module/features/uiMode/uiMode.helpers.js +6 -1
- package/dist/module/features/uiMode/uiMode.helpers.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/icons/ArrowRightIcon.js.map +1 -0
- package/dist/module/shared/icons/CloseIcon.js.map +1 -0
- package/dist/module/shared/icons/ExcitedLavaIcon.js.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts +4 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/uiMode/index.d.ts +1 -0
- package/dist/typescript/commonjs/features/uiMode/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/uiMode/uiMode.helpers.d.ts +2 -0
- package/dist/typescript/commonjs/features/uiMode/uiMode.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts +4 -0
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -1
- package/dist/typescript/module/features/uiMode/index.d.ts +1 -0
- package/dist/typescript/module/features/uiMode/index.d.ts.map +1 -1
- package/dist/typescript/module/features/uiMode/uiMode.helpers.d.ts +2 -0
- package/dist/typescript/module/features/uiMode/uiMode.helpers.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/package.json +2 -5
- package/src/features/pmProgress/shared/TreeNormalizer.ts +5 -1
- package/src/features/uiMode/__tests__/getUIMode.test.ts +64 -0
- package/src/features/uiMode/index.ts +1 -0
- package/src/features/uiMode/uiMode.helpers.ts +16 -1
- package/src/i18n/.generated/schema.json +1 -9
- package/src/index.ts +0 -1
- package/dist/commonjs/features/profile/Profile.js +0 -90
- package/dist/commonjs/features/profile/Profile.js.map +0 -1
- package/dist/commonjs/features/profile/components/actions/ProfileActions.js +0 -67
- package/dist/commonjs/features/profile/components/actions/ProfileActions.js.map +0 -1
- package/dist/commonjs/features/profile/components/cards/ProfileCard.js +0 -57
- package/dist/commonjs/features/profile/components/cards/ProfileCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/info/AccountInfoCard.js +0 -90
- package/dist/commonjs/features/profile/components/info/AccountInfoCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/modals/JoinClassModal.js +0 -154
- package/dist/commonjs/features/profile/components/modals/JoinClassModal.js.map +0 -1
- package/dist/commonjs/features/profile/components/modals/LogoutConfirmModal.js +0 -61
- package/dist/commonjs/features/profile/components/modals/LogoutConfirmModal.js.map +0 -1
- package/dist/commonjs/features/profile/components/modals/TranslationLanguageModal.js +0 -126
- package/dist/commonjs/features/profile/components/modals/TranslationLanguageModal.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/LanguageSettingsCard.js +0 -22
- package/dist/commonjs/features/profile/components/settings/LanguageSettingsCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/PreferencesCard.js +0 -70
- package/dist/commonjs/features/profile/components/settings/PreferencesCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/SettingRow.js +0 -48
- package/dist/commonjs/features/profile/components/settings/SettingRow.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/TextSettingsCard.js +0 -74
- package/dist/commonjs/features/profile/components/settings/TextSettingsCard.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/TextSizeSlider.js +0 -116
- package/dist/commonjs/features/profile/components/settings/TextSizeSlider.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/TextToSpeechRow.js +0 -35
- package/dist/commonjs/features/profile/components/settings/TextToSpeechRow.js.map +0 -1
- package/dist/commonjs/features/profile/components/settings/TranslationLanguageRow.js +0 -60
- package/dist/commonjs/features/profile/components/settings/TranslationLanguageRow.js.map +0 -1
- package/dist/commonjs/features/profile/context/ProfileContext.js +0 -18
- package/dist/commonjs/features/profile/context/ProfileContext.js.map +0 -1
- package/dist/commonjs/features/profile/index.js +0 -80
- package/dist/commonjs/features/profile/index.js.map +0 -1
- package/dist/commonjs/features/profile/model/ProfileApi.js +0 -15
- package/dist/commonjs/features/profile/model/ProfileApi.js.map +0 -1
- package/dist/commonjs/features/profile/model/ProfileJoinClassModel.js +0 -60
- package/dist/commonjs/features/profile/model/ProfileJoinClassModel.js.map +0 -1
- package/dist/commonjs/features/profile/model/ProfileLanguageModel.js +0 -30
- package/dist/commonjs/features/profile/model/ProfileLanguageModel.js.map +0 -1
- package/dist/commonjs/features/profile/model/ProfileModel.js +0 -53
- package/dist/commonjs/features/profile/model/ProfileModel.js.map +0 -1
- package/dist/commonjs/features/profile/model/profileModal.types.js +0 -6
- package/dist/commonjs/features/profile/model/profileModal.types.js.map +0 -1
- package/dist/commonjs/features/profile/shared/JoinClassError.js +0 -16
- package/dist/commonjs/features/profile/shared/JoinClassError.js.map +0 -1
- package/dist/commonjs/features/profile/shared/profile.constants.js +0 -29
- package/dist/commonjs/features/profile/shared/profile.constants.js.map +0 -1
- package/dist/commonjs/features/profile/shared/profile.helpers.js +0 -40
- package/dist/commonjs/features/profile/shared/profile.helpers.js.map +0 -1
- package/dist/commonjs/features/profile/shared/profile.types.js +0 -6
- package/dist/commonjs/features/profile/shared/profile.types.js.map +0 -1
- package/dist/module/features/profile/Profile.js +0 -84
- package/dist/module/features/profile/Profile.js.map +0 -1
- package/dist/module/features/profile/components/actions/ProfileActions.js +0 -61
- package/dist/module/features/profile/components/actions/ProfileActions.js.map +0 -1
- package/dist/module/features/profile/components/cards/ProfileCard.js +0 -51
- package/dist/module/features/profile/components/cards/ProfileCard.js.map +0 -1
- package/dist/module/features/profile/components/info/AccountInfoCard.js +0 -84
- package/dist/module/features/profile/components/info/AccountInfoCard.js.map +0 -1
- package/dist/module/features/profile/components/modals/JoinClassModal.js +0 -147
- package/dist/module/features/profile/components/modals/JoinClassModal.js.map +0 -1
- package/dist/module/features/profile/components/modals/LogoutConfirmModal.js +0 -55
- package/dist/module/features/profile/components/modals/LogoutConfirmModal.js.map +0 -1
- package/dist/module/features/profile/components/modals/TranslationLanguageModal.js +0 -120
- package/dist/module/features/profile/components/modals/TranslationLanguageModal.js.map +0 -1
- package/dist/module/features/profile/components/settings/LanguageSettingsCard.js +0 -16
- package/dist/module/features/profile/components/settings/LanguageSettingsCard.js.map +0 -1
- package/dist/module/features/profile/components/settings/PreferencesCard.js +0 -64
- package/dist/module/features/profile/components/settings/PreferencesCard.js.map +0 -1
- package/dist/module/features/profile/components/settings/SettingRow.js +0 -42
- package/dist/module/features/profile/components/settings/SettingRow.js.map +0 -1
- package/dist/module/features/profile/components/settings/TextSettingsCard.js +0 -68
- package/dist/module/features/profile/components/settings/TextSettingsCard.js.map +0 -1
- package/dist/module/features/profile/components/settings/TextSizeSlider.js +0 -109
- package/dist/module/features/profile/components/settings/TextSizeSlider.js.map +0 -1
- package/dist/module/features/profile/components/settings/TextToSpeechRow.js +0 -29
- package/dist/module/features/profile/components/settings/TextToSpeechRow.js.map +0 -1
- package/dist/module/features/profile/components/settings/TranslationLanguageRow.js +0 -54
- package/dist/module/features/profile/components/settings/TranslationLanguageRow.js.map +0 -1
- package/dist/module/features/profile/context/ProfileContext.js +0 -13
- package/dist/module/features/profile/context/ProfileContext.js.map +0 -1
- package/dist/module/features/profile/index.js +0 -11
- package/dist/module/features/profile/index.js.map +0 -1
- package/dist/module/features/profile/model/ProfileApi.js +0 -10
- package/dist/module/features/profile/model/ProfileApi.js.map +0 -1
- package/dist/module/features/profile/model/ProfileJoinClassModel.js +0 -55
- package/dist/module/features/profile/model/ProfileJoinClassModel.js.map +0 -1
- package/dist/module/features/profile/model/ProfileLanguageModel.js +0 -25
- package/dist/module/features/profile/model/ProfileLanguageModel.js.map +0 -1
- package/dist/module/features/profile/model/ProfileModel.js +0 -48
- package/dist/module/features/profile/model/ProfileModel.js.map +0 -1
- package/dist/module/features/profile/model/profileModal.types.js +0 -4
- package/dist/module/features/profile/model/profileModal.types.js.map +0 -1
- package/dist/module/features/profile/shared/JoinClassError.js +0 -11
- package/dist/module/features/profile/shared/JoinClassError.js.map +0 -1
- package/dist/module/features/profile/shared/profile.constants.js +0 -25
- package/dist/module/features/profile/shared/profile.constants.js.map +0 -1
- package/dist/module/features/profile/shared/profile.helpers.js +0 -32
- package/dist/module/features/profile/shared/profile.helpers.js.map +0 -1
- package/dist/module/features/profile/shared/profile.types.js +0 -4
- package/dist/module/features/profile/shared/profile.types.js.map +0 -1
- package/dist/typescript/commonjs/features/profile/Profile.d.ts +0 -6
- package/dist/typescript/commonjs/features/profile/Profile.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/__tests__/ProfileModel.test.d.ts +0 -2
- package/dist/typescript/commonjs/features/profile/__tests__/ProfileModel.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/__tests__/profile.helpers.test.d.ts +0 -2
- package/dist/typescript/commonjs/features/profile/__tests__/profile.helpers.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/actions/ProfileActions.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/actions/ProfileActions.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/cards/ProfileCard.d.ts +0 -10
- package/dist/typescript/commonjs/features/profile/components/cards/ProfileCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/info/AccountInfoCard.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/info/AccountInfoCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/modals/JoinClassModal.d.ts +0 -4
- package/dist/typescript/commonjs/features/profile/components/modals/JoinClassModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/modals/LogoutConfirmModal.d.ts +0 -4
- package/dist/typescript/commonjs/features/profile/components/modals/LogoutConfirmModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/modals/TranslationLanguageModal.d.ts +0 -4
- package/dist/typescript/commonjs/features/profile/components/modals/TranslationLanguageModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/LanguageSettingsCard.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/LanguageSettingsCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/PreferencesCard.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/PreferencesCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/SettingRow.d.ts +0 -11
- package/dist/typescript/commonjs/features/profile/components/settings/SettingRow.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/TextSettingsCard.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/TextSettingsCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/TextSizeSlider.d.ts +0 -8
- package/dist/typescript/commonjs/features/profile/components/settings/TextSizeSlider.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/TextToSpeechRow.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/TextToSpeechRow.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/components/settings/TranslationLanguageRow.d.ts +0 -3
- package/dist/typescript/commonjs/features/profile/components/settings/TranslationLanguageRow.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/context/ProfileContext.d.ts +0 -13
- package/dist/typescript/commonjs/features/profile/context/ProfileContext.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/index.d.ts +0 -12
- package/dist/typescript/commonjs/features/profile/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/ProfileApi.d.ts +0 -11
- package/dist/typescript/commonjs/features/profile/model/ProfileApi.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/ProfileJoinClassModel.d.ts +0 -14
- package/dist/typescript/commonjs/features/profile/model/ProfileJoinClassModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/ProfileLanguageModel.d.ts +0 -13
- package/dist/typescript/commonjs/features/profile/model/ProfileLanguageModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/ProfileModel.d.ts +0 -26
- package/dist/typescript/commonjs/features/profile/model/ProfileModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/model/profileModal.types.d.ts +0 -14
- package/dist/typescript/commonjs/features/profile/model/profileModal.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/shared/JoinClassError.d.ts +0 -5
- package/dist/typescript/commonjs/features/profile/shared/JoinClassError.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/shared/profile.constants.d.ts +0 -20
- package/dist/typescript/commonjs/features/profile/shared/profile.constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/shared/profile.helpers.d.ts +0 -6
- package/dist/typescript/commonjs/features/profile/shared/profile.helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/profile/shared/profile.types.d.ts +0 -27
- package/dist/typescript/commonjs/features/profile/shared/profile.types.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/Profile.d.ts +0 -6
- package/dist/typescript/module/features/profile/Profile.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/__tests__/ProfileModel.test.d.ts +0 -2
- package/dist/typescript/module/features/profile/__tests__/ProfileModel.test.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/__tests__/profile.helpers.test.d.ts +0 -2
- package/dist/typescript/module/features/profile/__tests__/profile.helpers.test.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/actions/ProfileActions.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/actions/ProfileActions.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/cards/ProfileCard.d.ts +0 -10
- package/dist/typescript/module/features/profile/components/cards/ProfileCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/info/AccountInfoCard.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/info/AccountInfoCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/modals/JoinClassModal.d.ts +0 -4
- package/dist/typescript/module/features/profile/components/modals/JoinClassModal.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/modals/LogoutConfirmModal.d.ts +0 -4
- package/dist/typescript/module/features/profile/components/modals/LogoutConfirmModal.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/modals/TranslationLanguageModal.d.ts +0 -4
- package/dist/typescript/module/features/profile/components/modals/TranslationLanguageModal.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/LanguageSettingsCard.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/LanguageSettingsCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/PreferencesCard.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/PreferencesCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/SettingRow.d.ts +0 -11
- package/dist/typescript/module/features/profile/components/settings/SettingRow.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/TextSettingsCard.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/TextSettingsCard.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/TextSizeSlider.d.ts +0 -8
- package/dist/typescript/module/features/profile/components/settings/TextSizeSlider.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/TextToSpeechRow.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/TextToSpeechRow.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/components/settings/TranslationLanguageRow.d.ts +0 -3
- package/dist/typescript/module/features/profile/components/settings/TranslationLanguageRow.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/context/ProfileContext.d.ts +0 -13
- package/dist/typescript/module/features/profile/context/ProfileContext.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/index.d.ts +0 -12
- package/dist/typescript/module/features/profile/index.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/ProfileApi.d.ts +0 -11
- package/dist/typescript/module/features/profile/model/ProfileApi.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/ProfileJoinClassModel.d.ts +0 -14
- package/dist/typescript/module/features/profile/model/ProfileJoinClassModel.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/ProfileLanguageModel.d.ts +0 -13
- package/dist/typescript/module/features/profile/model/ProfileLanguageModel.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/ProfileModel.d.ts +0 -26
- package/dist/typescript/module/features/profile/model/ProfileModel.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/model/profileModal.types.d.ts +0 -14
- package/dist/typescript/module/features/profile/model/profileModal.types.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/shared/JoinClassError.d.ts +0 -5
- package/dist/typescript/module/features/profile/shared/JoinClassError.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/shared/profile.constants.d.ts +0 -20
- package/dist/typescript/module/features/profile/shared/profile.constants.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/shared/profile.helpers.d.ts +0 -6
- package/dist/typescript/module/features/profile/shared/profile.helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/profile/shared/profile.types.d.ts +0 -27
- package/dist/typescript/module/features/profile/shared/profile.types.d.ts.map +0 -1
- package/src/features/profile/Profile.tsx +0 -83
- package/src/features/profile/__tests__/ProfileModel.test.ts +0 -99
- package/src/features/profile/__tests__/profile.helpers.test.ts +0 -57
- package/src/features/profile/components/actions/ProfileActions.tsx +0 -65
- package/src/features/profile/components/cards/ProfileCard.tsx +0 -53
- package/src/features/profile/components/info/AccountInfoCard.tsx +0 -73
- package/src/features/profile/components/modals/JoinClassModal.tsx +0 -145
- package/src/features/profile/components/modals/LogoutConfirmModal.tsx +0 -64
- package/src/features/profile/components/modals/TranslationLanguageModal.tsx +0 -124
- package/src/features/profile/components/settings/LanguageSettingsCard.tsx +0 -16
- package/src/features/profile/components/settings/PreferencesCard.tsx +0 -68
- package/src/features/profile/components/settings/SettingRow.tsx +0 -42
- package/src/features/profile/components/settings/TextSettingsCard.tsx +0 -61
- package/src/features/profile/components/settings/TextSizeSlider.tsx +0 -110
- package/src/features/profile/components/settings/TextToSpeechRow.tsx +0 -24
- package/src/features/profile/components/settings/TranslationLanguageRow.tsx +0 -58
- package/src/features/profile/context/ProfileContext.tsx +0 -24
- package/src/features/profile/index.ts +0 -11
- package/src/features/profile/model/ProfileApi.ts +0 -23
- package/src/features/profile/model/ProfileJoinClassModel.ts +0 -58
- package/src/features/profile/model/ProfileLanguageModel.ts +0 -26
- package/src/features/profile/model/ProfileModel.ts +0 -57
- package/src/features/profile/model/profileModal.types.ts +0 -16
- package/src/features/profile/shared/JoinClassError.ts +0 -7
- package/src/features/profile/shared/profile.constants.ts +0 -23
- package/src/features/profile/shared/profile.helpers.ts +0 -36
- package/src/features/profile/shared/profile.types.ts +0 -34
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","ProfileContext","createContext","useProfile","value","useContext","Error","ProfileProvider","exports","Provider"],"sourceRoot":"../../../../../src","sources":["features/profile/context/ProfileContext.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAaA,MAAMC,cAAc,gBAAG,IAAAC,oBAAa,EAA6B,IAAI,CAAC;AAE/D,SAASC,UAAUA,CAAA,EAAwB;EAChD,MAAMC,KAAK,GAAG,IAAAC,iBAAU,EAACJ,cAAc,CAAC;EACxC,IAAI,CAACG,KAAK,EAAE;IACV,MAAM,IAAIE,KAAK,CAAC,gDAAgD,CAAC;EACnE;EACA,OAAOF,KAAK;AACd;AAEO,MAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAGN,cAAc,CAACQ,QAAQ","ignoreList":[]}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
Profile: true,
|
|
8
|
-
ProfileModel: true,
|
|
9
|
-
TranslationLanguageModal: true,
|
|
10
|
-
JoinClassModal: true,
|
|
11
|
-
LogoutConfirmModal: true,
|
|
12
|
-
JoinClassError: true
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "JoinClassError", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return _JoinClassError.JoinClassError;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "JoinClassModal", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () {
|
|
23
|
-
return _JoinClassModal.JoinClassModal;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(exports, "LogoutConfirmModal", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () {
|
|
29
|
-
return _LogoutConfirmModal.LogoutConfirmModal;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "Profile", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _Profile.Profile;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(exports, "ProfileModel", {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function () {
|
|
41
|
-
return _ProfileModel.ProfileModel;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(exports, "TranslationLanguageModal", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () {
|
|
47
|
-
return _TranslationLanguageModal.TranslationLanguageModal;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
var _Profile = require("./Profile.js");
|
|
51
|
-
var _ProfileModel = require("./model/ProfileModel.js");
|
|
52
|
-
var _TranslationLanguageModal = require("./components/modals/TranslationLanguageModal.js");
|
|
53
|
-
var _JoinClassModal = require("./components/modals/JoinClassModal.js");
|
|
54
|
-
var _LogoutConfirmModal = require("./components/modals/LogoutConfirmModal.js");
|
|
55
|
-
var _JoinClassError = require("./shared/JoinClassError.js");
|
|
56
|
-
var _profileTypes = require("./shared/profile.types.js");
|
|
57
|
-
Object.keys(_profileTypes).forEach(function (key) {
|
|
58
|
-
if (key === "default" || key === "__esModule") return;
|
|
59
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
60
|
-
if (key in exports && exports[key] === _profileTypes[key]) return;
|
|
61
|
-
Object.defineProperty(exports, key, {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () {
|
|
64
|
-
return _profileTypes[key];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
var _profileConstants = require("./shared/profile.constants.js");
|
|
69
|
-
Object.keys(_profileConstants).forEach(function (key) {
|
|
70
|
-
if (key === "default" || key === "__esModule") return;
|
|
71
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
72
|
-
if (key in exports && exports[key] === _profileConstants[key]) return;
|
|
73
|
-
Object.defineProperty(exports, key, {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () {
|
|
76
|
-
return _profileConstants[key];
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_Profile","require","_ProfileModel","_TranslationLanguageModal","_JoinClassModal","_LogoutConfirmModal","_JoinClassError","_profileTypes","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_profileConstants"],"sourceRoot":"../../../../src","sources":["features/profile/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAGA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAAAO,MAAA,CAAAC,IAAA,CAAAF,aAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,aAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,aAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,iBAAA,GAAAnB,OAAA;AAAAO,MAAA,CAAAC,IAAA,CAAAW,iBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,iBAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,iBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ProfileApi = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
class ProfileApi {
|
|
9
|
-
constructor(props) {
|
|
10
|
-
this.updateSettingsFx = (0, _effector.createEffect)(props.updateSettings);
|
|
11
|
-
this.joinClassFx = (0, _effector.createEffect)(props.joinClass);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ProfileApi = ProfileApi;
|
|
15
|
-
//# sourceMappingURL=ProfileApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","ProfileApi","constructor","props","updateSettingsFx","createEffect","updateSettings","joinClassFx","joinClass","exports"],"sourceRoot":"../../../../../src","sources":["features/profile/model/ProfileApi.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAcO,MAAMC,UAAU,CAAC;EAItBC,WAAWA,CAACC,KAAsB,EAAE;IAClC,IAAI,CAACC,gBAAgB,GAAG,IAAAC,sBAAY,EAACF,KAAK,CAACG,cAAc,CAAC;IAC1D,IAAI,CAACC,WAAW,GAAG,IAAAF,sBAAY,EAACF,KAAK,CAACK,SAAS,CAAC;EAClD;AACF;AAACC,OAAA,CAAAR,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ProfileJoinClassModel = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
var _JoinClassError = require("../shared/JoinClassError.js");
|
|
9
|
-
var _profileConstants = require("../shared/profile.constants.js");
|
|
10
|
-
var _profileHelpers = require("../shared/profile.helpers.js");
|
|
11
|
-
class ProfileJoinClassModel {
|
|
12
|
-
reset = (0, _effector.createEvent)();
|
|
13
|
-
setCode = (0, _effector.createEvent)();
|
|
14
|
-
submit = (0, _effector.createEvent)();
|
|
15
|
-
$code = (0, _effector.restore)(this.setCode, '').reset(this.reset);
|
|
16
|
-
$isComplete = this.$code.map(code => code.length === _profileConstants.CLASS_CODE_LENGTH);
|
|
17
|
-
constructor(api, notify) {
|
|
18
|
-
this.api = api;
|
|
19
|
-
this.notify = notify;
|
|
20
|
-
this.init();
|
|
21
|
-
}
|
|
22
|
-
init() {
|
|
23
|
-
const notifyFx = (0, _effector.createEffect)(this.notify);
|
|
24
|
-
(0, _effector.sample)({
|
|
25
|
-
clock: this.submit,
|
|
26
|
-
source: this.$code,
|
|
27
|
-
filter: code => code.length === _profileConstants.CLASS_CODE_LENGTH,
|
|
28
|
-
fn: classCode => ({
|
|
29
|
-
classCode
|
|
30
|
-
}),
|
|
31
|
-
target: this.api.joinClassFx
|
|
32
|
-
});
|
|
33
|
-
(0, _effector.sample)({
|
|
34
|
-
clock: this.api.joinClassFx.done,
|
|
35
|
-
fn: ({
|
|
36
|
-
result
|
|
37
|
-
}) => ({
|
|
38
|
-
status: _profileConstants.JoinClassStatus.SUCCESS,
|
|
39
|
-
message: (0, _profileHelpers.getJoinClassSuccessMessage)(result.name)
|
|
40
|
-
}),
|
|
41
|
-
target: notifyFx
|
|
42
|
-
});
|
|
43
|
-
(0, _effector.sample)({
|
|
44
|
-
clock: this.api.joinClassFx.fail,
|
|
45
|
-
fn: ({
|
|
46
|
-
error
|
|
47
|
-
}) => ({
|
|
48
|
-
status: _profileConstants.JoinClassStatus.ERROR,
|
|
49
|
-
message: (0, _profileHelpers.getJoinClassErrorMessage)(error instanceof _JoinClassError.JoinClassError ? error.code : null)
|
|
50
|
-
}),
|
|
51
|
-
target: notifyFx
|
|
52
|
-
});
|
|
53
|
-
(0, _effector.sample)({
|
|
54
|
-
clock: this.api.joinClassFx.done,
|
|
55
|
-
target: this.reset
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ProfileJoinClassModel = ProfileJoinClassModel;
|
|
60
|
-
//# sourceMappingURL=ProfileJoinClassModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_JoinClassError","_profileConstants","_profileHelpers","ProfileJoinClassModel","reset","createEvent","setCode","submit","$code","restore","$isComplete","map","code","length","CLASS_CODE_LENGTH","constructor","api","notify","init","notifyFx","createEffect","sample","clock","source","filter","fn","classCode","target","joinClassFx","done","result","status","JoinClassStatus","SUCCESS","message","getJoinClassSuccessMessage","name","fail","error","ERROR","getJoinClassErrorMessage","JoinClassError","exports"],"sourceRoot":"../../../../../src","sources":["features/profile/model/ProfileJoinClassModel.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAIO,MAAMI,qBAAqB,CAAC;EACjBC,KAAK,GAAG,IAAAC,qBAAW,EAAC,CAAC;EACrBC,OAAO,GAAG,IAAAD,qBAAW,EAAS,CAAC;EAC/BE,MAAM,GAAG,IAAAF,qBAAW,EAAC,CAAC;EAEtBG,KAAK,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACH,OAAO,EAAE,EAAE,CAAC,CAACF,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EACnDM,WAAW,GAAG,IAAI,CAACF,KAAK,CAACG,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACC,MAAM,KAAKC,mCAAiB,CA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AAG,CAACY,WAAW,CAACC,IAAI;MAChCF,MAAM,EAAE,IAAI,CAACvB;IACf,CAAC,CAAC;EACJ;AACF;AAACsC,OAAA,CAAAvC,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ProfileLanguageModel = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
var _profileHelpers = require("../shared/profile.helpers.js");
|
|
9
|
-
class ProfileLanguageModel {
|
|
10
|
-
reset = (0, _effector.createEvent)();
|
|
11
|
-
setSearch = (0, _effector.createEvent)();
|
|
12
|
-
selectLanguage = (0, _effector.createEvent)();
|
|
13
|
-
$search = (0, _effector.restore)(this.setSearch, '').reset(this.reset);
|
|
14
|
-
$languages = this.$search.map(search => (0, _profileHelpers.getAvailableLanguages)(search));
|
|
15
|
-
constructor(api) {
|
|
16
|
-
this.api = api;
|
|
17
|
-
this.init();
|
|
18
|
-
}
|
|
19
|
-
init() {
|
|
20
|
-
(0, _effector.sample)({
|
|
21
|
-
clock: this.selectLanguage,
|
|
22
|
-
fn: translationLanguage => ({
|
|
23
|
-
translationLanguage
|
|
24
|
-
}),
|
|
25
|
-
target: this.api.updateSettingsFx
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.ProfileLanguageModel = ProfileLanguageModel;
|
|
30
|
-
//# sourceMappingURL=ProfileLanguageModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_profileHelpers","ProfileLanguageModel","reset","createEvent","setSearch","selectLanguage","$search","restore","$languages","map","search","getAvailableLanguages","constructor","api","init","sample","clock","fn","translationLanguage","target","updateSettingsFx","exports"],"sourceRoot":"../../../../../src","sources":["features/profile/model/ProfileLanguageModel.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA,IAAAC,eAAA,GAAAD,OAAA;AAGO,MAAME,oBAAoB,CAAC;EAChBC,KAAK,GAAG,IAAAC,qBAAW,EAAC,CAAC;EACrBC,SAAS,GAAG,IAAAD,qBAAW,EAAS,CAAC;EACjCE,cAAc,GAAG,IAAAF,qBAAW,EAAkB,CAAC;EAE/CG,OAAO,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACH,SAAS,EAAE,EAAE,CAAC,CAACF,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EACvDM,UAAU,GAAG,IAAI,CAACF,OAAO,CAACG,GAAG,CAAEC,MAAM,IAAK,IAAAC,qCAAqB,EAACD,MAAM,CAAC,CAAC;EAExFE,WAAWA,CAAkBC,GAAe,EAAE;IAAA,KAAjBA,GAAe,GAAfA,GAAe;IAC1C,IAAI,CAACC,IAAI,CAAC,CAAC;EACb;EAEQA,IAAIA,CAAA,EAAG;IACb,IAAAC,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAACX,cAAc;MAC1BY,EAAE,EAAGC,mBAAmB,KAAM;QAAEA;MAAoB,CAAC,CAAC;MACtDC,MAAM,EAAE,IAAI,CAACN,GAAG,CAACO;IACnB,CAAC,CAAC;EACJ;AACF;AAACC,OAAA,CAAApB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ProfileModel = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
var _ProfileApi = require("./ProfileApi.js");
|
|
9
|
-
var _ProfileJoinClassModel = require("./ProfileJoinClassModel.js");
|
|
10
|
-
var _ProfileLanguageModel = require("./ProfileLanguageModel.js");
|
|
11
|
-
class ProfileModel {
|
|
12
|
-
setTextToSpeech = (0, _effector.createEvent)();
|
|
13
|
-
setTextSize = (0, _effector.createEvent)();
|
|
14
|
-
setCanvasType = (0, _effector.createEvent)();
|
|
15
|
-
constructor({
|
|
16
|
-
api,
|
|
17
|
-
notify,
|
|
18
|
-
$user,
|
|
19
|
-
$settings
|
|
20
|
-
}) {
|
|
21
|
-
this.api = new _ProfileApi.ProfileApi(api);
|
|
22
|
-
this.joinClass = new _ProfileJoinClassModel.ProfileJoinClassModel(this.api, notify);
|
|
23
|
-
this.language = new _ProfileLanguageModel.ProfileLanguageModel(this.api);
|
|
24
|
-
this.$user = $user;
|
|
25
|
-
this.$settings = $settings;
|
|
26
|
-
this.init();
|
|
27
|
-
}
|
|
28
|
-
init() {
|
|
29
|
-
(0, _effector.sample)({
|
|
30
|
-
clock: this.setTextToSpeech,
|
|
31
|
-
fn: textToSpeech => ({
|
|
32
|
-
textToSpeech
|
|
33
|
-
}),
|
|
34
|
-
target: this.api.updateSettingsFx
|
|
35
|
-
});
|
|
36
|
-
(0, _effector.sample)({
|
|
37
|
-
clock: this.setTextSize,
|
|
38
|
-
fn: textSize => ({
|
|
39
|
-
textSize
|
|
40
|
-
}),
|
|
41
|
-
target: this.api.updateSettingsFx
|
|
42
|
-
});
|
|
43
|
-
(0, _effector.sample)({
|
|
44
|
-
clock: this.setCanvasType,
|
|
45
|
-
fn: canvasType => ({
|
|
46
|
-
canvasType
|
|
47
|
-
}),
|
|
48
|
-
target: this.api.updateSettingsFx
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.ProfileModel = ProfileModel;
|
|
53
|
-
//# sourceMappingURL=ProfileModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_ProfileApi","_ProfileJoinClassModel","_ProfileLanguageModel","ProfileModel","setTextToSpeech","createEvent","setTextSize","setCanvasType","constructor","api","notify","$user","$settings","ProfileApi","joinClass","ProfileJoinClassModel","language","ProfileLanguageModel","init","sample","clock","fn","textToSpeech","target","updateSettingsFx","textSize","canvasType","ex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I,CAACb,aAAa;MACzBc,EAAE,EAAGK,UAAU,KAAM;QAAEA;MAAW,CAAC,CAAC;MACpCH,MAAM,EAAE,IAAI,CAACd,GAAG,CAACe;IACnB,CAAC,CAAC;EACJ;AACF;AAACG,OAAA,CAAAxB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["features/profile/model/profileModal.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.JoinClassError = void 0;
|
|
7
|
-
// Carries the backend error code so the library can map it to a message without parsing HTTP errors.
|
|
8
|
-
class JoinClassError extends Error {
|
|
9
|
-
constructor(code) {
|
|
10
|
-
super(code === null ? 'Join class failed' : `Join class failed (code ${code})`);
|
|
11
|
-
this.code = code;
|
|
12
|
-
this.name = 'JoinClassError';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.JoinClassError = JoinClassError;
|
|
16
|
-
//# sourceMappingURL=JoinClassError.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["JoinClassError","Error","constructor","code","name","exports"],"sourceRoot":"../../../../../src","sources":["features/profile/shared/JoinClassError.ts"],"mappings":";;;;;;AAAA;AACO,MAAMA,cAAc,SAASC,KAAK,CAAC;EACxCC,WAAWA,CAAiBC,IAAmB,EAAE;IAC/C,KAAK,CAACA,IAAI,KAAK,IAAI,GAAG,mBAAmB,GAAG,2BAA2BA,IAAI,GAAG,CAAC;IAAA,KADrDA,IAAmB,GAAnBA,IAAmB;IAE7C,IAAI,CAACC,IAAI,GAAG,gBAAgB;EAC9B;AACF;AAACC,OAAA,CAAAL,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TEXT_SIZE = exports.ProfileCanvasType = exports.JoinClassStatus = exports.JoinClassErrorCode = exports.CLASS_CODE_LENGTH = void 0;
|
|
7
|
-
let ProfileCanvasType = exports.ProfileCanvasType = /*#__PURE__*/function (ProfileCanvasType) {
|
|
8
|
-
ProfileCanvasType[ProfileCanvasType["DRAWING"] = 1] = "DRAWING";
|
|
9
|
-
ProfileCanvasType[ProfileCanvasType["SPREADSHEET"] = 2] = "SPREADSHEET";
|
|
10
|
-
return ProfileCanvasType;
|
|
11
|
-
}({});
|
|
12
|
-
const TEXT_SIZE = exports.TEXT_SIZE = {
|
|
13
|
-
MIN: 16,
|
|
14
|
-
MAX: 32,
|
|
15
|
-
STEP: 4
|
|
16
|
-
};
|
|
17
|
-
const CLASS_CODE_LENGTH = exports.CLASS_CODE_LENGTH = 6;
|
|
18
|
-
let JoinClassStatus = exports.JoinClassStatus = /*#__PURE__*/function (JoinClassStatus) {
|
|
19
|
-
JoinClassStatus["SUCCESS"] = "success";
|
|
20
|
-
JoinClassStatus["ERROR"] = "error";
|
|
21
|
-
return JoinClassStatus;
|
|
22
|
-
}({});
|
|
23
|
-
let JoinClassErrorCode = exports.JoinClassErrorCode = /*#__PURE__*/function (JoinClassErrorCode) {
|
|
24
|
-
JoinClassErrorCode[JoinClassErrorCode["CLASS_NOT_FOUND"] = 1021] = "CLASS_NOT_FOUND";
|
|
25
|
-
JoinClassErrorCode[JoinClassErrorCode["ALREADY_JOINED"] = 1030] = "ALREADY_JOINED";
|
|
26
|
-
JoinClassErrorCode[JoinClassErrorCode["OTHER_DISTRICT"] = 1035] = "OTHER_DISTRICT";
|
|
27
|
-
return JoinClassErrorCode;
|
|
28
|
-
}({});
|
|
29
|
-
//# sourceMappingURL=profile.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ProfileCanvasType","exports","TEXT_SIZE","MIN","MAX","STEP","CLASS_CODE_LENGTH","JoinClassStatus","JoinClassErrorCode"],"sourceRoot":"../../../../../src","sources":["features/profile/shared/profile.constants.ts"],"mappings":";;;;;;IAAYA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAKtB,MAAME,SAAS,GAAAD,OAAA,CAAAC,SAAA,GAAG;EACvBC,GAAG,EAAE,EAAE;EACPC,GAAG,EAAE,EAAE;EACPC,IAAI,EAAE;AACR,CAAU;AAEH,MAAMC,iBAAiB,GAAAL,OAAA,CAAAK,iBAAA,GAAG,CAAC;AAAA,IAEtBC,eAAe,GAAAN,OAAA,CAAAM,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAAA,IAKfC,kBAAkB,GAAAP,OAAA,CAAAO,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA","ignoreList":[]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.snapTextSize = exports.getJoinClassSuccessMessage = exports.getJoinClassErrorMessage = exports.getAvailableLanguages = void 0;
|
|
7
|
-
var _frontendConfig = require("@magmamath/frontend-config");
|
|
8
|
-
var _i18n = require("../../../i18n/i18n.js");
|
|
9
|
-
var _profileConstants = require("./profile.constants.js");
|
|
10
|
-
const getAvailableLanguages = search => {
|
|
11
|
-
const prioritySet = new Set(_frontendConfig.PRIORITY_LANGUAGES);
|
|
12
|
-
const otherLanguages = Object.values(_frontendConfig.Language).filter(language => !_frontendConfig.LANGUAGES_CONFIG[language]?.baseName && !prioritySet.has(language));
|
|
13
|
-
const allLanguages = [..._frontendConfig.PRIORITY_LANGUAGES, ...otherLanguages];
|
|
14
|
-
if (!search) return allLanguages;
|
|
15
|
-
const query = search.toLowerCase();
|
|
16
|
-
return allLanguages.filter(language => language.toLowerCase().includes(query));
|
|
17
|
-
};
|
|
18
|
-
exports.getAvailableLanguages = getAvailableLanguages;
|
|
19
|
-
const snapTextSize = value => {
|
|
20
|
-
const {
|
|
21
|
-
MIN,
|
|
22
|
-
MAX,
|
|
23
|
-
STEP
|
|
24
|
-
} = _profileConstants.TEXT_SIZE;
|
|
25
|
-
const clamped = Math.min(MAX, Math.max(MIN, value));
|
|
26
|
-
return Math.round((clamped - MIN) / STEP) * STEP + MIN;
|
|
27
|
-
};
|
|
28
|
-
exports.snapTextSize = snapTextSize;
|
|
29
|
-
const JOIN_CLASS_ERROR_KEYS = {
|
|
30
|
-
[_profileConstants.JoinClassErrorCode.CLASS_NOT_FOUND]: 'profile.joinClassErrorNotFound',
|
|
31
|
-
[_profileConstants.JoinClassErrorCode.ALREADY_JOINED]: 'profile.joinClassErrorAlreadyJoined',
|
|
32
|
-
[_profileConstants.JoinClassErrorCode.OTHER_DISTRICT]: 'profile.joinClassErrorOtherDistrict'
|
|
33
|
-
};
|
|
34
|
-
const getJoinClassSuccessMessage = className => (0, _i18n.getText)('profile.joinClassSuccess', {
|
|
35
|
-
className
|
|
36
|
-
});
|
|
37
|
-
exports.getJoinClassSuccessMessage = getJoinClassSuccessMessage;
|
|
38
|
-
const getJoinClassErrorMessage = code => (0, _i18n.getText)(code !== null && JOIN_CLASS_ERROR_KEYS[code] || 'profile.joinClassErrorDefault');
|
|
39
|
-
exports.getJoinClassErrorMessage = getJoinClassErrorMessage;
|
|
40
|
-
//# sourceMappingURL=profile.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_frontendConfig","require","_i18n","_profileConstants","getAvailableLanguages","search","prioritySet","Set","PRIORITY_LANGUAGES","otherLanguages","Object","values","Language","filter","language","LANGUAGES_CONFIG","baseName","has","allLanguages","query","toLowerCase","includes","exports","snapTextSize","value","MIN","MAX","STEP","TEXT_SIZE","clamped","Math","min","max","round","JOIN_CLASS_ERROR_KEYS","JoinClassErrorCode","CLASS_NOT_FOUND","ALREADY_JOINED","OTHER_DISTRICT","getJoinClassSuccessMessage","className","getText","getJoinClassErrorMessage","code"],"sourceRoot":"../../../../../src","sources":["features/profile/shared/profile.helpers.ts"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAEO,MAAMG,qBAAqB,GAAIC,MAAe,IAAiB;EACpE,MAAMC,WAAW,GAAG,IAAIC,GAAG,CAAWC,kCAAkB,CAAC;EAEzD,MAAMC,cAAc,GAAGC,MAAM,CAACC,MAAM,CAACC,wBAAQ,CAAC,CAACC,MAAM,CAClDC,QAAQ,IAAK,CAACC,gCAAgB,CAACD,QAAQ,CAAC,EAAEE,QAAQ,IAAI,CAACV,WAAW,CAACW,GAAG,CAACH,QAAQ,CAClF,CAAC;EAED,MAAMI,YAAY,GAAG,CAAC,GAAGV,kCAAkB,EAAE,GAAGC,cAAc,CAAC;EAC/D,IAAI,CAACJ,MAAM,EAAE,OAAOa,YAAY;EAEhC,MAAMC,KAAK,GAAGd,MAAM,CAACe,WAAW,CAAC,CAAC;EAClC,OAAOF,YAAY,CAACL,MAAM,CAAEC,QAAQ,IAAKA,QAAQ,CAACM,WAAW,CAAC,CAAC,CAACC,QAAQ,CAACF,KAAK,CAAC,CAAC;AAClF,CAAC;AAAAG,OAAA,CAAAlB,qBAAA,GAAAA,qBAAA;AAEM,MAAMmB,YAAY,GAAIC,KAAa,IAAa;EACrD,MAAM;IAAEC,GAAG;IAAEC,GAAG;IAAEC;EAAK,CAAC,GAAGC,2BAAS;EACpC,MAAMC,OAAO,GAAGC,IAAI,CAACC,GAAG,CAACL,GAAG,EAAEI,IAAI,CAACE,GAAG,CAACP,GAAG,EAAED,KAAK,CAAC,CAAC;EACnD,OAAOM,IAAI,CAACG,KAAK,CAAC,CAACJ,OAAO,GAAGJ,GAAG,IAAIE,IAAI,CAAC,GAAGA,IAAI,GAAGF,GAAG;AACxD,CAAC;AAAAH,OAAA,CAAAC,YAAA,GAAAA,YAAA;AAED,MAAMW,qBAAqD,GAAG;EAC5D,CAACC,oCAAkB,CAACC,eAAe,GAAG,gCAAgC;EACtE,CAACD,oCAAkB,CAACE,cAAc,GAAG,qCAAqC;EAC1E,CAACF,oCAAkB,CAACG,cAAc,GAAG;AACvC,CAAC;AAEM,MAAMC,0BAA0B,GAAIC,SAAiB,IAC1D,IAAAC,aAAO,EAAC,0BAA0B,EAAE;EAAED;AAAU,CAAC,CAAC;AAAAlB,OAAA,CAAAiB,0BAAA,GAAAA,0BAAA;AAE7C,MAAMG,wBAAwB,GAAIC,IAAmB,IAC1D,IAAAF,aAAO,EAAEE,IAAI,KAAK,IAAI,IAAIT,qBAAqB,CAACS,IAAI,CAAC,IAAK,+BAA+B,CAAC;AAAArB,OAAA,CAAAoB,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["features/profile/shared/profile.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { ScrollView, StyleSheet, useWindowDimensions, View } from 'react-native';
|
|
5
|
-
import { COLORS, SPACING } from '@magmamath/react-native-ui';
|
|
6
|
-
import { isWeb } from "../../shared/common.constants.js";
|
|
7
|
-
import { ProfileActions } from "./components/actions/ProfileActions.js";
|
|
8
|
-
import { AccountInfoCard } from "./components/info/AccountInfoCard.js";
|
|
9
|
-
import { LanguageSettingsCard } from "./components/settings/LanguageSettingsCard.js";
|
|
10
|
-
import { PreferencesCard } from "./components/settings/PreferencesCard.js";
|
|
11
|
-
import { TextSettingsCard } from "./components/settings/TextSettingsCard.js";
|
|
12
|
-
import { ProfileProvider } from "./context/ProfileContext.js";
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
const TWO_COLUMN_BREAKPOINT = 768;
|
|
15
|
-
const COLUMN_MAX_WIDTH = 560;
|
|
16
|
-
export const Profile = props => {
|
|
17
|
-
const {
|
|
18
|
-
showSolveMode,
|
|
19
|
-
versionInfo
|
|
20
|
-
} = props;
|
|
21
|
-
const {
|
|
22
|
-
width
|
|
23
|
-
} = useWindowDimensions();
|
|
24
|
-
const isTwoColumn = width >= TWO_COLUMN_BREAKPOINT;
|
|
25
|
-
return /*#__PURE__*/_jsx(ProfileProvider, {
|
|
26
|
-
value: props,
|
|
27
|
-
children: /*#__PURE__*/_jsxs(ScrollView, {
|
|
28
|
-
style: styles.container,
|
|
29
|
-
contentContainerStyle: styles.scroll,
|
|
30
|
-
scrollEnabled: isWeb,
|
|
31
|
-
showsVerticalScrollIndicator: isWeb,
|
|
32
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
33
|
-
style: [styles.columns, !isTwoColumn && styles.columnsStacked],
|
|
34
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
35
|
-
style: [styles.column, isTwoColumn ? styles.columnWide : styles.columnStacked],
|
|
36
|
-
children: [/*#__PURE__*/_jsx(LanguageSettingsCard, {}), /*#__PURE__*/_jsx(TextSettingsCard, {})]
|
|
37
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
38
|
-
style: [styles.column, isTwoColumn ? styles.columnWide : styles.columnStacked],
|
|
39
|
-
children: [showSolveMode && /*#__PURE__*/_jsx(PreferencesCard, {}), /*#__PURE__*/_jsx(AccountInfoCard, {})]
|
|
40
|
-
})]
|
|
41
|
-
}), /*#__PURE__*/_jsx(ProfileActions, {}), versionInfo ? /*#__PURE__*/_jsx(View, {
|
|
42
|
-
style: styles.version,
|
|
43
|
-
children: versionInfo
|
|
44
|
-
}) : null]
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
const styles = StyleSheet.create({
|
|
49
|
-
container: {
|
|
50
|
-
backgroundColor: COLORS.NEUTRAL_3,
|
|
51
|
-
flex: 1
|
|
52
|
-
},
|
|
53
|
-
scroll: {
|
|
54
|
-
flexGrow: 1,
|
|
55
|
-
gap: SPACING['800'],
|
|
56
|
-
paddingHorizontal: SPACING['800'],
|
|
57
|
-
paddingVertical: SPACING['600']
|
|
58
|
-
},
|
|
59
|
-
columns: {
|
|
60
|
-
flexDirection: 'row',
|
|
61
|
-
gap: SPACING['600'],
|
|
62
|
-
justifyContent: 'center',
|
|
63
|
-
width: '100%'
|
|
64
|
-
},
|
|
65
|
-
columnsStacked: {
|
|
66
|
-
alignItems: 'center',
|
|
67
|
-
flexDirection: 'column'
|
|
68
|
-
},
|
|
69
|
-
column: {
|
|
70
|
-
gap: SPACING['600'],
|
|
71
|
-
maxWidth: COLUMN_MAX_WIDTH
|
|
72
|
-
},
|
|
73
|
-
columnWide: {
|
|
74
|
-
flex: 1
|
|
75
|
-
},
|
|
76
|
-
columnStacked: {
|
|
77
|
-
width: '100%'
|
|
78
|
-
},
|
|
79
|
-
version: {
|
|
80
|
-
alignSelf: 'flex-end',
|
|
81
|
-
marginTop: 'auto'
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
//# sourceMappingURL=Profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ScrollView","StyleSheet","useWindowDimensions","View","COLORS","SPACING","isWeb","ProfileActions","AccountInfoCard","LanguageSettingsCard","PreferencesCard","TextSettingsCard","ProfileProvider","jsx","_jsx","jsxs","_jsxs","TWO_COLUMN_BREAKPOINT","COLUMN_MAX_WIDTH","Profile","props","showSolveMode","versionInfo","width","isTwoColumn","value","children","style","styles","container","contentContainerStyle","scroll","scrollEnabled","showsVerticalScrollIndicator","columns","columnsStacked","column","columnWide","columnStacked","version","create","backgroundColor","NEUTRAL_3","flex","flexGrow","gap","paddingHorizontal","paddingVertical","flexDirection","justifyContent","alignItems","maxWidth","alignSelf","marginTop"],"sourceRoot":"../../../../src","sources":["features/profile/Profile.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,UAAU,EAAEC,mBAAmB,EAAEC,IAAI,QAAQ,cAAc;AAChF,SAASC,MAAM,EAAEC,OAAO,QAAQ,4BAA4B;AAE5D,SAASC,KAAK,QAAQ,kCAA+B;AACrD,SAASC,cAAc,QAAQ,wCAAqC;AACpE,SAASC,eAAe,QAAQ,sCAAmC;AACnE,SAASC,oBAAoB,QAAQ,+CAA4C;AACjF,SAASC,eAAe,QAAQ,0CAAuC;AACvE,SAASC,gBAAgB,QAAQ,2CAAwC;AACzE,SAASC,eAAe,QAAkC,6BAA0B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAIpF,MAAMC,qBAAqB,GAAG,GAAG;AACjC,MAAMC,gBAAgB,GAAG,GAAG;AAE5B,OAAO,MAAMC,OAAO,GAAIC,KAAmB,IAAK;EAC9C,MAAM;IAAEC,aAAa;IAAEC;EAAY,CAAC,GAAGF,KAAK;EAC5C,MAAM;IAAEG;EAAM,CAAC,GAAGrB,mBAAmB,CAAC,CAAC;EACvC,MAAMsB,WAAW,GAAGD,KAAK,IAAIN,qBAAqB;EAElD,oBACEH,IAAA,CAACF,eAAe;IAACa,KAAK,EAAEL,KAAM;IAAAM,QAAA,eAC5BV,KAAA,CAAChB,UAAU;MACT2B,KAAK,EAAEC,MAAM,CAACC,SAAU;MACxBC,qBAAqB,EAAEF,MAAM,CAACG,MAAO;MACrCC,aAAa,EAAE1B,KAAM;MACrB2B,4BAA4B,EAAE3B,KA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OAAO,EAAE;IACPc,aAAa,EAAE,KAAK;IACpBH,GAAG,EAAExC,OAAO,CAAC,KAAK,CAAC;IACnB4C,cAAc,EAAE,QAAQ;IACxB1B,KAAK,EAAE;EACT,CAAC;EACDY,cAAc,EAAE;IACde,UAAU,EAAE,QAAQ;IACpBF,aAAa,EAAE;EACjB,CAAC;EACDZ,MAAM,EAAE;IACNS,GAAG,EAAExC,OAAO,CAAC,KAAK,CAAC;IACnB8C,QAAQ,EAAEjC;EACZ,CAAC;EACDmB,UAAU,EAAE;IACVM,IAAI,EAAE;EACR,CAAC;EACDL,aAAa,EAAE;IACbf,KAAK,EAAE;EACT,CAAC;EACDgB,OAAO,EAAE;IACPa,SAAS,EAAE,UAAU;IACrBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { ButtonColor, ButtonSize, ButtonVariant, ReanimatedButton, SPACING } from '@magmamath/react-native-ui';
|
|
6
|
-
import { useText } from "../../../../i18n/i18n.js";
|
|
7
|
-
import { useProfile } from "../../context/ProfileContext.js";
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
export const ProfileActions = () => {
|
|
10
|
-
const t = useText();
|
|
11
|
-
const {
|
|
12
|
-
onLogout,
|
|
13
|
-
onOpenJoinClass
|
|
14
|
-
} = useProfile();
|
|
15
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
16
|
-
style: styles.container,
|
|
17
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
18
|
-
style: styles.leftHalf,
|
|
19
|
-
children: /*#__PURE__*/_jsx(ReanimatedButton, {
|
|
20
|
-
variant: ButtonVariant.SECONDARY,
|
|
21
|
-
colorScheme: ButtonColor.WHITE,
|
|
22
|
-
size: ButtonSize.LARGE,
|
|
23
|
-
onPress: onOpenJoinClass,
|
|
24
|
-
style: buttonStyle,
|
|
25
|
-
children: t('profile.joinNewClass')
|
|
26
|
-
})
|
|
27
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
28
|
-
style: styles.rightHalf,
|
|
29
|
-
children: /*#__PURE__*/_jsx(ReanimatedButton, {
|
|
30
|
-
variant: ButtonVariant.PRIMARY,
|
|
31
|
-
colorScheme: ButtonColor.ORANGE,
|
|
32
|
-
size: ButtonSize.LARGE,
|
|
33
|
-
onPress: onLogout,
|
|
34
|
-
style: buttonStyle,
|
|
35
|
-
children: t('profile.logOut')
|
|
36
|
-
})
|
|
37
|
-
})]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
const styles = StyleSheet.create({
|
|
41
|
-
container: {
|
|
42
|
-
flexDirection: 'row',
|
|
43
|
-
gap: SPACING['600'],
|
|
44
|
-
width: '100%'
|
|
45
|
-
},
|
|
46
|
-
leftHalf: {
|
|
47
|
-
alignItems: 'flex-end',
|
|
48
|
-
flex: 1
|
|
49
|
-
},
|
|
50
|
-
rightHalf: {
|
|
51
|
-
alignItems: 'flex-start',
|
|
52
|
-
flex: 1
|
|
53
|
-
},
|
|
54
|
-
text: {
|
|
55
|
-
textTransform: 'uppercase'
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
const buttonStyle = {
|
|
59
|
-
text: styles.text
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=ProfileActions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","ButtonColor","ButtonSize","ButtonVariant","ReanimatedButton","SPACING","useText","useProfile","jsx","_jsx","jsxs","_jsxs","ProfileActions","t","onLogout","onOpenJoinClass","style","styles","container","children","leftHalf","variant","SECONDARY","colorScheme","WHITE","size","LARGE","onPress","buttonStyle","rightHalf","PRIMARY","ORANGE","create","flexDirection","gap","width","alignItems","flex","text","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/actions/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BAAgB;MAAC,CACJ;IAAC,CACf,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGlB,UAAU,CAACiC,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE7B,OAAO,CAAC,KAAK,CAAC;IACnB8B,KAAK,EAAE;EACT,CAAC;EACDf,QAAQ,EAAE;IACRgB,UAAU,EAAE,UAAU;IACtBC,IAAI,EAAE;EACR,CAAC;EACDR,SAAS,EAAE;IACTO,UAAU,EAAE,YAAY;IACxBC,IAAI,EAAE;EACR,CAAC;EACDC,IAAI,EAAE;IACJC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,MAAMX,WAAW,GAAG;EAAEU,IAAI,EAAErB,MAAM,CAACqB;AAAK,CAAC","ignoreList":[]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { BORDER_RADIUS, COLORS, HeadingVariants, SHADOWS, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
6
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
export const ProfileCard = ({
|
|
8
|
-
title,
|
|
9
|
-
children,
|
|
10
|
-
style
|
|
11
|
-
}) => /*#__PURE__*/_jsxs(View, {
|
|
12
|
-
style: [styles.card, style],
|
|
13
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
14
|
-
style: styles.header,
|
|
15
|
-
children: /*#__PURE__*/_jsx(Typography, {
|
|
16
|
-
variant: HeadingVariants.H9,
|
|
17
|
-
style: styles.title,
|
|
18
|
-
children: title
|
|
19
|
-
})
|
|
20
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
21
|
-
style: styles.divider
|
|
22
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
23
|
-
style: styles.body,
|
|
24
|
-
children: children
|
|
25
|
-
})]
|
|
26
|
-
});
|
|
27
|
-
const styles = StyleSheet.create({
|
|
28
|
-
card: {
|
|
29
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
30
|
-
borderRadius: BORDER_RADIUS['400'],
|
|
31
|
-
padding: SPACING['400'],
|
|
32
|
-
...SHADOWS['1']
|
|
33
|
-
},
|
|
34
|
-
header: {
|
|
35
|
-
paddingLeft: SPACING['200']
|
|
36
|
-
},
|
|
37
|
-
title: {
|
|
38
|
-
color: COLORS.NEUTRAL_7
|
|
39
|
-
},
|
|
40
|
-
divider: {
|
|
41
|
-
backgroundColor: COLORS.NEUTRAL_3,
|
|
42
|
-
height: 1,
|
|
43
|
-
marginHorizontal: SPACING['100'],
|
|
44
|
-
marginVertical: SPACING['200']
|
|
45
|
-
},
|
|
46
|
-
body: {
|
|
47
|
-
gap: SPACING['400'],
|
|
48
|
-
justifyContent: 'center'
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
//# sourceMappingURL=ProfileCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","BORDER_RADIUS","COLORS","HeadingVariants","SHADOWS","SPACING","Typography","jsx","_jsx","jsxs","_jsxs","ProfileCard","title","children","style","styles","card","header","variant","H9","divider","body","create","backgroundColor","NEUTRAL_1","borderRadius","padding","paddingLeft","color","NEUTRAL_7","NEUTRAL_3","height","marginHorizontal","marginVertical","gap","justifyContent"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/cards/ProfileCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAAoBC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACrE,SACEC,aAAa,EACbC,MAAM,EACNC,eAAe,EACfC,OAAO,EACPC,OAAO,EACPC,UAAU,QACL,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQnC,OAAO,MAAMC,WAAW,GAAGA,CAA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