@nualang/nualang-ui-components 0.1.1183 → 0.1.1184

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 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,10 @@ 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");
10
+ const {
11
+ limits
12
+ } = _config.config;
9
13
  function useClassroomState({
10
14
  classroomId,
11
15
  username,
@@ -22,7 +26,7 @@ function useClassroomState({
22
26
  const classroomMemberData = queryClient.getQueryData(_Queries.classrooms.classroomKeys.itemMember(classroomId, username, memberId));
23
27
  const [isMember, setIsMember] = (0, _react.useState)(classroomMemberData?.Item ? true : false);
24
28
  let filters = {
25
- limit: 1000
29
+ limit: limits.classroomMembers
26
30
  };
27
31
  const args = {
28
32
  classroomId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1183",
3
+ "version": "0.1.1184",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",