@pronto-tools-and-more/components 12.5.0 → 12.7.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/main.js CHANGED
@@ -169,9 +169,17 @@ var getArticleListDataSource = ({
169
169
  }) => {
170
170
  if (bookmarks) {
171
171
  const dataSource2 = {
172
- data: "$context.bookmarks",
173
- type: "context",
174
- batchSize: 1e6
172
+ type: "content",
173
+ filter: {
174
+ AND: [
175
+ {
176
+ id: {
177
+ operation: "REGEX",
178
+ value: "$functions.bookmarkIdString($context.bookmarkIds)"
179
+ }
180
+ }
181
+ ]
182
+ }
175
183
  };
176
184
  return dataSource2;
177
185
  }
@@ -338,16 +346,24 @@ var BaseBookmarkButton = ({
338
346
  children,
339
347
  className
340
348
  }) => {
341
- const stringifiedInfo = JSON.stringify(info);
342
- const fnString = `globalThis.toggleBookmarkArticle(${stringifiedInfo})`;
349
+ const fnString = `globalThis.toggleBookmarkArticle(this)`;
343
350
  const dataBookmarked = `$functions.isBookmarked(${info.id})`;
344
351
  return /* @__PURE__ */ React.createElement(
345
352
  "button",
346
353
  {
347
354
  className,
348
355
  onClick: fnString,
349
- "data-article-id": info.id,
350
- "data-bookmarked": dataBookmarked
356
+ "data-bookmarked": dataBookmarked,
357
+ "data-bookmark-article-id": info.id,
358
+ "data-bookmark-article-name": info.name,
359
+ "data-bookmark-article-description": info.description,
360
+ "data-bookmark-article-imageSrc": info.imageSrc,
361
+ "data-bookmark-article-slug": info.slug,
362
+ "data-bookmark-article-metadataVideoPodcast": info.metadataVideoPodcast,
363
+ "data-bookmark-article-readTime": info.readTime,
364
+ "data-bookmark-article-publicationDate": info.publicationDate,
365
+ "data-bookmark-article-primaryCategoryId": info.primaryCategoryId,
366
+ "data-bookmark-article-primaryCategoryName": info.primaryCategoryName
351
367
  },
352
368
  ...children
353
369
  );
@@ -987,6 +1003,24 @@ var HighlightedEPaper = ({ ePaperId }) => {
987
1003
  return /* @__PURE__ */ React.createElement("div", { className: "HighlightedEPaper" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
988
1004
  };
989
1005
 
1006
+ // src/parts/Language/Language.ts
1007
+ var Language = {
1008
+ De: "de",
1009
+ En: "en",
1010
+ Fr: "fr",
1011
+ Es: "es",
1012
+ It: "it"
1013
+ };
1014
+
1015
+ // src/parts/LanguageMapping/LanguageMapping.ts
1016
+ var LanguageMapping = {
1017
+ de: "de-de",
1018
+ en: "en-gb",
1019
+ fr: "fr-fr",
1020
+ es: "es-es",
1021
+ it: "it-it"
1022
+ };
1023
+
990
1024
  // src/parts/LanguageRegistry/LanguageRegistry.ts
991
1025
  var createLanguageRegistry = () => {
992
1026
  const languages = /* @__PURE__ */ Object.create(null);
@@ -1661,6 +1695,8 @@ export {
1661
1695
  Heading,
1662
1696
  HighlightedEPaper,
1663
1697
  JsonComponent,
1698
+ Language,
1699
+ LanguageMapping,
1664
1700
  Link,
1665
1701
  Login,
1666
1702
  MaskIcon,
@@ -43,6 +43,8 @@ export * from "../ISearchResultComponent/ISearchResultComponent.tsx";
43
43
  export * from "../ISocialLink/ISocialLink.ts";
44
44
  export * from "../ITagItem/ITagItem.ts";
45
45
  export * from "../JsonComponent/JsonComponent.tsx";
46
+ export * from "../Language/Language.ts";
47
+ export * from "../LanguageMapping/LanguageMapping.ts";
46
48
  export * from "../LanguageRegistry/LanguageRegistry.ts";
47
49
  export * from "../Link/Link.tsx";
48
50
  export * from "../Login/Login.tsx";
@@ -8,9 +8,15 @@ export declare const getArticleListDataSource: ({ properties, authorId, category
8
8
  offset: any;
9
9
  bookmarks: any;
10
10
  }) => {
11
- data: string;
12
11
  type: string;
13
- batchSize: number;
12
+ filter: {
13
+ AND: {
14
+ id: {
15
+ operation: string;
16
+ value: string;
17
+ };
18
+ }[];
19
+ };
14
20
  } | {
15
21
  type: string;
16
22
  filter: {
@@ -8,4 +8,6 @@ export interface IBookmarkInfo {
8
8
  readonly readTime?: string;
9
9
  readonly publicationDate: string;
10
10
  readonly id: string;
11
+ readonly primaryCategoryName?: string;
12
+ readonly primaryCategoryId?: string;
11
13
  }
@@ -0,0 +1,7 @@
1
+ export declare const Language: {
2
+ De: string;
3
+ En: string;
4
+ Fr: string;
5
+ Es: string;
6
+ It: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ export declare const LanguageMapping: {
2
+ de: string;
3
+ en: string;
4
+ fr: string;
5
+ es: string;
6
+ it: string;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "12.5.0",
3
+ "version": "12.7.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",