@newskit-render/standalone-components 0.26.1-alpha.0 → 0.27.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.
Files changed (87) hide show
  1. package/dist/cjs/config/index.d.ts +2 -1
  2. package/dist/cjs/config/index.js +3 -3
  3. package/dist/cjs/config/index.js.map +1 -1
  4. package/dist/cjs/help-hub/components/ContentListView/ContentListView.d.ts +2 -1
  5. package/dist/cjs/help-hub/components/ContentListView/ContentListView.js +3 -4
  6. package/dist/cjs/help-hub/components/ContentListView/ContentListView.js.map +1 -1
  7. package/dist/cjs/help-hub/components/SearchBar/SearchBar.js +2 -2
  8. package/dist/cjs/help-hub/components/SearchBar/SearchBar.js.map +1 -1
  9. package/dist/cjs/help-hub/components/SearchBar/components/Autocomplete.d.ts +2 -4
  10. package/dist/cjs/help-hub/components/SearchBar/components/Autocomplete.js +18 -17
  11. package/dist/cjs/help-hub/components/SearchBar/components/Autocomplete.js.map +1 -1
  12. package/dist/cjs/help-hub/components/SearchBar/types.d.ts +0 -2
  13. package/dist/cjs/help-hub/context/baseContext.js +14 -8
  14. package/dist/cjs/help-hub/context/baseContext.js.map +1 -1
  15. package/dist/cjs/help-hub/context/types.d.ts +17 -1
  16. package/dist/cjs/help-hub/context/types.js.map +1 -1
  17. package/dist/cjs/help-hub/pages/ArticlePage.js +7 -5
  18. package/dist/cjs/help-hub/pages/ArticlePage.js.map +1 -1
  19. package/dist/cjs/help-hub/pages/LandingPage.js +12 -11
  20. package/dist/cjs/help-hub/pages/LandingPage.js.map +1 -1
  21. package/dist/cjs/help-hub/pages/ResultsPage.d.ts +2 -2
  22. package/dist/cjs/help-hub/pages/ResultsPage.js +32 -91
  23. package/dist/cjs/help-hub/pages/ResultsPage.js.map +1 -1
  24. package/dist/cjs/help-hub/pages/types.d.ts +4 -1
  25. package/dist/cjs/help-hub/provider/CredentialsProvider.d.ts +7 -0
  26. package/dist/cjs/help-hub/provider/CredentialsProvider.js +38 -0
  27. package/dist/cjs/help-hub/provider/CredentialsProvider.js.map +1 -0
  28. package/dist/cjs/help-hub/provider/articleProvider.d.ts +2 -2
  29. package/dist/cjs/help-hub/provider/articleProvider.js.map +1 -1
  30. package/dist/cjs/help-hub/provider/index.d.ts +1 -0
  31. package/dist/cjs/help-hub/provider/index.js +1 -0
  32. package/dist/cjs/help-hub/provider/index.js.map +1 -1
  33. package/dist/cjs/help-hub/provider/resultsProvider.d.ts +19 -0
  34. package/dist/cjs/help-hub/provider/resultsProvider.js +90 -0
  35. package/dist/cjs/help-hub/provider/resultsProvider.js.map +1 -0
  36. package/dist/cjs/help-hub/provider/types.d.ts +9 -1
  37. package/dist/cjs/help-hub/provider/types.js.map +1 -1
  38. package/dist/cjs/help-hub/test-helpers/resultsPageContextOptionsMock.js +1 -2
  39. package/dist/cjs/help-hub/test-helpers/resultsPageContextOptionsMock.js.map +1 -1
  40. package/dist/cjs/help-hub/test-helpers/sharedMocks.d.ts +2 -1
  41. package/dist/cjs/help-hub/test-helpers/sharedMocks.js +15 -14
  42. package/dist/cjs/help-hub/test-helpers/sharedMocks.js.map +1 -1
  43. package/dist/cjs/help-hub/types/index.d.ts +2 -3
  44. package/dist/config/index.d.ts +2 -1
  45. package/dist/config/index.js +3 -3
  46. package/dist/config/index.js.map +1 -1
  47. package/dist/help-hub/components/ContentListView/ContentListView.d.ts +2 -1
  48. package/dist/help-hub/components/ContentListView/ContentListView.js +3 -4
  49. package/dist/help-hub/components/ContentListView/ContentListView.js.map +1 -1
  50. package/dist/help-hub/components/SearchBar/SearchBar.js +2 -2
  51. package/dist/help-hub/components/SearchBar/SearchBar.js.map +1 -1
  52. package/dist/help-hub/components/SearchBar/components/Autocomplete.d.ts +2 -4
  53. package/dist/help-hub/components/SearchBar/components/Autocomplete.js +18 -17
  54. package/dist/help-hub/components/SearchBar/components/Autocomplete.js.map +1 -1
  55. package/dist/help-hub/components/SearchBar/types.d.ts +0 -2
  56. package/dist/help-hub/context/baseContext.js +14 -8
  57. package/dist/help-hub/context/baseContext.js.map +1 -1
  58. package/dist/help-hub/context/types.d.ts +17 -1
  59. package/dist/help-hub/context/types.js.map +1 -1
  60. package/dist/help-hub/pages/ArticlePage.js +7 -5
  61. package/dist/help-hub/pages/ArticlePage.js.map +1 -1
  62. package/dist/help-hub/pages/LandingPage.js +12 -11
  63. package/dist/help-hub/pages/LandingPage.js.map +1 -1
  64. package/dist/help-hub/pages/ResultsPage.d.ts +2 -2
  65. package/dist/help-hub/pages/ResultsPage.js +32 -91
  66. package/dist/help-hub/pages/ResultsPage.js.map +1 -1
  67. package/dist/help-hub/pages/types.d.ts +4 -1
  68. package/dist/help-hub/provider/CredentialsProvider.d.ts +7 -0
  69. package/dist/help-hub/provider/CredentialsProvider.js +38 -0
  70. package/dist/help-hub/provider/CredentialsProvider.js.map +1 -0
  71. package/dist/help-hub/provider/articleProvider.d.ts +2 -2
  72. package/dist/help-hub/provider/articleProvider.js.map +1 -1
  73. package/dist/help-hub/provider/index.d.ts +1 -0
  74. package/dist/help-hub/provider/index.js +1 -0
  75. package/dist/help-hub/provider/index.js.map +1 -1
  76. package/dist/help-hub/provider/resultsProvider.d.ts +19 -0
  77. package/dist/help-hub/provider/resultsProvider.js +90 -0
  78. package/dist/help-hub/provider/resultsProvider.js.map +1 -0
  79. package/dist/help-hub/provider/types.d.ts +9 -1
  80. package/dist/help-hub/provider/types.js.map +1 -1
  81. package/dist/help-hub/test-helpers/resultsPageContextOptionsMock.js +1 -2
  82. package/dist/help-hub/test-helpers/resultsPageContextOptionsMock.js.map +1 -1
  83. package/dist/help-hub/test-helpers/sharedMocks.d.ts +2 -1
  84. package/dist/help-hub/test-helpers/sharedMocks.js +15 -14
  85. package/dist/help-hub/test-helpers/sharedMocks.js.map +1 -1
  86. package/dist/help-hub/types/index.d.ts +2 -3
  87. package/package.json +2 -1
