@aiconomy/aico-components 0.0.158 → 0.0.168

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 (57) hide show
  1. package/README.md +14 -12
  2. package/dist/aico-components/aico-components.esm.js +1 -1
  3. package/dist/aico-components/aico-components.esm.js.map +1 -1
  4. package/dist/aico-components/{p-d4f3c776.entry.js → p-020898a6.entry.js} +2 -2
  5. package/dist/aico-components/p-253097be.js +3 -0
  6. package/dist/aico-components/p-253097be.js.map +1 -0
  7. package/dist/aico-components/{p-0d563d4f.entry.js → p-25cf4b75.entry.js} +2 -2
  8. package/dist/aico-components/{p-076c2ca2.entry.js → p-aa633f51.entry.js} +4 -4
  9. package/dist/aico-components/p-aa633f51.entry.js.map +1 -0
  10. package/dist/cjs/aico-album-content_27.cjs.entry.js +39 -10
  11. package/dist/cjs/aico-album-content_27.cjs.entry.js.map +1 -1
  12. package/dist/cjs/aico-asking-list-content.cjs.entry.js +1 -1
  13. package/dist/cjs/aico-collection-content.cjs.entry.js +1 -1
  14. package/dist/cjs/aico-components.cjs.js +2 -2
  15. package/dist/cjs/{index-e52034b7.js → index-0ce53322.js} +60 -2
  16. package/dist/cjs/index-0ce53322.js.map +1 -0
  17. package/dist/cjs/loader.cjs.js +2 -2
  18. package/dist/collection/components/aico-news-list/aico-news-list.js +41 -3
  19. package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -1
  20. package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +22 -1
  21. package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -1
  22. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +2 -2
  23. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -1
  24. package/dist/collection/components/aico-top-news-carousel/aico-top-news-carousel.js +2 -2
  25. package/dist/collection/components/aico-top-news-carousel/aico-top-news-carousel.js.map +1 -1
  26. package/dist/collection/utils/utils.js +7 -1
  27. package/dist/collection/utils/utils.js.map +1 -1
  28. package/dist/components/aico-news-list-item2.js +22 -1
  29. package/dist/components/aico-news-list-item2.js.map +1 -1
  30. package/dist/components/aico-news-list.js +7 -3
  31. package/dist/components/aico-news-list.js.map +1 -1
  32. package/dist/components/aico-special-news-carousel.js +2 -2
  33. package/dist/components/aico-special-news-carousel.js.map +1 -1
  34. package/dist/components/aico-top-news-carousel.js +2 -2
  35. package/dist/components/aico-top-news-carousel.js.map +1 -1
  36. package/dist/components/utils.js +7 -1
  37. package/dist/components/utils.js.map +1 -1
  38. package/dist/esm/aico-album-content_27.entry.js +39 -10
  39. package/dist/esm/aico-album-content_27.entry.js.map +1 -1
  40. package/dist/esm/aico-asking-list-content.entry.js +1 -1
  41. package/dist/esm/aico-collection-content.entry.js +1 -1
  42. package/dist/esm/aico-components.js +3 -3
  43. package/dist/esm/{index-4621a8ba.js → index-1498b9e7.js} +60 -3
  44. package/dist/esm/index-1498b9e7.js.map +1 -0
  45. package/dist/esm/loader.js +3 -3
  46. package/dist/types/components/aico-news-list/aico-news-list.d.ts +8 -0
  47. package/dist/types/components/aico-news-list-item/aico-news-list-item.d.ts +4 -0
  48. package/dist/types/components.d.ts +16 -0
  49. package/dist/types/utils/utils.d.ts +1 -1
  50. package/package.json +1 -1
  51. package/dist/aico-components/p-076c2ca2.entry.js.map +0 -1
  52. package/dist/aico-components/p-ae20e789.js +0 -3
  53. package/dist/aico-components/p-ae20e789.js.map +0 -1
  54. package/dist/cjs/index-e52034b7.js.map +0 -1
  55. package/dist/esm/index-4621a8ba.js.map +0 -1
  56. /package/dist/aico-components/{p-d4f3c776.entry.js.map → p-020898a6.entry.js.map} +0 -0
  57. /package/dist/aico-components/{p-0d563d4f.entry.js.map → p-25cf4b75.entry.js.map} +0 -0
