@selfcommunity/react-core 0.6.4-alpha.9 → 0.6.4-courses.101

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 (59) hide show
  1. package/lib/cjs/components/provider/SCRoutingProvider/index.js +1 -0
  2. package/lib/cjs/components/provider/SCUserProvider/index.js +6 -0
  3. package/lib/cjs/constants/Cache.d.ts +25 -2
  4. package/lib/cjs/constants/Cache.js +34 -4
  5. package/lib/cjs/constants/Notification.d.ts +1 -0
  6. package/lib/cjs/constants/Notification.js +2 -1
  7. package/lib/cjs/constants/Preferences.d.ts +8 -0
  8. package/lib/cjs/constants/Preferences.js +18 -2
  9. package/lib/cjs/constants/Routes.d.ts +8 -0
  10. package/lib/cjs/constants/Routes.js +17 -1
  11. package/lib/cjs/hooks/useSCFetchCourse.d.ts +23 -0
  12. package/lib/cjs/hooks/useSCFetchCourse.js +81 -0
  13. package/lib/cjs/hooks/useSCFetchCourses.d.ts +22 -0
  14. package/lib/cjs/hooks/useSCFetchCourses.js +83 -0
  15. package/lib/cjs/hooks/useSCFetchLesson.d.ts +22 -0
  16. package/lib/cjs/hooks/useSCFetchLesson.js +72 -0
  17. package/lib/cjs/hooks/useSCFetchLessonCommentObject.d.ts +23 -0
  18. package/lib/cjs/hooks/useSCFetchLessonCommentObject.js +72 -0
  19. package/lib/cjs/hooks/useSCFetchLessonCommentObjects.d.ts +48 -0
  20. package/lib/cjs/hooks/useSCFetchLessonCommentObjects.js +302 -0
  21. package/lib/cjs/hooks/useSCFetchLiveStream.d.ts +20 -0
  22. package/lib/cjs/hooks/useSCFetchLiveStream.js +76 -0
  23. package/lib/cjs/hooks/useSCJoinedCoursesManager.d.ts +38 -0
  24. package/lib/cjs/hooks/useSCJoinedCoursesManager.js +277 -0
  25. package/lib/cjs/index.d.ts +8 -2
  26. package/lib/cjs/index.js +14 -2
  27. package/lib/cjs/types/context.d.ts +36 -1
  28. package/lib/cjs/types/index.d.ts +2 -2
  29. package/lib/esm/components/provider/SCRoutingProvider/index.js +2 -1
  30. package/lib/esm/components/provider/SCUserProvider/index.js +6 -0
  31. package/lib/esm/constants/Cache.d.ts +25 -2
  32. package/lib/esm/constants/Cache.js +25 -2
  33. package/lib/esm/constants/Notification.d.ts +1 -0
  34. package/lib/esm/constants/Notification.js +2 -1
  35. package/lib/esm/constants/Preferences.d.ts +8 -0
  36. package/lib/esm/constants/Preferences.js +16 -0
  37. package/lib/esm/constants/Routes.d.ts +8 -0
  38. package/lib/esm/constants/Routes.js +16 -0
  39. package/lib/esm/hooks/useSCFetchCourse.d.ts +23 -0
  40. package/lib/esm/hooks/useSCFetchCourse.js +78 -0
  41. package/lib/esm/hooks/useSCFetchCourses.d.ts +22 -0
  42. package/lib/esm/hooks/useSCFetchCourses.js +81 -0
  43. package/lib/esm/hooks/useSCFetchLesson.d.ts +22 -0
  44. package/lib/esm/hooks/useSCFetchLesson.js +69 -0
  45. package/lib/esm/hooks/useSCFetchLessonCommentObject.d.ts +23 -0
  46. package/lib/esm/hooks/useSCFetchLessonCommentObject.js +69 -0
  47. package/lib/esm/hooks/useSCFetchLessonCommentObjects.d.ts +48 -0
  48. package/lib/esm/hooks/useSCFetchLessonCommentObjects.js +297 -0
  49. package/lib/esm/hooks/useSCFetchLiveStream.d.ts +20 -0
  50. package/lib/esm/hooks/useSCFetchLiveStream.js +73 -0
  51. package/lib/esm/hooks/useSCJoinedCoursesManager.d.ts +38 -0
  52. package/lib/esm/hooks/useSCJoinedCoursesManager.js +273 -0
  53. package/lib/esm/index.d.ts +8 -2
  54. package/lib/esm/index.js +7 -1
  55. package/lib/esm/types/context.d.ts +36 -1
  56. package/lib/esm/types/index.d.ts +2 -2
  57. package/lib/umd/react-core.js +1 -1
  58. package/lib/umd/react-core.js.LICENSE.txt +2 -0
  59. package/package.json +132 -127
