@nualang/nualang-ui-components 0.1.1183 → 0.1.1185
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/config.js +11 -3
- package/dist/hooks/useClassroomState.js +2 -1
- package/package.json +2 -2
package/dist/config.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
6
|
+
exports.default = exports.config = void 0;
|
|
7
|
+
exports.initializeAppConfig = initializeAppConfig;
|
|
7
8
|
var _nuala_speaking = _interopRequireDefault(require("./img/nuala_speaking.svg"));
|
|
8
9
|
var _nuala_speaking_ = _interopRequireDefault(require("./img/nuala_speaking_2.svg"));
|
|
9
10
|
var _nuala_speaking_2 = _interopRequireDefault(require("./img/nuala_speaking_3.svg"));
|
|
@@ -274,7 +275,7 @@ const languages = {
|
|
|
274
275
|
}
|
|
275
276
|
};
|
|
276
277
|
const internalDomains = ["@nualang.com", "@fathomtech.io", "@waysidepublishing.com", "@gsuite.waysidepublishing.com"];
|
|
277
|
-
const config = {
|
|
278
|
+
const config = exports.config = {
|
|
278
279
|
// API
|
|
279
280
|
API: process.env.REACT_APP_API,
|
|
280
281
|
StripePublicKey: "pk_test_51JFePMGYjTwlgAj9iTK14YmGFSrmmqCvAzACgPgVAq99uWTc0nbcmAEGy9fjZHr6KHiz7hBdKizYoyBCPcoscc2K00QAR0LgX9",
|
|
@@ -282,8 +283,15 @@ const config = {
|
|
|
282
283
|
PaymentUrl: "https://api.dev.nualang.com/services/payment-intent",
|
|
283
284
|
SITE_URL: process.env.REACT_APP_SITE_URL,
|
|
284
285
|
languages,
|
|
285
|
-
internalDomains
|
|
286
|
+
internalDomains,
|
|
287
|
+
limits: {}
|
|
286
288
|
};
|
|
289
|
+
function initializeAppConfig(appConfig) {
|
|
290
|
+
Object.assign(config, {
|
|
291
|
+
...config,
|
|
292
|
+
limits: appConfig?.limits || {}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
287
295
|
const exportObject = {
|
|
288
296
|
...config
|
|
289
297
|
};
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = useClassroomState;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _Queries = require("@nualang/nualang-api-and-queries/Queries");
|
|
9
|
+
var _config = require("../config");
|
|
9
10
|
function useClassroomState({
|
|
10
11
|
classroomId,
|
|
11
12
|
username,
|
|
@@ -22,7 +23,7 @@ function useClassroomState({
|
|
|
22
23
|
const classroomMemberData = queryClient.getQueryData(_Queries.classrooms.classroomKeys.itemMember(classroomId, username, memberId));
|
|
23
24
|
const [isMember, setIsMember] = (0, _react.useState)(classroomMemberData?.Item ? true : false);
|
|
24
25
|
let filters = {
|
|
25
|
-
limit:
|
|
26
|
+
limit: _config.config.limits.classroomMembers
|
|
26
27
|
};
|
|
27
28
|
const args = {
|
|
28
29
|
classroomId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nualang/nualang-ui-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1185",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@mui/material": "^5.15.20",
|
|
23
23
|
"@mui/system": "^5.15.20",
|
|
24
24
|
"@mui/x-date-pickers": "^7.7.0",
|
|
25
|
-
"@nualang/nualang-api-and-queries": "^1.0.
|
|
25
|
+
"@nualang/nualang-api-and-queries": "^1.0.75",
|
|
26
26
|
"@storybook/theming": "^8.1.10",
|
|
27
27
|
"@stripe/react-stripe-js": "^2.1.1",
|
|
28
28
|
"@stripe/stripe-js": "^1.54.2",
|