@newskit-render/standalone-components 0.28.2 → 0.28.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/help-chat/Help.d.ts +5 -0
- package/dist/cjs/help-chat/Help.js +40 -0
- package/dist/cjs/help-chat/Help.js.map +1 -0
- package/dist/cjs/help-chat/chatHelpDefaultOverrides.d.ts +37 -0
- package/dist/cjs/help-chat/chatHelpDefaultOverrides.js +45 -0
- package/dist/cjs/help-chat/chatHelpDefaultOverrides.js.map +1 -0
- package/dist/cjs/help-chat/index.d.ts +2 -0
- package/dist/{help-hub/components/ContentListView → cjs/help-chat}/index.js +2 -1
- package/dist/cjs/help-chat/index.js.map +1 -0
- package/dist/cjs/help-chat/tests/Chat.stories.d.ts +5 -0
- package/dist/cjs/help-chat/tests/Chat.stories.js +53 -0
- package/dist/cjs/help-chat/tests/Chat.stories.js.map +1 -0
- package/dist/cjs/help-chat/types.d.ts +31 -0
- package/dist/{help-hub/components/SearchBar → cjs/help-chat}/types.js +0 -0
- package/dist/{help-hub/pages → cjs/help-chat}/types.js.map +1 -1
- package/dist/cjs/help-hub/context/index.d.ts +2 -1
- package/dist/cjs/help-hub/context/index.js +1 -1
- package/dist/cjs/help-hub/context/index.js.map +1 -1
- package/dist/cjs/help-hub/index.d.ts +2 -0
- package/dist/cjs/help-hub/index.js +3 -0
- package/dist/cjs/help-hub/index.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/{article-recommendations → esm/article-recommendations}/components/ArticleRecommendation.d.ts +0 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendation.js +14 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendation.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/components/ArticleRecommendationLarge.d.ts +0 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationLarge.js +34 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationLarge.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/components/ArticleRecommendationSmall.d.ts +0 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationSmall.js +19 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationSmall.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/components/baseProps.d.ts +0 -0
- package/dist/{article-recommendations → esm/article-recommendations}/components/baseProps.js +1 -4
- package/dist/esm/article-recommendations/components/baseProps.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/components/index.d.ts +0 -0
- package/dist/esm/article-recommendations/components/index.js +4 -0
- package/dist/esm/article-recommendations/components/index.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/index.d.ts +0 -0
- package/dist/esm/article-recommendations/index.js +4 -0
- package/dist/esm/article-recommendations/index.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/provider/index.d.ts +0 -0
- package/dist/esm/article-recommendations/provider/index.js +2 -0
- package/dist/esm/article-recommendations/provider/index.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/provider/queries/getRecommendationsQuery.d.ts +0 -0
- package/dist/esm/article-recommendations/provider/queries/getRecommendationsQuery.js +8 -0
- package/dist/esm/article-recommendations/provider/queries/getRecommendationsQuery.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/provider/queries/index.d.ts +0 -0
- package/dist/esm/article-recommendations/provider/queries/index.js +2 -0
- package/dist/esm/article-recommendations/provider/queries/index.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/provider/recommendationsProvider.d.ts +0 -0
- package/dist/{article-recommendations → esm/article-recommendations}/provider/recommendationsProvider.js +5 -9
- package/dist/esm/article-recommendations/provider/recommendationsProvider.js.map +1 -0
- package/dist/{article-recommendations → esm/article-recommendations}/types/index.d.ts +0 -0
- package/dist/esm/article-recommendations/types/index.js +2 -0
- package/dist/esm/article-recommendations/types/index.js.map +1 -0
- package/dist/{config → esm/config}/index.d.ts +0 -0
- package/dist/{config → esm/config}/index.js +2 -5
- package/dist/{config → esm/config}/index.js.map +1 -1
- package/dist/esm/help-chat/Help.d.ts +5 -0
- package/dist/esm/help-chat/Help.js +33 -0
- package/dist/esm/help-chat/Help.js.map +1 -0
- package/dist/esm/help-chat/chatHelpDefaultOverrides.d.ts +37 -0
- package/dist/esm/help-chat/chatHelpDefaultOverrides.js +39 -0
- package/dist/esm/help-chat/chatHelpDefaultOverrides.js.map +1 -0
- package/dist/esm/help-chat/index.d.ts +2 -0
- package/dist/esm/help-chat/index.js +3 -0
- package/dist/esm/help-chat/index.js.map +1 -0
- package/dist/esm/help-chat/tests/Chat.stories.d.ts +5 -0
- package/dist/esm/help-chat/tests/Chat.stories.js +45 -0
- package/dist/esm/help-chat/tests/Chat.stories.js.map +1 -0
- package/dist/esm/help-chat/types.d.ts +31 -0
- package/dist/esm/help-chat/types.js +2 -0
- package/dist/esm/help-chat/types.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/ContentListView/ContentListView.d.ts +0 -0
- package/dist/esm/help-hub/components/ContentListView/ContentListView.js +41 -0
- package/dist/esm/help-hub/components/ContentListView/ContentListView.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/ContentListView/Introduction.d.ts +0 -0
- package/dist/esm/help-hub/components/ContentListView/Introduction.js +29 -0
- package/dist/esm/help-hub/components/ContentListView/Introduction.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/ContentListView/index.d.ts +0 -0
- package/dist/esm/help-hub/components/ContentListView/index.js +2 -0
- package/dist/esm/help-hub/components/ContentListView/index.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/SearchBar/SearchBar.d.ts +0 -0
- package/dist/esm/help-hub/components/SearchBar/SearchBar.js +18 -0
- package/dist/esm/help-hub/components/SearchBar/SearchBar.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/SearchBar/components/AlgoliaTheme.d.ts +0 -0
- package/dist/esm/help-hub/components/SearchBar/components/AlgoliaTheme.js +8 -0
- package/dist/esm/help-hub/components/SearchBar/components/AlgoliaTheme.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/SearchBar/components/Autocomplete.d.ts +0 -0
- package/dist/esm/help-hub/components/SearchBar/components/Autocomplete.js +136 -0
- package/dist/esm/help-hub/components/SearchBar/components/Autocomplete.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/SearchBar/components/Highlight.d.ts +0 -0
- package/dist/esm/help-hub/components/SearchBar/components/Highlight.js +14 -0
- package/dist/esm/help-hub/components/SearchBar/components/Highlight.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/SearchBar/index.d.ts +0 -0
- package/dist/esm/help-hub/components/SearchBar/index.js +2 -0
- package/dist/esm/help-hub/components/SearchBar/index.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/SearchBar/types.d.ts +0 -0
- package/dist/esm/help-hub/components/SearchBar/types.js +2 -0
- package/dist/esm/help-hub/components/SearchBar/types.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/Templates/LayoutTemplate.d.ts +0 -0
- package/dist/esm/help-hub/components/Templates/LayoutTemplate.js +66 -0
- package/dist/esm/help-hub/components/Templates/LayoutTemplate.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/Templates/index.d.ts +0 -0
- package/dist/esm/help-hub/components/Templates/index.js +4 -0
- package/dist/esm/help-hub/components/Templates/index.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/components/Templates/types.d.ts +0 -0
- package/dist/esm/help-hub/components/Templates/types.js +2 -0
- package/dist/esm/help-hub/components/Templates/types.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/context/baseContext.d.ts +0 -0
- package/dist/{help-hub → esm/help-hub}/context/baseContext.js +1 -4
- package/dist/esm/help-hub/context/baseContext.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/context/index.d.ts +2 -1
- package/dist/esm/help-hub/context/index.js +21 -0
- package/dist/esm/help-hub/context/index.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/context/types.d.ts +0 -0
- package/dist/esm/help-hub/context/types.js +7 -0
- package/dist/esm/help-hub/context/types.js.map +1 -0
- package/dist/esm/help-hub/index.d.ts +7 -0
- package/dist/{help-hub/index.d.ts → esm/help-hub/index.js} +2 -0
- package/dist/esm/help-hub/index.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/pages/ArticlePage.d.ts +0 -0
- package/dist/esm/help-hub/pages/ArticlePage.js +55 -0
- package/dist/esm/help-hub/pages/ArticlePage.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/pages/LandingPage.d.ts +0 -0
- package/dist/esm/help-hub/pages/LandingPage.js +80 -0
- package/dist/esm/help-hub/pages/LandingPage.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/pages/ResultsPage.d.ts +0 -0
- package/dist/esm/help-hub/pages/ResultsPage.js +64 -0
- package/dist/esm/help-hub/pages/ResultsPage.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/pages/types.d.ts +0 -0
- package/dist/esm/help-hub/pages/types.js +2 -0
- package/dist/esm/help-hub/pages/types.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/provider/CredentialsProvider.d.ts +0 -0
- package/dist/esm/help-hub/provider/CredentialsProvider.js +14 -0
- package/dist/esm/help-hub/provider/CredentialsProvider.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/provider/articleProvider.d.ts +0 -0
- package/dist/{help-hub → esm/help-hub}/provider/articleProvider.js +9 -16
- package/dist/esm/help-hub/provider/articleProvider.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/provider/getHelpHubConfig.d.ts +0 -0
- package/dist/esm/help-hub/provider/getHelpHubConfig.js +13 -0
- package/dist/esm/help-hub/provider/getHelpHubConfig.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/provider/index.d.ts +0 -0
- package/dist/esm/help-hub/provider/index.js +5 -0
- package/dist/esm/help-hub/provider/index.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/provider/resultsProvider.d.ts +0 -0
- package/dist/{help-hub → esm/help-hub}/provider/resultsProvider.js +9 -16
- package/dist/esm/help-hub/provider/resultsProvider.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/provider/types.d.ts +0 -0
- package/dist/esm/help-hub/provider/types.js +10 -0
- package/dist/esm/help-hub/provider/types.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/articlePageContextOptionsMock.d.ts +0 -0
- package/dist/esm/help-hub/test-helpers/articlePageContextOptionsMock.js +14 -0
- package/dist/esm/help-hub/test-helpers/articlePageContextOptionsMock.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/index.d.ts +0 -0
- package/dist/esm/help-hub/test-helpers/index.js +3 -0
- package/dist/esm/help-hub/test-helpers/index.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/landingPageContextOptionsMock.d.ts +0 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/landingPageContextOptionsMock.js +4 -7
- package/dist/esm/help-hub/test-helpers/landingPageContextOptionsMock.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/mocks.d.ts +0 -0
- package/dist/esm/help-hub/test-helpers/mocks.js +12 -0
- package/dist/esm/help-hub/test-helpers/mocks.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/resultsPageContextOptionsMock.d.ts +0 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/resultsPageContextOptionsMock.js +2 -5
- package/dist/esm/help-hub/test-helpers/resultsPageContextOptionsMock.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/sharedMocks.d.ts +0 -0
- package/dist/{help-hub → esm/help-hub}/test-helpers/sharedMocks.js +1 -4
- package/dist/esm/help-hub/test-helpers/sharedMocks.js.map +1 -0
- package/dist/{help-hub → esm/help-hub}/types/index.d.ts +0 -0
- package/dist/esm/help-hub/types/index.js +2 -0
- package/dist/{help-hub → esm/help-hub}/types/index.js.map +1 -1
- package/dist/{helpers → esm/helpers}/setupTests.d.ts +0 -0
- package/dist/esm/helpers/setupTests.js +2 -0
- package/dist/esm/helpers/setupTests.js.map +1 -0
- package/dist/{helpers → esm/helpers}/testHelpers.d.ts +0 -0
- package/dist/esm/helpers/testHelpers.js +51 -0
- package/dist/esm/helpers/testHelpers.js.map +1 -0
- package/dist/{index.d.ts → esm/index.d.ts} +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +2 -2
- package/dist/article-recommendations/components/ArticleRecommendation.js +0 -19
- package/dist/article-recommendations/components/ArticleRecommendation.js.map +0 -1
- package/dist/article-recommendations/components/ArticleRecommendationLarge.js +0 -58
- package/dist/article-recommendations/components/ArticleRecommendationLarge.js.map +0 -1
- package/dist/article-recommendations/components/ArticleRecommendationSmall.js +0 -43
- package/dist/article-recommendations/components/ArticleRecommendationSmall.js.map +0 -1
- package/dist/article-recommendations/components/baseProps.js.map +0 -1
- package/dist/article-recommendations/components/index.js +0 -20
- package/dist/article-recommendations/components/index.js.map +0 -1
- package/dist/article-recommendations/index.js +0 -16
- package/dist/article-recommendations/index.js.map +0 -1
- package/dist/article-recommendations/provider/index.js +0 -14
- package/dist/article-recommendations/provider/index.js.map +0 -1
- package/dist/article-recommendations/provider/queries/getRecommendationsQuery.js +0 -11
- package/dist/article-recommendations/provider/queries/getRecommendationsQuery.js.map +0 -1
- package/dist/article-recommendations/provider/queries/index.js +0 -14
- package/dist/article-recommendations/provider/queries/index.js.map +0 -1
- package/dist/article-recommendations/provider/recommendationsProvider.js.map +0 -1
- package/dist/article-recommendations/types/index.js +0 -3
- package/dist/article-recommendations/types/index.js.map +0 -1
- package/dist/help-hub/components/ContentListView/ContentListView.js +0 -34
- package/dist/help-hub/components/ContentListView/ContentListView.js.map +0 -1
- package/dist/help-hub/components/ContentListView/Introduction.js +0 -33
- package/dist/help-hub/components/ContentListView/Introduction.js.map +0 -1
- package/dist/help-hub/components/ContentListView/index.js.map +0 -1
- package/dist/help-hub/components/SearchBar/SearchBar.js +0 -25
- package/dist/help-hub/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/help-hub/components/SearchBar/components/AlgoliaTheme.js +0 -11
- package/dist/help-hub/components/SearchBar/components/AlgoliaTheme.js.map +0 -1
- package/dist/help-hub/components/SearchBar/components/Autocomplete.js +0 -162
- package/dist/help-hub/components/SearchBar/components/Autocomplete.js.map +0 -1
- package/dist/help-hub/components/SearchBar/components/Highlight.js +0 -18
- package/dist/help-hub/components/SearchBar/components/Highlight.js.map +0 -1
- package/dist/help-hub/components/SearchBar/index.js +0 -14
- package/dist/help-hub/components/SearchBar/index.js.map +0 -1
- package/dist/help-hub/components/SearchBar/types.js.map +0 -1
- package/dist/help-hub/components/Templates/LayoutTemplate.js +0 -74
- package/dist/help-hub/components/Templates/LayoutTemplate.js.map +0 -1
- package/dist/help-hub/components/Templates/index.js +0 -16
- package/dist/help-hub/components/Templates/index.js.map +0 -1
- package/dist/help-hub/components/Templates/types.js +0 -3
- package/dist/help-hub/components/Templates/types.js.map +0 -1
- package/dist/help-hub/context/baseContext.js.map +0 -1
- package/dist/help-hub/context/index.js +0 -49
- package/dist/help-hub/context/index.js.map +0 -1
- package/dist/help-hub/context/types.js +0 -10
- package/dist/help-hub/context/types.js.map +0 -1
- package/dist/help-hub/index.js +0 -18
- package/dist/help-hub/index.js.map +0 -1
- package/dist/help-hub/pages/ArticlePage.js +0 -63
- package/dist/help-hub/pages/ArticlePage.js.map +0 -1
- package/dist/help-hub/pages/LandingPage.js +0 -87
- package/dist/help-hub/pages/LandingPage.js.map +0 -1
- package/dist/help-hub/pages/ResultsPage.js +0 -71
- package/dist/help-hub/pages/ResultsPage.js.map +0 -1
- package/dist/help-hub/pages/types.js +0 -3
- package/dist/help-hub/provider/CredentialsProvider.js +0 -38
- package/dist/help-hub/provider/CredentialsProvider.js.map +0 -1
- package/dist/help-hub/provider/articleProvider.js.map +0 -1
- package/dist/help-hub/provider/getHelpHubConfig.js +0 -17
- package/dist/help-hub/provider/getHelpHubConfig.js.map +0 -1
- package/dist/help-hub/provider/index.js +0 -17
- package/dist/help-hub/provider/index.js.map +0 -1
- package/dist/help-hub/provider/resultsProvider.js.map +0 -1
- package/dist/help-hub/provider/types.js +0 -13
- package/dist/help-hub/provider/types.js.map +0 -1
- package/dist/help-hub/test-helpers/articlePageContextOptionsMock.js +0 -17
- package/dist/help-hub/test-helpers/articlePageContextOptionsMock.js.map +0 -1
- package/dist/help-hub/test-helpers/index.js +0 -9
- package/dist/help-hub/test-helpers/index.js.map +0 -1
- package/dist/help-hub/test-helpers/landingPageContextOptionsMock.js.map +0 -1
- package/dist/help-hub/test-helpers/mocks.js +0 -14
- package/dist/help-hub/test-helpers/mocks.js.map +0 -1
- package/dist/help-hub/test-helpers/resultsPageContextOptionsMock.js.map +0 -1
- package/dist/help-hub/test-helpers/sharedMocks.js.map +0 -1
- package/dist/help-hub/types/index.js +0 -3
- package/dist/helpers/setupTests.js +0 -4
- package/dist/helpers/setupTests.js.map +0 -1
- package/dist/helpers/testHelpers.js +0 -59
- package/dist/helpers/testHelpers.js.map +0 -1
- package/dist/index.js +0 -15
- package/dist/index.js.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
var types_1 = require("../context/types");
|
|
5
|
-
var articlePageContextOptionsMock_1 = require("./articlePageContextOptionsMock");
|
|
6
|
-
var landingPageContextOptionsMock_1 = require("./landingPageContextOptionsMock");
|
|
7
|
-
var resultsPageContextOptionsMock_1 = require("./resultsPageContextOptionsMock");
|
|
8
|
-
var mockMap = (_a = {},
|
|
9
|
-
_a[types_1.ContextName.landingPage] = landingPageContextOptionsMock_1.landingPageContextMock,
|
|
10
|
-
_a[types_1.ContextName.resultsPage] = resultsPageContextOptionsMock_1.resultsPageContextMock,
|
|
11
|
-
_a[types_1.ContextName.articlePage] = articlePageContextOptionsMock_1.articlePageContextMock,
|
|
12
|
-
_a);
|
|
13
|
-
exports.default = mockMap;
|
|
14
|
-
//# sourceMappingURL=mocks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mocks.js","sourceRoot":"","sources":["../../../src/help-hub/test-helpers/mocks.ts"],"names":[],"mappings":";;;AAAA,0CAA8C;AAC9C,iFAAwE;AACxE,iFAAwE;AACxE,iFAAwE;AAExE,IAAM,OAAO;IACX,GAAC,mBAAW,CAAC,WAAW,IAAG,sDAAsB;IACjD,GAAC,mBAAW,CAAC,WAAW,IAAG,sDAAsB;IACjD,GAAC,mBAAW,CAAC,WAAW,IAAG,sDAAsB;OAClD,CAAA;AACD,kBAAe,OAAO,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resultsPageContextOptionsMock.js","sourceRoot":"","sources":["../../../src/help-hub/test-helpers/resultsPageContextOptionsMock.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sCAAwC;AAG3B,QAAA,sBAAsB,yBAC9B,qBAAW,KACd,MAAM,EAAE;QACN,KAAK,EAAE,uCAAuC;QAC9C,WAAW,EAAE,6CAA6C;KAC3D,IACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sharedMocks.js","sourceRoot":"","sources":["../../../src/help-hub/test-helpers/sharedMocks.tsx"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B;QACE,KAAK,EAAE,sDAAsD;QAC7D,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,qDAAqD;KAChE;IACD;QACE,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,kBAAkB;KAC7B;IACD;QACE,KAAK,EACH,kFAAkF;QACpF,OAAO,EACL,6KAA6K;QAC/K,QAAQ,EACN,iFAAiF;KACpF;IACD;QACE,KAAK,EAAE,kDAAkD;QACzD,OAAO,EACL,qPAAqP;QACvP,QAAQ,EAAE,iDAAiD;KAC5D;IACD;QACE,KAAK,EAAE,yDAAyD;QAChE,OAAO,EACL,+LAA+L;QACjM,QAAQ,EAAE,wDAAwD;KACnE;CACF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setupTests.js","sourceRoot":"","sources":["../../src/helpers/setupTests.ts"],"names":[],"mappings":";;AAAA,mDAAgD"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.renderWithContextTsl = exports.renderWithThemeTsl = void 0;
|
|
18
|
-
/* eslint-disable @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/ban-types */
|
|
19
|
-
/** Added as described in Jest docs: https://jestjs.io/docs/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom
|
|
20
|
-
* Needed because at least one component uses <MediaQueryProvider> from newskit, which uses window.matchmedia
|
|
21
|
-
*/
|
|
22
|
-
Object.defineProperty(window, 'matchMedia', {
|
|
23
|
-
writable: true,
|
|
24
|
-
value: jest.fn().mockImplementation(function (query) { return ({
|
|
25
|
-
matches: false,
|
|
26
|
-
media: query,
|
|
27
|
-
onchange: null,
|
|
28
|
-
addListener: jest.fn(),
|
|
29
|
-
removeListener: jest.fn(),
|
|
30
|
-
addEventListener: jest.fn(),
|
|
31
|
-
removeEventListener: jest.fn(),
|
|
32
|
-
dispatchEvent: jest.fn(),
|
|
33
|
-
}); }),
|
|
34
|
-
});
|
|
35
|
-
var react_1 = __importDefault(require("react"));
|
|
36
|
-
var lodash_merge_1 = __importDefault(require("lodash.merge"));
|
|
37
|
-
var react_2 = require("@testing-library/react");
|
|
38
|
-
var newskit_1 = require("newskit");
|
|
39
|
-
var context_1 = require("../help-hub/context");
|
|
40
|
-
var shared_components_1 = require("@newskit-render/shared-components");
|
|
41
|
-
var test_helpers_1 = require("../help-hub/test-helpers");
|
|
42
|
-
var renderWithThemeTsl = function (Component, props, theme, options) {
|
|
43
|
-
if (theme === void 0) { theme = newskit_1.newskitLightTheme; }
|
|
44
|
-
return (0, react_2.render)(react_1.default.createElement(Component, __assign({}, props)), __assign(__assign({}, options), { wrapper: function (_a) {
|
|
45
|
-
var children = _a.children;
|
|
46
|
-
return (react_1.default.createElement(newskit_1.ThemeProvider, { theme: theme }, children));
|
|
47
|
-
} }));
|
|
48
|
-
};
|
|
49
|
-
exports.renderWithThemeTsl = renderWithThemeTsl;
|
|
50
|
-
var renderWithContextTsl = function (Component, contextName, context, props, options) {
|
|
51
|
-
var mergedContext = (0, lodash_merge_1.default)({}, test_helpers_1.mockMap[contextName], context);
|
|
52
|
-
return (0, react_2.render)(react_1.default.createElement(Component, __assign({}, props)), __assign(__assign({}, options), { wrapper: function (_a) {
|
|
53
|
-
var children = _a.children;
|
|
54
|
-
return (react_1.default.createElement(context_1.HelpHubContextProvider, { context: mergedContext, contextName: contextName },
|
|
55
|
-
react_1.default.createElement(newskit_1.ThemeProvider, { theme: shared_components_1.sharedTheme }, children)));
|
|
56
|
-
} }));
|
|
57
|
-
};
|
|
58
|
-
exports.renderWithContextTsl = renderWithContextTsl;
|
|
59
|
-
//# sourceMappingURL=testHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testHelpers.js","sourceRoot":"","sources":["../../src/helpers/testHelpers.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oGAAoG;AACpG;;GAEG;AACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE;IAC1C,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QAC9C,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE;QACtB,cAAc,EAAE,IAAI,CAAC,EAAE,EAAE;QACzB,gBAAgB,EAAE,IAAI,CAAC,EAAE,EAAE;QAC3B,mBAAmB,EAAE,IAAI,CAAC,EAAE,EAAE;QAC9B,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE;KACzB,CAAC,EAT6C,CAS7C,CAAC;CACJ,CAAC,CAAA;AAEF,gDAAyB;AACzB,8DAAgC;AAChC,gDAA2E;AAC3E,mCAA2E;AAC3E,+CAI4B;AAC5B,uEAA+E;AAC/E,yDAAkD;AAC3C,IAAM,kBAAkB,GAAG,UAChC,SAAiC,EACjC,KAA0C,EAC1C,KAA0C,EAC1C,OAAwC;IADxC,sBAAA,EAAA,QAAyB,2BAAiB;IAG1C,OAAA,IAAA,cAAS,EAAC,8BAAC,SAAS,eAAM,KAAW,EAAI,wBACpC,OAAO,KACV,OAAO,EAAE,UAAC,EAAY;gBAAV,QAAQ,cAAA;YAAO,OAAA,CACzB,8BAAC,uBAAa,IAAC,KAAK,EAAE,KAAK,IAAG,QAAQ,CAAiB,CACxD;QAF0B,CAE1B,IACD;AALF,CAKE,CAAA;AAXS,QAAA,kBAAkB,sBAW3B;AAEG,IAAM,oBAAoB,GAAG,UAClC,SAAiC,EACjC,WAAwB,EACxB,OAAgC,EAChC,KAA0C,EAC1C,OAAwC;IAExC,IAAM,aAAa,GAAG,IAAA,sBAAK,EAAC,EAAE,EAAE,sBAAO,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAA;IAC9D,OAAO,IAAA,cAAS,EAAC,8BAAC,SAAS,eAAM,KAAW,EAAI,wBAC3C,OAAO,KACV,OAAO,EAAE,UAAC,EAAY;gBAAV,QAAQ,cAAA;YAAO,OAAA,CACzB,8BAAC,gCAAsB,IAAC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW;gBACtE,8BAAC,uBAAa,IAAC,KAAK,EAAE,+BAAY,IAAG,QAAQ,CAAiB,CACvC,CAC1B;QAJ0B,CAI1B,IACD,CAAA;AACJ,CAAC,CAAA;AAhBY,QAAA,oBAAoB,wBAgBhC"}
|
package/dist/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./article-recommendations"), exports);
|
|
14
|
-
__exportStar(require("./help-hub"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4DAAyC;AACzC,6CAA0B"}
|