@aiconomy/aico-components 0.0.128 → 0.0.136
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/README.md +26 -23
- package/dist/aico-components/aico-components.esm.js +1 -1
- package/dist/aico-components/aico-components.esm.js.map +1 -1
- package/dist/aico-components/{p-64d6361b.entry.js → p-de1a4cc0.entry.js} +3 -3
- package/dist/aico-components/p-de1a4cc0.entry.js.map +1 -0
- package/dist/cjs/aico-album-content_26.cjs.entry.js +16 -10
- package/dist/cjs/aico-album-content_26.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-components.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/aico-article-detail/aico-article-detail.js +4 -3
- package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -1
- package/dist/collection/components/aico-news-list/aico-news-list.js +20 -1
- package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -1
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +22 -2
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -1
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +22 -2
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -1
- package/dist/collection/utils/ConditionalRender.js +1 -1
- package/dist/collection/utils/ConditionalRender.js.map +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/ConditionalRender.js +1 -1
- package/dist/components/ConditionalRender.js.map +1 -1
- package/dist/components/aico-article-detail2.js +4 -3
- package/dist/components/aico-article-detail2.js.map +1 -1
- package/dist/components/aico-news-list-item2.js +6 -3
- package/dist/components/aico-news-list-item2.js.map +1 -1
- package/dist/components/aico-news-list.js +3 -1
- package/dist/components/aico-news-list.js.map +1 -1
- package/dist/components/aico-special-news-carousel.js +5 -2
- package/dist/components/aico-special-news-carousel.js.map +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/aico-album-content_26.entry.js +16 -10
- package/dist/esm/aico-album-content_26.entry.js.map +1 -1
- package/dist/esm/aico-components.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/aico-news-list/aico-news-list.d.ts +6 -0
- package/dist/types/components/aico-news-list-item/aico-news-list-item.d.ts +6 -0
- package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +6 -0
- package/dist/types/components.d.ts +24 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/aico-components/p-64d6361b.entry.js.map +0 -1
|
@@ -14,7 +14,7 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-album-content_26",[[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":[16],"newsSellerIds":[16],"newsBrandIds":[16],"newsLanguageLocales":[16],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"newsResponse":[32],"pageNumber":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[16],"newsSellerIds":[16],"newsBrandIds":[16],"newsLanguageLocales":[16],"numberOfArticles":[2,"number-of-articles"],"newsResponse":[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]}],[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);
|
|
17
|
+
return bootstrapLazy([["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-album-content_26",[[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":[16],"newsSellerIds":[16],"newsBrandIds":[16],"newsLanguageLocales":[16],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"locale":[1],"newsResponse":[32],"pageNumber":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[16],"newsSellerIds":[16],"newsBrandIds":[16],"newsLanguageLocales":[16],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[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],"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);
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
//# sourceMappingURL=aico-components.js.map
|
package/dist/esm/loader.js
CHANGED
|
@@ -3,7 +3,7 @@ export { s as setNonce } from './index-4621a8ba.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_26",[[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":[16],"newsSellerIds":[16],"newsBrandIds":[16],"newsLanguageLocales":[16],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"newsResponse":[32],"pageNumber":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[16],"newsSellerIds":[16],"newsBrandIds":[16],"newsLanguageLocales":[16],"numberOfArticles":[2,"number-of-articles"],"newsResponse":[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]}],[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_26",[[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":[16],"newsSellerIds":[16],"newsBrandIds":[16],"newsLanguageLocales":[16],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"locale":[1],"newsResponse":[32],"pageNumber":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[16],"newsSellerIds":[16],"newsBrandIds":[16],"newsLanguageLocales":[16],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[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],"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 };
|
|
@@ -40,6 +40,12 @@ export declare class AicoNewsList {
|
|
|
40
40
|
* The text used by the previous button in the pagination component.
|
|
41
41
|
*/
|
|
42
42
|
previousButtonText: string;
|
|
43
|
+
/**
|
|
44
|
+
* The article translation that will be used to render the content.
|
|
45
|
+
*
|
|
46
|
+
* If the locale specified is not present in the article's translations, most content will not be shown.
|
|
47
|
+
*/
|
|
48
|
+
locale: string;
|
|
43
49
|
/**
|
|
44
50
|
* Event emitted when a user clicks an article.
|
|
45
51
|
*
|
|
@@ -3,5 +3,11 @@ import { Article } from '../../model/Article';
|
|
|
3
3
|
export declare class AicoNewsListItem {
|
|
4
4
|
article: Article;
|
|
5
5
|
articleClick?: EventEmitter<Article>;
|
|
6
|
+
/**
|
|
7
|
+
* The article translation that will be used to render the content.
|
|
8
|
+
*
|
|
9
|
+
* If the locale specified is not present in the article's translations, most content will not be shown.
|
|
10
|
+
*/
|
|
11
|
+
locale: string;
|
|
6
12
|
render(): any;
|
|
7
13
|
}
|
|
@@ -32,6 +32,12 @@ export declare class AicoSpecialNewsCarousel {
|
|
|
32
32
|
* The number of articles shown in the carousel. Prefer this number to be small.
|
|
33
33
|
*/
|
|
34
34
|
numberOfArticles: number;
|
|
35
|
+
/**
|
|
36
|
+
* The article translation that will be used to render the content.
|
|
37
|
+
*
|
|
38
|
+
* If the locale specified is not present in the article's translations, most content will not be shown.
|
|
39
|
+
*/
|
|
40
|
+
locale: string;
|
|
35
41
|
/**
|
|
36
42
|
* Event emitted when a user clicks an article title.
|
|
37
43
|
*
|
|
@@ -159,6 +159,10 @@ 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
|
+
* 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
|
+
*/
|
|
165
|
+
"locale": string;
|
|
162
166
|
/**
|
|
163
167
|
* Brands used to filter the results.
|
|
164
168
|
*/
|
|
@@ -190,6 +194,10 @@ export namespace Components {
|
|
|
190
194
|
}
|
|
191
195
|
interface AicoNewsListItem {
|
|
192
196
|
"article": Article;
|
|
197
|
+
/**
|
|
198
|
+
* 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.
|
|
199
|
+
*/
|
|
200
|
+
"locale": string;
|
|
193
201
|
}
|
|
194
202
|
interface AicoNoContent {
|
|
195
203
|
}
|
|
@@ -206,6 +214,10 @@ export namespace Components {
|
|
|
206
214
|
* The url of the Aico Api that will be used to retrieve the article.
|
|
207
215
|
*/
|
|
208
216
|
"aicoUrl": string;
|
|
217
|
+
/**
|
|
218
|
+
* 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.
|
|
219
|
+
*/
|
|
220
|
+
"locale": string;
|
|
209
221
|
/**
|
|
210
222
|
* Brands used to filter the results.
|
|
211
223
|
*/
|
|
@@ -637,6 +649,10 @@ declare namespace LocalJSX {
|
|
|
637
649
|
* The url of the Aico Api that will be used to retrieve the article.
|
|
638
650
|
*/
|
|
639
651
|
"aicoUrl": string;
|
|
652
|
+
/**
|
|
653
|
+
* 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.
|
|
654
|
+
*/
|
|
655
|
+
"locale"?: string;
|
|
640
656
|
/**
|
|
641
657
|
* Brands used to filter the results.
|
|
642
658
|
*/
|
|
@@ -672,6 +688,10 @@ declare namespace LocalJSX {
|
|
|
672
688
|
}
|
|
673
689
|
interface AicoNewsListItem {
|
|
674
690
|
"article": Article;
|
|
691
|
+
/**
|
|
692
|
+
* 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.
|
|
693
|
+
*/
|
|
694
|
+
"locale"?: string;
|
|
675
695
|
"onArticleClick"?: (event: AicoNewsListItemCustomEvent<Article>) => void;
|
|
676
696
|
}
|
|
677
697
|
interface AicoNoContent {
|
|
@@ -690,6 +710,10 @@ declare namespace LocalJSX {
|
|
|
690
710
|
* The url of the Aico Api that will be used to retrieve the article.
|
|
691
711
|
*/
|
|
692
712
|
"aicoUrl": string;
|
|
713
|
+
/**
|
|
714
|
+
* 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.
|
|
715
|
+
*/
|
|
716
|
+
"locale"?: string;
|
|
693
717
|
/**
|
|
694
718
|
* Brands used to filter the results.
|
|
695
719
|
*/
|
|
@@ -4,7 +4,7 @@ import { NewsResponse } from '../model/NewsResponse';
|
|
|
4
4
|
export declare function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels?: string[], newsSellerIds?: string[], newsBrandIds?: string[], newsLanguageLocales?: string[]): 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 fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article>;
|
|
7
|
-
export declare function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article>;
|
|
7
|
+
export declare function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article | undefined>;
|
|
8
8
|
export declare function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article>;
|
|
9
9
|
export declare function getImageWidthPrc(pictureSize?: string): string;
|
|
10
10
|
export declare function getYoutubeURL(url: string): string | null;
|