@os-team/profile 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@os-team/profile",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "license": "UNLICENSED",
5
5
  "repository": "git@gitlab.com:os-team/libs/profile.git",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "relay:watch": "yarn relay --watch",
23
23
  "dev-start": "react-app-rewired start",
24
24
  "dev": "yarn relay && npm-run-all dev-start relay:watch",
25
- "test": "react-app-rewired test --watchAll=false --passWithNoTests",
25
+ "test": "exit 0",
26
26
  "ncu": "ncu -u",
27
27
  "lint": "eslint --fix .",
28
28
  "lint-check": "eslint .",
@@ -35,14 +35,14 @@
35
35
  "registry": "https://registry.npmjs.org"
36
36
  },
37
37
  "dependencies": {
38
- "@os-design/core": "^1.0.262",
39
- "@os-design/form": "^1.0.97",
40
- "@os-design/icons": "^1.0.65",
41
- "@os-design/media": "^1.0.30",
42
- "@os-design/styles": "^1.0.62",
43
- "@os-design/theming": "^1.0.58",
44
- "@os-design/utils": "^1.0.82",
45
- "@os-team/plural-forms": "^1.0.14"
38
+ "@os-design/core": "^1.0.264",
39
+ "@os-design/form": "^1.0.99",
40
+ "@os-design/icons": "^1.0.67",
41
+ "@os-design/media": "^1.0.31",
42
+ "@os-design/styles": "^1.0.64",
43
+ "@os-design/theming": "^1.0.60",
44
+ "@os-design/utils": "^1.0.84",
45
+ "@os-team/plural-forms": "^1.0.16"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@babel/cli": "^7.25.9",
@@ -54,35 +54,32 @@
54
54
  "@emotion/react": "^11.13.5",
55
55
  "@emotion/serialize": "^1.3.3",
56
56
  "@emotion/styled": "^11.13.5",
57
- "@os-team/prettier-config": "1.2.7",
58
- "@os-team/relay-network-creator": "^1.3.1",
59
- "@os-team/relay-network-mw-upload": "^1.2.24",
60
- "@types/jest": "^29.5.14",
61
- "@types/node": "^22.9.3",
57
+ "@os-team/prettier-config": "1.2.8",
58
+ "@os-team/relay-network-creator": "^1.3.2",
59
+ "@os-team/relay-network-mw-upload": "^1.2.26",
60
+ "@types/node": "^22.10.1",
62
61
  "@types/react": "^18.3.12",
63
62
  "@types/react-dom": "^18.3.1",
64
63
  "@types/react-relay": "^16.0.6",
65
- "@typescript-eslint/eslint-plugin": "^8.15.0",
66
- "@typescript-eslint/parser": "^8.15.0",
67
64
  "babel-plugin-relay": "^18.2.0",
68
65
  "cross-env": "^7.0.3",
69
- "eslint": "^9.15.0",
70
- "eslint-config-os-team-react": "1.2.22",
66
+ "eslint": "^9.16.0",
67
+ "eslint-config-os-team-react": "1.2.27",
71
68
  "get-graphql-schema": "^2.1.2",
72
69
  "graphql": "^16.9.0",
73
70
  "husky": "^9.1.7",
74
- "i18next": "^24.0.0",
71
+ "i18next": "^24.0.2",
75
72
  "i18next-browser-languagedetector": "^8.0.0",
76
73
  "i18next-http-backend": "^3.0.1",
77
74
  "lazysizes": "^5.3.2",
78
75
  "lint-staged": "^15.2.10",
79
76
  "npm-run-all": "^4.1.5",
80
- "prettier": "3.3.3",
77
+ "prettier": "3.4.1",
81
78
  "progress-bar-webpack-plugin": "^2.1.0",
82
79
  "react": "^18.3.1",
83
80
  "react-app-rewired": "^2.2.1",
84
81
  "react-dom": "^18.3.1",
85
- "react-i18next": "^15.1.1",
82
+ "react-i18next": "^15.1.3",
86
83
  "react-relay": "^18.2.0",
87
84
  "react-router": "^7.0.1",
88
85
  "react-scripts": "^5.0.1",
package/src/AppRouter.tsx CHANGED
@@ -5,7 +5,7 @@ import HomePage from './pages/HomePage';
5
5
  const AppRouter: React.FC = () => (
6
6
  <Routes>
7
7
  <Route path='home' element={<HomePage />} />
8
- <Route path='*' element={<Navigate replace to='home' />} />
8
+ <Route path='*' element={<Navigate replace to='/home' />} />
9
9
  </Routes>
10
10
  );
11
11
 
package/src/i18next.ts CHANGED
@@ -3,6 +3,7 @@ import HttpBackend from 'i18next-http-backend';
3
3
  import { initReactI18next } from 'react-i18next';
4
4
  import LanguageDetector from 'i18next-browser-languagedetector';
5
5
 
6
+ // eslint-disable-next-line import/no-named-as-default-member
6
7
  i18next
7
8
  .use(HttpBackend) // Load translation. See /public/locales
8
9
  .use(LanguageDetector) // Detect user language
@@ -4,6 +4,11 @@ directive @specifiedBy(
4
4
  url: String!
5
5
  ) on SCALAR
6
6
 
7
+ """
8
+ Indicates exactly one field must be supplied and this field must not be `null`.
9
+ """
10
+ directive @oneOf on INPUT_OBJECT
11
+
7
12
  input AddToVocabularyInput {
8
13
  collectionUrlSlug: ID!
9
14
  }
@@ -33,7 +38,7 @@ type Answer implements Node {
33
38
  }
34
39
 
35
40
  type AuthPayload {
36
- userId: Float!
41
+ userId: Int!
37
42
  }
38
43
 
39
44
  type BlogLanguage implements Node {
@@ -620,7 +625,7 @@ input ForgotPasswordInput {
620
625
 
621
626
  type ForgotPasswordPayload {
622
627
  recoveryLinkIsSent: Boolean!
623
- limitExpiresAt: Float!
628
+ limitExpiresAt: Long!
624
629
  }
625
630
 
626
631
  """
@@ -821,9 +826,6 @@ type Mutation {
821
826
  createEnglishLevel(input: CreateEnglishLevelInput!): EnglishLevel!
822
827
  updateEnglishLevel(input: UpdateEnglishLevelInput!): EnglishLevel!
823
828
  deleteEnglishLevel(input: DeleteInput!): StatusPayload!
824
- createEntry(input: CreateEntryInput!): UserEntry!
825
- updateEntry(input: UpdateEntryInput!): Entry!
826
- deleteEntry(input: DeleteInput!): StatusPayload!
827
829
  createLanguage(input: CreateLanguageInput!): Language!
828
830
  updateLanguage(input: UpdateLanguageInput!): Language!
829
831
  deleteLanguage(input: DeleteInput!): StatusPayload!
@@ -842,8 +844,11 @@ type Mutation {
842
844
  updateUserVideoTime(input: UpdateUserVideoTimeInput!): StatusPayload!
843
845
  completeUserVideoStep(input: CompleteUserVideoStepInput!): UserVideo!
844
846
  createCollectionByVideo(input: CreateCollectionByVideoInput!): UserVideo!
845
- createUserVideoEntry(input: CreateUserVideoEntryInput!): UserVideoEntry!
846
847
  addVideo(input: AddVideoInput!): UserVideo!
848
+ createEntry(input: CreateEntryInput!): UserEntry!
849
+ updateEntry(input: UpdateEntryInput!): Entry!
850
+ deleteEntry(input: DeleteInput!): StatusPayload!
851
+ createUserVideoEntry(input: CreateUserVideoEntryInput!): UserVideoEntry!
847
852
  }
848
853
 
849
854
  type NativeLanguage {
@@ -1262,41 +1267,6 @@ type Query {
1262
1267
  """
1263
1268
  before: String
1264
1269
  ): EnglishLevelConnection!
1265
- translate(text: String!): TranslatePayload!
1266
- textToSpeech(text: String!): TextToSpeechPayload!
1267
- sharedEntry(id: ID!): Entry!
1268
- sharedEntries(
1269
- """
1270
- {"en":"The number of items on the page. Used for forward
1271
- pagination.","ru":"Количество элементов на странице. Используется для
1272
- навигации вперед."}
1273
- """
1274
- first: Int
1275
-
1276
- """
1277
- {"en":"The cursor of the item relative to which the next items should be
1278
- returned. Used for forward pagination.","ru":"Курсор элемента, относительно
1279
- которого должны быть возвращены следующие элементы. Используется для
1280
- навигации вперед."}
1281
- """
1282
- after: String
1283
-
1284
- """
1285
- {"en":"The number of items on the page. Used for backward
1286
- pagination.","ru":"Количество элементов на странице. Используется для
1287
- навигации назад."}
1288
- """
1289
- last: Int
1290
-
1291
- """
1292
- {"en":"The cursor of the item relative to which the previous items should be
1293
- returned. Used for backward pagination.","ru":"Курсор элемента, относительно
1294
- которого должны быть возвращены предыдущие элементы. Используется для
1295
- навигации назад."}
1296
- """
1297
- before: String
1298
- collectionUrlSlug: String!
1299
- ): EntryConnection!
1300
1270
  language(code: String!): Language!
1301
1271
  languages(
1302
1272
  """
@@ -1569,7 +1539,7 @@ type Query {
1569
1539
  before: String
1570
1540
  know: Boolean!
1571
1541
  ): UserVideoConnection!
1572
- userVideoEntries(
1542
+ videos(
1573
1543
  """
1574
1544
  {"en":"The number of items on the page. Used for forward
1575
1545
  pagination.","ru":"Количество элементов на странице. Используется для
@@ -1599,9 +1569,9 @@ type Query {
1599
1569
  навигации назад."}
1600
1570
  """
1601
1571
  before: String
1602
- userVideoId: ID!
1603
- ): UserVideoEntryConnection!
1604
- videos(
1572
+ duration: String
1573
+ ): VideoConnection!
1574
+ searchVideos(
1605
1575
  """
1606
1576
  {"en":"The number of items on the page. Used for forward
1607
1577
  pagination.","ru":"Количество элементов на странице. Используется для
@@ -1631,9 +1601,13 @@ type Query {
1631
1601
  навигации назад."}
1632
1602
  """
1633
1603
  before: String
1604
+ searchTerm: String!
1634
1605
  duration: String
1635
- ): VideoConnection!
1636
- searchVideos(
1606
+ ): SearchVideoListItemConnection!
1607
+ translate(text: String!): TranslatePayload!
1608
+ textToSpeech(text: String!): TextToSpeechPayload!
1609
+ sharedEntry(id: ID!): Entry!
1610
+ sharedEntries(
1637
1611
  """
1638
1612
  {"en":"The number of items on the page. Used for forward
1639
1613
  pagination.","ru":"Количество элементов на странице. Используется для
@@ -1663,9 +1637,40 @@ type Query {
1663
1637
  навигации назад."}
1664
1638
  """
1665
1639
  before: String
1666
- searchTerm: String!
1667
- duration: String
1668
- ): SearchVideoListItemConnection!
1640
+ collectionUrlSlug: String!
1641
+ ): EntryConnection!
1642
+ userVideoEntries(
1643
+ """
1644
+ {"en":"The number of items on the page. Used for forward
1645
+ pagination.","ru":"Количество элементов на странице. Используется для
1646
+ навигации вперед."}
1647
+ """
1648
+ first: Int
1649
+
1650
+ """
1651
+ {"en":"The cursor of the item relative to which the next items should be
1652
+ returned. Used for forward pagination.","ru":"Курсор элемента, относительно
1653
+ которого должны быть возвращены следующие элементы. Используется для
1654
+ навигации вперед."}
1655
+ """
1656
+ after: String
1657
+
1658
+ """
1659
+ {"en":"The number of items on the page. Used for backward
1660
+ pagination.","ru":"Количество элементов на странице. Используется для
1661
+ навигации назад."}
1662
+ """
1663
+ last: Int
1664
+
1665
+ """
1666
+ {"en":"The cursor of the item relative to which the previous items should be
1667
+ returned. Used for backward pagination.","ru":"Курсор элемента, относительно
1668
+ которого должны быть возвращены предыдущие элементы. Используется для
1669
+ навигации назад."}
1670
+ """
1671
+ before: String
1672
+ userVideoId: ID!
1673
+ ): UserVideoEntryConnection!
1669
1674
  }
1670
1675
 
1671
1676
  type Quiz implements Node {
@@ -1697,7 +1702,7 @@ input RegisterInput {
1697
1702
 
1698
1703
  type RegisterPayload {
1699
1704
  confirmationLinkIsSent: Boolean!
1700
- limitExpiresAt: Float!
1705
+ limitExpiresAt: Long!
1701
1706
  }
1702
1707
 
1703
1708
  type RequiredSettingsPayload {
@@ -1714,7 +1719,7 @@ type ResendLinkPayload {
1714
1719
  {"en":"Whether the operation was completed successfully.","ru":"Была ли операция завершена успешно."}
1715
1720
  """
1716
1721
  ok: Boolean!
1717
- limitExpiresAt: Float!
1722
+ limitExpiresAt: Long!
1718
1723
  }
1719
1724
 
1720
1725
  type SearchVideoListItem {
@@ -1839,7 +1844,7 @@ type Test implements Node {
1839
1844
  title: String!
1840
1845
  description: JSON!
1841
1846
  task: String!
1842
- position: Float!
1847
+ position: Int!
1843
1848
  published: Boolean!
1844
1849
  urlSlug: String!
1845
1850
  metaTitle: String!
@@ -2394,7 +2399,7 @@ type Video implements Node {
2394
2399
  publishedAt: Long!
2395
2400
  title: String!
2396
2401
  description: String!
2397
- duration: Float!
2402
+ duration: Int!
2398
2403
  channel: VideoChannel!
2399
2404
  thumbnails: [VideoThumbnail!]!
2400
2405
  subtitles: [VideoSubtitle!]!
@@ -2488,7 +2493,7 @@ type VideoThumbnail implements Node {
2488
2493
  """
2489
2494
  updatedAt: Long!
2490
2495
  url: String!
2491
- width: Float!
2492
- height: Float!
2496
+ width: Int!
2497
+ height: Int!
2493
2498
  }
2494
2499