@aiconomy/aico-components 0.0.57 → 0.0.78
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/aico-components/aico-components.css +1 -1
- 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-0b6e7469.entry.js +2 -0
- package/dist/aico-components/p-0b6e7469.entry.js.map +1 -0
- package/dist/aico-components/p-19752961.entry.js +2 -0
- package/dist/aico-components/p-19752961.entry.js.map +1 -0
- package/dist/aico-components/p-2677f2ab.js +2 -0
- package/dist/aico-components/p-2677f2ab.js.map +1 -0
- package/dist/aico-components/{p-1c4a07ef.entry.js → p-368503ee.entry.js} +3 -3
- package/dist/aico-components/p-368503ee.entry.js.map +1 -0
- package/dist/aico-components/p-7e0074f7.entry.js +2 -0
- package/dist/aico-components/p-7e0074f7.entry.js.map +1 -0
- package/dist/aico-components/p-9ea26390.entry.js +2 -0
- package/dist/aico-components/p-9ea26390.entry.js.map +1 -0
- package/dist/aico-components/p-bccf08d0.entry.js +2 -0
- package/dist/aico-components/p-bccf08d0.entry.js.map +1 -0
- package/dist/aico-components/p-c9eea1b1.entry.js +2 -0
- package/dist/aico-components/p-c9eea1b1.entry.js.map +1 -0
- package/dist/cjs/aico-album-content_19.cjs.entry.js +76 -53
- package/dist/cjs/aico-album-content_19.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-article-detail.cjs.entry.js +18 -17
- package/dist/cjs/aico-article-detail.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-components.cjs.js +1 -1
- package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +3 -2
- package/dist/cjs/aico-fetch-article-detail.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-news-list-item.cjs.entry.js +1 -1
- package/dist/cjs/aico-news-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-news-list.cjs.entry.js +4 -3
- package/dist/cjs/aico-news-list.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-no-content_2.cjs.entry.js +5 -3
- package/dist/cjs/aico-no-content_2.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-special-news-carousel.cjs.entry.js +4 -3
- package/dist/cjs/aico-special-news-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-095ed22b.js → utils-c1b7a052.js} +11 -5
- package/dist/cjs/utils-c1b7a052.js.map +1 -0
- package/dist/collection/components/aico-article-detail/aico-article-detail.js +36 -17
- package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -1
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js +20 -1
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js.map +1 -1
- package/dist/collection/components/aico-news-list/aico-news-list.js +19 -2
- 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 +1 -1
- 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 +19 -2
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -1
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.js +22 -3
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.js.map +1 -1
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js +16 -0
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js +21 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js.map +1 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js +18 -0
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js +25 -5
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js.map +1 -1
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js +29 -0
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js +25 -3
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js.map +1 -1
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js +35 -3
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js +22 -3
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js.map +1 -1
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js +10 -0
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.js +21 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.js.map +1 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js +9 -0
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-document-content/aico-document-content.js +22 -3
- package/dist/collection/components/content/aico-document-content/aico-document-content.js.map +1 -1
- package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js +11 -0
- package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.js +21 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.js.map +1 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js +25 -0
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.js +22 -2
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.js.map +1 -1
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js +10 -0
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-html-content/aico-html-content.js +22 -4
- package/dist/collection/components/content/aico-html-content/aico-html-content.js.map +1 -1
- package/dist/collection/components/content/aico-link-content/aico-link-content.js +22 -3
- package/dist/collection/components/content/aico-link-content/aico-link-content.js.map +1 -1
- package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js +24 -0
- package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-page-content/aico-page-content.js +23 -4
- package/dist/collection/components/content/aico-page-content/aico-page-content.js.map +1 -1
- package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js +11 -0
- package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-table-content/aico-table-content.js +26 -6
- package/dist/collection/components/content/aico-table-content/aico-table-content.js.map +1 -1
- package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js +58 -0
- package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-text-content/aico-text-content.js +25 -9
- package/dist/collection/components/content/aico-text-content/aico-text-content.js.map +1 -1
- package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js +55 -0
- package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.js +23 -3
- package/dist/collection/components/content/aico-title-content/aico-title-content.js.map +1 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js +12 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.js +22 -2
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.js.map +1 -1
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js +8 -0
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-video-content/aico-video-content.js +22 -2
- package/dist/collection/components/content/aico-video-content/aico-video-content.js.map +1 -1
- package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js +17 -0
- package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js.map +1 -1
- package/dist/collection/model/article/content/CarouselContent.js.map +1 -1
- package/dist/collection/utils/utils.js +10 -4
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/aico-article-detail2.js +20 -18
- package/dist/components/aico-article-detail2.js.map +1 -1
- package/dist/components/aico-asking-content2.js +6 -4
- package/dist/components/aico-asking-content2.js.map +1 -1
- package/dist/components/aico-block-quote-content2.js +5 -2
- package/dist/components/aico-block-quote-content2.js.map +1 -1
- package/dist/components/aico-bullet-content2.js +9 -6
- package/dist/components/aico-bullet-content2.js.map +1 -1
- package/dist/components/aico-carousel-content2.js +9 -4
- package/dist/components/aico-carousel-content2.js.map +1 -1
- package/dist/components/aico-content-card-content2.js +6 -4
- package/dist/components/aico-content-card-content2.js.map +1 -1
- package/dist/components/aico-divider-content2.js +5 -2
- package/dist/components/aico-divider-content2.js.map +1 -1
- package/dist/components/aico-document-content2.js +6 -4
- package/dist/components/aico-document-content2.js.map +1 -1
- package/dist/components/aico-faq-content2.js +5 -2
- package/dist/components/aico-faq-content2.js.map +1 -1
- package/dist/components/aico-fetch-article-detail.js +3 -1
- package/dist/components/aico-fetch-article-detail.js.map +1 -1
- package/dist/components/aico-heading-content2.js +6 -3
- package/dist/components/aico-heading-content2.js.map +1 -1
- package/dist/components/aico-html-content2.js +7 -12
- package/dist/components/aico-html-content2.js.map +1 -1
- package/dist/components/aico-link-content2.js +6 -4
- package/dist/components/aico-link-content2.js.map +1 -1
- package/dist/components/aico-news-list-item2.js +1 -1
- package/dist/components/aico-news-list-item2.js.map +1 -1
- package/dist/components/aico-news-list.js +4 -2
- package/dist/components/aico-news-list.js.map +1 -1
- package/dist/components/aico-page-content2.js +7 -5
- package/dist/components/aico-page-content2.js.map +1 -1
- package/dist/components/aico-special-news-carousel.js +4 -2
- package/dist/components/aico-special-news-carousel.js.map +1 -1
- package/dist/components/aico-table-content2.js +10 -7
- package/dist/components/aico-table-content2.js.map +1 -1
- package/dist/components/aico-text-content2.js +9 -10
- package/dist/components/aico-text-content2.js.map +1 -1
- package/dist/components/aico-title-content2.js +7 -4
- package/dist/components/aico-title-content2.js.map +1 -1
- package/dist/components/aico-upload-content2.js +6 -3
- package/dist/components/aico-upload-content2.js.map +1 -1
- package/dist/components/aico-video-content2.js +6 -3
- package/dist/components/aico-video-content2.js.map +1 -1
- package/dist/components/utils.js +10 -4
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/aico-album-content_19.entry.js +76 -53
- package/dist/esm/aico-album-content_19.entry.js.map +1 -1
- package/dist/esm/aico-article-detail.entry.js +18 -17
- package/dist/esm/aico-article-detail.entry.js.map +1 -1
- package/dist/esm/aico-components.js +1 -1
- package/dist/esm/aico-fetch-article-detail.entry.js +3 -2
- package/dist/esm/aico-fetch-article-detail.entry.js.map +1 -1
- package/dist/esm/aico-news-list-item.entry.js +1 -1
- package/dist/esm/aico-news-list-item.entry.js.map +1 -1
- package/dist/esm/aico-news-list.entry.js +4 -3
- package/dist/esm/aico-news-list.entry.js.map +1 -1
- package/dist/esm/aico-no-content_2.entry.js +5 -3
- package/dist/esm/aico-no-content_2.entry.js.map +1 -1
- package/dist/esm/aico-special-news-carousel.entry.js +4 -3
- package/dist/esm/aico-special-news-carousel.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-54ffec33.js → utils-b4eec8e9.js} +11 -5
- package/dist/esm/utils-b4eec8e9.js.map +1 -0
- package/dist/types/components/aico-article-detail/aico-article-detail.d.ts +1 -0
- package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.d.ts +1 -0
- package/dist/types/components/aico-news-list/aico-news-list.d.ts +1 -0
- package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +1 -0
- package/dist/types/components/content/aico-asking-content/aico-asking-content.d.ts +1 -0
- package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.d.ts +1 -0
- package/dist/types/components/content/aico-bullet-content/aico-bullet-content.d.ts +1 -0
- package/dist/types/components/content/aico-carousel-content/aico-carousel-content.d.ts +1 -0
- package/dist/types/components/content/aico-content-card-content/aico-content-card-content.d.ts +1 -0
- package/dist/types/components/content/aico-divider-content/aico-divider-content.d.ts +1 -0
- package/dist/types/components/content/aico-document-content/aico-document-content.d.ts +1 -0
- package/dist/types/components/content/aico-faq-content/aico-faq-content.d.ts +1 -0
- package/dist/types/components/content/aico-heading-content/aico-heading-content.d.ts +1 -0
- package/dist/types/components/content/aico-html-content/aico-html-content.d.ts +1 -0
- package/dist/types/components/content/aico-link-content/aico-link-content.d.ts +1 -0
- package/dist/types/components/content/aico-page-content/aico-page-content.d.ts +1 -0
- package/dist/types/components/content/aico-table-content/aico-table-content.d.ts +1 -0
- package/dist/types/components/content/aico-text-content/aico-text-content.d.ts +1 -0
- package/dist/types/components/content/aico-title-content/aico-title-content.d.ts +1 -0
- package/dist/types/components/content/aico-upload-content/aico-upload-content.d.ts +1 -0
- package/dist/types/components/content/aico-video-content/aico-video-content.d.ts +1 -0
- package/dist/types/components.d.ts +42 -0
- package/dist/types/model/article/content/CarouselContent.d.ts +4 -2
- package/dist/types/utils/utils.d.ts +2 -2
- package/package.json +3 -2
- package/dist/aico-components/p-0ca1f065.entry.js +0 -2
- package/dist/aico-components/p-0ca1f065.entry.js.map +0 -1
- package/dist/aico-components/p-1c4a07ef.entry.js.map +0 -1
- package/dist/aico-components/p-406fa2e5.entry.js +0 -2
- package/dist/aico-components/p-406fa2e5.entry.js.map +0 -1
- package/dist/aico-components/p-4c0f3325.entry.js +0 -2
- package/dist/aico-components/p-4c0f3325.entry.js.map +0 -1
- package/dist/aico-components/p-5109399b.entry.js +0 -2
- package/dist/aico-components/p-5109399b.entry.js.map +0 -1
- package/dist/aico-components/p-6464810e.entry.js +0 -2
- package/dist/aico-components/p-6464810e.entry.js.map +0 -1
- package/dist/aico-components/p-b1f8308f.entry.js +0 -2
- package/dist/aico-components/p-b1f8308f.entry.js.map +0 -1
- package/dist/aico-components/p-dfd3b0d3.js +0 -2
- package/dist/aico-components/p-dfd3b0d3.js.map +0 -1
- package/dist/cjs/utils-095ed22b.js.map +0 -1
- package/dist/esm/utils-54ffec33.js.map +0 -1
|
@@ -2,6 +2,7 @@ import { EventEmitter } from '../../../stencil-public-runtime';
|
|
|
2
2
|
import type { PageContent } from '../../../model/article/content/PageContent';
|
|
3
3
|
export declare class AicoPageContent {
|
|
4
4
|
content: PageContent;
|
|
5
|
+
locale: string;
|
|
5
6
|
pageClicked?: EventEmitter<PageContent>;
|
|
6
7
|
render(): any;
|
|
7
8
|
}
|
|
@@ -55,35 +55,44 @@ export namespace Components {
|
|
|
55
55
|
}
|
|
56
56
|
interface AicoArticleDetail {
|
|
57
57
|
"article": Article;
|
|
58
|
+
"locale": string;
|
|
58
59
|
}
|
|
59
60
|
interface AicoAskingContent {
|
|
60
61
|
"content": AskingContent;
|
|
62
|
+
"locale": string;
|
|
61
63
|
}
|
|
62
64
|
interface AicoAskingListContent {
|
|
63
65
|
}
|
|
64
66
|
interface AicoBlockQuoteContent {
|
|
65
67
|
"content": BlockQuoteContent;
|
|
68
|
+
"locale": string;
|
|
66
69
|
}
|
|
67
70
|
interface AicoBulletContent {
|
|
68
71
|
"content": BulletContent;
|
|
72
|
+
"locale": string;
|
|
69
73
|
}
|
|
70
74
|
interface AicoCarouselContent {
|
|
71
75
|
"content": CarouselContent;
|
|
72
76
|
"hasArrows": boolean;
|
|
77
|
+
"locale": string;
|
|
73
78
|
}
|
|
74
79
|
interface AicoCollectionContent {
|
|
75
80
|
}
|
|
76
81
|
interface AicoContentCardContent {
|
|
77
82
|
"content": CardContent;
|
|
83
|
+
"locale": string;
|
|
78
84
|
}
|
|
79
85
|
interface AicoDividerContent {
|
|
80
86
|
"content": DividerContent;
|
|
87
|
+
"locale": string;
|
|
81
88
|
}
|
|
82
89
|
interface AicoDocumentContent {
|
|
83
90
|
"content": DocumentContent;
|
|
91
|
+
"locale": string;
|
|
84
92
|
}
|
|
85
93
|
interface AicoFaqContent {
|
|
86
94
|
"content": FaqContent;
|
|
95
|
+
"locale": string;
|
|
87
96
|
}
|
|
88
97
|
interface AicoFetchArticleDetail {
|
|
89
98
|
"aicoBearerToken": string;
|
|
@@ -96,15 +105,19 @@ export namespace Components {
|
|
|
96
105
|
* The url handle will be used to fetch the article. If both the {@link AicoFetchArticleDetail#articleId } and {@link AicoFetchArticleDetail#articleUrlHandle } are provided, the latter will be used. If neither are provided, an error is thrown.
|
|
97
106
|
*/
|
|
98
107
|
"articleUrlHandle"?: string;
|
|
108
|
+
"locale": string;
|
|
99
109
|
}
|
|
100
110
|
interface AicoHeadingContent {
|
|
101
111
|
"content": HeadingContent;
|
|
112
|
+
"locale": string;
|
|
102
113
|
}
|
|
103
114
|
interface AicoHtmlContent {
|
|
104
115
|
"content": HtmlContent;
|
|
116
|
+
"locale": string;
|
|
105
117
|
}
|
|
106
118
|
interface AicoLinkContent {
|
|
107
119
|
"content": LinkContent;
|
|
120
|
+
"locale": string;
|
|
108
121
|
}
|
|
109
122
|
interface AicoNewsContent {
|
|
110
123
|
"content": NewsContent;
|
|
@@ -112,6 +125,7 @@ export namespace Components {
|
|
|
112
125
|
interface AicoNewsList {
|
|
113
126
|
"aicoBearerToken": string;
|
|
114
127
|
"aicoUrl": string;
|
|
128
|
+
"newsChannels": string[];
|
|
115
129
|
"nextButtonText": string;
|
|
116
130
|
"previousButtonText": string;
|
|
117
131
|
}
|
|
@@ -122,29 +136,36 @@ export namespace Components {
|
|
|
122
136
|
}
|
|
123
137
|
interface AicoPageContent {
|
|
124
138
|
"content": PageContent;
|
|
139
|
+
"locale": string;
|
|
125
140
|
}
|
|
126
141
|
interface AicoSpecialNewsCarousel {
|
|
127
142
|
"aicoBearerToken": string;
|
|
128
143
|
"aicoUrl": string;
|
|
144
|
+
"newsChannels": string[];
|
|
129
145
|
"numberOfArticles": number;
|
|
130
146
|
}
|
|
131
147
|
interface AicoTableContent {
|
|
132
148
|
"content": TableContent;
|
|
149
|
+
"locale": string;
|
|
133
150
|
}
|
|
134
151
|
interface AicoTestimonialContent {
|
|
135
152
|
"content": TestimonialContent;
|
|
136
153
|
}
|
|
137
154
|
interface AicoTextContent {
|
|
138
155
|
"content": TextContent;
|
|
156
|
+
"locale": string;
|
|
139
157
|
}
|
|
140
158
|
interface AicoTitleContent {
|
|
141
159
|
"content": TitleContent;
|
|
160
|
+
"locale": string;
|
|
142
161
|
}
|
|
143
162
|
interface AicoUploadContent {
|
|
144
163
|
"content": UploadContent;
|
|
164
|
+
"locale": string;
|
|
145
165
|
}
|
|
146
166
|
interface AicoVideoContent {
|
|
147
167
|
"content": VideoContent;
|
|
168
|
+
"locale": string;
|
|
148
169
|
}
|
|
149
170
|
}
|
|
150
171
|
export interface AicoNewsContentCustomEvent<T> extends CustomEvent<T> {
|
|
@@ -428,35 +449,44 @@ declare namespace LocalJSX {
|
|
|
428
449
|
}
|
|
429
450
|
interface AicoArticleDetail {
|
|
430
451
|
"article": Article;
|
|
452
|
+
"locale"?: string;
|
|
431
453
|
}
|
|
432
454
|
interface AicoAskingContent {
|
|
433
455
|
"content": AskingContent;
|
|
456
|
+
"locale"?: string;
|
|
434
457
|
}
|
|
435
458
|
interface AicoAskingListContent {
|
|
436
459
|
}
|
|
437
460
|
interface AicoBlockQuoteContent {
|
|
438
461
|
"content": BlockQuoteContent;
|
|
462
|
+
"locale"?: string;
|
|
439
463
|
}
|
|
440
464
|
interface AicoBulletContent {
|
|
441
465
|
"content": BulletContent;
|
|
466
|
+
"locale"?: string;
|
|
442
467
|
}
|
|
443
468
|
interface AicoCarouselContent {
|
|
444
469
|
"content": CarouselContent;
|
|
445
470
|
"hasArrows"?: boolean;
|
|
471
|
+
"locale"?: string;
|
|
446
472
|
}
|
|
447
473
|
interface AicoCollectionContent {
|
|
448
474
|
}
|
|
449
475
|
interface AicoContentCardContent {
|
|
450
476
|
"content": CardContent;
|
|
477
|
+
"locale"?: string;
|
|
451
478
|
}
|
|
452
479
|
interface AicoDividerContent {
|
|
453
480
|
"content": DividerContent;
|
|
481
|
+
"locale"?: string;
|
|
454
482
|
}
|
|
455
483
|
interface AicoDocumentContent {
|
|
456
484
|
"content": DocumentContent;
|
|
485
|
+
"locale"?: string;
|
|
457
486
|
}
|
|
458
487
|
interface AicoFaqContent {
|
|
459
488
|
"content": FaqContent;
|
|
489
|
+
"locale"?: string;
|
|
460
490
|
}
|
|
461
491
|
interface AicoFetchArticleDetail {
|
|
462
492
|
"aicoBearerToken": string;
|
|
@@ -469,15 +499,19 @@ declare namespace LocalJSX {
|
|
|
469
499
|
* The url handle will be used to fetch the article. If both the {@link AicoFetchArticleDetail#articleId } and {@link AicoFetchArticleDetail#articleUrlHandle } are provided, the latter will be used. If neither are provided, an error is thrown.
|
|
470
500
|
*/
|
|
471
501
|
"articleUrlHandle"?: string;
|
|
502
|
+
"locale"?: string;
|
|
472
503
|
}
|
|
473
504
|
interface AicoHeadingContent {
|
|
474
505
|
"content": HeadingContent;
|
|
506
|
+
"locale"?: string;
|
|
475
507
|
}
|
|
476
508
|
interface AicoHtmlContent {
|
|
477
509
|
"content": HtmlContent;
|
|
510
|
+
"locale"?: string;
|
|
478
511
|
}
|
|
479
512
|
interface AicoLinkContent {
|
|
480
513
|
"content": LinkContent;
|
|
514
|
+
"locale"?: string;
|
|
481
515
|
}
|
|
482
516
|
interface AicoNewsContent {
|
|
483
517
|
"content": NewsContent;
|
|
@@ -486,6 +520,7 @@ declare namespace LocalJSX {
|
|
|
486
520
|
interface AicoNewsList {
|
|
487
521
|
"aicoBearerToken": string;
|
|
488
522
|
"aicoUrl": string;
|
|
523
|
+
"newsChannels"?: string[];
|
|
489
524
|
"nextButtonText"?: string;
|
|
490
525
|
"onArticleClick"?: (event: AicoNewsListCustomEvent<Article>) => void;
|
|
491
526
|
"previousButtonText"?: string;
|
|
@@ -498,31 +533,38 @@ declare namespace LocalJSX {
|
|
|
498
533
|
}
|
|
499
534
|
interface AicoPageContent {
|
|
500
535
|
"content": PageContent;
|
|
536
|
+
"locale"?: string;
|
|
501
537
|
"onPageClicked"?: (event: AicoPageContentCustomEvent<PageContent>) => void;
|
|
502
538
|
}
|
|
503
539
|
interface AicoSpecialNewsCarousel {
|
|
504
540
|
"aicoBearerToken": string;
|
|
505
541
|
"aicoUrl": string;
|
|
542
|
+
"newsChannels"?: string[];
|
|
506
543
|
"numberOfArticles"?: number;
|
|
507
544
|
"onArticleClicked"?: (event: AicoSpecialNewsCarouselCustomEvent<Article>) => void;
|
|
508
545
|
}
|
|
509
546
|
interface AicoTableContent {
|
|
510
547
|
"content": TableContent;
|
|
548
|
+
"locale"?: string;
|
|
511
549
|
}
|
|
512
550
|
interface AicoTestimonialContent {
|
|
513
551
|
"content": TestimonialContent;
|
|
514
552
|
}
|
|
515
553
|
interface AicoTextContent {
|
|
516
554
|
"content": TextContent;
|
|
555
|
+
"locale"?: string;
|
|
517
556
|
}
|
|
518
557
|
interface AicoTitleContent {
|
|
519
558
|
"content": TitleContent;
|
|
559
|
+
"locale"?: string;
|
|
520
560
|
}
|
|
521
561
|
interface AicoUploadContent {
|
|
522
562
|
"content": UploadContent;
|
|
563
|
+
"locale"?: string;
|
|
523
564
|
}
|
|
524
565
|
interface AicoVideoContent {
|
|
525
566
|
"content": VideoContent;
|
|
567
|
+
"locale"?: string;
|
|
526
568
|
}
|
|
527
569
|
interface IntrinsicElements {
|
|
528
570
|
"aico-album-content": AicoAlbumContent;
|
|
@@ -2,8 +2,10 @@ import { Entity } from '../../Entity';
|
|
|
2
2
|
import { Translation } from '../Translation';
|
|
3
3
|
export type CarouselImage = Entity & {
|
|
4
4
|
order: number;
|
|
5
|
-
picture
|
|
6
|
-
translations: Translation
|
|
5
|
+
picture?: string;
|
|
6
|
+
translations: (Translation & {
|
|
7
|
+
picture?: string;
|
|
8
|
+
})[];
|
|
7
9
|
};
|
|
8
10
|
export type CarouselContent = Entity & {
|
|
9
11
|
translations: Translation[];
|
|
@@ -1,8 +1,8 @@
|
|
|
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): Promise<NewsResponse>;
|
|
5
|
-
export declare function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal): Promise<NewsResponse>;
|
|
4
|
+
export declare function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels?: string[]): Promise<NewsResponse>;
|
|
5
|
+
export declare function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels?: string[]): Promise<NewsResponse>;
|
|
6
6
|
export declare function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article>;
|
|
7
7
|
export declare function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article>;
|
|
8
8
|
export declare function fetchArticle(url: string, bearerToken: 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.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"description": "Aiconomy components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
"loader/"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
+
"dev": "npm run stencil & npm run storybook",
|
|
18
19
|
"build": "stencil build --docs",
|
|
19
|
-
"start": "stencil build --dev --watch --serve",
|
|
20
20
|
"test": "stencil test --spec --e2e",
|
|
21
21
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
22
22
|
"generate": "stencil generate",
|
|
23
|
+
"stencil": "stencil build --dev --watch --serve",
|
|
23
24
|
"storybook": "storybook dev -p 6006",
|
|
24
25
|
"build-storybook": "storybook build",
|
|
25
26
|
"deploy-chromatic": "npx chromatic"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-ae20e789.js";import{f as e,a as s}from"./p-dfd3b0d3.js";const r="";const n=class{constructor(i){t(this,i);this.article=undefined;this.aicoUrl=undefined;this.aicoBearerToken=undefined;this.articleId=undefined;this.articleUrlHandle=undefined}connectedCallback(){this.articleFetchController=new AbortController;this.api={baseApi:this.aicoUrl,bearerToken:this.aicoBearerToken}}disconnectedCallback(){this.articleFetchController.abort("disconnected")}async componentWillLoad(){if(!this.articleId&&!this.articleUrlHandle){throw new Error("Either the article id or the url handle must be provided.")}if(this.articleUrlHandle){this.article=await e(this.api,this.articleUrlHandle,this.articleFetchController.signal);return}this.article=await s(this.api,this.articleId,this.articleFetchController.signal)}render(){return i("aico-article-detail",{article:this.article})}};n.style=r;export{n as aico_fetch_article_detail};
|
|
2
|
-
//# sourceMappingURL=p-0ca1f065.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["aicoFetchArticleDetailCss","AicoFetchArticleDetail","connectedCallback","this","articleFetchController","AbortController","api","baseApi","aicoUrl","bearerToken","aicoBearerToken","disconnectedCallback","abort","componentWillLoad","articleId","articleUrlHandle","Error","article","fetchNewsArticleByHandle","signal","fetchNewsArticle","render","h"],"sources":["src/components/aico-fetch-article-detail/aico-fetch-article-detail.css?tag=aico-fetch-article-detail&encapsulation=scoped","src/components/aico-fetch-article-detail/aico-fetch-article-detail.tsx"],"sourcesContent":[null,"import { Component, Prop, State, h } from '@stencil/core';\nimport { fetchNewsArticle, fetchNewsArticleByHandle } from '../../utils/utils';\nimport { Article } from '../../model/Article';\nimport { AicoApiRequestInfo } from '../../model/AicoApiRequestInfo';\n\n@Component({\n tag: 'aico-fetch-article-detail',\n styleUrl: 'aico-fetch-article-detail.css',\n scoped: true,\n})\nexport class AicoFetchArticleDetail {\n @State() article!: Article;\n\n @Prop() aicoUrl!: string;\n\n @Prop() aicoBearerToken!: string;\n\n /**\n * The id will be used to fetch the article.\n *\n * If both the {@link AicoFetchArticleDetail#articleId} and {@link AicoFetchArticleDetail#articleUrlHandle} are\n * provided, the latter will be used. If neither are provided, an error is thrown.\n */\n @Prop() articleId?: string;\n\n /**\n * The url handle will be used to fetch the article.\n *\n * If both the {@link AicoFetchArticleDetail#articleId} and {@link AicoFetchArticleDetail#articleUrlHandle} are\n * provided, the latter will be used. If neither are provided, an error is thrown.\n */\n @Prop() articleUrlHandle?: string;\n\n private api?: AicoApiRequestInfo;\n private articleFetchController?: AbortController;\n\n connectedCallback() {\n this.articleFetchController = new AbortController();\n this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };\n }\n\n disconnectedCallback() {\n this.articleFetchController!.abort('disconnected');\n }\n\n async componentWillLoad(): Promise<void> {\n if (!this.articleId && !this.articleUrlHandle) {\n throw new Error('Either the article id or the url handle must be provided.');\n }\n\n if (this.articleUrlHandle) {\n this.article = await fetchNewsArticleByHandle(this.api!, this.articleUrlHandle, this.articleFetchController!.signal);\n return;\n }\n\n this.article = await fetchNewsArticle(this.api!, this.articleId!, this.articleFetchController!.signal);\n }\n\n render() {\n return <aico-article-detail article={this.article} />;\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAA4B,G,MCUrBC,EAAsB,M,+JA0BjC,iBAAAC,GACEC,KAAKC,uBAAyB,IAAIC,gBAClCF,KAAKG,IAAM,CAAEC,QAASJ,KAAKK,QAASC,YAAaN,KAAKO,gB,CAGxD,oBAAAC,GACER,KAAKC,uBAAwBQ,MAAM,e,CAGrC,uBAAMC,GACJ,IAAKV,KAAKW,YAAcX,KAAKY,iBAAkB,CAC7C,MAAM,IAAIC,MAAM,4D,CAGlB,GAAIb,KAAKY,iBAAkB,CACzBZ,KAAKc,cAAgBC,EAAyBf,KAAKG,IAAMH,KAAKY,iBAAkBZ,KAAKC,uBAAwBe,QAC7G,M,CAGFhB,KAAKc,cAAgBG,EAAiBjB,KAAKG,IAAMH,KAAKW,UAAYX,KAAKC,uBAAwBe,O,CAGjG,MAAAE,GACE,OAAOC,EAAA,uBAAqBL,QAASd,KAAKc,S"}
|