@@ -3,28 +3,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.algoliaDataMock = void 0;
4
4
  exports.algoliaDataMock = [
5
5
  {
6
- title: 'Question title 1',
7
- url: 'https://localhost:3000/answer-1',
6
+ title: "What's in the smartphone app and how do I access it?",
7
+ content: '<ul><li>Enjoy The Times and The Sunday Times journalism wherever you are with one app, 7 days a week.</li><li>Get the latest global, business, politics, sport and finance headline news articles on the go as well as trusted analysis and opinion from our award-winning columnists and global correspondents.</li><li>On top of that, enjoy stunning picture galleries, interactive crossword puzzles and exclusive video dispatches from Great Britain and across the world. Now with a seamless link to The Times and Sunday Times Sport app.</li><li>Keep updated on all your Times+ membership offers and experience a selection of the best Times+ Talks right from within the app. </li><li>You can save your favourite articles for reading later and share your favourite stories from our Times &amp; Sunday Times columnists from across all sections including headline news reports, UK and global business, finance, world, sport reports, politics and opinion.</li></ul>\n<br>The app is available from the <a href="https://play.google.com/store/apps/details?id=uk.co.thetimes" target="_blank">Google Play Store</a> and <a href="https://itunes.apple.com/gb/app/the-times-the-sunday-times/id436792321?mt=8" target="_blank">iTunes</a><br>Please ensure that you are using the latest Android or IOS software when downloading the app.',
8
+ objectID: 'what-s-in-the-smartphone-app-and-how-do-i-access-it',
8
9
  },
9
10
  {
10
- title: 'Question title 2',
11
- url: 'https://localhost:3000/answer-2',
11
+ title: 'Sign-in with Google',
12
+ content: '<p>To use Google Sign In with The Times and Sunday Times, you must have a Google account. If you don’t have a Google account but would like to use this feature, you can easily create one at google.com<br><br><b>I see an error telling me I don’t have an account with The Times when login in to My Times account with Google Sign in?</b></p>\n\n<ul><li>\n\t<p>On first use of Google Sign In, your Times username must match the email address on your Google account, otherwise we cannot match them. If you would like to use Google Sign In but your email address does not match, you can log in using your Times email address and password and update your email address in My Account.</p>\n\t</li></ul>\n\n<p><b>Can I change my Times email address after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>First time you sign into your Times account your login email address needs to be the same as your Google account email address. Once logged in you can update this via My Account.</p>\n\t</li></ul>\n\n<p><b>Can I still login with my own Times username and password after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>As an existing Times user, you  continue to have the ability to login using your Times username and password. You will as such retain the ability to change your password at any time.</p>\n\t</li></ul>',
13
+ objectID: 'sign-with-google',
12
14
  },
13
15
  {
14
- title: 'Question title 3',
15
- url: 'https://localhost:3000/answer-3',
16
+ title: 'I am trying to share an article via Google+ but an error message keeps appearing',
17
+ content: 'This may be happening because there&#39;s an authentication issue with your Google+ account. To fix this, delete The Times and The Sunday Times app and then reinstall it. ',
18
+ objectID: 'i-am-trying-to-share-an-article-via-google-but-an-error-message-keeps-appearing',
16
19
  },
17
20
  {
18
- title: 'Question title 4',
19
- url: 'https://localhost:3000/answer-4',
21
+ title: 'How will I find out if I have won a competition?',
22
+ content: 'Our competitions team contact the winners of our competitions via the phone number on your Times account.<br><br>If you don’t answer they will endeavor to contact you via email, giving you plenty of time to respond before finding a new winner.',
23
+ objectID: 'how-will-i-find-out-if-i-have-won-a-competition',
20
24
  },
21
25
  {
22
- title: 'Question title 5',
23
- url: 'https://localhost:3000/answer-5',
24
- },
25
- {
26
- title: 'Question title 6',
27
- url: 'https://localhost:3000/answer-6',
26
+ title: 'How many articles can I read with my registered access?',
27
+ content: 'You can read up to two articles a week, Monday to Sunday. Every Monday your allocation will be reset to two articles. An article is a whole photo gallery, story or a piece of video content.',
28
+ objectID: 'how-many-articles-can-i-read-with-my-registered-access',
28
29
  },
29
30
  ];
