@memberjunction/react-runtime 5.51.0 → 6.1.0-edge.1
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/.turbo/turbo-build.log +26 -18
- package/CHANGELOG.md +54 -0
- package/LICENSE +7 -0
- package/dist/324.runtime.umd.js +23 -32
- package/dist/{490.runtime.umd.js → 456.runtime.umd.js} +40 -40
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime.umd.js +9276 -4844
- package/dist/utilities/component-styles.d.ts +2 -1
- package/dist/utilities/component-styles.d.ts.map +1 -1
- package/dist/utilities/component-styles.js +79 -0
- package/dist/utilities/component-styles.js.map +1 -1
- package/package.json +17 -17
- package/src/__tests__/component-styles.test.ts +252 -0
- package/src/index.ts +2 -1
- package/src/utilities/component-styles.ts +130 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(this["webpackChunkMJReactRuntime"] = this["webpackChunkMJReactRuntime"] || []).push([[
|
|
2
|
+
(this["webpackChunkMJReactRuntime"] = this["webpackChunkMJReactRuntime"] || []).push([[456],{
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 74
|
|
5
5
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
|
|
7
7
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -317,7 +317,7 @@ replaceTraps((oldTraps) => ({
|
|
|
317
317
|
|
|
318
318
|
/***/ },
|
|
319
319
|
|
|
320
|
-
/***/
|
|
320
|
+
/***/ 927
|
|
321
321
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
322
322
|
|
|
323
323
|
|
|
@@ -329,7 +329,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
329
329
|
|
|
330
330
|
// UNUSED EXPORTS: ClientError, analyzeDocument, batchRequests, default, rawRequest, request
|
|
331
331
|
|
|
332
|
-
;// ../../../node_modules/graphql-request/build/legacy/classes/ClientError.js
|
|
332
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/classes/ClientError.js
|
|
333
333
|
class ClientError extends Error {
|
|
334
334
|
response;
|
|
335
335
|
request;
|
|
@@ -352,7 +352,7 @@ class ClientError extends Error {
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
//# sourceMappingURL=ClientError.js.map
|
|
355
|
-
;// ../../../node_modules/graphql-request/build/lib/prelude.js
|
|
355
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/lib/prelude.js
|
|
356
356
|
const uppercase = (str) => str.toUpperCase();
|
|
357
357
|
const callOrIdentity = (value) => {
|
|
358
358
|
return typeof value === `function` ? value() : value;
|
|
@@ -483,7 +483,7 @@ const partitionErrors = (array) => {
|
|
|
483
483
|
return [values, errors];
|
|
484
484
|
};
|
|
485
485
|
//# sourceMappingURL=prelude.js.map
|
|
486
|
-
;// ../../../node_modules/graphql-request/build/legacy/functions/batchRequests.js
|
|
486
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/functions/batchRequests.js
|
|
487
487
|
/* unused harmony import specifier */ var GraphQLClient;
|
|
488
488
|
|
|
489
489
|
/**
|
|
@@ -549,7 +549,7 @@ const parseBatchRequestArgs = (documentsOrOptions, requestHeaders) => {
|
|
|
549
549
|
};
|
|
550
550
|
};
|
|
551
551
|
//# sourceMappingURL=batchRequests.js.map
|
|
552
|
-
;// ../../../node_modules/graphql-request/build/legacy/functions/rawRequest.js
|
|
552
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/functions/rawRequest.js
|
|
553
553
|
/* unused harmony import specifier */ var rawRequest_GraphQLClient;
|
|
554
554
|
|
|
555
555
|
/**
|
|
@@ -586,7 +586,7 @@ const parseRawRequestArgs = (queryOrOptions, variables, requestHeaders) => {
|
|
|
586
586
|
};
|
|
587
587
|
};
|
|
588
588
|
//# sourceMappingURL=rawRequest.js.map
|
|
589
|
-
;// ../../../node_modules/graphql/language/kinds.mjs
|
|
589
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/kinds.mjs
|
|
590
590
|
/**
|
|
591
591
|
* The set of allowed kind values for AST nodes.
|
|
592
592
|
*/
|
|
@@ -650,7 +650,7 @@ var Kind;
|
|
|
650
650
|
* @deprecated Please use `Kind`. Will be remove in v17.
|
|
651
651
|
*/
|
|
652
652
|
|
|
653
|
-
;// ../../../node_modules/graphql-request/build/lib/http.js
|
|
653
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/lib/http.js
|
|
654
654
|
const ACCEPT_HEADER = `Accept`;
|
|
655
655
|
const CONTENT_TYPE_HEADER = `Content-Type`;
|
|
656
656
|
const CONTENT_TYPE_JSON = `application/json`;
|
|
@@ -659,7 +659,7 @@ const statusCodes = {
|
|
|
659
659
|
success: 200,
|
|
660
660
|
};
|
|
661
661
|
//# sourceMappingURL=http.js.map
|
|
662
|
-
;// ../../../node_modules/graphql-request/build/legacy/lib/graphql.js
|
|
662
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/lib/graphql.js
|
|
663
663
|
|
|
664
664
|
|
|
665
665
|
|
|
@@ -749,7 +749,7 @@ const isOperationDefinitionNode = (definition) => {
|
|
|
749
749
|
&& definition.kind === Kind.OPERATION_DEFINITION);
|
|
750
750
|
};
|
|
751
751
|
//# sourceMappingURL=graphql.js.map
|
|
752
|
-
;// ../../../node_modules/graphql/jsutils/isObjectLike.mjs
|
|
752
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/isObjectLike.mjs
|
|
753
753
|
/**
|
|
754
754
|
* Return true if `value` is object-like. A value is object-like if it's not
|
|
755
755
|
* `null` and has a `typeof` result of "object".
|
|
@@ -758,7 +758,7 @@ function isObjectLike(value) {
|
|
|
758
758
|
return typeof value == 'object' && value !== null;
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
-
;// ../../../node_modules/graphql/jsutils/invariant.mjs
|
|
761
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/invariant.mjs
|
|
762
762
|
function invariant(condition, message) {
|
|
763
763
|
const booleanCondition = Boolean(condition);
|
|
764
764
|
|
|
@@ -769,7 +769,7 @@ function invariant(condition, message) {
|
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
|
|
772
|
-
;// ../../../node_modules/graphql/language/location.mjs
|
|
772
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/location.mjs
|
|
773
773
|
|
|
774
774
|
const LineRegExp = /\r\n|[\n\r]/g;
|
|
775
775
|
/**
|
|
@@ -801,7 +801,7 @@ function getLocation(source, position) {
|
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
;// ../../../node_modules/graphql/language/printLocation.mjs
|
|
804
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printLocation.mjs
|
|
805
805
|
|
|
806
806
|
|
|
807
807
|
/**
|
|
@@ -869,7 +869,7 @@ function printPrefixedLines(lines) {
|
|
|
869
869
|
.join('\n');
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
;// ../../../node_modules/graphql/error/GraphQLError.mjs
|
|
872
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/error/GraphQLError.mjs
|
|
873
873
|
|
|
874
874
|
|
|
875
875
|
|
|
@@ -1121,7 +1121,7 @@ function formatError(error) {
|
|
|
1121
1121
|
return error.toJSON();
|
|
1122
1122
|
}
|
|
1123
1123
|
|
|
1124
|
-
;// ../../../node_modules/graphql/error/syntaxError.mjs
|
|
1124
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/error/syntaxError.mjs
|
|
1125
1125
|
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Produces a GraphQLError representing a syntax error, containing useful
|
|
@@ -1135,7 +1135,7 @@ function syntaxError(source, position, description) {
|
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
-
;// ../../../node_modules/graphql/language/ast.mjs
|
|
1138
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/ast.mjs
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Contains a range of UTF-8 character offsets and token references that
|
|
1141
1141
|
* identify the region of the source from which the AST derived.
|
|
@@ -1358,7 +1358,7 @@ var OperationTypeNode;
|
|
|
1358
1358
|
|
|
1359
1359
|
|
|
1360
1360
|
|
|
1361
|
-
;// ../../../node_modules/graphql/language/directiveLocation.mjs
|
|
1361
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/directiveLocation.mjs
|
|
1362
1362
|
/**
|
|
1363
1363
|
* The set of allowed directive location values.
|
|
1364
1364
|
*/
|
|
@@ -1393,7 +1393,7 @@ var DirectiveLocation;
|
|
|
1393
1393
|
* @deprecated Please use `DirectiveLocation`. Will be remove in v17.
|
|
1394
1394
|
*/
|
|
1395
1395
|
|
|
1396
|
-
;// ../../../node_modules/graphql/language/characterClasses.mjs
|
|
1396
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/characterClasses.mjs
|
|
1397
1397
|
/**
|
|
1398
1398
|
* ```
|
|
1399
1399
|
* WhiteSpace ::
|
|
@@ -1459,7 +1459,7 @@ function isNameContinue(code) {
|
|
|
1459
1459
|
return isLetter(code) || isDigit(code) || code === 0x005f;
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
|
-
;// ../../../node_modules/graphql/language/blockString.mjs
|
|
1462
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/blockString.mjs
|
|
1463
1463
|
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Produces the value of a block string from its parsed raw value, similar to
|
|
@@ -1639,7 +1639,7 @@ function printBlockString(value, options) {
|
|
|
1639
1639
|
return '"""' + result + '"""';
|
|
1640
1640
|
}
|
|
1641
1641
|
|
|
1642
|
-
;// ../../../node_modules/graphql/language/tokenKind.mjs
|
|
1642
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/tokenKind.mjs
|
|
1643
1643
|
/**
|
|
1644
1644
|
* An exported enum describing the different kinds of tokens that the
|
|
1645
1645
|
* lexer emits.
|
|
@@ -1679,7 +1679,7 @@ var TokenKind;
|
|
|
1679
1679
|
* @deprecated Please use `TokenKind`. Will be remove in v17.
|
|
1680
1680
|
*/
|
|
1681
1681
|
|
|
1682
|
-
;// ../../../node_modules/graphql/language/lexer.mjs
|
|
1682
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/lexer.mjs
|
|
1683
1683
|
|
|
1684
1684
|
|
|
1685
1685
|
|
|
@@ -2596,7 +2596,7 @@ function readName(lexer, start) {
|
|
|
2596
2596
|
);
|
|
2597
2597
|
}
|
|
2598
2598
|
|
|
2599
|
-
;// ../../../node_modules/graphql/jsutils/devAssert.mjs
|
|
2599
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/devAssert.mjs
|
|
2600
2600
|
function devAssert(condition, message) {
|
|
2601
2601
|
const booleanCondition = Boolean(condition);
|
|
2602
2602
|
|
|
@@ -2605,7 +2605,7 @@ function devAssert(condition, message) {
|
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
2607
|
|
|
2608
|
-
;// ../../../node_modules/graphql/jsutils/inspect.mjs
|
|
2608
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/inspect.mjs
|
|
2609
2609
|
const MAX_ARRAY_LENGTH = 10;
|
|
2610
2610
|
const MAX_RECURSIVE_DEPTH = 2;
|
|
2611
2611
|
/**
|
|
@@ -2722,7 +2722,7 @@ function getObjectTag(object) {
|
|
|
2722
2722
|
return tag;
|
|
2723
2723
|
}
|
|
2724
2724
|
|
|
2725
|
-
;// ../../../node_modules/graphql/jsutils/instanceOf.mjs
|
|
2725
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/instanceOf.mjs
|
|
2726
2726
|
|
|
2727
2727
|
/* c8 ignore next 3 */
|
|
2728
2728
|
|
|
@@ -2781,7 +2781,7 @@ spurious results.`);
|
|
|
2781
2781
|
return false;
|
|
2782
2782
|
};
|
|
2783
2783
|
|
|
2784
|
-
;// ../../../node_modules/graphql/language/source.mjs
|
|
2784
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/source.mjs
|
|
2785
2785
|
|
|
2786
2786
|
|
|
2787
2787
|
|
|
@@ -2833,7 +2833,7 @@ function isSource(source) {
|
|
|
2833
2833
|
return instanceOf(source, Source);
|
|
2834
2834
|
}
|
|
2835
2835
|
|
|
2836
|
-
;// ../../../node_modules/graphql/language/parser.mjs
|
|
2836
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/parser.mjs
|
|
2837
2837
|
/* unused harmony import specifier */ var SchemaCoordinateLexer;
|
|
2838
2838
|
/* unused harmony import specifier */ var parser_isSource;
|
|
2839
2839
|
/* unused harmony import specifier */ var parser_Source;
|
|
@@ -4484,7 +4484,7 @@ function getTokenKindDesc(kind) {
|
|
|
4484
4484
|
return isPunctuatorTokenKind(kind) ? `"${kind}"` : kind;
|
|
4485
4485
|
}
|
|
4486
4486
|
|
|
4487
|
-
;// ../../../node_modules/graphql/language/printString.mjs
|
|
4487
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printString.mjs
|
|
4488
4488
|
/**
|
|
4489
4489
|
* Prints a string as a GraphQL StringValue literal. Replaces control characters
|
|
4490
4490
|
* and excluded characters (" U+0022 and \\ U+005C) with escape sequences.
|
|
@@ -4662,7 +4662,7 @@ const escapeSequences = [
|
|
|
4662
4662
|
'\\u009F',
|
|
4663
4663
|
];
|
|
4664
4664
|
|
|
4665
|
-
;// ../../../node_modules/graphql/language/visitor.mjs
|
|
4665
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/visitor.mjs
|
|
4666
4666
|
/* unused harmony import specifier */ var visitor_Kind;
|
|
4667
4667
|
|
|
4668
4668
|
|
|
@@ -5023,7 +5023,7 @@ function getVisitFn(visitor, kind, isLeaving) {
|
|
|
5023
5023
|
return isLeaving ? leave : enter;
|
|
5024
5024
|
}
|
|
5025
5025
|
|
|
5026
|
-
;// ../../../node_modules/graphql/language/printer.mjs
|
|
5026
|
+
;// ../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printer.mjs
|
|
5027
5027
|
|
|
5028
5028
|
|
|
5029
5029
|
|
|
@@ -5393,7 +5393,7 @@ function hasMultilineItems(maybeArray) {
|
|
|
5393
5393
|
: false;
|
|
5394
5394
|
}
|
|
5395
5395
|
|
|
5396
|
-
;// ../../../node_modules/graphql-request/build/legacy/helpers/analyzeDocument.js
|
|
5396
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/helpers/analyzeDocument.js
|
|
5397
5397
|
|
|
5398
5398
|
|
|
5399
5399
|
|
|
@@ -5468,10 +5468,10 @@ const analyzeDocument = (document, excludeOperationName) => {
|
|
|
5468
5468
|
return { expression, operationName, isMutation };
|
|
5469
5469
|
};
|
|
5470
5470
|
//# sourceMappingURL=analyzeDocument.js.map
|
|
5471
|
-
;// ../../../node_modules/graphql-request/build/legacy/helpers/defaultJsonSerializer.js
|
|
5471
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/helpers/defaultJsonSerializer.js
|
|
5472
5472
|
const defaultJsonSerializer = JSON;
|
|
5473
5473
|
//# sourceMappingURL=defaultJsonSerializer.js.map
|
|
5474
|
-
;// ../../../node_modules/graphql-request/build/legacy/helpers/runRequest.js
|
|
5474
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/helpers/runRequest.js
|
|
5475
5475
|
|
|
5476
5476
|
|
|
5477
5477
|
|
|
@@ -5670,7 +5670,7 @@ const buildQueryParams = (params) => {
|
|
|
5670
5670
|
}
|
|
5671
5671
|
};
|
|
5672
5672
|
//# sourceMappingURL=runRequest.js.map
|
|
5673
|
-
;// ../../../node_modules/graphql-request/build/legacy/classes/GraphQLClient.js
|
|
5673
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/classes/GraphQLClient.js
|
|
5674
5674
|
|
|
5675
5675
|
|
|
5676
5676
|
|
|
@@ -5832,7 +5832,7 @@ class GraphQLClient_GraphQLClient {
|
|
|
5832
5832
|
}
|
|
5833
5833
|
}
|
|
5834
5834
|
//# sourceMappingURL=GraphQLClient.js.map
|
|
5835
|
-
;// ../../../node_modules/graphql-request/build/legacy/functions/request.js
|
|
5835
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/functions/request.js
|
|
5836
5836
|
/* unused harmony import specifier */ var request_GraphQLClient;
|
|
5837
5837
|
|
|
5838
5838
|
// dprint-ignore
|
|
@@ -5867,7 +5867,7 @@ const parseRequestExtendedArgs = (urlOrOptions, document, ...variablesAndRequest
|
|
|
5867
5867
|
: urlOrOptions;
|
|
5868
5868
|
};
|
|
5869
5869
|
//# sourceMappingURL=request.js.map
|
|
5870
|
-
;// ../../../node_modules/graphql-request/build/legacy/functions/gql.js
|
|
5870
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/legacy/functions/gql.js
|
|
5871
5871
|
/**
|
|
5872
5872
|
* Convenience passthrough template tag to get the benefits of tooling for the gql template tag. This does not actually parse the input into a GraphQL DocumentNode like graphql-tag package does. It just returns the string with any variables given interpolated. Can save you a bit of performance and having to install another package.
|
|
5873
5873
|
*
|
|
@@ -5886,7 +5886,7 @@ const gql = (chunks, ...variables) => {
|
|
|
5886
5886
|
return chunks.reduce((acc, chunk, index) => `${acc}${chunk}${index in variables ? String(variables[index]) : ``}`, ``);
|
|
5887
5887
|
};
|
|
5888
5888
|
//# sourceMappingURL=gql.js.map
|
|
5889
|
-
;// ../../../node_modules/graphql-request/build/entrypoints/main.js
|
|
5889
|
+
;// ../../../node_modules/.pnpm/graphql-request@7.4.0_graphql@16.12.0/node_modules/graphql-request/build/entrypoints/main.js
|
|
5890
5890
|
/* unused harmony import specifier */ var main_request;
|
|
5891
5891
|
|
|
5892
5892
|
|
|
@@ -5901,7 +5901,7 @@ const gql = (chunks, ...variables) => {
|
|
|
5901
5901
|
|
|
5902
5902
|
/***/ },
|
|
5903
5903
|
|
|
5904
|
-
/***/
|
|
5904
|
+
/***/ 283
|
|
5905
5905
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5906
5906
|
|
|
5907
5907
|
|
|
@@ -5912,7 +5912,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
5912
5912
|
|
|
5913
5913
|
// UNUSED EXPORTS: CloseCode, DEPRECATED_GRAPHQL_WS_PROTOCOL, GRAPHQL_TRANSPORT_WS_PROTOCOL, MessageType, TerminatedCloseEvent, parseMessage, stringifyMessage, validateMessage
|
|
5914
5914
|
|
|
5915
|
-
;// ../../../node_modules/graphql-ws/dist/common-CGW11Fyb.js
|
|
5915
|
+
;// ../../../node_modules/.pnpm/graphql-ws@6.0.7_graphql@16.12.0_ws@8.19.0/node_modules/graphql-ws/dist/common-CGW11Fyb.js
|
|
5916
5916
|
function extendedTypeof(val) {
|
|
5917
5917
|
if (val === null) {
|
|
5918
5918
|
return "null";
|
|
@@ -6121,7 +6121,7 @@ function stringifyMessage(msg, replacer) {
|
|
|
6121
6121
|
|
|
6122
6122
|
|
|
6123
6123
|
|
|
6124
|
-
;// ../../../node_modules/graphql-ws/dist/client.js
|
|
6124
|
+
;// ../../../node_modules/.pnpm/graphql-ws@6.0.7_graphql@16.12.0_ws@8.19.0/node_modules/graphql-ws/dist/client.js
|
|
6125
6125
|
|
|
6126
6126
|
|
|
6127
6127
|
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { createErrorBoundary, withErrorBoundary, formatComponentError, createErr
|
|
|
13
13
|
export { buildComponentProps, normalizeCallbacks, normalizeStyles, validateComponentProps, mergeProps, createPropsTransformer, wrapCallbacksWithLogging, extractPropPaths, PropBuilderOptions } from './runtime/index.js';
|
|
14
14
|
export { ComponentHierarchyRegistrar, registerComponentHierarchy, validateComponentSpec, flattenComponentHierarchy, countComponentsInHierarchy, HierarchyRegistrationResult, ComponentRegistrationError, HierarchyRegistrationOptions } from './runtime/index.js';
|
|
15
15
|
export { ReactRootManager, reactRootManager, ManagedReactRoot, RuntimeHook, RootHookContext } from './runtime/index.js';
|
|
16
|
-
export { SetupStyles, createDefaultComponentStyles, BuildStylesFromTheme } from './utilities/component-styles.js';
|
|
16
|
+
export { SetupStyles, createDefaultComponentStyles, BuildStylesFromTheme, ApplyStyleOverrides } from './utilities/component-styles.js';
|
|
17
17
|
export { buildAntdThemeConfig, wrapWithLibraryThemeProviders } from './utilities/component-library-theming.js';
|
|
18
18
|
export { StandardLibraries, StandardLibraryManager, createStandardLibraries } from './utilities/standard-libraries.js';
|
|
19
19
|
export { LibraryLoader, LibraryLoadOptions, LibraryLoadResult } from './utilities/library-loader.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YA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AAO,CAAC,EAAE,OAAO,CAAC,OAAO,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;CACzE,EACD,cAAc,CAAC,EAAE,OAAO,SAAS,EAAE,cAAc,EACjD,KAAK,GAAE,OAAe;;;;;;;EAwCvB"}
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { createErrorBoundary, withErrorBoundary, formatComponentError, createErr
|
|
|
12
12
|
export { buildComponentProps, normalizeCallbacks, normalizeStyles, validateComponentProps, mergeProps, createPropsTransformer, wrapCallbacksWithLogging, extractPropPaths } from './runtime/index.js';
|
|
13
13
|
export { ComponentHierarchyRegistrar, registerComponentHierarchy, validateComponentSpec, flattenComponentHierarchy, countComponentsInHierarchy } from './runtime/index.js';
|
|
14
14
|
export { ReactRootManager, reactRootManager } from './runtime/index.js';
|
|
15
|
-
export { SetupStyles, createDefaultComponentStyles, BuildStylesFromTheme } from './utilities/component-styles.js';
|
|
15
|
+
export { SetupStyles, createDefaultComponentStyles, BuildStylesFromTheme, ApplyStyleOverrides } from './utilities/component-styles.js';
|
|
16
16
|
export { buildAntdThemeConfig, wrapWithLibraryThemeProviders } from './utilities/component-library-theming.js';
|
|
17
17
|
export { StandardLibraryManager, createStandardLibraries } from './utilities/standard-libraries.js';
|
|
18
18
|
export { LibraryLoader } from './utilities/library-loader.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAC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CAAC,cAAc,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,IAAI,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;IAG3E,MAAM,OAAO,GAAG,IAAI,gBAAgB,CAClC,QAAQ,EACR,QAAQ,EACR,cAAc,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EACjD,aAAa,CACd,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,OAAO,EAAE,OAAO;QAChB,KAAK;KACN,CAAC;AACJ,CAAC","sourcesContent":["/**\n * @fileoverview Main entry point for the MemberJunction React Runtime.\n * Exports all public APIs for platform-agnostic React component compilation and execution.\n * @module @memberjunction/react-runtime\n */\n\n// Import necessary classes for createReactRuntime function\nimport { ComponentCompiler } from './compiler';\nimport { ComponentRegistry } from './registry';\nimport { ComponentResolver } from './registry';\nimport { ComponentManager } from './component-manager';\n\n// Export all types\nexport * from './types';\n\n// Export compiler APIs\nexport { ComponentCompiler } from './compiler';\nexport { \n DEFAULT_PRESETS,\n DEFAULT_PLUGINS,\n PRODUCTION_CONFIG,\n DEVELOPMENT_CONFIG,\n getBabelConfig,\n validateBabelPresets,\n getJSXConfig\n} from './compiler';\n\n// Export registry APIs\nexport { ComponentRegistry } from './registry';\nexport { \n ComponentResolver,\n ComponentSpec,\n ResolvedComponents,\n ComponentRegistryService,\n IComponentRegistryClient\n} from './registry';\n\n// Export unified ComponentManager\nexport { ComponentManager } from './component-manager';\nexport type {\n LoadOptions,\n LoadResult,\n HierarchyResult,\n ComponentManagerConfig\n} from './component-manager';\n\n// Export runtime APIs\nexport {\n createErrorBoundary,\n withErrorBoundary,\n formatComponentError,\n createErrorLogger\n} from './runtime';\n\n\nexport {\n buildComponentProps,\n normalizeCallbacks,\n normalizeStyles,\n validateComponentProps,\n mergeProps,\n createPropsTransformer,\n wrapCallbacksWithLogging,\n extractPropPaths,\n PropBuilderOptions\n} from './runtime';\n\nexport {\n ComponentHierarchyRegistrar,\n registerComponentHierarchy,\n validateComponentSpec,\n flattenComponentHierarchy,\n countComponentsInHierarchy,\n HierarchyRegistrationResult,\n ComponentRegistrationError,\n HierarchyRegistrationOptions\n} from './runtime';\n\nexport {\n ReactRootManager,\n reactRootManager,\n ManagedReactRoot,\n RuntimeHook,\n RootHookContext\n} from './runtime';\n\n// Export utilities\n\nexport {\n SetupStyles,\n createDefaultComponentStyles,\n BuildStylesFromTheme,\n ApplyStyleOverrides\n} from './utilities/component-styles';\n\nexport {\n buildAntdThemeConfig,\n wrapWithLibraryThemeProviders\n} from './utilities/component-library-theming';\n\nexport {\n StandardLibraries,\n StandardLibraryManager,\n createStandardLibraries\n} from './utilities/standard-libraries';\n\nexport {\n LibraryLoader,\n LibraryLoadOptions,\n LibraryLoadResult\n} from './utilities/library-loader';\n\nexport {\n getCoreRuntimeLibraries,\n isCoreRuntimeLibrary\n} from './utilities/core-libraries';\n\nexport {\n LibraryRegistry,\n LibraryDefinition\n} from './utilities/library-registry';\n\nexport {\n ComponentErrorAnalyzer,\n FailedComponentInfo\n} from './utilities/component-error-analyzer';\n\nexport {\n ResourceManager,\n resourceManager,\n ManagedResource\n} from './utilities/resource-manager';\n\nexport {\n CacheManager,\n CacheEntry,\n CacheOptions\n} from './utilities/cache-manager';\n\nexport {\n unwrapLibraryComponent,\n unwrapLibraryComponents,\n unwrapAllLibraryComponents,\n // Legacy exports for backward compatibility\n unwrapComponent,\n unwrapComponents,\n unwrapAllComponents\n} from './utilities/component-unwrapper';\n\nexport {\n USER_STATE_KEY_PREFIX,\n resolveUserStateScope,\n userStateStorageKey,\n parseStoredUserSettings,\n mergeUserSettings,\n applyUserSettingsUpdate\n} from './utilities/user-state';\n\n// Version information\nexport const VERSION = '2.69.1';\n\n// Default configurations\nexport const DEFAULT_CONFIGS = {\n compiler: {\n babel: {\n presets: ['react'],\n plugins: []\n },\n minify: false,\n sourceMaps: false,\n cache: true,\n maxCacheSize: 100\n },\n registry: {\n maxComponents: 1000,\n cleanupInterval: 60000,\n useLRU: true,\n enableNamespaces: true\n }\n};\n\n/**\n * Creates a complete React runtime instance with all necessary components\n * @param babelInstance - Babel standalone instance for compilation\n * @param config - Optional configuration overrides\n * @param runtimeContext - Optional runtime context for registry-based components\n * @param debug - Enable debug logging (defaults to false)\n * @returns Object containing compiler, registry, and resolver instances\n */\nexport function createReactRuntime(\n babelInstance: any,\n config?: {\n compiler?: Partial<import('./types').CompilerConfig>;\n registry?: Partial<import('./types').RegistryConfig>;\n manager?: Partial<import('./component-manager').ComponentManagerConfig>;\n },\n runtimeContext?: import('./types').RuntimeContext,\n debug: boolean = false\n) {\n // Merge debug flag into configs\n const compilerConfig = {\n ...config?.compiler,\n debug: config?.compiler?.debug ?? debug\n };\n \n const registryConfig = {\n ...config?.registry,\n debug: config?.registry?.debug ?? debug\n };\n \n const managerConfig = {\n ...config?.manager,\n debug: config?.manager?.debug ?? debug\n };\n \n const compiler = new ComponentCompiler(compilerConfig);\n compiler.setBabelInstance(babelInstance);\n \n const registry = new ComponentRegistry(registryConfig);\n const resolver = new ComponentResolver(registry, compiler, runtimeContext);\n \n // Create the unified ComponentManager\n const manager = new ComponentManager(\n compiler,\n registry,\n runtimeContext || { React: null, ReactDOM: null },\n managerConfig\n );\n\n return {\n compiler,\n registry,\n resolver,\n manager, // New unified manager\n version: VERSION,\n debug\n };\n}"]}
|