@common-stack/client-core 0.1.9 → 0.1.19
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/lib/constants/constants.d.ts +1 -0
- package/lib/index.js +22 -9
- package/lib/index.js.map +1 -1
- package/lib/interfaces/connector.d.ts +1 -0
- package/lib/logger/logger.d.ts +1 -1
- package/package.json +7 -7
- package/CHANGELOG.md +0 -180
package/lib/index.js
CHANGED
|
@@ -216,11 +216,22 @@ class AbstractFeature {
|
|
|
216
216
|
const defaults = curr.defaults ? attemptDefaults.concat(curr.defaults) : attemptDefaults;
|
|
217
217
|
const resolvers = lodash_1.merge(acc.resolvers, consoldidatedResolvers(curr.resolvers, args.resolverContex));
|
|
218
218
|
const possibleTypes = lodash_1.merge(acc.possibleTypes, curr.possibleTypes);
|
|
219
|
+
const typePolicies = lodash_1.merge(acc.typePolicies, curr.typePolicies);
|
|
219
220
|
const retryLinkAttemptFuncs = curr.retryLinkAttemptFuncs ? attemptFuncAccumulator.concat(curr.retryLinkAttemptFuncs || []) : attemptFuncAccumulator;
|
|
220
221
|
const preLinks = preLinksAccumulator.concat((curr.preLinkFuncs || []).map(linkF => linkF(cn)) || []);
|
|
221
222
|
const connectionParams = curr.connectionParam ? connectionParamsFuncAccumulator.concat(consoldidatedConnection(curr.connectionParam, cn)) : connectionParamsFuncAccumulator;
|
|
222
223
|
const connectionCallbackFuncs = curr.connectionCallbackFunc ? callbackBackFuncAccumulator.concat(curr.connectionCallbackFunc(cn) || []) : callbackBackFuncAccumulator;
|
|
223
|
-
return {
|
|
224
|
+
return {
|
|
225
|
+
defaults,
|
|
226
|
+
resolvers,
|
|
227
|
+
typeDefs,
|
|
228
|
+
possibleTypes,
|
|
229
|
+
retryLinkAttemptFuncs,
|
|
230
|
+
preLinks,
|
|
231
|
+
typePolicies,
|
|
232
|
+
connectionParams,
|
|
233
|
+
connectionCallbackFuncs
|
|
234
|
+
};
|
|
224
235
|
}, {});
|
|
225
236
|
}
|
|
226
237
|
get connectionParams() {
|
|
@@ -327,7 +338,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
327
338
|
o[k2] = m[k];
|
|
328
339
|
}));
|
|
329
340
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
330
|
-
for (var p in m) if (p !== "default" && !
|
|
341
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
331
342
|
};
|
|
332
343
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
333
344
|
__exportStar(__webpack_require__(/*! ./abstract-connector */ "./src/connector/abstract-connector.ts"), exports);
|
|
@@ -345,10 +356,11 @@ __exportStar(__webpack_require__(/*! ./abstract-connector */ "./src/connector/ab
|
|
|
345
356
|
"use strict";
|
|
346
357
|
|
|
347
358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
348
|
-
exports.ClientTypes = exports.ElectronTypes = void 0;
|
|
359
|
+
exports.REDUX_PERSIST_KEY = exports.ClientTypes = exports.ElectronTypes = void 0;
|
|
349
360
|
const core_1 = __webpack_require__(/*! @common-stack/core */ "@common-stack/core");
|
|
350
361
|
Object.defineProperty(exports, "ClientTypes", { enumerable: true, get: function () { return core_1.ClientTypes; } });
|
|
351
362
|
Object.defineProperty(exports, "ElectronTypes", { enumerable: true, get: function () { return core_1.ElectronTypes; } });
|
|
363
|
+
exports.REDUX_PERSIST_KEY = 'root';
|
|
352
364
|
|
|
353
365
|
|
|
354
366
|
/***/ }),
|
|
@@ -370,7 +382,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
370
382
|
o[k2] = m[k];
|
|
371
383
|
}));
|
|
372
384
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
373
|
-
for (var p in m) if (p !== "default" && !
|
|
385
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
374
386
|
};
|
|
375
387
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
376
388
|
__exportStar(__webpack_require__(/*! ./constants */ "./src/constants/constants.ts"), exports);
|
|
@@ -404,7 +416,7 @@ class UtilityClass {
|
|
|
404
416
|
* Helper method to produce ApolloClient and Services from the feeded Feature Module.
|
|
405
417
|
* @param modules
|
|
406
418
|
*/
|
|
407
|
-
|
|
419
|
+
const apolloClientHelper = (modules) => {
|
|
408
420
|
const clientState = modules.getStateParams({ resolverContex: () => modules.createService({}, {}) });
|
|
409
421
|
const dataIdFromObject = (result) => modules.getDataIdFromObject(result);
|
|
410
422
|
const cache = new client_1.InMemoryCache({
|
|
@@ -443,6 +455,7 @@ exports.apolloClientHelper = (modules) => {
|
|
|
443
455
|
container,
|
|
444
456
|
};
|
|
445
457
|
};
|
|
458
|
+
exports.apolloClientHelper = apolloClientHelper;
|
|
446
459
|
|
|
447
460
|
|
|
448
461
|
/***/ }),
|
|
@@ -464,7 +477,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
464
477
|
o[k2] = m[k];
|
|
465
478
|
}));
|
|
466
479
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
467
|
-
for (var p in m) if (p !== "default" && !
|
|
480
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
468
481
|
};
|
|
469
482
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
470
483
|
__exportStar(__webpack_require__(/*! ./apollo-client-test-helper */ "./src/helpers/apollo-client-test-helper.ts"), exports);
|
|
@@ -489,7 +502,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
489
502
|
o[k2] = m[k];
|
|
490
503
|
}));
|
|
491
504
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
492
|
-
for (var p in m) if (p !== "default" && !
|
|
505
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
493
506
|
};
|
|
494
507
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
495
508
|
__exportStar(__webpack_require__(/*! ./logger */ "./src/logger/index.ts"), exports);
|
|
@@ -533,7 +546,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
533
546
|
o[k2] = m[k];
|
|
534
547
|
}));
|
|
535
548
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
536
|
-
for (var p in m) if (p !== "default" && !
|
|
549
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
537
550
|
};
|
|
538
551
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
539
552
|
__exportStar(__webpack_require__(/*! ./connector */ "./src/interfaces/connector.ts"), exports);
|
|
@@ -558,7 +571,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
558
571
|
o[k2] = m[k];
|
|
559
572
|
}));
|
|
560
573
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
561
|
-
for (var p in m) if (p !== "default" && !
|
|
574
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
562
575
|
};
|
|
563
576
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
564
577
|
__exportStar(__webpack_require__(/*! ./logger */ "./src/logger/logger.ts"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/connector/abstract-connector.ts","webpack:///./src/connector/index.ts","webpack:///./src/constants/constants.ts","webpack:///./src/constants/index.ts","webpack:///./src/helpers/apollo-client-test-helper.ts","webpack:///./src/helpers/index.ts","webpack:///./src/index.ts","webpack:///./src/interfaces/connector.ts","webpack:///./src/interfaces/index.ts","webpack:///./src/logger/index.ts","webpack:///./src/logger/logger.ts","webpack:///external \"@apollo/client\"","webpack:///external \"@cdm-logger/client\"","webpack:///external \"@common-stack/core\"","webpack:///external \"inversify\"","webpack:///external \"lodash\"","webpack:///external \"react\""],"names":[],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;AClFA,wDAA+B;AAI/B,6DAA+D;AAE/D,sEAAkD;AAElD,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,CAAC,gBAAO,CAAC,cAAK,CAAC,GAAG,YAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,kBAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC1G,sBAAc,GAAG,EAAE,CAAC;AAGjC,MAAsB,eAAe;IAqCjC;;;;;OAKG;IACH,YACI,OAAsB;IACtB,gCAAgC;IAChC,GAAG,QAAwB;QAE3B,eAAe;QACf,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,GAAiB,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,GAAiB,EAAE,EAAE,CAAC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;;;;;;;;;;;;;;;;;;;;ACA5C,oFAAyB;AACzB,0FAA4B;AAC5B,4FAA6B;AAC7B,0FAA4B;AAC5B,sFAA0B;;;;;;;;;;;;;;ACJ1B,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;ACAjC,+FAA4B;;;;;;;;;;;;;;;;;;;;;;;;;ACA5B,qFAAyB;;;;;;;;;;;;;;;;ACAzB,qFAAkD;AAElD,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC;AACrE,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC;AAClE,MAAM,MAAM,GAAG,qBAAY,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AAExD,wBAAM;;;;;;;;;;;;ACNf,2C;;;;;;;;;;;ACAA,+C;;;;;;;;;;;ACAA,+C;;;;;;;;;;;ACAA,sC;;;;;;;;;;;ACAA,mC;;;;;;;;;;;ACAA,kC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.ts\");\n","import * as React from 'react';\nimport { IFeature, IModuleShape, IClientStateConfig, IClientState, ResolverType, ApolloConnectionParamFunc } from '../interfaces';\nimport { IdGetterObj, Resolvers } from '@apollo/client';\nimport { ErrorLink } from '@apollo/client/link/error'\nimport { merge, map, union, without, castArray } from 'lodash';\nimport { ReducersMapObject } from 'redux';\nimport { interfaces, Container } from 'inversify';\n\nconst combine = (features, extractor) => without(union(...map(features, res => castArray(extractor(res)))), undefined);\nexport const featureCatalog = {};\n\n\nexport abstract class AbstractFeature implements IFeature {\n public link: any;\n public errorLink: ErrorLink[];\n public createFetch: any;\n public connectionParam: any;\n public epic: any;\n public reducer: ReducersMapObject[];\n public reduxContext: any;\n public clientStateParams?: IClientStateConfig[];\n public sidebarSegments: any[];\n public routerFactory: any;\n public route: any;\n public navItem: any;\n public navItemRight: any;\n public rootComponentFactory: any[];\n public dataRootComponent: any[];\n public createFetchOptions: any[];\n public stylesInsert: any[];\n public scriptsInsert: any[];\n public catalogInfo: any[];\n public languagesFuncs: any[];\n public data: any[];\n public dataIdFromObject: { [key: string]: (value: any) => string }[];\n public createContainerFunc: Function[];\n public createServiceFunc: Function[];\n public leftMainPanelItems: any;\n public middleMainPanelItems: any;\n public middleMainPanelItemsProps: any;\n public leftFooterItems: any;\n public rightFooterItems: any;\n public middleLowerPanelItems: any;\n public reduxPersistTransforms: any[];\n\n private isContainerLoaded: boolean;\n private services;\n private _container: interfaces.Container;\n\n /**\n * Constructs Client feature module representation, that folds all the feature modules\n * into a single module represented by this instance.\n * @param feature\n * @param features\n */\n constructor(\n feature?: IModuleShape,\n // tslint:disable:trailing-comma\n ...features: IModuleShape[]\n ) {\n // Connectivity\n this.link = combine(arguments, (arg: IModuleShape) => arg.link);\n this.errorLink = combine(arguments, (arg: IModuleShape) => arg.errorLink);\n\n this.createFetch = combine(arguments, (arg: IModuleShape) => arg.createFetch)\n .slice(-1)\n .pop();\n this.connectionParam = combine(arguments, (arg: IModuleShape) => arg.connectionParam);\n\n // State management\n this.reducer = combine(arguments, (arg: IModuleShape) => arg.reducer);\n // Client side schema for apollo-link-state\n this.clientStateParams = combine(arguments, (arg: IModuleShape) => arg.clientStateParams);\n\n // Epic actions\n this.epic = combine(arguments, (arg: IModuleShape) => arg.epic);\n\n\n this.sidebarSegments = combine(arguments, (arg: IModuleShape) => arg.sidebarSegments);\n\n this.leftMainPanelItems = combine(arguments, (arg: IModuleShape) => arg.leftMainPanelItems);\n this.middleMainPanelItems = combine(arguments, (arg: IModuleShape) => arg.middleMainPanelItems);\n this.middleMainPanelItemsProps = combine(arguments, (arg: IModuleShape) => arg.middleMainPanelItemsProps);\n this.leftFooterItems = combine(arguments, (arg: IModuleShape) => arg.leftFooterItems);\n this.rightFooterItems = combine(arguments, (arg: IModuleShape) => arg.rightFooterItems);\n this.middleLowerPanelItems = combine(arguments, (arg: IModuleShape) => arg.middleLowerPanelItems);\n this.dataIdFromObject = combine(arguments, (arg: IModuleShape) => arg.dataIdFromObject);\n\n\n this.navItem = combine(arguments, (arg: IModuleShape) => arg.navItem);\n this.navItemRight = combine(arguments, (arg: IModuleShape) => arg.navItemRight);\n\n // UI provider-components\n this.rootComponentFactory = combine(arguments, (arg: IModuleShape) => arg.rootComponentFactory);\n this.dataRootComponent = combine(arguments, (arg: IModuleShape) => arg.dataRootComponent);\n\n // UI provider-components\n this.languagesFuncs = combine(arguments, (arg: IModuleShape) => arg.languagesFuncs);\n\n // container\n this.createContainerFunc = combine(arguments, arg => arg.createContainerFunc);\n\n // services\n this.createServiceFunc = combine(arguments, arg => arg.createServiceFunc);\n\n // TODO: Use React Helmet for those. Low level DOM manipulation\n this.stylesInsert = combine(arguments, (arg: IModuleShape) => arg.stylesInsert);\n this.scriptsInsert = combine(arguments, (arg: IModuleShape) => arg.scriptsInsert);\n this.reduxPersistTransforms = combine(arguments, (arg: IModuleShape) => arg.reduxPersistTransforms);\n\n\n // Shared modules data\n this.data = combine([{}].concat(Array.from(arguments)), arg => arg.data)\n .reduce(\n (acc, el) => [{ ...acc[0], ...el }],\n [{}],\n );\n }\n\n private get container(): interfaces.Container {\n if (!this._container) {\n this._container = new Container();\n }\n return this._container;\n }\n\n public get epics() {\n return this.epic;\n }\n\n public getRouter(withRoot?: boolean, rootComponent?: any) {\n return this.routerFactory(this.getRoutes());\n }\n\n public abstract getRoutes(searchPath?: RegExp);\n\n public abstract get navItems();\n\n public abstract get navItemsRight();\n\n get reducers() {\n return merge({}, ...(this.reducer || []));\n }\n\n public createContainers(options): interfaces.Container {\n // only create once\n if (this.isContainerLoaded) {\n return this.container;\n }\n this.createContainerFunc.map(createModule => {\n this.container.load(createModule(options));\n });\n this.isContainerLoaded = true;\n return this.container;\n }\n\n public createService(options, updateOptions) {\n // only create once\n if (this.services) {\n return this.services;\n }\n try {\n if (!this.isContainerLoaded) {\n this.createContainers(options);\n }\n this.services = merge({}, ...this.createServiceFunc.map(serviceFunc => serviceFunc(this.container)));\n return this.services;\n } catch (err) {\n throw err;\n }\n }\n\n public getStateParams(args: { resolverContex?: any } = {}) {\n const cn = this.container;\n return this.clientStateParams.reduce<IClientState>(function (acc, curr: IClientStateConfig) {\n const defs = curr.typeDefs ? Array.isArray(curr.typeDefs) ? curr.typeDefs : [curr.typeDefs] : [];\n const preLinksAccumulator = acc.preLinks || [];\n const attemptFuncAccumulator = acc.retryLinkAttemptFuncs || [];\n const connectionParamsFuncAccumulator = acc.connectionParams || [];\n const callbackBackFuncAccumulator = acc.connectionCallbackFuncs || [];\n const attemptDefaults = acc.defaults || [];\n const schema = defs.map(typeDef => {\n if (typeof typeDef === 'string') {\n return typeDef;\n }\n console.warn(`Not supported AST format `, typeDef);\n })\n .map(str => str.trim())\n .join('\\n');\n const typeDefs = acc.typeDefs ? acc.typeDefs.concat('\\n', schema) : schema;\n const defaults = curr.defaults ? attemptDefaults.concat(curr.defaults) : attemptDefaults;\n const resolvers = merge(acc.resolvers, consoldidatedResolvers(curr.resolvers, args.resolverContex)) as Resolvers;\n const possibleTypes = merge(acc.possibleTypes, curr.possibleTypes);\n const retryLinkAttemptFuncs = curr.retryLinkAttemptFuncs ? attemptFuncAccumulator.concat(curr.retryLinkAttemptFuncs || []) : attemptFuncAccumulator;\n const preLinks = preLinksAccumulator.concat((curr.preLinkFuncs || []).map(linkF => linkF(cn)) || []);\n const connectionParams = curr.connectionParam ? connectionParamsFuncAccumulator.concat(consoldidatedConnection(curr.connectionParam, cn)) : connectionParamsFuncAccumulator;\n const connectionCallbackFuncs = curr.connectionCallbackFunc ? callbackBackFuncAccumulator.concat(curr.connectionCallbackFunc(cn) || []) : callbackBackFuncAccumulator;\n\n return { defaults, resolvers, typeDefs, possibleTypes, retryLinkAttemptFuncs, preLinks, connectionParams, connectionCallbackFuncs };\n }, {} as IClientState);\n }\n\n\n get connectionParams() {\n return this.connectionParam;\n }\n\n get stylesInserts() {\n return this.stylesInsert;\n }\n\n get scriptsInserts() {\n return this.scriptsInsert;\n }\n\n get leftMainPanel() {\n return merge({}, ...(this.leftMainPanelItems || []));\n }\n\n get middleMainPanel() {\n const panelObj = merge({}, ...(this.middleMainPanelItems || []));\n const withProps = {} as any;\n Object.keys(panelObj).forEach(key => {\n const props = this.middleMainPanelItemsProps.filter(el => !!el[key]);\n let mergedProps = [];\n props.forEach(el => {\n const insideEl = el[key];\n Object.keys(insideEl).forEach(item => {\n if (mergedProps[item]) {\n mergedProps[item] = [...mergedProps[item], ...insideEl[item]];\n } else {\n mergedProps = { ...mergedProps, [item]: insideEl[item] };\n }\n });\n });\n return withProps[key] = React.cloneElement(\n panelObj[key],\n mergedProps,\n );\n });\n return withProps;\n }\n\n get leftFooter() {\n return this.leftFooterItems;\n }\n\n get rightFooter() {\n return this.rightFooterItems;\n }\n\n get middleLowerPanel() {\n return merge({}, ...(this.middleLowerPanelItems || []));\n }\n\n get reduxPersistStateTransformers() {\n return this.reduxPersistTransforms\n }\n\n public getDataIdFromObject(result: { [key: string]: string | number, __typename?: string } | IdGetterObj) {\n const dataIdFromObject = merge({}, ...this.dataIdFromObject);\n if (dataIdFromObject[result.__typename]) {\n return dataIdFromObject[result.__typename](result);\n }\n return result.id || (result as any)._id;\n }\n\n public abstract getWrappedRoot(root, req);\n\n public abstract getDataRoot(root);\n\n public abstract registerLanguages(monaco);\n}\n\nfunction consoldidatedResolvers(resolvers: ResolverType, context): Resolvers {\n let finalResolvers;\n if (Array.isArray(resolvers)) {\n const resolverObject = (resolvers as (object[])).map(resolver => {\n return typeof resolver === 'function'\n ? resolver(context)\n : resolver;\n });\n finalResolvers = merge({}, ...resolverObject);\n } else {\n finalResolvers = typeof resolvers === 'function'\n ? resolvers(context)\n : resolvers;\n }\n\n return finalResolvers;\n}\n\nasync function consoldidatedConnection(connectionParams: ApolloConnectionParamFunc, context): Promise<any> {\n let finalConnectionParams;\n if (Array.isArray(connectionParams)) {\n throw new Error('Array is not supported for ConnectionParams')\n } else {\n finalConnectionParams = typeof connectionParams === 'function'\n ? await connectionParams(context)\n : connectionParams;\n }\n\n return finalConnectionParams;\n}\n\n","export * from './abstract-connector';\n","import { ClientTypes, ElectronTypes } from '@common-stack/core';\n\nexport {\n ElectronTypes,\n ClientTypes,\n}","export * from './constants';\n","import { ApolloClient, ApolloClientOptions, InMemoryCache } from '@apollo/client';\nimport { interfaces } from 'inversify';\nimport { logger } from '@cdm-logger/client';\nimport { IFeature } from '../interfaces';\nimport { ClientTypes } from '../constants';\n\nclass UtilityClass {\n constructor(private modules) {\n }\n public getCacheKey(storeObj) {\n return this.modules.getDataIdFromObject(storeObj);\n }\n}\n\n\n/**\n * Helper method to produce ApolloClient and Services from the feeded Feature Module.\n * @param modules \n */\nexport const apolloClientHelper = (modules: IFeature) => {\n const clientState = modules.getStateParams({ resolverContex: () => modules.createService({}, {}) });\n\n const dataIdFromObject = (result) => modules.getDataIdFromObject(result);\n const cache = new InMemoryCache({\n dataIdFromObject,\n possibleTypes: clientState.possibleTypes\n });\n\n const schema = ``;\n\n const params: ApolloClientOptions<any> = {\n cache,\n queryDeduplication: true,\n typeDefs: schema.concat(<string>clientState.typeDefs),\n resolvers: clientState.resolvers as any,\n };\n const client = new ApolloClient(params);\n clientState.defaults.map(x => {\n if (x.type === 'query') {\n cache.writeQuery(x);\n } else if (x.type === 'fragment') {\n cache.writeFragment(x);\n }\n });\n\n const utility = new UtilityClass(modules);\n\n // additional bindings to container\n const container: interfaces.Container = modules.createContainers({});\n container.bind(ClientTypes.Logger).toConstantValue(logger);\n container.bind(ClientTypes.UtilityClass).toConstantValue(utility);\n container.bind(ClientTypes.ApolloClient).toConstantValue(client);\n container.bind(ClientTypes.InMemoryCache).toConstantValue(cache);\n const services = modules.createService({}, {});\n (client as any).container = services;\n\n\n return {\n client,\n dataIdFromObject,\n services,\n container,\n }\n}\n\n\n\n","export * from './apollo-client-test-helper';\n","export * from './logger';\nexport * from './connector';\nexport * from './interfaces';\nexport * from './constants';\nexport * from './helpers';","// tslint:disable:max-line-length\n\nimport { Resolvers, IdGetterObj, PossibleTypesMap, TypePolicies, Operation, ApolloLink, ApolloClientOptions } from '@apollo/client';\nimport { interfaces } from 'inversify';\nimport { Cache } from '@apollo/client/cache';\nimport { ReducersMapObject } from 'redux';\nimport { ErrorLink } from '@apollo/client/link/error';\nimport { ConnectionParams } from 'subscriptions-transport-ws';\n\nexport type ResolverType = Resolvers | Resolvers[] | ((service: any) => Resolvers) | ((service: any) => Resolvers)[] | ((service: any) => any) | ((service: any) => any)[];\nexport type ApolloLinkFunc = (container: interfaces.Container) => ApolloLink;\nexport type ApolloConnectionParamFunc = ((container: interfaces.Container) => ConnectionParams) | ConnectionParams ;\nexport type IWSConnectionCallbackFunc = (webSocket: any, error: Error[], result?: any) => void | Promise<void>;\nexport type ApolloWSConnectionCallbackFunc = (container: interfaces.Container) => IWSConnectionCallbackFunc;\n\ntype IRetryLinkAttemptFuncs = (count: number, operation: Operation, error: any) => boolean | Promise<boolean>;\ntype IClientStateQueryDefault<T, V> = {\n type: 'query',\n} & Cache.WriteQueryOptions<T, V>;\n\ntype IClientStateFragmentDefault<T, V> = {\n type: 'fragment',\n} & Cache.WriteFragmentOptions<T, V>;\n\nexport type IClientStateDefault<T = unknown, V = unknown> = IClientStateFragmentDefault<T,V> | IClientStateQueryDefault<T,V>;\nexport interface IClientStateConfig {\n resolvers?: ResolverType; // don't need `Resolvers` type as it may conflict with the usage\n defaults?: IClientStateDefault[];\n typeDefs?: string | string[];\n possibleTypes?: PossibleTypesMap;\n typePolicies?: TypePolicies;\n // retries the request if function returns true\n retryLinkAttemptFuncs?: IRetryLinkAttemptFuncs;\n /**\n * @param preLinkFuncs all `apollo-link` that need to be composed before the network link. Should be a function.\n * @inheritdoc https://www.apollographql.com/docs/react/api/link/introduction/\n */\n preLinkFuncs?: ApolloLinkFunc[];\n /**\n * @param connectionParam To provide connectionParam to `WebSocketLink`. It takes a single `Object` or a `Function`.\n * @inheritdoc https://www.apollographql.com/docs/react/api/link/apollo-link-ws/\n */\n connectionParam?: ApolloConnectionParamFunc;\n /**\n * @param connectionCallback Accept only one function for all modules.\n * @inheritdoc\n */\n connectionCallbackFunc?: ApolloWSConnectionCallbackFunc;\n \n}\n\nexport interface IClientState {\n resolvers?: Resolvers; // don't need `Resolvers` type as it may conflict with the usage\n defaults: IClientStateDefault[];\n typeDefs?: string | string[];\n possibleTypes?: PossibleTypesMap;\n retryLinkAttemptFuncs?: IRetryLinkAttemptFuncs[];\n preLinks: ApolloLink[];\n connectionParams: ConnectionParams[];\n connectionCallbackFuncs?: IWSConnectionCallbackFunc[];\n}\n\n/**\n * ModuleShape have optional configuration to be implemented by all the feature modules\n * in the application.\n */\nexport interface IModuleShape {\n /**\n * @param link all `apollo-link` that need to be composed.\n * @inheritdoc https://github.com/apollographql/apollo-link\n * @deprecated use ClientStateParms.preLinkFuncs\n */\n readonly link?: any;\n /**\n * @param errorLink compose all errorLink\n * @inheritdoc https://github.com/apollographql/apollo-link/tree/master/packages/apollo-link-error\n */\n readonly errorLink?: ErrorLink | ErrorLink[];\n readonly createFetch?: any;\n /**\n * @param connectionParam method that called when a client connects to the socket.\n * @inheritdoc https://github.com/apollographql/subscriptions-transport-ws#constructorurl-options-connectioncallback\n * @deprecated use clientStateParams\n */\n readonly connectionParam?: any;\n /**\n * @param epic all `epics` that need to be composed.\n * @inheritdoc https://redux-observable.js.org/docs/basics/Epics.html\n */\n readonly epic?: any;\n /**\n * @param reducer Redux reducers list\n */\n readonly reducer?: ReducersMapObject | ReducersMapObject[];\n /**\n * @param clientStateParams Client side configuration of `apollo-client`\n * @inheritdoc https://github.com/apollographql/apollo-client/tree/2d65da133c156f6d808e64aee7e7fd5f7cc71d7f\n */\n readonly clientStateParams?: IClientStateConfig | IClientStateConfig[];\n /**\n * @param dataIdFromObject A function that returns an object identifier given an particular result\n * object.\n * @inheritdoc https://github.com/apollographql/apollo-client/tree/ed66999bac40226abfeada8d6c83b454636bb4b0/packages/apollo-cache-inmemory#configuration\n */\n readonly dataIdFromObject?: { [key: string]: (value: any) => string } | { [key: string]: (value: any) => string }[] | IdGetterObj;\n /**\n * @param createContainerFunc Synchronous Container Modules of inversify.\n * @inheritdoc https://github.com/inversify/InversifyJS/blob/master/wiki/container_modules.md\n */\n readonly createContainerFunc?: Function | Function[];\n /**\n * @param createServiceFunc Services\n */\n readonly createServiceFunc?: Function | Function[];\n readonly sidebarSegments?: any;\n readonly routerFactory?: any;\n /**\n * @param route Route list\n */\n readonly route?: any;\n /**\n * @param navItem Top left navigation links\n */\n readonly navItem?: any;\n /**\n * @param navItemRightTop right navigation links\n */\n readonly navItemRight?: any;\n /**\n * @param rootComponentFactory Root component factory list\n */\n readonly rootComponentFactory?: any;\n /**\n * @param dataRootComponent Data root React elements list (data root elements wraps data fetching react subtree root)\n */\n readonly dataRootComponent?: any;\n readonly createFetchOptions?: any;\n /**\n * @param stylesInsert URL list to 3rd party css scripts\n */\n readonly stylesInsert?: any;\n /**\n * @param scriptsInsert URL list to 3rd party js scripts\n */\n readonly scriptsInsert?: any;\n /**\n * @deprecated\n */\n readonly catalogInfo?: any;\n /**\n * @deprecated\n */\n readonly languagesFuncs?: any;\n /**\n * @param leftMainPanelItems Components that will be placed left panel.\n */\n readonly leftMainPanelItems?: any;\n /**\n * @param middleMainPanelItems Components that will be placed middle center panel\n */\n readonly middleMainPanelItems?: any;\n /**\n * @param middleMainPanelItemsProps Props of the component that will be placed middle center panel\n */\n readonly middleMainPanelItemsProps?: any;\n /**\n * @param leftFooterItems Components that will be placed left footer panel\n */\n readonly leftFooterItems?: any;\n /**\n * @param rightFooterItems Components that will be placed right footer panel\n */\n readonly rightFooterItems?: any;\n /**\n * @param middleLowerPanelItems Components that will be placed below middle panel\n */\n readonly middleLowerPanelItems?: any;\n\n readonly reduxPersistTransforms?: any[];\n\n}\n\n\n/**\n * Feature module methods\n */\nexport interface IFeature extends IModuleShape {\n // Public variables\n readonly data: any[];\n\n /**\n * @returns Redux-Observable Epics\n */\n readonly epics;\n\n readonly getRouter;\n /**\n * @returns client-side React route components list\n */\n readonly getRoutes;\n\n /**\n * @returns client-side top left navbar link component list\n */\n readonly navItems;\n /**\n * @returns client-side top right navbar link component list\n */\n readonly navItemsRight;\n /**\n * @returns Redux reducers\n */\n readonly reducers;\n\n readonly connectionParams;\n\n /**\n * @returns URL list to 3rd party css styles\n */\n readonly stylesInserts;\n /**\n * @returns URL list to 3rd party js styles\n */\n readonly scriptsInserts;\n\n readonly leftMainPanel;\n readonly middleMainPanel;\n readonly leftFooter;\n readonly rightFooter;\n readonly middleLowerPanel;\n readonly dataIdFromObject;\n\n /**\n * @param args Options to pass to each Container Module\n * @returns Created container and binds all the container modules\n */\n createContainers(args);\n\n\n createService(options, updateOptions);\n /**\n * @param args Provide resolverContext which can be passed to all resolver functions.\n * @returns IClientState\n */\n getStateParams(args?: { resolverContex?: any }): IClientState;\n\n getDataIdFromObject(result: {\n [key: string]: string | number;\n __typename?: string;\n } | IdGetterObj): any;\n /**\n * @arguments root React tree root component\n * @arguments req Http Request\n * @returns React tree root component wrapped up by root components exposed by this module\n */\n getWrappedRoot(root: any, req?: any): any;\n /**\n * @param root React tree data root component (first React root components which is used for fetching data)\n *\n * @returns React tree data root component wrapped up by data root components exposed by this module\n */\n getDataRoot(root: any): any;\n registerLanguages(monaco): void;\n}\n","export * from './connector';\n","export * from './logger';\n","import { ClientLogger } from '@cdm-logger/client';\n\nconst appName = (process.env && process.env.APP_NAME) || 'FullStack';\nconst logLevel = (process.env && process.env.LOG_LEVEL) || 'info';\nconst logger = ClientLogger.create(appName, { level: logLevel });\n\nexport { logger };\n","module.exports = require(\"@apollo/client\");","module.exports = require(\"@cdm-logger/client\");","module.exports = require(\"@common-stack/core\");","module.exports = require(\"inversify\");","module.exports = require(\"lodash\");","module.exports = require(\"react\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/connector/abstract-connector.ts","webpack:///./src/connector/index.ts","webpack:///./src/constants/constants.ts","webpack:///./src/constants/index.ts","webpack:///./src/helpers/apollo-client-test-helper.ts","webpack:///./src/helpers/index.ts","webpack:///./src/index.ts","webpack:///./src/interfaces/connector.ts","webpack:///./src/interfaces/index.ts","webpack:///./src/logger/index.ts","webpack:///./src/logger/logger.ts","webpack:///external \"@apollo/client\"","webpack:///external \"@cdm-logger/client\"","webpack:///external \"@common-stack/core\"","webpack:///external \"inversify\"","webpack:///external \"lodash\"","webpack:///external \"react\""],"names":[],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;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AAC,SAAS,CAAC,IAAI,MAAM,CAAC;AAClE,MAAM,MAAM,GAAG,qBAAY,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,QAAe,EAAE,CAAC,CAAC;AAE/D,wBAAM;;;;;;;;;;;;ACNf,2C;;;;;;;;;;;ACAA,+C;;;;;;;;;;;ACAA,+C;;;;;;;;;;;ACAA,sC;;;;;;;;;;;ACAA,mC;;;;;;;;;;;ACAA,kC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.ts\");\n","import * as React from 'react';\nimport { IFeature, IModuleShape, IClientStateConfig, IClientState, ResolverType, ApolloConnectionParamFunc } from '../interfaces';\nimport { IdGetterObj, Resolvers } from '@apollo/client';\nimport { ErrorLink } from '@apollo/client/link/error'\nimport { merge, map, union, without, castArray } from 'lodash';\nimport { ReducersMapObject } from 'redux';\nimport { interfaces, Container } from 'inversify';\n\nconst combine = (features, extractor) => without(union(...map(features, res => castArray(extractor(res)))), undefined);\nexport const featureCatalog = {};\n\n\nexport abstract class AbstractFeature implements IFeature {\n public link: any;\n public errorLink: ErrorLink[];\n public createFetch: any;\n public connectionParam: any;\n public epic: any;\n public reducer: ReducersMapObject[];\n public reduxContext: any;\n public clientStateParams?: IClientStateConfig[];\n public sidebarSegments: any[];\n public routerFactory: any;\n public route: any;\n public navItem: any;\n public navItemRight: any;\n public rootComponentFactory: any[];\n public dataRootComponent: any[];\n public createFetchOptions: any[];\n public stylesInsert: any[];\n public scriptsInsert: any[];\n public catalogInfo: any[];\n public languagesFuncs: any[];\n public data: any[];\n public dataIdFromObject: { [key: string]: (value: any) => string }[];\n public createContainerFunc: Function[];\n public createServiceFunc: Function[];\n public leftMainPanelItems: any;\n public middleMainPanelItems: any;\n public middleMainPanelItemsProps: any;\n public leftFooterItems: any;\n public rightFooterItems: any;\n public middleLowerPanelItems: any;\n public reduxPersistTransforms: any[];\n\n private isContainerLoaded: boolean;\n private services;\n private _container: interfaces.Container;\n\n /**\n * Constructs Client feature module representation, that folds all the feature modules\n * into a single module represented by this instance.\n * @param feature\n * @param features\n */\n constructor(\n feature?: IModuleShape,\n // tslint:disable:trailing-comma\n ...features: IModuleShape[]\n ) {\n // Connectivity\n this.link = combine(arguments, (arg: IModuleShape) => arg.link);\n this.errorLink = combine(arguments, (arg: IModuleShape) => arg.errorLink);\n\n this.createFetch = combine(arguments, (arg: IModuleShape) => arg.createFetch)\n .slice(-1)\n .pop();\n this.connectionParam = combine(arguments, (arg: IModuleShape) => arg.connectionParam);\n\n // State management\n this.reducer = combine(arguments, (arg: IModuleShape) => arg.reducer);\n // Client side schema for apollo-link-state\n this.clientStateParams = combine(arguments, (arg: IModuleShape) => arg.clientStateParams);\n\n // Epic actions\n this.epic = combine(arguments, (arg: IModuleShape) => arg.epic);\n\n\n this.sidebarSegments = combine(arguments, (arg: IModuleShape) => arg.sidebarSegments);\n\n this.leftMainPanelItems = combine(arguments, (arg: IModuleShape) => arg.leftMainPanelItems);\n this.middleMainPanelItems = combine(arguments, (arg: IModuleShape) => arg.middleMainPanelItems);\n this.middleMainPanelItemsProps = combine(arguments, (arg: IModuleShape) => arg.middleMainPanelItemsProps);\n this.leftFooterItems = combine(arguments, (arg: IModuleShape) => arg.leftFooterItems);\n this.rightFooterItems = combine(arguments, (arg: IModuleShape) => arg.rightFooterItems);\n this.middleLowerPanelItems = combine(arguments, (arg: IModuleShape) => arg.middleLowerPanelItems);\n this.dataIdFromObject = combine(arguments, (arg: IModuleShape) => arg.dataIdFromObject);\n\n\n this.navItem = combine(arguments, (arg: IModuleShape) => arg.navItem);\n this.navItemRight = combine(arguments, (arg: IModuleShape) => arg.navItemRight);\n\n // UI provider-components\n this.rootComponentFactory = combine(arguments, (arg: IModuleShape) => arg.rootComponentFactory);\n this.dataRootComponent = combine(arguments, (arg: IModuleShape) => arg.dataRootComponent);\n\n // UI provider-components\n this.languagesFuncs = combine(arguments, (arg: IModuleShape) => arg.languagesFuncs);\n\n // container\n this.createContainerFunc = combine(arguments, arg => arg.createContainerFunc);\n\n // services\n this.createServiceFunc = combine(arguments, arg => arg.createServiceFunc);\n\n // TODO: Use React Helmet for those. Low level DOM manipulation\n this.stylesInsert = combine(arguments, (arg: IModuleShape) => arg.stylesInsert);\n this.scriptsInsert = combine(arguments, (arg: IModuleShape) => arg.scriptsInsert);\n this.reduxPersistTransforms = combine(arguments, (arg: IModuleShape) => arg.reduxPersistTransforms);\n\n\n // Shared modules data\n this.data = combine([{}].concat(Array.from(arguments)), arg => arg.data)\n .reduce(\n (acc, el) => [{ ...acc[0], ...el }],\n [{}],\n );\n }\n\n private get container(): interfaces.Container {\n if (!this._container) {\n this._container = new Container();\n }\n return this._container;\n }\n\n public get epics() {\n return this.epic;\n }\n\n public getRouter(withRoot?: boolean, rootComponent?: any) {\n return this.routerFactory(this.getRoutes());\n }\n\n public abstract getRoutes(searchPath?: RegExp);\n\n public abstract get navItems();\n\n public abstract get navItemsRight();\n\n get reducers() {\n return merge({}, ...(this.reducer || []));\n }\n\n public createContainers(options): interfaces.Container {\n // only create once\n if (this.isContainerLoaded) {\n return this.container;\n }\n this.createContainerFunc.map(createModule => {\n this.container.load(createModule(options));\n });\n this.isContainerLoaded = true;\n return this.container;\n }\n\n public createService(options, updateOptions) {\n // only create once\n if (this.services) {\n return this.services;\n }\n try {\n if (!this.isContainerLoaded) {\n this.createContainers(options);\n }\n this.services = merge({}, ...this.createServiceFunc.map(serviceFunc => serviceFunc(this.container)));\n return this.services;\n } catch (err) {\n throw err;\n }\n }\n\n public getStateParams(args: { resolverContex?: any } = {}) {\n const cn = this.container;\n return this.clientStateParams.reduce<IClientState>(function (acc, curr: IClientStateConfig) {\n const defs = curr.typeDefs ? Array.isArray(curr.typeDefs) ? curr.typeDefs : [curr.typeDefs] : [];\n const preLinksAccumulator = acc.preLinks || [];\n const attemptFuncAccumulator = acc.retryLinkAttemptFuncs || [];\n const connectionParamsFuncAccumulator = acc.connectionParams || [];\n const callbackBackFuncAccumulator = acc.connectionCallbackFuncs || [];\n const attemptDefaults = acc.defaults || [];\n const schema = defs.map(typeDef => {\n if (typeof typeDef === 'string') {\n return typeDef;\n }\n console.warn(`Not supported AST format `, typeDef);\n })\n .map(str => str.trim())\n .join('\\n');\n const typeDefs = acc.typeDefs ? acc.typeDefs.concat('\\n', schema) : schema;\n const defaults = curr.defaults ? attemptDefaults.concat(curr.defaults) : attemptDefaults;\n const resolvers = merge(acc.resolvers, consoldidatedResolvers(curr.resolvers, args.resolverContex)) as Resolvers;\n const possibleTypes = merge(acc.possibleTypes, curr.possibleTypes);\n const typePolicies = merge(acc.typePolicies, curr.typePolicies);\n const retryLinkAttemptFuncs = curr.retryLinkAttemptFuncs ? attemptFuncAccumulator.concat(curr.retryLinkAttemptFuncs || []) : attemptFuncAccumulator;\n const preLinks = preLinksAccumulator.concat((curr.preLinkFuncs || []).map(linkF => linkF(cn)) || []);\n const connectionParams = curr.connectionParam ? connectionParamsFuncAccumulator.concat(consoldidatedConnection(curr.connectionParam, cn)) : connectionParamsFuncAccumulator;\n const connectionCallbackFuncs = curr.connectionCallbackFunc ? callbackBackFuncAccumulator.concat(curr.connectionCallbackFunc(cn) || []) : callbackBackFuncAccumulator;\n return {\n defaults,\n resolvers,\n typeDefs,\n possibleTypes,\n retryLinkAttemptFuncs,\n preLinks,\n typePolicies,\n connectionParams,\n connectionCallbackFuncs\n };\n }, {} as IClientState);\n }\n\n\n get connectionParams() {\n return this.connectionParam;\n }\n\n get stylesInserts() {\n return this.stylesInsert;\n }\n\n get scriptsInserts() {\n return this.scriptsInsert;\n }\n\n get leftMainPanel() {\n return merge({}, ...(this.leftMainPanelItems || []));\n }\n\n get middleMainPanel() {\n const panelObj = merge({}, ...(this.middleMainPanelItems || []));\n const withProps = {} as any;\n Object.keys(panelObj).forEach(key => {\n const props = this.middleMainPanelItemsProps.filter(el => !!el[key]);\n let mergedProps = [];\n props.forEach(el => {\n const insideEl = el[key];\n Object.keys(insideEl).forEach(item => {\n if (mergedProps[item]) {\n mergedProps[item] = [...mergedProps[item], ...insideEl[item]];\n } else {\n mergedProps = { ...mergedProps, [item]: insideEl[item] };\n }\n });\n });\n return withProps[key] = React.cloneElement(\n panelObj[key],\n mergedProps,\n );\n });\n return withProps;\n }\n\n get leftFooter() {\n return this.leftFooterItems;\n }\n\n get rightFooter() {\n return this.rightFooterItems;\n }\n\n get middleLowerPanel() {\n return merge({}, ...(this.middleLowerPanelItems || []));\n }\n\n get reduxPersistStateTransformers() {\n return this.reduxPersistTransforms\n }\n\n public getDataIdFromObject(result: { [key: string]: string | number, __typename?: string } | IdGetterObj) {\n const dataIdFromObject = merge({}, ...this.dataIdFromObject);\n if (dataIdFromObject[result.__typename]) {\n return dataIdFromObject[result.__typename](result);\n }\n return result.id || (result as any)._id;\n }\n\n public abstract getWrappedRoot(root, req);\n\n public abstract getDataRoot(root);\n\n public abstract registerLanguages(monaco);\n}\n\nfunction consoldidatedResolvers(resolvers: ResolverType, context): Resolvers {\n let finalResolvers;\n if (Array.isArray(resolvers)) {\n const resolverObject = (resolvers as (object[])).map(resolver => {\n return typeof resolver === 'function'\n ? resolver(context)\n : resolver;\n });\n finalResolvers = merge({}, ...resolverObject);\n } else {\n finalResolvers = typeof resolvers === 'function'\n ? resolvers(context)\n : resolvers;\n }\n\n return finalResolvers;\n}\n\nasync function consoldidatedConnection(connectionParams: ApolloConnectionParamFunc, context): Promise<any> {\n let finalConnectionParams;\n if (Array.isArray(connectionParams)) {\n throw new Error('Array is not supported for ConnectionParams')\n } else {\n finalConnectionParams = typeof connectionParams === 'function'\n ? await connectionParams(context)\n : connectionParams;\n }\n\n return finalConnectionParams;\n}\n\n","export * from './abstract-connector';\n","import { ClientTypes, ElectronTypes } from '@common-stack/core';\n\nexport {\n ElectronTypes,\n ClientTypes,\n}\n\nexport const REDUX_PERSIST_KEY = 'root'; \n","export * from './constants';\n","import { ApolloClient, ApolloClientOptions, InMemoryCache } from '@apollo/client';\nimport { interfaces } from 'inversify';\nimport { logger } from '@cdm-logger/client';\nimport { IFeature } from '../interfaces';\nimport { ClientTypes } from '../constants';\n\nclass UtilityClass {\n constructor(private modules) {\n }\n public getCacheKey(storeObj) {\n return this.modules.getDataIdFromObject(storeObj);\n }\n}\n\n\n/**\n * Helper method to produce ApolloClient and Services from the feeded Feature Module.\n * @param modules \n */\nexport const apolloClientHelper = (modules: IFeature) => {\n const clientState = modules.getStateParams({ resolverContex: () => modules.createService({}, {}) });\n\n const dataIdFromObject = (result) => modules.getDataIdFromObject(result);\n const cache = new InMemoryCache({\n dataIdFromObject,\n possibleTypes: clientState.possibleTypes\n });\n\n const schema = ``;\n\n const params: ApolloClientOptions<any> = {\n cache,\n queryDeduplication: true,\n typeDefs: schema.concat(<string>clientState.typeDefs),\n resolvers: clientState.resolvers as any,\n };\n const client = new ApolloClient(params);\n clientState.defaults.map(x => {\n if (x.type === 'query') {\n cache.writeQuery(x);\n } else if (x.type === 'fragment') {\n cache.writeFragment(x);\n }\n });\n\n const utility = new UtilityClass(modules);\n\n // additional bindings to container\n const container: interfaces.Container = modules.createContainers({});\n container.bind(ClientTypes.Logger).toConstantValue(logger);\n container.bind(ClientTypes.UtilityClass).toConstantValue(utility);\n container.bind(ClientTypes.ApolloClient).toConstantValue(client);\n container.bind(ClientTypes.InMemoryCache).toConstantValue(cache);\n const services = modules.createService({}, {});\n (client as any).container = services;\n\n\n return {\n client,\n dataIdFromObject,\n services,\n container,\n }\n}\n\n\n\n","export * from './apollo-client-test-helper';\n","export * from './logger';\nexport * from './connector';\nexport * from './interfaces';\nexport * from './constants';\nexport * from './helpers';","// tslint:disable:max-line-length\n\nimport { Resolvers, IdGetterObj, PossibleTypesMap, TypePolicies, Operation, ApolloLink, ApolloClientOptions } from '@apollo/client';\nimport { interfaces } from 'inversify';\nimport { Cache } from '@apollo/client/cache';\nimport { ReducersMapObject } from 'redux';\nimport { ErrorLink } from '@apollo/client/link/error';\nimport { ConnectionParams } from 'subscriptions-transport-ws';\n\nexport type ResolverType = Resolvers | Resolvers[] | ((service: any) => Resolvers) | ((service: any) => Resolvers)[] | ((service: any) => any) | ((service: any) => any)[];\nexport type ApolloLinkFunc = (container: interfaces.Container) => ApolloLink;\nexport type ApolloConnectionParamFunc = ((container: interfaces.Container) => ConnectionParams) | ConnectionParams ;\nexport type IWSConnectionCallbackFunc = (webSocket: any, error: Error[], result?: any) => void | Promise<void>;\nexport type ApolloWSConnectionCallbackFunc = (container: interfaces.Container) => IWSConnectionCallbackFunc;\n\ntype IRetryLinkAttemptFuncs = (count: number, operation: Operation, error: any) => boolean | Promise<boolean>;\ntype IClientStateQueryDefault<T, V> = {\n type: 'query',\n} & Cache.WriteQueryOptions<T, V>;\n\ntype IClientStateFragmentDefault<T, V> = {\n type: 'fragment',\n} & Cache.WriteFragmentOptions<T, V>;\n\nexport type IClientStateDefault<T = unknown, V = unknown> = IClientStateFragmentDefault<T,V> | IClientStateQueryDefault<T,V>;\nexport interface IClientStateConfig {\n resolvers?: ResolverType; // don't need `Resolvers` type as it may conflict with the usage\n defaults?: IClientStateDefault[];\n typeDefs?: string | string[];\n possibleTypes?: PossibleTypesMap;\n typePolicies?: TypePolicies;\n // retries the request if function returns true\n retryLinkAttemptFuncs?: IRetryLinkAttemptFuncs;\n /**\n * @param preLinkFuncs all `apollo-link` that need to be composed before the network link. Should be a function.\n * @inheritdoc https://www.apollographql.com/docs/react/api/link/introduction/\n */\n preLinkFuncs?: ApolloLinkFunc[];\n /**\n * @param connectionParam To provide connectionParam to `WebSocketLink`. It takes a single `Object` or a `Function`.\n * @inheritdoc https://www.apollographql.com/docs/react/api/link/apollo-link-ws/\n */\n connectionParam?: ApolloConnectionParamFunc;\n /**\n * @param connectionCallback Accept only one function for all modules.\n * @inheritdoc\n */\n connectionCallbackFunc?: ApolloWSConnectionCallbackFunc;\n \n}\n\nexport interface IClientState {\n resolvers?: Resolvers; // don't need `Resolvers` type as it may conflict with the usage\n defaults: IClientStateDefault[];\n typeDefs?: string | string[];\n possibleTypes?: PossibleTypesMap;\n retryLinkAttemptFuncs?: IRetryLinkAttemptFuncs[];\n typePolicies?: TypePolicies,\n preLinks: ApolloLink[];\n connectionParams: ConnectionParams[];\n connectionCallbackFuncs?: IWSConnectionCallbackFunc[];\n}\n\n/**\n * ModuleShape have optional configuration to be implemented by all the feature modules\n * in the application.\n */\nexport interface IModuleShape {\n /**\n * @param link all `apollo-link` that need to be composed.\n * @inheritdoc https://github.com/apollographql/apollo-link\n * @deprecated use ClientStateParms.preLinkFuncs\n */\n readonly link?: any;\n /**\n * @param errorLink compose all errorLink\n * @inheritdoc https://github.com/apollographql/apollo-link/tree/master/packages/apollo-link-error\n */\n readonly errorLink?: ErrorLink | ErrorLink[];\n readonly createFetch?: any;\n /**\n * @param connectionParam method that called when a client connects to the socket.\n * @inheritdoc https://github.com/apollographql/subscriptions-transport-ws#constructorurl-options-connectioncallback\n * @deprecated use clientStateParams\n */\n readonly connectionParam?: any;\n /**\n * @param epic all `epics` that need to be composed.\n * @inheritdoc https://redux-observable.js.org/docs/basics/Epics.html\n */\n readonly epic?: any;\n /**\n * @param reducer Redux reducers list\n */\n readonly reducer?: ReducersMapObject | ReducersMapObject[];\n /**\n * @param clientStateParams Client side configuration of `apollo-client`\n * @inheritdoc https://github.com/apollographql/apollo-client/tree/2d65da133c156f6d808e64aee7e7fd5f7cc71d7f\n */\n readonly clientStateParams?: IClientStateConfig | IClientStateConfig[];\n /**\n * @param dataIdFromObject A function that returns an object identifier given an particular result\n * object.\n * @inheritdoc https://github.com/apollographql/apollo-client/tree/ed66999bac40226abfeada8d6c83b454636bb4b0/packages/apollo-cache-inmemory#configuration\n */\n readonly dataIdFromObject?: { [key: string]: (value: any) => string } | { [key: string]: (value: any) => string }[] | IdGetterObj;\n /**\n * @param createContainerFunc Synchronous Container Modules of inversify.\n * @inheritdoc https://github.com/inversify/InversifyJS/blob/master/wiki/container_modules.md\n */\n readonly createContainerFunc?: Function | Function[];\n /**\n * @param createServiceFunc Services\n */\n readonly createServiceFunc?: Function | Function[];\n readonly sidebarSegments?: any;\n readonly routerFactory?: any;\n /**\n * @param route Route list\n */\n readonly route?: any;\n /**\n * @param navItem Top left navigation links\n */\n readonly navItem?: any;\n /**\n * @param navItemRightTop right navigation links\n */\n readonly navItemRight?: any;\n /**\n * @param rootComponentFactory Root component factory list\n */\n readonly rootComponentFactory?: any;\n /**\n * @param dataRootComponent Data root React elements list (data root elements wraps data fetching react subtree root)\n */\n readonly dataRootComponent?: any;\n readonly createFetchOptions?: any;\n /**\n * @param stylesInsert URL list to 3rd party css scripts\n */\n readonly stylesInsert?: any;\n /**\n * @param scriptsInsert URL list to 3rd party js scripts\n */\n readonly scriptsInsert?: any;\n /**\n * @deprecated\n */\n readonly catalogInfo?: any;\n /**\n * @deprecated\n */\n readonly languagesFuncs?: any;\n /**\n * @param leftMainPanelItems Components that will be placed left panel.\n */\n readonly leftMainPanelItems?: any;\n /**\n * @param middleMainPanelItems Components that will be placed middle center panel\n */\n readonly middleMainPanelItems?: any;\n /**\n * @param middleMainPanelItemsProps Props of the component that will be placed middle center panel\n */\n readonly middleMainPanelItemsProps?: any;\n /**\n * @param leftFooterItems Components that will be placed left footer panel\n */\n readonly leftFooterItems?: any;\n /**\n * @param rightFooterItems Components that will be placed right footer panel\n */\n readonly rightFooterItems?: any;\n /**\n * @param middleLowerPanelItems Components that will be placed below middle panel\n */\n readonly middleLowerPanelItems?: any;\n\n readonly reduxPersistTransforms?: any[];\n\n}\n\n\n/**\n * Feature module methods\n */\nexport interface IFeature extends IModuleShape {\n // Public variables\n readonly data: any[];\n\n /**\n * @returns Redux-Observable Epics\n */\n readonly epics;\n\n readonly getRouter;\n /**\n * @returns client-side React route components list\n */\n readonly getRoutes;\n\n /**\n * @returns client-side top left navbar link component list\n */\n readonly navItems;\n /**\n * @returns client-side top right navbar link component list\n */\n readonly navItemsRight;\n /**\n * @returns Redux reducers\n */\n readonly reducers;\n\n readonly connectionParams;\n\n /**\n * @returns URL list to 3rd party css styles\n */\n readonly stylesInserts;\n /**\n * @returns URL list to 3rd party js styles\n */\n readonly scriptsInserts;\n\n readonly leftMainPanel;\n readonly middleMainPanel;\n readonly leftFooter;\n readonly rightFooter;\n readonly middleLowerPanel;\n readonly dataIdFromObject;\n\n /**\n * @param args Options to pass to each Container Module\n * @returns Created container and binds all the container modules\n */\n createContainers(args);\n\n\n createService(options, updateOptions);\n /**\n * @param args Provide resolverContext which can be passed to all resolver functions.\n * @returns IClientState\n */\n getStateParams(args?: { resolverContex?: any }): IClientState;\n\n getDataIdFromObject(result: {\n [key: string]: string | number;\n __typename?: string;\n } | IdGetterObj): any;\n /**\n * @arguments root React tree root component\n * @arguments req Http Request\n * @returns React tree root component wrapped up by root components exposed by this module\n */\n getWrappedRoot(root: any, req?: any): any;\n /**\n * @param root React tree data root component (first React root components which is used for fetching data)\n *\n * @returns React tree data root component wrapped up by data root components exposed by this module\n */\n getDataRoot(root: any): any;\n registerLanguages(monaco): void;\n}\n","export * from './connector';\n","export * from './logger';\n","import { ClientLogger } from '@cdm-logger/client';\n\nconst appName = (process.env && process.env.APP_NAME) || 'FullStack';\nconst logLevel = (process.env && process.env.LOG_LEVEL) || 'info';\nconst logger = ClientLogger.create(appName, { level: logLevel as any });\n\nexport { logger };\n","module.exports = require(\"@apollo/client\");","module.exports = require(\"@cdm-logger/client\");","module.exports = require(\"@common-stack/core\");","module.exports = require(\"inversify\");","module.exports = require(\"lodash\");","module.exports = require(\"react\");"],"sourceRoot":""}
|
|
@@ -46,6 +46,7 @@ export interface IClientState {
|
|
|
46
46
|
typeDefs?: string | string[];
|
|
47
47
|
possibleTypes?: PossibleTypesMap;
|
|
48
48
|
retryLinkAttemptFuncs?: IRetryLinkAttemptFuncs[];
|
|
49
|
+
typePolicies?: TypePolicies;
|
|
49
50
|
preLinks: ApolloLink[];
|
|
50
51
|
connectionParams: ConnectionParams[];
|
|
51
52
|
connectionCallbackFuncs?: IWSConnectionCallbackFunc[];
|
package/lib/logger/logger.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const logger:
|
|
1
|
+
declare const logger: import("@cdm-logger/core/lib/interfaces/cdmlogger").ILogger;
|
|
2
2
|
export { logger };
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/client-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "common core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"typings": "lib/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "
|
|
10
|
+
"build": "yarn build:clean && yarn build:lib",
|
|
11
11
|
"build:clean": "rimraf lib",
|
|
12
12
|
"build:lib": "webpack",
|
|
13
|
-
"build:lib:watch": "
|
|
13
|
+
"build:lib:watch": "yarn build:lib -- --watch",
|
|
14
14
|
"jest": "./node_modules/.bin/jest",
|
|
15
|
-
"prepublish": "
|
|
15
|
+
"prepublish": "yarn build",
|
|
16
16
|
"test": "jest",
|
|
17
17
|
"test:debug": "npm test -- --runInBand",
|
|
18
18
|
"test:watch": "npm test -- --watch",
|
|
19
|
-
"watch": "
|
|
19
|
+
"watch": "yarn build:lib:watch"
|
|
20
20
|
},
|
|
21
21
|
"jest": {
|
|
22
22
|
"moduleFileExtensions": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@common-stack/core": "^0.1.
|
|
41
|
+
"@common-stack/core": "^0.1.19"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"typescript": {
|
|
51
51
|
"definition": "lib/index.d.ts"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "07b5a92c5d84b83b96389ee85c2e1174c0ef75c6"
|
|
54
54
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.1.9](https://github.com/cdmbase/common-stack/compare/v0.1.8...v0.1.9) (2021-10-07)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.1.7](https://github.com/cdmbase/common-stack/compare/v0.1.6...v0.1.7) (2021-08-11)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [0.1.6](https://github.com/cdmbase/common-stack/compare/v0.1.5...v0.1.6) (2021-08-11)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [0.1.5](https://github.com/cdmbase/common-stack/compare/v0.1.4...v0.1.5) (2021-08-11)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## [0.1.4](https://github.com/cdmbase/common-stack/compare/v0.1.3...v0.1.4) (2021-08-11)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
## [0.1.3](https://github.com/cdmbase/common-stack/compare/v0.1.2...v0.1.3) (2021-08-11)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## [0.1.2](https://github.com/cdmbase/common-stack/compare/v0.1.1...v0.1.2) (2021-08-10)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
## [0.1.1](https://github.com/cdmbase/common-stack/compare/v0.0.264...v0.1.1) (2021-08-05)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
## [0.0.264](https://github.com/cdmbase/common-stack/compare/v0.0.263...v0.0.264) (2021-07-04)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
### Bug Fixes
|
|
74
|
-
|
|
75
|
-
* props not being sent as argument to auth wrapper ([46efc87](https://github.com/cdmbase/common-stack/commit/46efc874c5bf60050cb42a0418ed0739451ba370))
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## [0.0.263](https://github.com/cdmbase/common-stack/compare/v0.0.262...v0.0.263) (2021-07-03)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
### Features
|
|
85
|
-
|
|
86
|
-
* added support for auth wrapper ([2749172](https://github.com/cdmbase/common-stack/commit/2749172303f2b35d56fa4e79aabc88beae24d280)), closes [#1208](https://github.com/cdmbase/common-stack/issues/1208)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## [0.0.262](https://github.com/cdmbase/common-stack/compare/v0.0.261...v0.0.262) (2021-06-23)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### Features
|
|
96
|
-
|
|
97
|
-
* added redux persist transform support in Feature class ([09ffe62](https://github.com/cdmbase/common-stack/commit/09ffe62d1dc619a9e30e7c1faeed3d3f4d484d2e))
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
## [0.0.261](https://github.com/cdmbase/common-stack/compare/v0.0.260...v0.0.261) (2021-06-01)
|
|
104
|
-
|
|
105
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
## [0.0.260](https://github.com/cdmbase/common-stack/compare/v0.0.259...v0.0.260) (2021-05-28)
|
|
112
|
-
|
|
113
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
## [0.0.259](https://github.com/cdmbase/common-stack/compare/v0.0.258...v0.0.259) (2021-05-28)
|
|
120
|
-
|
|
121
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
## [0.0.258](https://github.com/cdmbase/common-stack/compare/v0.0.257...v0.0.258) (2021-05-14)
|
|
128
|
-
|
|
129
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
## [0.0.257](https://github.com/cdmbase/common-stack/compare/v0.0.256...v0.0.257) (2021-05-05)
|
|
136
|
-
|
|
137
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
## [0.0.256](https://github.com/cdmbase/common-stack/compare/v0.0.255...v0.0.256) (2021-05-05)
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
### Features
|
|
147
|
-
|
|
148
|
-
* added support for retry-link-func-attempt for client-core Feature ([50038e1](https://github.com/cdmbase/common-stack/commit/50038e1aa99b86fa6364e20480dbea20a217d2a1))
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
## [0.0.255](https://github.com/cdmbase/common-stack/compare/v0.0.254...v0.0.255) (2021-04-03)
|
|
155
|
-
|
|
156
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
## [0.0.254](https://github.com/cdmbase/common-stack/compare/v0.0.253...v0.0.254) (2021-03-31)
|
|
163
|
-
|
|
164
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
## [0.0.253](https://github.com/cdmbase/common-stack/compare/v0.0.252...v0.0.253) (2021-03-31)
|
|
171
|
-
|
|
172
|
-
**Note:** Version bump only for package @common-stack/client-core
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
## [0.0.252](https://github.com/cdmbase/common-stack/compare/v0.0.251...v0.0.252) (2021-03-29)
|
|
179
|
-
|
|
180
|
-
**Note:** Version bump only for package @common-stack/client-core
|