30
31
  //# sourceMappingURL=sharedMocks.js.map
@@ -1 +1 @@
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,kBAAkB;QACzB,GAAG,EAAE,iCAAiC;KACvC;IACD;QACE,KAAK,EAAE,kBAAkB;QACzB,GAAG,EAAE,iCAAiC;KACvC;IACD;QACE,KAAK,EAAE,kBAAkB;QACzB,GAAG,EAAE,iCAAiC;KACvC;IACD;QACE,KAAK,EAAE,kBAAkB;QACzB,GAAG,EAAE,iCAAiC;KACvC;IACD;QACE,KAAK,EAAE,kBAAkB;QACzB,GAAG,EAAE,iCAAiC;KACvC;IACD;QACE,KAAK,EAAE,kBAAkB;QACzB,GAAG,EAAE,iCAAiC;KACvC;CACF,CAAA"}
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,8 +1,7 @@
1
- import { Hit } from '@algolia/client-search';
2
- export declare type AutocompleteItem = Hit<{
1
+ import { Hit as AlgoliaHit } from '@algolia/client-search';
2
+ export declare type Hit = AlgoliaHit<{
3
3
  title: string;
4
4
  objectID: string;
5
- url: string;
6
5
  content: string;
7
6
  }>;
8
7
  export declare type AlgoliaCredentials = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/standalone-components",
3
- "version": "0.26.1-alpha.0",
3
+ "version": "0.27.0",
4
4
  "description": "Newskit Render Standalone Components",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -55,6 +55,7 @@
55
55
  "jest-watch-typeahead": "0.6.3",
56
56
  "lint-staged": "12.1.7",
57
57
  "newskit": "5.4.5",
58
+ "next": "12.1.0",
58
59
  "prettier": "2.2.1",
59
60
  "react": "17.0.2",
60
61
  "react-dom": "17.0.2",