@@ -1 +1,3 @@
1
1
  /*! (c) 2023 - present: Quentral Srl | https://github.com/selfcommunity/community-js/blob/master/LICENSE.md */
2
+
3
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
package/package.json CHANGED
@@ -1,129 +1,134 @@
1
1
  {
2
- "name": "@selfcommunity/react-core",
3
- "version": "0.6.4-alpha.9",
4
- "description": "React Core Components useful for integrating UI Community components (react-ui).",
5
- "author": "SelfCommunity <https://www.selfcommunity.com>",
6
- "homepage": "https://www.selfcommunity.com",
7
- "license": "MIT",
8
- "main": "./lib/cjs/index.js",
9
- "module": "./lib/esm/index.js",
10
- "exports": {
11
- ".": {
12
- "require": "./lib/cjs/index.js",
13
- "import": "./lib/esm/index.js"
14
- },
15
- "./*": {
16
- "require": "./lib/cjs/*",
17
- "import": "./lib/esm/*"
18
- }
19
- },
20
- "sideEffects": false,
21
- "keywords": [
22
- "react",
23
- "widgets",
24
- "community",
25
- "react-ui",
26
- "react-component",
27
- "community ui",
28
- "selfcommunity ui",
29
- "community templates",
30
- "selfcommunity templates"
31
- ],
32
- "scripts": {
33
- "prepare": "install-peers -f",
34
- "install-peers": "install-peers -f",
35
- "test": "npm run lint && npm run test-only",
36
- "test-only": "jest --runInBand",
37
- "tdd": "jest --watch --runInBand",
38
- "lint": "eslint ./src test --ext .ts,.tsx,.js",
39
- "prettier": "prettier './**/*.js' './**/*.css' './**/*.md' --write",
40
- "prettier-list-different": "prettier './**/*.js' './**/*.css' './**/*.md' --list-different",
41
- "clean:lib": "rimraf lib",
42
- "clean:node_modules": "rimraf node_modules",
43
- "build:commonjs": "tsc -b tsconfig-cjs.build.json",
44
- "build:esm": "tsc -b tsconfig-esm.build.json",
45
- "build:umd": "webpack --mode production",
46
- "build:umd:analyze": "webpack --mode production --profile --json > ./lib/umd/stats.json && webpack-bundle-analyzer ./lib/umd/stats.json",
47
- "build": "yarn clean:lib && yarn build:commonjs && yarn build:esm && yarn build:umd",
48
- "prerelease": "yarn run clean:lib && yarn run build"
49
- },
50
- "directories": {
51
- "lib": "lib"
52
- },
53
- "files": [
54
- "lib"
55
- ],
56
- "repository": {
57
- "type": "git",
58
- "url": "https://github.com/selfcommunity/community-js/tree/main/packages/react-core"
59
- },
60
- "publishConfig": {
61
- "access": "public"
62
- },
63
- "peerDependencies": {
64
- "@mui/material": "^5.14.12",
65
- "notistack": "^3.0.1",
66
- "react": "^17.0.2 || 18",
67
- "react-dom": "17 || 18",
68
- "react-intl": "^6.4.7"
69
- },
70
- "dependencies": {
71
- "@selfcommunity/api-services": "^0.6.4-alpha.0",
72
- "@selfcommunity/react-i18n": "^0.7.4-alpha.7",
73
- "@selfcommunity/types": "^0.7.4-alpha.0",
74
- "@selfcommunity/utils": "^0.2.61-alpha.0",
75
- "js-cookie": "^3.0.5",
76
- "pubsub-js": "^1.9.4",
77
- "use-deep-compare-effect": "^1.8.1",
78
- "validate-color": "^2.2.4"
79
- },
80
- "devDependencies": {
81
- "@types/chai": "^4.2.14",
82
- "@types/enzyme": "^3.10.8",
83
- "@types/jest": "^26.0.20",
84
- "@types/react": "17 || 18",
85
- "@types/react-dom": "17 || 18",
86
- "@types/sinon": "^9.0.10",
87
- "@typescript-eslint/eslint-plugin": "^4.14.2",
88
- "@typescript-eslint/parser": "^4.14.2",
89
- "babel-jest": "^26.6.3",
90
- "chai": "^4.2.0",
91
- "cherry-pick": "^0.5.0",
92
- "cross-env": "^5.0.5",
93
- "enzyme": "^3.10.0",
94
- "enzyme-adapter-react-16": "^1.15.6",
95
- "eslint": "^7.19.0",
96
- "eslint-config-prettier": "^7.2.0",
97
- "eslint-plugin-import": "^2.22.1",
98
- "eslint-plugin-mocha": "^8.0.0",
99
- "eslint-plugin-prettier": "^4.0.0",
100
- "eslint-plugin-react": "^7.22.0",
101
- "eslint-plugin-react-hooks": "^4.2.0",
102
- "faker": "^5.3.1",
103
- "install-peers-cli": "^2.2.0",
104
- "jest": "^26.6.3",
105
- "lodash": "^4.17.15",
106
- "postcss": "^8.2.4",
107
- "prettier": "^2.2.1",
108
- "rimraf": "^3.0.2",
109
- "sass": "^1.32.6",
110
- "sinon": "^9.2.4",
111
- "tslib": "^2.6.2",
112
- "typescript": "^4.1.3",
113
- "webpack": "^5.20.1",
114
- "webpack-atoms": "^17.1.0",
115
- "webpack-bundle-analyzer": "^4.9.0",
116
- "webpack-cli": "^4.5.0"
117
- },
118
- "prettier": {
119
- "printWidth": 150,
120
- "bracketSpacing": false,
121
- "trailingComma": "es5",
122
- "singleQuote": true,
123
- "bracketSameLine": true
124
- },
125
- "bugs": {
126
- "url": "https://github.com/selfcommunity/community-js/issues"
127
- },
128
- "gitHead": "dc709c57373c16c96da205d489bd04228dfcd3d2"
2
+ "name": "@selfcommunity/react-core",
3
+ "version": "0.6.4-courses.101+885f17e77",
4
+ "description": "React Core Components useful for integrating UI Community components (react-ui).",
5
+ "author": "SelfCommunity <https://www.selfcommunity.com>",
6
+ "homepage": "https://www.selfcommunity.com",
7
+ "license": "MIT",
8
+ "main": "./lib/cjs/index.js",
9
+ "module": "./lib/esm/index.js",
10
+ "exports": {
11
+ ".": {
12
+ "require": "./lib/cjs/index.js",
13
+ "import": "./lib/esm/index.js"
14
+ },
15
+ "./*": {
16
+ "require": "./lib/cjs/*",
17
+ "import": "./lib/esm/*"
18
+ }
19
+ },
20
+ "sideEffects": false,
21
+ "keywords": [
22
+ "react",
23
+ "widgets",
24
+ "community",
25
+ "react-ui",
26
+ "react-component",
27
+ "community ui",
28
+ "selfcommunity ui",
29
+ "community templates",
30
+ "selfcommunity templates"
31
+ ],
32
+ "scripts": {
33
+ "prepare": "install-peers -f",
34
+ "install-peers": "install-peers -f",
35
+ "test": "npm run lint && npm run test-only",
36
+ "test-only": "jest --runInBand",
37
+ "tdd": "jest --watch --runInBand",
38
+ "lint": "eslint ./src test --ext .ts,.tsx,.js",
39
+ "prettier": "prettier './**/*.js' './**/*.css' './**/*.md' --write",
40
+ "prettier-list-different": "prettier './**/*.js' './**/*.css' './**/*.md' --list-different",
41
+ "clean:lib": "rimraf lib",
42
+ "clean:node_modules": "rimraf node_modules",
43
+ "build:commonjs": "tsc -b tsconfig-cjs.build.json",
44
+ "build:esm": "tsc -b tsconfig-esm.build.json",
45
+ "build:umd": "webpack --mode production",
46
+ "build:umd:analyze": "webpack --mode production --profile --json > ./lib/umd/stats.json && webpack-bundle-analyzer ./lib/umd/stats.json",
47
+ "build": "yarn clean:lib && yarn build:commonjs && yarn build:esm && yarn build:umd",
48
+ "prerelease": "yarn run clean:lib && yarn run build"
49
+ },
50
+ "directories": {
51
+ "lib": "lib"
52
+ },
53
+ "files": [
54
+ "lib"
55
+ ],
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "https://github.com/selfcommunity/community-js/tree/main/packages/react-core"
59
+ },
60
+ "publishConfig": {
61
+ "access": "public"
62
+ },
63
+ "peerDependencies": {
64
+ "@mui/material": "^5.14.12",
65
+ "notistack": "^3.0.1",
66
+ "react": "^17.0.2 || 18",
67
+ "react-dom": "17 || 18",
68
+ "react-intl": "^6.4.7"
69
+ },
70
+ "dependencies": {
71
+ "@selfcommunity/api-services": "0.6.4-courses.147+885f17e77",
72
+ "@selfcommunity/react-i18n": "0.7.4-courses.101+885f17e77",
73
+ "@selfcommunity/types": "0.7.4-courses.147+885f17e77",
74
+ "@selfcommunity/utils": "0.2.61-courses.147+885f17e77",
75
+ "js-cookie": "^3.0.5",
76
+ "pubsub-js": "^1.9.4",
77
+ "use-deep-compare-effect": "^1.8.1",
78
+ "validate-color": "^2.2.4"
79
+ },
80
+ "devDependencies": {
81
+ "@babel/core": "^7.7.4",
82
+ "@babel/preset-env": "^7.25.8",
83
+ "@babel/preset-react": "^7.7.4",
84
+ "@babel/preset-typescript": "^7.7.4",
85
+ "@types/chai": "^4.2.14",
86
+ "@types/enzyme": "^3.10.8",
87
+ "@types/jest": "^26.0.20",
88
+ "@types/react": "17 || 18",
89
+ "@types/react-dom": "17 || 18",
90
+ "@types/sinon": "^9.0.10",
91
+ "@typescript-eslint/eslint-plugin": "^4.14.2",
92
+ "@typescript-eslint/parser": "^4.14.2",
93
+ "babel-jest": "^26.6.3",
94
+ "babel-loader": "^8.2.2",
95
+ "babel-preset-env-modules": "^1.0.0",
96
+ "chai": "^4.2.0",
97
+ "cherry-pick": "^0.5.0",
98
+ "cross-env": "^5.0.5",
99
+ "enzyme": "^3.10.0",
100
+ "enzyme-adapter-react-16": "^1.15.6",
101
+ "eslint": "^7.19.0",
102
+ "eslint-config-prettier": "^7.2.0",
103
+ "eslint-plugin-import": "^2.22.1",
104
+ "eslint-plugin-mocha": "^8.0.0",
105
+ "eslint-plugin-prettier": "^4.0.0",
106
+ "eslint-plugin-react": "^7.22.0",
107
+ "eslint-plugin-react-hooks": "^4.2.0",
108
+ "faker": "^5.3.1",
109
+ "install-peers-cli": "^2.2.0",
110
+ "jest": "^26.6.3",
111
+ "lodash": "^4.17.15",
112
+ "postcss": "^8.2.4",
113
+ "prettier": "^2.2.1",
114
+ "rimraf": "^3.0.2",
115
+ "sass": "^1.32.6",
116
+ "sinon": "^9.2.4",
117
+ "tslib": "^2.6.2",
118
+ "typescript": "^4.1.3",
119
+ "webpack": "^5.20.1",
120
+ "webpack-bundle-analyzer": "^4.9.0",
121
+ "webpack-cli": "^4.5.0"
122
+ },
123
+ "prettier": {
124
+ "printWidth": 150,
125
+ "bracketSpacing": false,
126
+ "trailingComma": "es5",
127
+ "singleQuote": true,
128
+ "bracketSameLine": true
129
+ },
130
+ "bugs": {
131
+ "url": "https://github.com/selfcommunity/community-js/issues"
132
+ },
133
+ "gitHead": "885f17e7746d3308b7db24415a2b1a9913ae6d88"
129
134
  }