@ndla/ui 56.0.7-alpha.0 → 56.0.9-alpha.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/es/index.js CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  export { ImageEmbed, getCrop, getFocalPoint, AudioEmbed, H5pEmbed, ExternalEmbed, IframeEmbed, FootnoteEmbed, BrightcoveEmbed, ContentLinkEmbed, RelatedContentEmbed, ConceptEmbed, ConceptListEmbed, UnknownEmbed, InlineConcept, BlockConcept, UuDisclaimerEmbed, CopyrightEmbed, CodeEmbed } from "./Embed";
13
13
  export { LicenseLink, EmbedByline } from "./LicenseByline";
14
- export { ArticleByline, ArticleFootNotes, ArticleWrapper, Article, ArticleParagraph, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleActionWrapper, ArticleTitle, ArticlePadding } from "./Article";
14
+ export { ArticleByline, ArticleBylineAccordionItem, ArticleFootNotes, ArticleWrapper, Article, ArticleParagraph, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleActionWrapper, ArticleTitle, ArticlePadding } from "./Article";
15
15
  export { getPossiblyRelativeUrl } from "./utils/relativeUrl";
16
16
  export { default as ContentLoader } from "./ContentLoader";
17
17
  export { default as RelatedArticleList, RelatedArticle } from "./RelatedArticleList";
package/lib/index.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export { ImageEmbed, getCrop, getFocalPoint, AudioEmbed, H5pEmbed, ExternalEmbed, IframeEmbed, FootnoteEmbed, BrightcoveEmbed, ContentLinkEmbed, RelatedContentEmbed, ConceptEmbed, ConceptListEmbed, UnknownEmbed, InlineConcept, BlockConcept, UuDisclaimerEmbed, CopyrightEmbed, CodeEmbed, } from "./Embed";
9
9
  export { LicenseLink, EmbedByline } from "./LicenseByline";
10
- export { ArticleByline, ArticleFootNotes, ArticleWrapper, Article, ArticleParagraph, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleActionWrapper, ArticleTitle, ArticlePadding, } from "./Article";
10
+ export { ArticleByline, ArticleBylineAccordionItem, ArticleFootNotes, ArticleWrapper, Article, ArticleParagraph, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleActionWrapper, ArticleTitle, ArticlePadding, } from "./Article";
11
11
  export { getPossiblyRelativeUrl } from "./utils/relativeUrl";
12
12
  export { default as ContentLoader } from "./ContentLoader";
13
13
  export { default as RelatedArticleList, RelatedArticle } from "./RelatedArticleList";
package/lib/index.js CHANGED
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "ArticleByline", {
21
21
  return _Article.ArticleByline;
22
22
  }
23
23
  });
24
+ Object.defineProperty(exports, "ArticleBylineAccordionItem", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _Article.ArticleBylineAccordionItem;
28
+ }
29
+ });
24
30
  Object.defineProperty(exports, "ArticleContent", {
25
31
  enumerable: true,
26
32
  get: function () {
package/lib/types.d.ts CHANGED
@@ -6,23 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { ReactNode } from "react";
9
- type ResourceTypes = {
10
- name: string;
11
- };
12
9
  export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
13
- export type Resource = {
14
- id: string;
15
- name: string;
16
- contentUri?: string;
17
- path: string;
18
- primary?: boolean;
19
- rank?: number;
20
- subject?: string;
21
- resourceTypes?: Array<ResourceTypes>;
22
- contentType?: string;
23
- active?: boolean;
24
- additional?: boolean;
25
- };
26
10
  export interface Contributor {
27
11
  type: string;
28
12
  name: string;
@@ -55,9 +39,3 @@ export interface Article {
55
39
  copyright?: Copyright;
56
40
  published: string;
57
41
  }
58
- export interface ContentTypeResultType {
59
- title?: string;
60
- contentType?: string;
61
- resources: Array<Resource>;
62
- }
63
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "56.0.7-alpha.0",
3
+ "version": "56.0.9-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -33,13 +33,13 @@
33
33
  "types"
34
34
  ],
35
35
  "dependencies": {
36
- "@ndla/button": "^15.0.7-alpha.0",
36
+ "@ndla/button": "^15.0.8-alpha.0",
37
37
  "@ndla/core": "^5.0.1",
38
38
  "@ndla/hooks": "^2.1.8",
39
- "@ndla/icons": "^8.0.7-alpha.0",
39
+ "@ndla/icons": "^8.0.8-alpha.0",
40
40
  "@ndla/licenses": "^8.0.0-alpha.0",
41
- "@ndla/primitives": "^1.0.7-alpha.0",
42
- "@ndla/safelink": "^7.0.7-alpha.0",
41
+ "@ndla/primitives": "^1.0.8-alpha.0",
42
+ "@ndla/safelink": "^7.0.8-alpha.0",
43
43
  "@ndla/styled-system": "^0.0.10",
44
44
  "@ndla/typography": "^0.4.23",
45
45
  "@ndla/util": "^4.1.0",
@@ -59,7 +59,7 @@
59
59
  "react-router-dom": "> 6.0.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@ndla/preset-panda": "^0.0.17",
62
+ "@ndla/preset-panda": "^0.0.18",
63
63
  "@ndla/types-backend": "^0.2.86",
64
64
  "@ndla/types-embed": "^5.0.0-alpha.0",
65
65
  "@pandacss/dev": "^0.44.0",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "b27afafa098db57dd1a3b72380969d235a60ee9f"
75
+ "gitHead": "82e30dcff9eca54a9d237421f24d22caf177cd09"
76
76
  }
package/src/index.ts CHANGED
@@ -35,6 +35,7 @@ export { LicenseLink, EmbedByline } from "./LicenseByline";
35
35
 
36
36
  export {
37
37
  ArticleByline,
38
+ ArticleBylineAccordionItem,
38
39
  ArticleFootNotes,
39
40
  ArticleWrapper,
40
41
  Article,
package/src/types.ts CHANGED
@@ -8,26 +8,8 @@
8
8
 
9
9
  import { ReactNode } from "react";
10
10
 
11
- type ResourceTypes = {
12
- name: string;
13
- };
14
-
15
11
  export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
16
12
 
17
- export type Resource = {
18
- id: string;
19
- name: string;
20
- contentUri?: string;
21
- path: string;
22
- primary?: boolean;
23
- rank?: number;
24
- subject?: string;
25
- resourceTypes?: Array<ResourceTypes>;
26
- contentType?: string;
27
- active?: boolean;
28
- additional?: boolean;
29
- };
30
-
31
13
  export interface Contributor {
32
14
  type: string;
33
15
  name: string;
@@ -64,9 +46,3 @@ export interface Article {
64
46
  copyright?: Copyright;
65
47
  published: string;
66
48
  }
67
-
68
- export interface ContentTypeResultType {
69
- title?: string;
70
- contentType?: string;
71
- resources: Array<Resource>;
72
- }