@@ -1,9 +1,9 @@
1
- import { b as bootstrapLazy } from './index-4621a8ba.js';
2
- export { s as setNonce } from './index-4621a8ba.js';
1
+ import { b as bootstrapLazy } from './index-1498b9e7.js';
2
+ export { s as setNonce } from './index-1498b9e7.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
- return bootstrapLazy([["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-album-content_27",[[2,"aico-fetch-article-detail",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"],"articleId":[1,"article-id"],"articleUrlHandle":[1,"article-url-handle"],"article":[32]}],[2,"aico-news-list",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"locale":[1],"newsResponse":[32],"pageNumber":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-top-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-article-detail",{"article":[16],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"]}],[2,"aico-news-list-item",{"article":[16],"articleIndex":[2,"article-index"],"locale":[1]}],[2,"aico-bullet-content",{"content":[16],"locale":[1]}],[2,"aico-carousel-content",{"content":[16],"hasArrows":[4,"has-arrows"],"locale":[1]}],[2,"aico-content-card-content",{"content":[16],"locale":[1]}],[2,"aico-heading-content",{"content":[16],"locale":[1]}],[2,"aico-table-content",{"content":[16],"locale":[1]}],[2,"aico-text-content",{"content":[16],"locale":[1]}],[2,"aico-upload-content",{"content":[16],"locale":[1]}],[2,"aico-video-content",{"content":[16],"locale":[1]}],[2,"aico-album-content",{"content":[16]}],[2,"aico-asking-content",{"content":[16],"locale":[1]}],[2,"aico-block-quote-content",{"content":[16],"locale":[1]}],[2,"aico-divider-content",{"content":[16],"locale":[1]}],[2,"aico-document-content",{"content":[16],"locale":[1]}],[2,"aico-faq-content",{"content":[16],"locale":[1]}],[2,"aico-html-content",{"content":[16],"locale":[1]}],[2,"aico-link-content",{"content":[16],"locale":[1]}],[2,"aico-news-content",{"content":[16]}],[2,"aico-page-content",{"content":[16],"locale":[1]}],[2,"aico-testimonial-content",{"content":[16]}],[2,"aico-title-content",{"content":[16],"locale":[1]}],[2,"aico-no-content"]]]], options);
6
+ return bootstrapLazy([["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-album-content_27",[[2,"aico-fetch-article-detail",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"],"articleId":[1,"article-id"],"articleUrlHandle":[1,"article-url-handle"],"article":[32]}],[2,"aico-news-list",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"hideTopArticles":[4,"hide-top-articles"],"hideSpecialArticles":[4,"hide-special-articles"],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"locale":[1],"newsResponse":[32],"pageNumber":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-top-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-article-detail",{"article":[16],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"]}],[2,"aico-news-list-item",{"article":[16],"articleIndex":[2,"article-index"],"locale":[1]}],[2,"aico-bullet-content",{"content":[16],"locale":[1]}],[2,"aico-carousel-content",{"content":[16],"hasArrows":[4,"has-arrows"],"locale":[1]}],[2,"aico-content-card-content",{"content":[16],"locale":[1]}],[2,"aico-heading-content",{"content":[16],"locale":[1]}],[2,"aico-table-content",{"content":[16],"locale":[1]}],[2,"aico-text-content",{"content":[16],"locale":[1]}],[2,"aico-upload-content",{"content":[16],"locale":[1]}],[2,"aico-video-content",{"content":[16],"locale":[1]}],[2,"aico-album-content",{"content":[16]}],[2,"aico-asking-content",{"content":[16],"locale":[1]}],[2,"aico-block-quote-content",{"content":[16],"locale":[1]}],[2,"aico-divider-content",{"content":[16],"locale":[1]}],[2,"aico-document-content",{"content":[16],"locale":[1]}],[2,"aico-faq-content",{"content":[16],"locale":[1]}],[2,"aico-html-content",{"content":[16],"locale":[1]}],[2,"aico-link-content",{"content":[16],"locale":[1]}],[2,"aico-news-content",{"content":[16]}],[2,"aico-page-content",{"content":[16],"locale":[1]}],[2,"aico-testimonial-content",{"content":[16]}],[2,"aico-title-content",{"content":[16],"locale":[1]}],[2,"aico-no-content"]]]], options);
7
7
  };
8
8
 
9
9
  export { defineCustomElements };
@@ -32,6 +32,14 @@ export declare class AicoNewsList {
32
32
  * Language locales as a comma separated list used to filter the results.
33
33
  */
34
34
  newsLanguageLocales: string;
35
+ /**
36
+ * Determines wheter top articles will be included in the list or not.
37
+ */
38
+ hideTopArticles: boolean;
39
+ /**
40
+ * Determines wheter special articles will be included in the list or not.
41
+ */
42
+ hideSpecialArticles: boolean;
35
43
  /**
36
44
  * The page size. Prefer this number to be even.
37
45
  */
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { Article } from '../../model/Article';
3
3
  export declare class AicoNewsListItem {
4
+ thisHtml: HTMLElement;
4
5
  article: Article;
5
6
  articleIndex: number;
6
7
  articleClick?: EventEmitter<Article>;
@@ -10,5 +11,8 @@ export declare class AicoNewsListItem {
10
11
  * If the locale specified is not present in the article's translations, most content will not be shown.
11
12
  */
12
13
  locale: string;
14
+ private imageObserver?;
15
+ componentDidLoad(): void;
16
+ private onIntersection;
13
17
  render(): any;
14
18
  }
@@ -159,6 +159,14 @@ export namespace Components {
159
159
  * The url of the Aico Api that will be used to retrieve the article.
160
160
  */
161
161
  "aicoUrl": string;
162
+ /**
163
+ * Determines wheter special articles will be included in the list or not.
164
+ */
165
+ "hideSpecialArticles": boolean;
166
+ /**
167
+ * Determines wheter top articles will be included in the list or not.
168
+ */
169
+ "hideTopArticles": boolean;
162
170
  /**
163
171
  * The article translation that will be used to render the content. If the locale specified is not present in the article's translations, most content will not be shown.
164
172
  */
@@ -706,6 +714,14 @@ declare namespace LocalJSX {
706
714
  * The url of the Aico Api that will be used to retrieve the article.
707
715
  */
708
716
  "aicoUrl": string;
717
+ /**
718
+ * Determines wheter special articles will be included in the list or not.
719
+ */
720
+ "hideSpecialArticles"?: boolean;
721
+ /**
722
+ * Determines wheter top articles will be included in the list or not.
723
+ */
724
+ "hideTopArticles"?: boolean;
709
725
  /**
710
726
  * The article translation that will be used to render the content. If the locale specified is not present in the article's translations, most content will not be shown.
711
727
  */
@@ -1,7 +1,7 @@
1
1
  import { Article } from '../components';
2
2
  import { AicoApiRequestInfo } from '../model/AicoApiRequestInfo';
3
3
  import { NewsResponse } from '../model/NewsResponse';
4
- export declare function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels?: string[], newsSellerIds?: string[], newsBrandIds?: string[], newsLanguageLocales?: string[]): Promise<NewsResponse>;
4
+ export declare function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels?: string[], newsSellerIds?: string[], newsBrandIds?: string[], newsLanguageLocales?: string[], hideTopArticles?: boolean, hideSpecialArticles?: boolean): Promise<NewsResponse>;
5
5
  export declare function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels?: string[], newsSellerIds?: string[], newsBrandIds?: string[], newsLanguageLocales?: string[]): Promise<NewsResponse>;
6
6
  export declare function fetchTopNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels?: string[], newsSellerIds?: string[], newsBrandIds?: string[], newsLanguageLocales?: string[]): Promise<NewsResponse>;
7
7
  export declare function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiconomy/aico-components",
3
- "version": "0.0.158",
3
+ "version": "0.0.168",
4
4
  "description": "Aiconomy components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",