@itwin/reports-config-widget-react 0.0.6 → 0.0.7
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/.rush/temp/package-deps_rebuild.json +12 -12
- package/.rush/temp/shrinkwrap-deps.json +4 -2
- package/CHANGELOG.json +12 -0
- package/CHANGELOG.md +8 -1
- package/coverage/clover.xml +103 -102
- package/coverage/coverage-final.json +12 -12
- package/coverage/lcov-report/index.html +19 -19
- package/coverage/lcov-report/src/ReportsConfigWidget.ts.html +2 -2
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/test/index.html +1 -1
- package/coverage/lcov-report/src/test/test-utils.tsx.html +2 -2
- package/coverage/lcov-report/src/widget/ReportsConfigUiProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ActionPanel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/AddMappingsModal.tsx.html +9 -9
- package/coverage/lcov-report/src/widget/components/DeleteModal.tsx.html +4 -4
- package/coverage/lcov-report/src/widget/components/Extraction.tsx.html +13 -13
- package/coverage/lcov-report/src/widget/components/HorizontalTile.tsx.html +2 -2
- package/coverage/lcov-report/src/widget/components/LocalizedTablePaginator.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportAction.tsx.html +5 -5
- package/coverage/lcov-report/src/widget/components/ReportMappings.tsx.html +35 -26
- package/coverage/lcov-report/src/widget/components/Reports.tsx.html +34 -34
- package/coverage/lcov-report/src/widget/components/ReportsContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/SearchBar.tsx.html +4 -4
- package/coverage/lcov-report/src/widget/components/SelectIModel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/index.html +38 -38
- package/coverage/lcov-report/src/widget/components/utils.tsx.html +30 -30
- package/coverage/lcov-report/src/widget/context/ReportsApiConfigContext.tsx.html +4 -4
- package/coverage/lcov-report/src/widget/context/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/useValidator.ts.html +1 -1
- package/coverage/lcov-report/src/widget/index.html +1 -1
- package/coverage/lcov.info +238 -317
- package/lib/cjs/test/ReportMappings.test.js +42 -31
- package/lib/cjs/test/ReportMappings.test.js.map +1 -1
- package/lib/cjs/test/Reports.test.js +12 -7
- package/lib/cjs/test/Reports.test.js.map +1 -1
- package/lib/cjs/test/test-utils.js.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.js +5 -6
- package/lib/cjs/widget/components/AddMappingsModal.js.map +1 -1
- package/lib/cjs/widget/components/Extraction.js +9 -11
- package/lib/cjs/widget/components/Extraction.js.map +1 -1
- package/lib/cjs/widget/components/ReportAction.js +3 -3
- package/lib/cjs/widget/components/ReportAction.js.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.js +23 -27
- package/lib/cjs/widget/components/ReportMappings.js.map +1 -1
- package/lib/cjs/widget/components/Reports.js +6 -6
- package/lib/cjs/widget/components/Reports.js.map +1 -1
- package/lib/esm/test/ReportMappings.test.js +42 -31
- package/lib/esm/test/ReportMappings.test.js.map +1 -1
- package/lib/esm/test/Reports.test.js +12 -7
- package/lib/esm/test/Reports.test.js.map +1 -1
- package/lib/esm/test/test-utils.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/widget/components/AddMappingsModal.js +6 -7
- package/lib/esm/widget/components/AddMappingsModal.js.map +1 -1
- package/lib/esm/widget/components/Extraction.js +10 -12
- package/lib/esm/widget/components/Extraction.js.map +1 -1
- package/lib/esm/widget/components/ReportAction.js +4 -4
- package/lib/esm/widget/components/ReportAction.js.map +1 -1
- package/lib/esm/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportMappings.js +24 -28
- package/lib/esm/widget/components/ReportMappings.js.map +1 -1
- package/lib/esm/widget/components/Reports.js +7 -7
- package/lib/esm/widget/components/Reports.js.map +1 -1
- package/package.json +2 -2
- package/reports-config-widget-react.build.error.log +3 -3
- package/reports-config-widget-react.build.log +11 -11
- package/src/test/ReportMappings.test.tsx +44 -24
- package/src/test/Reports.test.tsx +18 -13
- package/src/test/test-utils.tsx +1 -1
- package/src/widget/components/AddMappingsModal.tsx +6 -6
- package/src/widget/components/Extraction.tsx +10 -10
- package/src/widget/components/ReportAction.tsx +4 -4
- package/src/widget/components/ReportMappings.tsx +21 -18
- package/src/widget/components/Reports.tsx +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../../src/test/test-utils.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,6CAA+B;AAC/B,kDAA6D;AAC7D,uFAAoF;AAEpF,iCAAqD;AACrD,oDAI4B;AAE5B,gEAA6D;AAC7D,6EAAoD;AACpD,+EAA4E;AAErE,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE,CAAC,iBAAiB,CAAC;AAAhD,QAAA,eAAe,mBAAiC;AAM7D,SAAS,MAAM,CAAC,EAAsB,EAAE,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE;IACzD,MAAM,OAAO,GAAG,CAAC,EAAE,QAAQ,EAAgB,EAAE,EAAE,CAAC,CAC9C,oBAAC,iDAAuB,CAAC,QAAQ,IAC/B,KAAK,EAAE;YACL,cAAc,EAAE,uBAAe;YAC/B,OAAO,EAAE,iDAAuB;SACjC,IAEA,QAAQ,CACwB,CACpC,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,oBAAS,CAAC,KAAK,EAAE;QACvB,GAAG,cAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC;KACnD,CAAC;AACJ,CAAC;AAIQ,wBAAM;AAFf,yDAAuC;AAIvC,MAAa,SAAS;IACb,MAAM,CAAC,cA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KAAK,CAAC,qBAAqB,CAAC,CAAoB;QAC5D,MAAM,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAEpC,MAAM,yBAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAEpC,8CAA8C;QAC9C,2FAA2F;QAC3F,cAAc;QACd,6CAA6C;QAE7C,mCAAqB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,2CAA2C;IACxF,CAAC;IAEM,MAAM,CAAC,oBAAoB;QAChC,yCAAmB,CAAC,SAAS,EAAE,CAAC;IAClC,CAAC;CACF;AA7BD,8BA6BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport { render as rtlRender } from \"@testing-library/react\";\nimport { ReportsApiConfigContext } from \"../widget/context/ReportsApiConfigContext\";\nimport type { Store } from \"redux\";\nimport { combineReducers, createStore } from \"redux\";\nimport {\n FrameworkReducer,\n SyncUiEventDispatcher,\n UiFramework,\n} from \"@itwin/appui-react\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport { ReportsConfigWidget } from \"../ReportsConfigWidget\";\nimport userEvent from \"@testing-library/user-event\";\nimport { REPORTS_CONFIG_BASE_URL } from \"../widget/ReportsConfigUiProvider\";\n\nexport const mockAccessToken = async () => \"Bearer eyJhbGci\";\n\ninterface WrapperProps {\n children?: React.ReactNode;\n}\n\nfunction render(ui: React.ReactElement, { ...options } = {}) {\n const Wrapper = ({ children }: WrapperProps) => (\n <ReportsApiConfigContext.Provider\n value={{\n getAccessToken: mockAccessToken,\n baseUrl: REPORTS_CONFIG_BASE_URL,\n }}\n >\n {children}\n </ReportsApiConfigContext.Provider>\n );\n\n return {\n user: userEvent.setup(),\n ...rtlRender(ui, { wrapper: Wrapper, ...options }),\n };\n}\n\nexport * from \"@testing-library/react\";\n// override React Testing Library's render with our own\nexport { render };\n\nexport class TestUtils {\n public static createAppStore(): Store {\n const rootReducer = combineReducers({\n frameworkState: FrameworkReducer,\n });\n\n return createStore(\n rootReducer,\n (window as any).__REDUX_DEVTOOLS_EXTENSION__ &&\n (window as any).__REDUX_DEVTOOLS_EXTENSION__()\n );\n }\n\n public static async initializeUiFramework(_?: IModelConnection) {\n const store = this.createAppStore();\n\n await UiFramework.initialize(store);\n\n // Set the iModelConnection in the Redux store\n // Can not get it to function as intended. Store does not update with the iModel connection\n // if (imodel)\n // UiFramework.setIModelConnection(imodel);\n\n SyncUiEventDispatcher.setTimeoutPeriod(0); // disables non-immediate event processing.\n }\n\n public static terminateUiFramework() {\n ReportsConfigWidget.terminate();\n }\n}\n"]}
|