@memberjunction/ng-react 4.1.0 → 4.3.0
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/__tests__/index.test.d.ts +1 -0
- package/dist/__tests__/index.test.js +7 -0
- package/dist/__tests__/index.test.js.map +1 -0
- package/dist/__tests__/react-debug-config.test.d.ts +1 -0
- package/dist/__tests__/react-debug-config.test.js +41 -0
- package/dist/__tests__/react-debug-config.test.js.map +1 -0
- package/package.json +13 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, it, expect } from 'vitest';\n\ndescribe('@memberjunction/ng-react', () => {\n it('should have a passing test', () => {\n expect(true).toBe(true);\n });\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { describe, it, expect, beforeEach } from 'vitest';
|
|
2
|
+
import { ReactDebugConfig } from '../lib/config/react-debug.config';
|
|
3
|
+
describe('ReactDebugConfig', () => {
|
|
4
|
+
beforeEach(() => {
|
|
5
|
+
ReactDebugConfig.DEBUG_MODE = false;
|
|
6
|
+
if (typeof window !== 'undefined') {
|
|
7
|
+
delete window.__MJ_REACT_DEBUG_MODE__;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
describe('DEBUG_MODE', () => {
|
|
11
|
+
it('should default to false', () => {
|
|
12
|
+
expect(ReactDebugConfig.DEBUG_MODE).toBe(false);
|
|
13
|
+
});
|
|
14
|
+
it('should be settable', () => {
|
|
15
|
+
ReactDebugConfig.DEBUG_MODE = true;
|
|
16
|
+
expect(ReactDebugConfig.DEBUG_MODE).toBe(true);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
describe('getDebugMode', () => {
|
|
20
|
+
it('should return false by default', () => {
|
|
21
|
+
expect(ReactDebugConfig.getDebugMode()).toBe(false);
|
|
22
|
+
});
|
|
23
|
+
it('should return static DEBUG_MODE value', () => {
|
|
24
|
+
ReactDebugConfig.DEBUG_MODE = true;
|
|
25
|
+
expect(ReactDebugConfig.getDebugMode()).toBe(true);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
describe('setDebugMode', () => {
|
|
29
|
+
it('should set DEBUG_MODE to true', () => {
|
|
30
|
+
ReactDebugConfig.setDebugMode(true);
|
|
31
|
+
expect(ReactDebugConfig.DEBUG_MODE).toBe(true);
|
|
32
|
+
expect(ReactDebugConfig.getDebugMode()).toBe(true);
|
|
33
|
+
});
|
|
34
|
+
it('should set DEBUG_MODE to false', () => {
|
|
35
|
+
ReactDebugConfig.setDebugMode(true);
|
|
36
|
+
ReactDebugConfig.setDebugMode(false);
|
|
37
|
+
expect(ReactDebugConfig.DEBUG_MODE).toBe(false);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=react-debug-config.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-debug-config.test.js","sourceRoot":"","sources":["../../src/__tests__/react-debug-config.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,QAAQ,CAAC,kBAAkB,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C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/C,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;YACxC,gBAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,gBAAgB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YACrC,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, it, expect, beforeEach } from 'vitest';\nimport { ReactDebugConfig } from '../lib/config/react-debug.config';\n\ndescribe('ReactDebugConfig', () => {\n beforeEach(() => {\n ReactDebugConfig.DEBUG_MODE = false;\n if (typeof window !== 'undefined') {\n delete (window as unknown as Record<string, unknown>).__MJ_REACT_DEBUG_MODE__;\n }\n });\n\n describe('DEBUG_MODE', () => {\n it('should default to false', () => {\n expect(ReactDebugConfig.DEBUG_MODE).toBe(false);\n });\n\n it('should be settable', () => {\n ReactDebugConfig.DEBUG_MODE = true;\n expect(ReactDebugConfig.DEBUG_MODE).toBe(true);\n });\n });\n\n describe('getDebugMode', () => {\n it('should return false by default', () => {\n expect(ReactDebugConfig.getDebugMode()).toBe(false);\n });\n\n it('should return static DEBUG_MODE value', () => {\n ReactDebugConfig.DEBUG_MODE = true;\n expect(ReactDebugConfig.getDebugMode()).toBe(true);\n });\n });\n\n describe('setDebugMode', () => {\n it('should set DEBUG_MODE to true', () => {\n ReactDebugConfig.setDebugMode(true);\n expect(ReactDebugConfig.DEBUG_MODE).toBe(true);\n expect(ReactDebugConfig.getDebugMode()).toBe(true);\n });\n\n it('should set DEBUG_MODE to false', () => {\n ReactDebugConfig.setDebugMode(true);\n ReactDebugConfig.setDebugMode(false);\n expect(ReactDebugConfig.DEBUG_MODE).toBe(false);\n });\n });\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Angular components for hosting React components in MemberJunction applications",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "ngc -p tsconfig.json",
|
|
7
7
|
"watch": "ngc -p tsconfig.json --watch",
|
|
8
8
|
"test": "echo \"Tests not yet implemented\"",
|
|
9
|
-
"patchVersion": "npm version patch"
|
|
9
|
+
"patchVersion": "npm version patch",
|
|
10
|
+
"test:watch": "vitest"
|
|
10
11
|
},
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
@@ -40,14 +41,14 @@
|
|
|
40
41
|
"styles"
|
|
41
42
|
],
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@memberjunction/ai-vectors-memory": "4.
|
|
44
|
-
"@memberjunction/core": "4.
|
|
45
|
-
"@memberjunction/core-entities": "4.
|
|
46
|
-
"@memberjunction/global": "4.
|
|
47
|
-
"@memberjunction/graphql-dataprovider": "4.
|
|
48
|
-
"@memberjunction/interactive-component-types": "4.
|
|
49
|
-
"@memberjunction/ng-notifications": "4.
|
|
50
|
-
"@memberjunction/react-runtime": "4.
|
|
44
|
+
"@memberjunction/ai-vectors-memory": "4.3.0",
|
|
45
|
+
"@memberjunction/core": "4.3.0",
|
|
46
|
+
"@memberjunction/core-entities": "4.3.0",
|
|
47
|
+
"@memberjunction/global": "4.3.0",
|
|
48
|
+
"@memberjunction/graphql-dataprovider": "4.3.0",
|
|
49
|
+
"@memberjunction/interactive-component-types": "4.3.0",
|
|
50
|
+
"@memberjunction/ng-notifications": "4.3.0",
|
|
51
|
+
"@memberjunction/react-runtime": "4.3.0",
|
|
51
52
|
"@angular/common": "21.1.3",
|
|
52
53
|
"@angular/core": "21.1.3",
|
|
53
54
|
"@angular/platform-browser": "21.1.3",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@angular/compiler": "21.1.3",
|
|
63
64
|
"@angular/compiler-cli": "21.1.3",
|
|
64
|
-
"typescript": "5.9.3"
|
|
65
|
+
"typescript": "5.9.3",
|
|
66
|
+
"vitest": "^4.0.18"
|
|
65
67
|
}
|
|
66
68
|
}
|