@ndla/ui 56.0.148-alpha.0 → 56.0.149-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/AudioPlayer/AudioPlayer.mjs +5 -6
- package/es/AudioPlayer/AudioPlayer.mjs.map +1 -1
- package/es/AudioPlayer/Controls.mjs +1 -2
- package/es/AudioPlayer/Controls.mjs.map +1 -1
- package/es/AudioPlayer/SpeechControl.mjs +1 -2
- package/es/AudioPlayer/SpeechControl.mjs.map +1 -1
- package/es/Breadcrumb/Breadcrumb.mjs +3 -4
- package/es/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/es/Breadcrumb/BreadcrumbItem.mjs +1 -2
- package/es/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
- package/es/Breadcrumb/HomeBreadcrumb.mjs +3 -4
- package/es/Breadcrumb/HomeBreadcrumb.mjs.map +1 -1
- package/es/CampaignBlock/CampaignBlock.mjs +1 -2
- package/es/CampaignBlock/CampaignBlock.mjs.map +1 -1
- package/es/CodeBlock/CodeBlock.mjs +2 -3
- package/es/CodeBlock/CodeBlock.mjs.map +1 -1
- package/es/Concept/Concept.mjs +7 -7
- package/es/Concept/Concept.mjs.map +1 -1
- package/es/CopyParagraphButton/CopyParagraphButton.mjs +1 -2
- package/es/CopyParagraphButton/CopyParagraphButton.mjs.map +1 -1
- package/es/Embed/AudioEmbed.mjs +6 -7
- package/es/Embed/AudioEmbed.mjs.map +1 -1
- package/es/Embed/BrightcoveEmbed.mjs +3 -4
- package/es/Embed/BrightcoveEmbed.mjs.map +1 -1
- package/es/Embed/CodeEmbed.mjs +5 -6
- package/es/Embed/CodeEmbed.mjs.map +1 -1
- package/es/Embed/ConceptEmbed.mjs +2 -2
- package/es/Embed/ConceptEmbed.mjs.map +1 -1
- package/es/Embed/ContentLinkEmbed.mjs +1 -2
- package/es/Embed/ContentLinkEmbed.mjs.map +1 -1
- package/es/Embed/CopyrightEmbed.mjs +1 -2
- package/es/Embed/CopyrightEmbed.mjs.map +1 -1
- package/es/Embed/EmbedErrorPlaceholder.mjs +1 -2
- package/es/Embed/EmbedErrorPlaceholder.mjs.map +1 -1
- package/es/Embed/ExternalEmbed.mjs +5 -6
- package/es/Embed/ExternalEmbed.mjs.map +1 -1
- package/es/Embed/FootnoteEmbed.mjs +1 -2
- package/es/Embed/FootnoteEmbed.mjs.map +1 -1
- package/es/Embed/GlossEmbed.mjs +5 -5
- package/es/Embed/GlossEmbed.mjs.map +1 -1
- package/es/Embed/H5pEmbed.mjs +3 -4
- package/es/Embed/H5pEmbed.mjs.map +1 -1
- package/es/Embed/IframeEmbed.mjs +5 -6
- package/es/Embed/IframeEmbed.mjs.map +1 -1
- package/es/Embed/ImageEmbed.mjs +3 -4
- package/es/Embed/ImageEmbed.mjs.map +1 -1
- package/es/Embed/RelatedContentEmbed.mjs +1 -2
- package/es/Embed/RelatedContentEmbed.mjs.map +1 -1
- package/es/Embed/UnknownEmbed.mjs +1 -2
- package/es/Embed/UnknownEmbed.mjs.map +1 -1
- package/es/Embed/UuDisclaimerEmbed.mjs +1 -2
- package/es/Embed/UuDisclaimerEmbed.mjs.map +1 -1
- package/es/FactBox/FactBox.mjs +1 -2
- package/es/FactBox/FactBox.mjs.map +1 -1
- package/es/Gloss/Gloss.mjs +5 -6
- package/es/Gloss/Gloss.mjs.map +1 -1
- package/es/Gloss/GlossExample.mjs +1 -2
- package/es/Gloss/GlossExample.mjs.map +1 -1
- package/es/KeyFigure/KeyFigure.mjs +1 -2
- package/es/KeyFigure/KeyFigure.mjs.map +1 -1
- package/es/LinkBlock/LinkBlock.mjs +1 -2
- package/es/LinkBlock/LinkBlock.mjs.map +1 -1
- package/es/LinkBlock/LinkBlockSection.mjs +1 -2
- package/es/LinkBlock/LinkBlockSection.mjs.map +1 -1
- package/es/ResourceBox/ResourceBox.mjs +1 -2
- package/es/ResourceBox/ResourceBox.mjs.map +1 -1
- package/es/index.mjs +31 -27
- package/es/locale/messages-en.mjs +38 -37
- package/es/locale/messages-en.mjs.map +1 -1
- package/es/locale/messages-nb.mjs +38 -37
- package/es/locale/messages-nb.mjs.map +1 -1
- package/es/locale/messages-nn.mjs +38 -37
- package/es/locale/messages-nn.mjs.map +1 -1
- package/es/locale/messages-se.mjs +38 -37
- package/es/locale/messages-se.mjs.map +1 -1
- package/es/model/SubjectCategories.mjs +9 -2
- package/es/model/SubjectCategories.mjs.map +1 -1
- package/es/model/SubjectTypes.mjs +9 -2
- package/es/model/SubjectTypes.mjs.map +1 -1
- package/es/model/WordClass.mjs +1 -1
- package/es/model/index.mjs +2 -3
- package/es/model/index.mjs.map +1 -1
- package/lib/AudioPlayer/AudioPlayer.d.ts +2 -2
- package/lib/AudioPlayer/AudioPlayer.js +3 -4
- package/lib/AudioPlayer/AudioPlayer.js.map +1 -1
- package/lib/AudioPlayer/Controls.d.ts +2 -2
- package/lib/AudioPlayer/Controls.js +1 -2
- package/lib/AudioPlayer/Controls.js.map +1 -1
- package/lib/AudioPlayer/SpeechControl.d.ts +2 -2
- package/lib/AudioPlayer/SpeechControl.js +1 -2
- package/lib/AudioPlayer/SpeechControl.js.map +1 -1
- package/lib/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/Breadcrumb/Breadcrumb.js +2 -3
- package/lib/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/lib/Breadcrumb/BreadcrumbItem.js +1 -2
- package/lib/Breadcrumb/BreadcrumbItem.js.map +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +2 -2
- package/lib/Breadcrumb/HomeBreadcrumb.js +2 -3
- package/lib/Breadcrumb/HomeBreadcrumb.js.map +1 -1
- package/lib/CampaignBlock/CampaignBlock.d.ts +2 -2
- package/lib/CampaignBlock/CampaignBlock.js +1 -2
- package/lib/CampaignBlock/CampaignBlock.js.map +1 -1
- package/lib/CodeBlock/CodeBlock.d.ts +2 -2
- package/lib/CodeBlock/CodeBlock.js +2 -3
- package/lib/CodeBlock/CodeBlock.js.map +1 -1
- package/lib/Concept/Concept.js +2 -2
- package/lib/Concept/Concept.js.map +1 -1
- package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +2 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.js +1 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.js.map +1 -1
- package/lib/Embed/AudioEmbed.d.ts +2 -2
- package/lib/Embed/AudioEmbed.js +4 -5
- package/lib/Embed/AudioEmbed.js.map +1 -1
- package/lib/Embed/BrightcoveEmbed.d.ts +2 -2
- package/lib/Embed/BrightcoveEmbed.js +2 -3
- package/lib/Embed/BrightcoveEmbed.js.map +1 -1
- package/lib/Embed/CodeEmbed.d.ts +2 -2
- package/lib/Embed/CodeEmbed.js +3 -4
- package/lib/Embed/CodeEmbed.js.map +1 -1
- package/lib/Embed/ConceptEmbed.js +1 -1
- package/lib/Embed/ConceptEmbed.js.map +1 -1
- package/lib/Embed/ContentLinkEmbed.d.ts +2 -2
- package/lib/Embed/ContentLinkEmbed.js +1 -2
- package/lib/Embed/ContentLinkEmbed.js.map +1 -1
- package/lib/Embed/CopyrightEmbed.d.ts +2 -2
- package/lib/Embed/CopyrightEmbed.js +1 -2
- package/lib/Embed/CopyrightEmbed.js.map +1 -1
- package/lib/Embed/EmbedErrorPlaceholder.d.ts +2 -2
- package/lib/Embed/EmbedErrorPlaceholder.js +1 -2
- package/lib/Embed/EmbedErrorPlaceholder.js.map +1 -1
- package/lib/Embed/ExternalEmbed.d.ts +2 -2
- package/lib/Embed/ExternalEmbed.js +3 -4
- package/lib/Embed/ExternalEmbed.js.map +1 -1
- package/lib/Embed/FootnoteEmbed.d.ts +2 -2
- package/lib/Embed/FootnoteEmbed.js +1 -2
- package/lib/Embed/FootnoteEmbed.js.map +1 -1
- package/lib/Embed/GlossEmbed.js +3 -3
- package/lib/Embed/GlossEmbed.js.map +1 -1
- package/lib/Embed/H5pEmbed.d.ts +2 -2
- package/lib/Embed/H5pEmbed.js +2 -3
- package/lib/Embed/H5pEmbed.js.map +1 -1
- package/lib/Embed/IframeEmbed.d.ts +2 -2
- package/lib/Embed/IframeEmbed.js +3 -4
- package/lib/Embed/IframeEmbed.js.map +1 -1
- package/lib/Embed/ImageEmbed.d.ts +2 -2
- package/lib/Embed/ImageEmbed.js +2 -3
- package/lib/Embed/ImageEmbed.js.map +1 -1
- package/lib/Embed/RelatedContentEmbed.d.ts +2 -2
- package/lib/Embed/RelatedContentEmbed.js +1 -2
- package/lib/Embed/RelatedContentEmbed.js.map +1 -1
- package/lib/Embed/UnknownEmbed.d.ts +2 -2
- package/lib/Embed/UnknownEmbed.js +1 -2
- package/lib/Embed/UnknownEmbed.js.map +1 -1
- package/lib/Embed/UuDisclaimerEmbed.d.ts +2 -2
- package/lib/Embed/UuDisclaimerEmbed.js +1 -2
- package/lib/Embed/UuDisclaimerEmbed.js.map +1 -1
- package/lib/FactBox/FactBox.d.ts +2 -2
- package/lib/FactBox/FactBox.js +1 -2
- package/lib/FactBox/FactBox.js.map +1 -1
- package/lib/Gloss/Gloss.d.ts +2 -2
- package/lib/Gloss/Gloss.js +3 -4
- package/lib/Gloss/Gloss.js.map +1 -1
- package/lib/Gloss/GlossExample.d.ts +2 -2
- package/lib/Gloss/GlossExample.js +1 -2
- package/lib/Gloss/GlossExample.js.map +1 -1
- package/lib/KeyFigure/KeyFigure.d.ts +1 -2
- package/lib/KeyFigure/KeyFigure.js +1 -2
- package/lib/KeyFigure/KeyFigure.js.map +1 -1
- package/lib/LinkBlock/LinkBlock.d.ts +2 -2
- package/lib/LinkBlock/LinkBlock.js +1 -2
- package/lib/LinkBlock/LinkBlock.js.map +1 -1
- package/lib/LinkBlock/LinkBlockSection.d.ts +2 -2
- package/lib/LinkBlock/LinkBlockSection.js +1 -2
- package/lib/LinkBlock/LinkBlockSection.js.map +1 -1
- package/lib/ResourceBox/ResourceBox.d.ts +1 -1
- package/lib/ResourceBox/ResourceBox.js +0 -2
- package/lib/ResourceBox/ResourceBox.js.map +1 -1
- package/lib/index.d.ts +30 -26
- package/lib/index.js +37 -27
- package/lib/locale/messages-en.d.ts +11 -9
- package/lib/locale/messages-en.js +47 -46
- package/lib/locale/messages-en.js.map +1 -1
- package/lib/locale/messages-nb.d.ts +11 -9
- package/lib/locale/messages-nb.js +47 -46
- package/lib/locale/messages-nb.js.map +1 -1
- package/lib/locale/messages-nn.d.ts +11 -9
- package/lib/locale/messages-nn.js +47 -46
- package/lib/locale/messages-nn.js.map +1 -1
- package/lib/locale/messages-se.d.ts +11 -9
- package/lib/locale/messages-se.js +47 -46
- package/lib/locale/messages-se.js.map +1 -1
- package/lib/model/SubjectCategories.d.ts +6 -0
- package/lib/model/SubjectCategories.js +9 -1
- package/lib/model/SubjectCategories.js.map +1 -1
- package/lib/model/SubjectTypes.d.ts +6 -0
- package/lib/model/SubjectTypes.js +9 -1
- package/lib/model/SubjectTypes.js.map +1 -1
- package/lib/model/WordClass.js +1 -0
- package/lib/model/index.d.ts +1 -2
- package/lib/model/index.js +2 -3
- package/lib/model/index.js.map +1 -1
- package/package.json +8 -8
- package/src/AudioPlayer/AudiPlayer.stories.tsx +1 -1
- package/src/AudioPlayer/AudioPlayer.tsx +3 -5
- package/src/AudioPlayer/Controls.tsx +1 -3
- package/src/AudioPlayer/SpeechControl.tsx +1 -3
- package/src/Breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/src/Breadcrumb/Breadcrumb.tsx +2 -4
- package/src/Breadcrumb/BreadcrumbItem.tsx +1 -3
- package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +1 -1
- package/src/Breadcrumb/HomeBreadcrumb.tsx +2 -4
- package/src/CampaignBlock/CampaignBlock.stories.tsx +1 -1
- package/src/CampaignBlock/CampaignBlock.tsx +1 -3
- package/src/CodeBlock/CodeBlock.stories.tsx +1 -1
- package/src/CodeBlock/CodeBlock.tsx +1 -3
- package/src/Concept/Concept.tsx +5 -5
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +1 -3
- package/src/Embed/AudioEmbed.stories.tsx +1 -1
- package/src/Embed/AudioEmbed.tsx +3 -5
- package/src/Embed/BrightcoveEmbed.stories.tsx +1 -1
- package/src/Embed/BrightcoveEmbed.tsx +2 -4
- package/src/Embed/CodeEmbed.stories.tsx +1 -1
- package/src/Embed/CodeEmbed.tsx +3 -5
- package/src/Embed/ConceptEmbed.tsx +1 -1
- package/src/Embed/ContentLinkEmbed.tsx +1 -3
- package/src/Embed/CopyrightEmbed.tsx +1 -3
- package/src/Embed/EmbedErrorPlaceholder.tsx +1 -3
- package/src/Embed/ExternalEmbed.stories.tsx +1 -1
- package/src/Embed/ExternalEmbed.tsx +3 -4
- package/src/Embed/FootnoteEmbed.stories.tsx +1 -1
- package/src/Embed/FootnoteEmbed.tsx +1 -3
- package/src/Embed/GlossEmbed.tsx +2 -2
- package/src/Embed/H5pEmbed.stories.tsx +1 -1
- package/src/Embed/H5pEmbed.tsx +2 -4
- package/src/Embed/IframeEmbed.stories.tsx +1 -1
- package/src/Embed/IframeEmbed.tsx +3 -5
- package/src/Embed/ImageEmbed.stories.tsx +1 -1
- package/src/Embed/ImageEmbed.tsx +2 -4
- package/src/Embed/RelatedContentEmbed.stories.tsx +1 -1
- package/src/Embed/RelatedContentEmbed.tsx +1 -3
- package/src/Embed/UnknownEmbed.tsx +1 -3
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +5 -5
- package/src/Embed/UuDisclaimerEmbed.tsx +1 -3
- package/src/FactBox/FactBox.tsx +1 -3
- package/src/FactBox/Factbox.stories.tsx +1 -1
- package/src/Gloss/Gloss.stories.tsx +2 -2
- package/src/Gloss/Gloss.tsx +3 -5
- package/src/Gloss/GlossExample.tsx +1 -3
- package/src/KeyFigure/KeyFigure.stories.tsx +1 -1
- package/src/KeyFigure/KeyFigure.tsx +1 -3
- package/src/LinkBlock/LinkBlock.stories.tsx +2 -2
- package/src/LinkBlock/LinkBlock.tsx +1 -3
- package/src/LinkBlock/LinkBlockSection.tsx +1 -3
- package/src/ResourceBox/ResourceBox.tsx +0 -2
- package/src/index.ts +30 -26
- package/src/locale/messages-en.ts +38 -38
- package/src/locale/messages-nb.ts +38 -38
- package/src/locale/messages-nn.ts +38 -38
- package/src/locale/messages-se.ts +38 -38
- package/src/model/SubjectCategories.ts +7 -0
- package/src/model/SubjectTypes.ts +7 -0
- package/src/model/index.ts +1 -3
|
@@ -10,5 +10,5 @@ interface Props {
|
|
|
10
10
|
examples: IGlossExampleDTO[];
|
|
11
11
|
originalLanguage: string | undefined;
|
|
12
12
|
}
|
|
13
|
-
declare const GlossExample: ({ examples, originalLanguage }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export
|
|
13
|
+
export declare const GlossExample: ({ examples, originalLanguage }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -44,8 +44,7 @@ const GlossExample = ({ examples, originalLanguage }) => {
|
|
|
44
44
|
}) })
|
|
45
45
|
] }, index)) });
|
|
46
46
|
};
|
|
47
|
-
var GlossExample_default = GlossExample;
|
|
48
47
|
|
|
49
48
|
//#endregion
|
|
50
|
-
exports.
|
|
49
|
+
exports.GlossExample = GlossExample;
|
|
51
50
|
//# sourceMappingURL=GlossExample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlossExample.js","names":["Text","Fragment","examples"],"sources":["../../src/Gloss/GlossExample.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Fragment } from \"react\";\nimport { Text } from \"@ndla/primitives\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { IGlossExampleDTO } from \"@ndla/types-backend/concept-api\";\n\ninterface Props {\n examples: IGlossExampleDTO[];\n originalLanguage: string | undefined;\n}\n\nconst StyledGlossExample = styled(\"div\", {\n base: {\n borderTop: \"1px solid\",\n borderColor: \"stroke.subtle\",\n paddingBlock: \"xsmall\",\n paddingInline: \"medium\",\n _first: {\n background: \"surface.brand.1.subtle\",\n borderColor: \"stroke.default\",\n \"& p\": {\n fontWeight: \"bold\",\n },\n },\n },\n});\n\nconst PinyinText = styled(Text, {\n base: {\n fontStyle: \"italic\",\n },\n});\n\
|
|
1
|
+
{"version":3,"file":"GlossExample.js","names":["Text","Fragment","examples"],"sources":["../../src/Gloss/GlossExample.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Fragment } from \"react\";\nimport { Text } from \"@ndla/primitives\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { IGlossExampleDTO } from \"@ndla/types-backend/concept-api\";\n\ninterface Props {\n examples: IGlossExampleDTO[];\n originalLanguage: string | undefined;\n}\n\nconst StyledGlossExample = styled(\"div\", {\n base: {\n borderTop: \"1px solid\",\n borderColor: \"stroke.subtle\",\n paddingBlock: \"xsmall\",\n paddingInline: \"medium\",\n _first: {\n background: \"surface.brand.1.subtle\",\n borderColor: \"stroke.default\",\n \"& p\": {\n fontWeight: \"bold\",\n },\n },\n },\n});\n\nconst PinyinText = styled(Text, {\n base: {\n fontStyle: \"italic\",\n },\n});\n\nexport const GlossExample = ({ examples, originalLanguage }: Props) => {\n return (\n <div>\n {examples.map((examples, index) => (\n <Fragment key={index}>\n <StyledGlossExample lang={examples.language}>\n <Text textStyle=\"label.medium\" lang={examples.language}>\n {examples.example}\n </Text>\n </StyledGlossExample>\n {!!examples.transcriptions.pinyin && (\n <StyledGlossExample>\n <PinyinText data-pinyin=\"\" lang={originalLanguage} textStyle=\"label.medium\">\n {examples.transcriptions?.pinyin}\n </PinyinText>\n </StyledGlossExample>\n )}\n {!!examples.transcriptions?.traditional && (\n <StyledGlossExample>\n <Text textStyle=\"label.medium\" lang={originalLanguage}>\n {examples.transcriptions.traditional}\n </Text>\n </StyledGlossExample>\n )}\n </Fragment>\n ))}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;AAkBA,MAAM,0DAA4B,OAAO,EACvC,MAAM;CACJ,WAAW;CACX,aAAa;CACb,cAAc;CACd,eAAe;CACf,QAAQ;EACN,YAAY;EACZ,aAAa;EACb,OAAO,EACL,YAAY,QACb;EACF;CACF,EACF,CAAC;AAEF,MAAM,kDAAoBA,wBAAM,EAC9B,MAAM,EACJ,WAAW,UACZ,EACF,CAAC;AAEF,MAAa,gBAAgB,EAAE,UAAU,uBAA8B;AACrE,QACE,2CAAC,mBACE,SAAS,KAAK,YAAU,UACvB,4CAACC;EACC,2CAAC;GAAmB,MAAMC,WAAS;aACjC,2CAACF;IAAK,WAAU;IAAe,MAAME,WAAS;cAC3CA,WAAS;KACL;IACY;EACpB,CAAC,CAACA,WAAS,eAAe,UACzB,2CAAC,gCACC,2CAAC;GAAW,eAAY;GAAG,MAAM;GAAkB,WAAU;aAC1DA,WAAS,gBAAgB;IACf,GACM;EAEtB,CAAC,CAACA,WAAS,gBAAgB,eAC1B,2CAAC,gCACC,2CAACF;GAAK,WAAU;GAAe,MAAM;aAClCE,WAAS,eAAe;IACpB,GACY;MAlBV,MAoBJ,CACX,GACE"}
|
|
@@ -13,5 +13,4 @@ export interface Props {
|
|
|
13
13
|
title: string;
|
|
14
14
|
subtitle: string;
|
|
15
15
|
}
|
|
16
|
-
declare const KeyFigure: ({ image, title, subtitle }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export default KeyFigure;
|
|
16
|
+
export declare const KeyFigure: ({ image, title, subtitle }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyFigure.js","names":[],"sources":["../../src/KeyFigure/KeyFigure.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport parse from \"html-react-parser\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\nconst ContentWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: \"xsmall\",\n\n \"&:not(:has(> img))\": {\n paddingBlock: \"xxlarge\",\n },\n },\n});\n\nconst StyledImage = styled(\"img\", {\n base: {\n height: \"surface.3xsmall\",\n width: \"surface.3xsmall\",\n borderRadius: \"xsmall\",\n },\n});\n\nconst TitleWrapper = styled(\"div\", {\n base: {\n textStyle: \"heading.large\",\n textAlign: \"center\",\n },\n});\n\nconst SubTitleWrapper = styled(\"div\", {\n base: {\n textStyle: \"title.medium\",\n textAlign: \"center\",\n },\n});\n\nexport interface Props {\n image?: {\n src?: string;\n alt?: string;\n };\n title: string;\n subtitle: string;\n}\n\
|
|
1
|
+
{"version":3,"file":"KeyFigure.js","names":[],"sources":["../../src/KeyFigure/KeyFigure.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport parse from \"html-react-parser\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\nconst ContentWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: \"xsmall\",\n\n \"&:not(:has(> img))\": {\n paddingBlock: \"xxlarge\",\n },\n },\n});\n\nconst StyledImage = styled(\"img\", {\n base: {\n height: \"surface.3xsmall\",\n width: \"surface.3xsmall\",\n borderRadius: \"xsmall\",\n },\n});\n\nconst TitleWrapper = styled(\"div\", {\n base: {\n textStyle: \"heading.large\",\n textAlign: \"center\",\n },\n});\n\nconst SubTitleWrapper = styled(\"div\", {\n base: {\n textStyle: \"title.medium\",\n textAlign: \"center\",\n },\n});\n\nexport interface Props {\n image?: {\n src?: string;\n alt?: string;\n };\n title: string;\n subtitle: string;\n}\n\nexport const KeyFigure = ({ image, title, subtitle }: Props) => {\n return (\n <ContentWrapper data-embed-type=\"key-figure\">\n {!!image && <StyledImage src={`${image?.src}?width=150`} width={150} height={150} alt={image?.alt} />}\n <TitleWrapper>{parse(title)}</TitleWrapper>\n <SubTitleWrapper>{parse(subtitle)}</SubTitleWrapper>\n </ContentWrapper>\n );\n};\n"],"mappings":";;;;;;;;;AAWA,MAAM,sDAAwB,OAAO,EACnC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,YAAY;CACZ,gBAAgB;CAChB,KAAK;CAEL,sBAAsB,EACpB,cAAc,WACf;CACF,EACF,CAAC;AAEF,MAAM,mDAAqB,OAAO,EAChC,MAAM;CACJ,QAAQ;CACR,OAAO;CACP,cAAc;CACf,EACF,CAAC;AAEF,MAAM,oDAAsB,OAAO,EACjC,MAAM;CACJ,WAAW;CACX,WAAW;CACZ,EACF,CAAC;AAEF,MAAM,uDAAyB,OAAO,EACpC,MAAM;CACJ,WAAW;CACX,WAAW;CACZ,EACF,CAAC;AAWF,MAAa,aAAa,EAAE,OAAO,OAAO,eAAsB;AAC9D,QACE,4CAAC;EAAe,mBAAgB;;GAC7B,CAAC,CAAC,SAAS,2CAAC;IAAY,KAAK,GAAG,OAAO,IAAI;IAAa,OAAO;IAAK,QAAQ;IAAK,KAAK,OAAO;KAAO;GACrG,2CAAC,yDAAoB,MAAM,GAAgB;GAC3C,2CAAC,4DAAuB,SAAS,GAAmB;;GACrC"}
|
|
@@ -10,5 +10,5 @@ interface Props extends Omit<LinkBlockEmbedData, "resource"> {
|
|
|
10
10
|
path?: string;
|
|
11
11
|
articleLanguage?: string;
|
|
12
12
|
}
|
|
13
|
-
declare const LinkBlock: ({ title, articleLanguage, date, url, path }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export
|
|
13
|
+
export declare const LinkBlock: ({ title, articleLanguage, date, url, path }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -75,8 +75,7 @@ const LinkBlock = ({ title, articleLanguage, date, url, path }) => {
|
|
|
75
75
|
}), !!date && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledDateContainer, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledCalendarEd, {}), formattedDate] })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ndla_icons.ArrowRightLine, { "data-forward": true })]
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
|
-
var LinkBlock_default = LinkBlock;
|
|
79
78
|
|
|
80
79
|
//#endregion
|
|
81
|
-
exports.
|
|
80
|
+
exports.LinkBlock = LinkBlock;
|
|
82
81
|
//# sourceMappingURL=LinkBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkBlock.js","names":["SafeLink","CalendarLine","getPossiblyRelativeUrl","Heading","ArrowRightLine"],"sources":["../../src/LinkBlock/LinkBlock.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport parse from \"html-react-parser\";\nimport { useMemo } from \"react\";\nimport { ArrowRightLine, CalendarLine } from \"@ndla/icons\";\nimport { Heading } from \"@ndla/primitives\";\nimport { SafeLink } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { LinkBlockEmbedData } from \"@ndla/types-embed\";\nimport { getPossiblyRelativeUrl } from \"../utils/relativeUrl\";\n\nconst InfoWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xsmall\",\n },\n});\n\nconst StyledSafeLink = styled(SafeLink, {\n base: {\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n background: \"surface.default\",\n padding: \"medium\",\n border: \"1px solid\",\n borderColor: \"stroke.subtle\",\n borderRadius: \"xsmall\",\n \"& h3\": {\n textDecoration: \"underline\",\n },\n \"& [data-forward]\": {\n transitionProperty: \"width, height\",\n transitionTimingFunction: \"ease-in-out\",\n transitionDuration: \"fast\",\n },\n _hover: {\n \"& h3\": {\n textDecoration: \"none\",\n },\n \"& [data-forward]\": {\n width: \"large\",\n height: \"large\",\n },\n },\n },\n});\n\nconst StyledDateContainer = styled(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"xxsmall\",\n },\n});\n\nconst StyledCalendarEd = styled(CalendarLine, {\n base: {\n color: \"icon.strong\",\n },\n});\n\ninterface Props extends Omit<LinkBlockEmbedData, \"resource\"> {\n path?: string;\n articleLanguage?: string;\n}\n\
|
|
1
|
+
{"version":3,"file":"LinkBlock.js","names":["SafeLink","CalendarLine","getPossiblyRelativeUrl","Heading","ArrowRightLine"],"sources":["../../src/LinkBlock/LinkBlock.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport parse from \"html-react-parser\";\nimport { useMemo } from \"react\";\nimport { ArrowRightLine, CalendarLine } from \"@ndla/icons\";\nimport { Heading } from \"@ndla/primitives\";\nimport { SafeLink } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { LinkBlockEmbedData } from \"@ndla/types-embed\";\nimport { getPossiblyRelativeUrl } from \"../utils/relativeUrl\";\n\nconst InfoWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xsmall\",\n },\n});\n\nconst StyledSafeLink = styled(SafeLink, {\n base: {\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n background: \"surface.default\",\n padding: \"medium\",\n border: \"1px solid\",\n borderColor: \"stroke.subtle\",\n borderRadius: \"xsmall\",\n \"& h3\": {\n textDecoration: \"underline\",\n },\n \"& [data-forward]\": {\n transitionProperty: \"width, height\",\n transitionTimingFunction: \"ease-in-out\",\n transitionDuration: \"fast\",\n },\n _hover: {\n \"& h3\": {\n textDecoration: \"none\",\n },\n \"& [data-forward]\": {\n width: \"large\",\n height: \"large\",\n },\n },\n },\n});\n\nconst StyledDateContainer = styled(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"xxsmall\",\n },\n});\n\nconst StyledCalendarEd = styled(CalendarLine, {\n base: {\n color: \"icon.strong\",\n },\n});\n\ninterface Props extends Omit<LinkBlockEmbedData, \"resource\"> {\n path?: string;\n articleLanguage?: string;\n}\n\nexport const LinkBlock = ({ title, articleLanguage, date, url, path }: Props) => {\n const href = getPossiblyRelativeUrl(url, path);\n const formattedDate = useMemo(() => {\n if (!date) return null;\n return new Intl.DateTimeFormat(articleLanguage, {\n timeZone: \"CET\",\n day: \"2-digit\",\n month: \"long\",\n year: \"numeric\",\n }).format(new Date(date));\n }, [date, articleLanguage]);\n return (\n <StyledSafeLink to={href} data-embed-type=\"link-block\">\n <InfoWrapper>\n <Heading asChild consumeCss textStyle=\"title.medium\">\n <h3 data-heading>{parse(title)}</h3>\n </Heading>\n {!!date && (\n <StyledDateContainer>\n <StyledCalendarEd />\n {formattedDate}\n </StyledDateContainer>\n )}\n </InfoWrapper>\n <ArrowRightLine data-forward />\n </StyledSafeLink>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,MAAM,mDAAqB,OAAO,EAChC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACN,EACF,CAAC;AAEF,MAAM,sDAAwBA,0BAAU,EACtC,MAAM;CACJ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,aAAa;CACb,cAAc;CACd,QAAQ,EACN,gBAAgB,aACjB;CACD,oBAAoB;EAClB,oBAAoB;EACpB,0BAA0B;EAC1B,oBAAoB;EACrB;CACD,QAAQ;EACN,QAAQ,EACN,gBAAgB,QACjB;EACD,oBAAoB;GAClB,OAAO;GACP,QAAQ;GACT;EACF;CACF,EACF,CAAC;AAEF,MAAM,2DAA6B,OAAO,EACxC,MAAM;CACJ,SAAS;CACT,YAAY;CACZ,KAAK;CACN,EACF,CAAC;AAEF,MAAM,wDAA0BC,2BAAc,EAC5C,MAAM,EACJ,OAAO,eACR,EACF,CAAC;AAOF,MAAa,aAAa,EAAE,OAAO,iBAAiB,MAAM,KAAK,WAAkB;CAC/E,MAAM,OAAOC,2CAAuB,KAAK,KAAK;CAC9C,MAAM,yCAA8B;AAClC,MAAI,CAAC,KAAM,QAAO;AAClB,SAAO,IAAI,KAAK,eAAe,iBAAiB;GAC9C,UAAU;GACV,KAAK;GACL,OAAO;GACP,MAAM;GACP,CAAC,CAAC,OAAO,IAAI,KAAK,KAAK,CAAC;IACxB,CAAC,MAAM,gBAAgB,CAAC;AAC3B,QACE,4CAAC;EAAe,IAAI;EAAM,mBAAgB;aACxC,4CAAC,0BACC,2CAACC;GAAQ;GAAQ;GAAW,WAAU;aACpC,2CAAC;IAAG;6CAAoB,MAAM;KAAM;IAC5B,EACT,CAAC,CAAC,QACD,4CAAC,kCACC,2CAAC,qBAAmB,EACnB,iBACmB,IAEZ,EACd,2CAACC,+BAAe,uBAAe;GAChB"}
|
|
@@ -9,5 +9,5 @@ import { type HTMLAttributes, type ReactNode } from "react";
|
|
|
9
9
|
interface Props extends HTMLAttributes<HTMLElement> {
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
declare const LinkBlockSection: ({ children, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export
|
|
12
|
+
export declare const LinkBlockSection: ({ children, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -20,8 +20,7 @@ const LinkBlockSection = ({ children,...rest }) => {
|
|
|
20
20
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledList, { children: react.Children.map(children, (child) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: child })) })
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
var LinkBlockSection_default = LinkBlockSection;
|
|
24
23
|
|
|
25
24
|
//#endregion
|
|
26
|
-
exports.
|
|
25
|
+
exports.LinkBlockSection = LinkBlockSection;
|
|
27
26
|
//# sourceMappingURL=LinkBlockSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkBlockSection.js","names":["Children"],"sources":["../../src/LinkBlock/LinkBlockSection.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Children, type HTMLAttributes, type ReactNode } from \"react\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\ninterface Props extends HTMLAttributes<HTMLElement> {\n children: ReactNode;\n}\n\nconst StyledList = styled(\"ul\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xsmall\",\n listStyle: \"none\",\n },\n});\n\
|
|
1
|
+
{"version":3,"file":"LinkBlockSection.js","names":["Children"],"sources":["../../src/LinkBlock/LinkBlockSection.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Children, type HTMLAttributes, type ReactNode } from \"react\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\ninterface Props extends HTMLAttributes<HTMLElement> {\n children: ReactNode;\n}\n\nconst StyledList = styled(\"ul\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xsmall\",\n listStyle: \"none\",\n },\n});\n\nexport const LinkBlockSection = ({ children, ...rest }: Props) => {\n return (\n <nav {...rest} data-embed-type=\"link-block-list\">\n <StyledList>\n {Children.map(children, (child) => (\n <li>{child}</li>\n ))}\n </StyledList>\n </nav>\n );\n};\n"],"mappings":";;;;;;;;;AAeA,MAAM,kDAAoB,MAAM,EAC9B,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACL,WAAW;CACZ,EACF,CAAC;AAEF,MAAa,oBAAoB,EAAE,SAAU,GAAG,WAAkB;AAChE,QACE,2CAAC;EAAI,GAAI;EAAM,mBAAgB;YAC7B,2CAAC,wBACEA,eAAS,IAAI,WAAW,UACvB,2CAAC,kBAAI,QAAW,CAChB,GACS;GACT"}
|
|
@@ -74,9 +74,7 @@ const ResourceBox = ({ image, title, caption, url, buttonText }) => {
|
|
|
74
74
|
})
|
|
75
75
|
] })] });
|
|
76
76
|
};
|
|
77
|
-
var ResourceBox_default = ResourceBox;
|
|
78
77
|
|
|
79
78
|
//#endregion
|
|
80
79
|
exports.ResourceBox = ResourceBox;
|
|
81
|
-
exports.default = ResourceBox_default;
|
|
82
80
|
//# sourceMappingURL=ResourceBox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceBox.js","names":["Image","Text","breakpoints","Heading","SafeLinkButton","ShareBoxLine"],"sources":["../../src/ResourceBox/ResourceBox.tsx"],"sourcesContent":["/**\n * Copyright (c) 2022-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { breakpoints } from \"@ndla/core\";\nimport { ShareBoxLine } from \"@ndla/icons\";\nimport { Heading, Image, Text } from \"@ndla/primitives\";\nimport { SafeLinkButton } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\nconst Container = styled(\"div\", {\n base: {\n display: \"flex\",\n padding: \"medium\",\n borderRadius: \"xsmall\",\n border: \"1px solid\",\n borderColor: \"stroke.default\",\n boxShadow: \"full\",\n marginBlockEnd: \"medium\",\n gap: \"medium\",\n tabletWideDown: {\n padding: \"xsmall\",\n },\n tabletDown: {\n flexDirection: \"column\",\n gap: \"0\",\n padding: \"0\",\n },\n },\n});\n\nconst ContentWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n gap: \"xsmall\",\n flex: \"1\",\n tabletDown: {\n padding: \"xsmall\",\n },\n },\n});\n\nconst StyledImage = styled(Image, {\n base: {\n objectFit: \"cover\",\n borderRadius: \"xsmall\",\n width: \"fit-content\",\n aspectRatio: \"1/1\",\n tabletDown: {\n width: \"100%\",\n borderRadius: \"0\",\n },\n },\n});\n\nconst StyledText = styled(Text, {\n base: {\n flex: \"1\",\n },\n});\n\ninterface ImageMeta {\n src: string | undefined;\n alt: string;\n}\n\ninterface Props {\n image?: ImageMeta;\n title: string;\n caption: string;\n url: string;\n buttonText: string;\n}\n\nexport const ResourceBox = ({ image, title, caption, url, buttonText }: Props) => {\n return (\n <Container>\n {image ? (\n <StyledImage\n src={image.src}\n alt={image.alt}\n sizes={`(min-width: ${breakpoints.desktop}) 150px, (max-width: ${breakpoints.tablet} ) 400px, 200px`}\n variant=\"rounded\"\n />\n ) : null}\n <ContentWrapper>\n <Heading textStyle=\"label.large\" fontWeight=\"bold\" asChild consumeCss>\n <h3>{title}</h3>\n </Heading>\n <StyledText textStyle=\"body.medium\">{caption}</StyledText>\n <SafeLinkButton to={url} target=\"_blank\" variant=\"secondary\">\n {buttonText}\n <ShareBoxLine />\n </SafeLinkButton>\n </ContentWrapper>\n </Container>\n );\n};\n
|
|
1
|
+
{"version":3,"file":"ResourceBox.js","names":["Image","Text","breakpoints","Heading","SafeLinkButton","ShareBoxLine"],"sources":["../../src/ResourceBox/ResourceBox.tsx"],"sourcesContent":["/**\n * Copyright (c) 2022-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { breakpoints } from \"@ndla/core\";\nimport { ShareBoxLine } from \"@ndla/icons\";\nimport { Heading, Image, Text } from \"@ndla/primitives\";\nimport { SafeLinkButton } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\nconst Container = styled(\"div\", {\n base: {\n display: \"flex\",\n padding: \"medium\",\n borderRadius: \"xsmall\",\n border: \"1px solid\",\n borderColor: \"stroke.default\",\n boxShadow: \"full\",\n marginBlockEnd: \"medium\",\n gap: \"medium\",\n tabletWideDown: {\n padding: \"xsmall\",\n },\n tabletDown: {\n flexDirection: \"column\",\n gap: \"0\",\n padding: \"0\",\n },\n },\n});\n\nconst ContentWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n gap: \"xsmall\",\n flex: \"1\",\n tabletDown: {\n padding: \"xsmall\",\n },\n },\n});\n\nconst StyledImage = styled(Image, {\n base: {\n objectFit: \"cover\",\n borderRadius: \"xsmall\",\n width: \"fit-content\",\n aspectRatio: \"1/1\",\n tabletDown: {\n width: \"100%\",\n borderRadius: \"0\",\n },\n },\n});\n\nconst StyledText = styled(Text, {\n base: {\n flex: \"1\",\n },\n});\n\ninterface ImageMeta {\n src: string | undefined;\n alt: string;\n}\n\ninterface Props {\n image?: ImageMeta;\n title: string;\n caption: string;\n url: string;\n buttonText: string;\n}\n\nexport const ResourceBox = ({ image, title, caption, url, buttonText }: Props) => {\n return (\n <Container>\n {image ? (\n <StyledImage\n src={image.src}\n alt={image.alt}\n sizes={`(min-width: ${breakpoints.desktop}) 150px, (max-width: ${breakpoints.tablet} ) 400px, 200px`}\n variant=\"rounded\"\n />\n ) : null}\n <ContentWrapper>\n <Heading textStyle=\"label.large\" fontWeight=\"bold\" asChild consumeCss>\n <h3>{title}</h3>\n </Heading>\n <StyledText textStyle=\"body.medium\">{caption}</StyledText>\n <SafeLinkButton to={url} target=\"_blank\" variant=\"secondary\">\n {buttonText}\n <ShareBoxLine />\n </SafeLinkButton>\n </ContentWrapper>\n </Container>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,iDAAmB,OAAO,EAC9B,MAAM;CACJ,SAAS;CACT,SAAS;CACT,cAAc;CACd,QAAQ;CACR,aAAa;CACb,WAAW;CACX,gBAAgB;CAChB,KAAK;CACL,gBAAgB,EACd,SAAS,UACV;CACD,YAAY;EACV,eAAe;EACf,KAAK;EACL,SAAS;EACV;CACF,EACF,CAAC;AAEF,MAAM,sDAAwB,OAAO,EACnC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,YAAY;CACZ,KAAK;CACL,MAAM;CACN,YAAY,EACV,SAAS,UACV;CACF,EACF,CAAC;AAEF,MAAM,mDAAqBA,yBAAO,EAChC,MAAM;CACJ,WAAW;CACX,cAAc;CACd,OAAO;CACP,aAAa;CACb,YAAY;EACV,OAAO;EACP,cAAc;EACf;CACF,EACF,CAAC;AAEF,MAAM,kDAAoBC,wBAAM,EAC9B,MAAM,EACJ,MAAM,KACP,EACF,CAAC;AAeF,MAAa,eAAe,EAAE,OAAO,OAAO,SAAS,KAAK,iBAAwB;AAChF,QACE,4CAAC,wBACE,QACC,2CAAC;EACC,KAAK,MAAM;EACX,KAAK,MAAM;EACX,OAAO,eAAeC,wBAAY,QAAQ,uBAAuBA,wBAAY,OAAO;EACpF,SAAQ;GACR,GACA,MACJ,4CAAC;EACC,2CAACC;GAAQ,WAAU;GAAc,YAAW;GAAO;GAAQ;aACzD,2CAAC,kBAAI,QAAW;IACR;EACV,2CAAC;GAAW,WAAU;aAAe;IAAqB;EAC1D,4CAACC;GAAe,IAAI;GAAK,QAAO;GAAS,SAAQ;cAC9C,YACD,2CAACC,8BAAe;IACD;KACF,IACP"}
|
package/lib/index.d.ts
CHANGED
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
export { Concept } from "./Concept/Concept";
|
|
9
|
-
export {
|
|
9
|
+
export { ImageEmbed, getCrop, getFocalPoint } from "./Embed/ImageEmbed";
|
|
10
10
|
export { InlineTriggerButton } from "./Embed/InlineTriggerButton";
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
11
|
+
export { AudioEmbed } from "./Embed/AudioEmbed";
|
|
12
|
+
export { H5pEmbed } from "./Embed/H5pEmbed";
|
|
13
|
+
export { ExternalEmbed } from "./Embed/ExternalEmbed";
|
|
14
|
+
export { IframeEmbed } from "./Embed/IframeEmbed";
|
|
15
|
+
export { FootnoteEmbed } from "./Embed/FootnoteEmbed";
|
|
16
|
+
export { BrightcoveEmbed } from "./Embed/BrightcoveEmbed";
|
|
17
|
+
export { ContentLinkEmbed } from "./Embed/ContentLinkEmbed";
|
|
18
|
+
export { RelatedContentEmbed } from "./Embed/RelatedContentEmbed";
|
|
19
19
|
export { ConceptEmbed, InlineConcept, BlockConcept } from "./Embed/ConceptEmbed";
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
20
|
+
export { UnknownEmbed } from "./Embed/UnknownEmbed";
|
|
21
|
+
export { UuDisclaimerEmbed } from "./Embed/UuDisclaimerEmbed";
|
|
22
|
+
export { CopyrightEmbed } from "./Embed/CopyrightEmbed";
|
|
23
|
+
export { CodeEmbed } from "./Embed/CodeEmbed";
|
|
24
24
|
export { ConceptInlineTriggerButton } from "./Embed/ConceptInlineTriggerButton";
|
|
25
25
|
export { EmbedWrapper } from "./Embed/EmbedWrapper";
|
|
26
26
|
export type { EmbedWrapperVariantProps, EmbedWrapperProps } from "./Embed/EmbedWrapper";
|
|
@@ -35,38 +35,42 @@ export { RelatedArticleList, RelatedArticle } from "./RelatedArticleList/Related
|
|
|
35
35
|
export { FileListEmbed, FileListItem, FileListWrapper } from "./FileList/FileList";
|
|
36
36
|
export { File, FileListElement } from "./FileList/File";
|
|
37
37
|
export { PdfFile } from "./FileList/PdfFile";
|
|
38
|
-
export {
|
|
38
|
+
export { FactBox } from "./FactBox/FactBox";
|
|
39
39
|
export { ResourceBox } from "./ResourceBox/ResourceBox";
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
40
|
+
export { AudioPlayer } from "./AudioPlayer/AudioPlayer";
|
|
41
|
+
export { constants } from "./model";
|
|
42
|
+
export { contentTypes, contentTypeMapping, resourceEmbedTypeMapping } from "./model/ContentType";
|
|
43
|
+
export { subjectTypes } from "./model/SubjectTypes";
|
|
44
|
+
export { wordClass } from "./model/WordClass";
|
|
45
|
+
export { subjectCategories } from "./model/SubjectCategories";
|
|
42
46
|
export { default as messagesNB } from "./locale/messages-nb";
|
|
43
47
|
export { default as messagesNN } from "./locale/messages-nn";
|
|
44
48
|
export { default as messagesEN } from "./locale/messages-en";
|
|
45
49
|
export { default as messagesSE } from "./locale/messages-se";
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
50
|
+
export { Breadcrumb } from "./Breadcrumb/Breadcrumb";
|
|
51
|
+
export { HomeBreadcrumb } from "./Breadcrumb/HomeBreadcrumb";
|
|
48
52
|
export type { SimpleBreadcrumbItem, IndexedBreadcrumbItem } from "./Breadcrumb/BreadcrumbItem";
|
|
49
53
|
export { formatNestedMessages } from "./i18n/formatNestedMessages";
|
|
50
54
|
export { useTagsInputTranslations, useTagSelectorTranslations, useComboboxTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, useVideoSearchTranslations, useDatePickerTranslations, } from "./i18n/useComponentTranslations";
|
|
51
55
|
export type { ContentTypeBadgeProps, StrictContentType, ContentType } from "./ContentTypeBadge/ContentTypeBadge";
|
|
52
56
|
export { ContentTypeBadge, contentTypeToBadgeVariantMap } from "./ContentTypeBadge/ContentTypeBadge";
|
|
53
|
-
export {
|
|
57
|
+
export { CopyParagraphButton } from "./CopyParagraphButton/CopyParagraphButton";
|
|
54
58
|
export type { TagSelectorControlProps, TagSelectorInputProps, TagSelectorRootProps } from "./TagSelector/TagSelector";
|
|
55
59
|
export { TagSelectorRoot, TagSelectorLabel, TagSelectorItemInput, TagSelectorTrigger, TagSelectorControl, TagSelectorClearTrigger, TagSelectorInputBase, TagSelectorInput, } from "./TagSelector/TagSelector";
|
|
56
60
|
export { Pitch } from "./Pitch/Pitch";
|
|
57
|
-
export {
|
|
61
|
+
export { KeyFigure } from "./KeyFigure/KeyFigure";
|
|
58
62
|
export { ContactBlock, contactBlockBackgrounds } from "./ContactBlock/ContactBlock";
|
|
59
63
|
export type { ContactBlockBackground } from "./ContactBlock/ContactBlock";
|
|
60
|
-
export {
|
|
64
|
+
export { CampaignBlock } from "./CampaignBlock/CampaignBlock";
|
|
61
65
|
export { Grid } from "./Grid/Grid";
|
|
62
66
|
export { GridParallaxItem } from "./Grid/GridParallaxItem";
|
|
63
67
|
export type { GridProps as GridType } from "./Grid/Grid";
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
+
export { Gloss } from "./Gloss/Gloss";
|
|
69
|
+
export { GlossExample } from "./Gloss/GlossExample";
|
|
70
|
+
export { LinkBlock } from "./LinkBlock/LinkBlock";
|
|
71
|
+
export { LinkBlockSection } from "./LinkBlock/LinkBlockSection";
|
|
68
72
|
export type { Article as ArticleType, HeadingLevel } from "./types";
|
|
69
|
-
export {
|
|
73
|
+
export { CodeBlock } from "./CodeBlock/CodeBlock";
|
|
70
74
|
export { codeLanguageOptions } from "./CodeBlock/codeLanguageOptions";
|
|
71
75
|
export { ZendeskButton } from "./ZendeskButton/ZendeskButton";
|
|
72
76
|
export type { ZendeskButtonProps } from "./ZendeskButton/ZendeskButton";
|
package/lib/index.js
CHANGED
|
@@ -13,6 +13,7 @@ const require_AudioPlayer = require('./AudioPlayer/AudioPlayer.js');
|
|
|
13
13
|
const require_AudioEmbed = require('./Embed/AudioEmbed.js');
|
|
14
14
|
const require_FootnoteEmbed = require('./Embed/FootnoteEmbed.js');
|
|
15
15
|
const require_ContentLinkEmbed = require('./Embed/ContentLinkEmbed.js');
|
|
16
|
+
const require_ContentType = require('./model/ContentType.js');
|
|
16
17
|
const require_ContentTypeBadge = require('./ContentTypeBadge/ContentTypeBadge.js');
|
|
17
18
|
const require_RelatedArticleList = require('./RelatedArticleList/RelatedArticleList.js');
|
|
18
19
|
const require_RelatedContentEmbed = require('./Embed/RelatedContentEmbed.js');
|
|
@@ -35,6 +36,9 @@ const require_FileList = require('./FileList/FileList.js');
|
|
|
35
36
|
const require_File = require('./FileList/File.js');
|
|
36
37
|
const require_PdfFile = require('./FileList/PdfFile.js');
|
|
37
38
|
const require_FactBox = require('./FactBox/FactBox.js');
|
|
39
|
+
const require_SubjectCategories = require('./model/SubjectCategories.js');
|
|
40
|
+
const require_SubjectTypes = require('./model/SubjectTypes.js');
|
|
41
|
+
const require_WordClass = require('./model/WordClass.js');
|
|
38
42
|
const require_index = require('./model/index.js');
|
|
39
43
|
const require_messages_nb = require('./locale/messages-nb.js');
|
|
40
44
|
const require_messages_nn = require('./locale/messages-nn.js');
|
|
@@ -66,51 +70,51 @@ exports.ArticleHGroup = require_Article.ArticleHGroup;
|
|
|
66
70
|
exports.ArticleHeader = require_Article.ArticleHeader;
|
|
67
71
|
exports.ArticleTitle = require_Article.ArticleTitle;
|
|
68
72
|
exports.ArticleWrapper = require_Article.ArticleWrapper;
|
|
69
|
-
exports.AudioEmbed = require_AudioEmbed.
|
|
70
|
-
exports.AudioPlayer = require_AudioPlayer.
|
|
73
|
+
exports.AudioEmbed = require_AudioEmbed.AudioEmbed;
|
|
74
|
+
exports.AudioPlayer = require_AudioPlayer.AudioPlayer;
|
|
71
75
|
exports.BlockConcept = require_ConceptEmbed.BlockConcept;
|
|
72
|
-
exports.Breadcrumb = require_Breadcrumb.
|
|
73
|
-
exports.BrightcoveEmbed = require_BrightcoveEmbed.
|
|
74
|
-
exports.CampaignBlock = require_CampaignBlock.
|
|
75
|
-
exports.CodeBlock = require_CodeBlock.
|
|
76
|
-
exports.CodeEmbed = require_CodeEmbed.
|
|
76
|
+
exports.Breadcrumb = require_Breadcrumb.Breadcrumb;
|
|
77
|
+
exports.BrightcoveEmbed = require_BrightcoveEmbed.BrightcoveEmbed;
|
|
78
|
+
exports.CampaignBlock = require_CampaignBlock.CampaignBlock;
|
|
79
|
+
exports.CodeBlock = require_CodeBlock.CodeBlock;
|
|
80
|
+
exports.CodeEmbed = require_CodeEmbed.CodeEmbed;
|
|
77
81
|
exports.Concept = require_Concept.Concept;
|
|
78
82
|
exports.ConceptEmbed = require_ConceptEmbed.ConceptEmbed;
|
|
79
83
|
exports.ConceptInlineTriggerButton = require_ConceptInlineTriggerButton.ConceptInlineTriggerButton;
|
|
80
84
|
exports.ContactBlock = require_ContactBlock.ContactBlock;
|
|
81
|
-
exports.ContentLinkEmbed = require_ContentLinkEmbed.
|
|
85
|
+
exports.ContentLinkEmbed = require_ContentLinkEmbed.ContentLinkEmbed;
|
|
82
86
|
exports.ContentTypeBadge = require_ContentTypeBadge.ContentTypeBadge;
|
|
83
|
-
exports.CopyParagraphButton = require_CopyParagraphButton.
|
|
84
|
-
exports.CopyrightEmbed = require_CopyrightEmbed.
|
|
87
|
+
exports.CopyParagraphButton = require_CopyParagraphButton.CopyParagraphButton;
|
|
88
|
+
exports.CopyrightEmbed = require_CopyrightEmbed.CopyrightEmbed;
|
|
85
89
|
exports.EmbedByline = require_EmbedByline.EmbedByline;
|
|
86
90
|
exports.EmbedWrapper = require_EmbedWrapper.EmbedWrapper;
|
|
87
|
-
exports.ExternalEmbed = require_ExternalEmbed.
|
|
88
|
-
exports.FactBox = require_FactBox.
|
|
91
|
+
exports.ExternalEmbed = require_ExternalEmbed.ExternalEmbed;
|
|
92
|
+
exports.FactBox = require_FactBox.FactBox;
|
|
89
93
|
exports.File = require_File.File;
|
|
90
94
|
exports.FileListElement = require_File.FileListElement;
|
|
91
95
|
exports.FileListEmbed = require_FileList.FileListEmbed;
|
|
92
96
|
exports.FileListItem = require_FileList.FileListItem;
|
|
93
97
|
exports.FileListWrapper = require_FileList.FileListWrapper;
|
|
94
|
-
exports.FootnoteEmbed = require_FootnoteEmbed.
|
|
95
|
-
exports.Gloss = require_Gloss.
|
|
96
|
-
exports.GlossExample = require_GlossExample.
|
|
98
|
+
exports.FootnoteEmbed = require_FootnoteEmbed.FootnoteEmbed;
|
|
99
|
+
exports.Gloss = require_Gloss.Gloss;
|
|
100
|
+
exports.GlossExample = require_GlossExample.GlossExample;
|
|
97
101
|
exports.Grid = require_Grid.Grid;
|
|
98
102
|
exports.GridParallaxItem = require_GridParallaxItem.GridParallaxItem;
|
|
99
|
-
exports.H5pEmbed = require_H5pEmbed.
|
|
100
|
-
exports.HomeBreadcrumb = require_HomeBreadcrumb.
|
|
101
|
-
exports.IframeEmbed = require_IframeEmbed.
|
|
102
|
-
exports.ImageEmbed = require_ImageEmbed.
|
|
103
|
+
exports.H5pEmbed = require_H5pEmbed.H5pEmbed;
|
|
104
|
+
exports.HomeBreadcrumb = require_HomeBreadcrumb.HomeBreadcrumb;
|
|
105
|
+
exports.IframeEmbed = require_IframeEmbed.IframeEmbed;
|
|
106
|
+
exports.ImageEmbed = require_ImageEmbed.ImageEmbed;
|
|
103
107
|
exports.InlineConcept = require_ConceptEmbed.InlineConcept;
|
|
104
108
|
exports.InlineTriggerButton = require_InlineTriggerButton.InlineTriggerButton;
|
|
105
|
-
exports.KeyFigure = require_KeyFigure.
|
|
109
|
+
exports.KeyFigure = require_KeyFigure.KeyFigure;
|
|
106
110
|
exports.LicenseLink = require_LicenseLink.LicenseLink;
|
|
107
|
-
exports.LinkBlock = require_LinkBlock.
|
|
108
|
-
exports.LinkBlockSection = require_LinkBlockSection.
|
|
111
|
+
exports.LinkBlock = require_LinkBlock.LinkBlock;
|
|
112
|
+
exports.LinkBlockSection = require_LinkBlockSection.LinkBlockSection;
|
|
109
113
|
exports.PdfFile = require_PdfFile.PdfFile;
|
|
110
114
|
exports.Pitch = require_Pitch.Pitch;
|
|
111
115
|
exports.RelatedArticle = require_RelatedArticleList.RelatedArticle;
|
|
112
116
|
exports.RelatedArticleList = require_RelatedArticleList.RelatedArticleList;
|
|
113
|
-
exports.RelatedContentEmbed = require_RelatedContentEmbed.
|
|
117
|
+
exports.RelatedContentEmbed = require_RelatedContentEmbed.RelatedContentEmbed;
|
|
114
118
|
exports.ResourceBox = require_ResourceBox.ResourceBox;
|
|
115
119
|
exports.TagSelectorClearTrigger = require_TagSelector.TagSelectorClearTrigger;
|
|
116
120
|
exports.TagSelectorControl = require_TagSelector.TagSelectorControl;
|
|
@@ -120,13 +124,15 @@ exports.TagSelectorItemInput = require_TagSelector.TagSelectorItemInput;
|
|
|
120
124
|
exports.TagSelectorLabel = require_TagSelector.TagSelectorLabel;
|
|
121
125
|
exports.TagSelectorRoot = require_TagSelector.TagSelectorRoot;
|
|
122
126
|
exports.TagSelectorTrigger = require_TagSelector.TagSelectorTrigger;
|
|
123
|
-
exports.UnknownEmbed = require_UnknownEmbed.
|
|
124
|
-
exports.UuDisclaimerEmbed = require_UuDisclaimerEmbed.
|
|
127
|
+
exports.UnknownEmbed = require_UnknownEmbed.UnknownEmbed;
|
|
128
|
+
exports.UuDisclaimerEmbed = require_UuDisclaimerEmbed.UuDisclaimerEmbed;
|
|
125
129
|
exports.ZendeskButton = require_ZendeskButton.ZendeskButton;
|
|
126
130
|
exports.codeLanguageOptions = require_codeLanguageOptions.codeLanguageOptions;
|
|
127
|
-
exports.constants = require_index.
|
|
131
|
+
exports.constants = require_index.constants;
|
|
128
132
|
exports.contactBlockBackgrounds = require_ContactBlock.contactBlockBackgrounds;
|
|
133
|
+
exports.contentTypeMapping = require_ContentType.contentTypeMapping;
|
|
129
134
|
exports.contentTypeToBadgeVariantMap = require_ContentTypeBadge.contentTypeToBadgeVariantMap;
|
|
135
|
+
exports.contentTypes = require_ContentType.contentTypes;
|
|
130
136
|
exports.formatNestedMessages = require_formatNestedMessages.formatNestedMessages;
|
|
131
137
|
exports.getCrop = require_ImageEmbed.getCrop;
|
|
132
138
|
exports.getFocalPoint = require_ImageEmbed.getFocalPoint;
|
|
@@ -136,6 +142,9 @@ exports.messagesEN = require_messages_en.default;
|
|
|
136
142
|
exports.messagesNB = require_messages_nb.default;
|
|
137
143
|
exports.messagesNN = require_messages_nn.default;
|
|
138
144
|
exports.messagesSE = require_messages_se.default;
|
|
145
|
+
exports.resourceEmbedTypeMapping = require_ContentType.resourceEmbedTypeMapping;
|
|
146
|
+
exports.subjectCategories = require_SubjectCategories.subjectCategories;
|
|
147
|
+
exports.subjectTypes = require_SubjectTypes.subjectTypes;
|
|
139
148
|
exports.useAudioSearchTranslations = require_useComponentTranslations.useAudioSearchTranslations;
|
|
140
149
|
exports.useComboboxTranslations = require_useComponentTranslations.useComboboxTranslations;
|
|
141
150
|
exports.useDatePickerTranslations = require_useComponentTranslations.useDatePickerTranslations;
|
|
@@ -143,4 +152,5 @@ exports.useImageSearchTranslations = require_useComponentTranslations.useImageSe
|
|
|
143
152
|
exports.usePaginationTranslations = require_useComponentTranslations.usePaginationTranslations;
|
|
144
153
|
exports.useTagSelectorTranslations = require_useComponentTranslations.useTagSelectorTranslations;
|
|
145
154
|
exports.useTagsInputTranslations = require_useComponentTranslations.useTagsInputTranslations;
|
|
146
|
-
exports.useVideoSearchTranslations = require_useComponentTranslations.useVideoSearchTranslations;
|
|
155
|
+
exports.useVideoSearchTranslations = require_useComponentTranslations.useVideoSearchTranslations;
|
|
156
|
+
exports.wordClass = require_WordClass.wordClass;
|
|
@@ -5,20 +5,22 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
+
import { subjectCategories } from "../model/SubjectCategories";
|
|
9
|
+
import { subjectTypes } from "../model/SubjectTypes";
|
|
8
10
|
declare const messages: {
|
|
9
11
|
askNDLA: string;
|
|
10
12
|
subjectCategories: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
[subjectCategories.ACTIVE_SUBJECTS]: string;
|
|
14
|
+
[subjectCategories.ARCHIVE_SUBJECTS]: string;
|
|
15
|
+
[subjectCategories.BETA_SUBJECTS]: string;
|
|
16
|
+
[subjectCategories.OTHER]: string;
|
|
17
|
+
[subjectTypes.RESOURCE_COLLECTION]: string;
|
|
16
18
|
};
|
|
17
19
|
subjectTypes: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
[subjectTypes.ARCHIVE_SUBJECT]: string;
|
|
21
|
+
[subjectTypes.BETA_SUBJECT]: string;
|
|
22
|
+
[subjectTypes.RESOURCE_COLLECTION]: string;
|
|
23
|
+
[subjectTypes.SUBJECT]: string;
|
|
22
24
|
};
|
|
23
25
|
meta: {
|
|
24
26
|
description: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
-
const
|
|
2
|
+
const require_SubjectCategories = require('../model/SubjectCategories.js');
|
|
3
|
+
const require_SubjectTypes = require('../model/SubjectTypes.js');
|
|
4
|
+
const require_WordClass = require('../model/WordClass.js');
|
|
3
5
|
let __ndla_licenses = require("@ndla/licenses");
|
|
4
6
|
__ndla_licenses = require_rolldown_runtime.__toESM(__ndla_licenses);
|
|
5
7
|
|
|
6
8
|
//#region src/locale/messages-en.ts
|
|
7
|
-
const { subjectCategories, subjectTypes, wordClass } = require_index.default;
|
|
8
9
|
const messages = {
|
|
9
10
|
...Object.entries(__ndla_licenses.contributorTypes).reduce((acc, curr) => {
|
|
10
11
|
acc[curr[0]] = curr[1].en;
|
|
@@ -12,17 +13,17 @@ const messages = {
|
|
|
12
13
|
}, {}),
|
|
13
14
|
askNDLA: "Ask NDLA",
|
|
14
15
|
subjectCategories: {
|
|
15
|
-
[subjectCategories.ACTIVE_SUBJECTS]: "Active",
|
|
16
|
-
[subjectCategories.ARCHIVE_SUBJECTS]: "Expired",
|
|
17
|
-
[subjectCategories.BETA_SUBJECTS]: "Revised",
|
|
18
|
-
[subjectCategories.OTHER]: "Other resources",
|
|
19
|
-
[subjectTypes.RESOURCE_COLLECTION]: "Resource collections"
|
|
16
|
+
[require_SubjectCategories.subjectCategories.ACTIVE_SUBJECTS]: "Active",
|
|
17
|
+
[require_SubjectCategories.subjectCategories.ARCHIVE_SUBJECTS]: "Expired",
|
|
18
|
+
[require_SubjectCategories.subjectCategories.BETA_SUBJECTS]: "Revised",
|
|
19
|
+
[require_SubjectCategories.subjectCategories.OTHER]: "Other resources",
|
|
20
|
+
[require_SubjectTypes.subjectTypes.RESOURCE_COLLECTION]: "Resource collections"
|
|
20
21
|
},
|
|
21
22
|
subjectTypes: {
|
|
22
|
-
[subjectTypes.ARCHIVE_SUBJECT]: "Archive subject",
|
|
23
|
-
[subjectTypes.BETA_SUBJECT]: "Beta subject",
|
|
24
|
-
[subjectTypes.RESOURCE_COLLECTION]: "Resource collection",
|
|
25
|
-
[subjectTypes.SUBJECT]: "Subject"
|
|
23
|
+
[require_SubjectTypes.subjectTypes.ARCHIVE_SUBJECT]: "Archive subject",
|
|
24
|
+
[require_SubjectTypes.subjectTypes.BETA_SUBJECT]: "Beta subject",
|
|
25
|
+
[require_SubjectTypes.subjectTypes.RESOURCE_COLLECTION]: "Resource collection",
|
|
26
|
+
[require_SubjectTypes.subjectTypes.SUBJECT]: "Subject"
|
|
26
27
|
},
|
|
27
28
|
meta: {
|
|
28
29
|
description: "Norwegian Digital Learning Arena, Open Educational Resources for upper secondary education.",
|
|
@@ -301,41 +302,41 @@ const messages = {
|
|
|
301
302
|
}
|
|
302
303
|
},
|
|
303
304
|
wordClass: {
|
|
304
|
-
[
|
|
305
|
-
[
|
|
306
|
-
[
|
|
307
|
-
[
|
|
308
|
-
[
|
|
309
|
-
[
|
|
310
|
-
[
|
|
311
|
-
[
|
|
312
|
-
[
|
|
313
|
-
[
|
|
314
|
-
[
|
|
315
|
-
[
|
|
316
|
-
[
|
|
317
|
-
[
|
|
318
|
-
[
|
|
319
|
-
[
|
|
320
|
-
[
|
|
321
|
-
[
|
|
322
|
-
[
|
|
323
|
-
[
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
[
|
|
328
|
-
[
|
|
329
|
-
[
|
|
330
|
-
[
|
|
331
|
-
[
|
|
332
|
-
[
|
|
333
|
-
[
|
|
334
|
-
[
|
|
335
|
-
[
|
|
336
|
-
[
|
|
337
|
-
[
|
|
338
|
-
[
|
|
305
|
+
[require_WordClass.wordClass.adjective]: "Adjective",
|
|
306
|
+
[require_WordClass.wordClass.adverb]: "Adverb",
|
|
307
|
+
[require_WordClass.wordClass.properNoun]: "Proper Noun",
|
|
308
|
+
[require_WordClass.wordClass.auxiliary]: "Auxiliary",
|
|
309
|
+
[require_WordClass.wordClass.complement]: "Complement",
|
|
310
|
+
[require_WordClass.wordClass.conjunction]: "Conjunction",
|
|
311
|
+
[require_WordClass.wordClass.coverb]: "Coverb",
|
|
312
|
+
[require_WordClass.wordClass.determiner]: "Determiner",
|
|
313
|
+
[require_WordClass.wordClass.interjection]: "Interjection",
|
|
314
|
+
[require_WordClass.wordClass.quantifier]: "Quantifier",
|
|
315
|
+
[require_WordClass.wordClass.marker]: "Marker",
|
|
316
|
+
[require_WordClass.wordClass.modalVerb]: "Modal Verb",
|
|
317
|
+
[require_WordClass.wordClass.measureWord]: "Measure Word",
|
|
318
|
+
[require_WordClass.wordClass.noun]: "Noun",
|
|
319
|
+
[require_WordClass.wordClass["noun-zh"]]: "Noun",
|
|
320
|
+
[require_WordClass.wordClass.nounPhrase]: "Noun Phrase",
|
|
321
|
+
[require_WordClass.wordClass.onomatopoeia]: "Onomatopoeia",
|
|
322
|
+
[require_WordClass.wordClass.particle]: "Particle",
|
|
323
|
+
[require_WordClass.wordClass.demonstrative]: "Demonstrative",
|
|
324
|
+
[require_WordClass.wordClass.personalPronoun]: "Personal Pronoun",
|
|
325
|
+
[require_WordClass.wordClass.preposition]: "Preposition",
|
|
326
|
+
[require_WordClass.wordClass.pronoun]: "Pronoun",
|
|
327
|
+
[require_WordClass.wordClass.questionWord]: "Question Word",
|
|
328
|
+
[require_WordClass.wordClass.locationWord]: "Location Word",
|
|
329
|
+
[require_WordClass.wordClass.suffix]: "Suffix",
|
|
330
|
+
[require_WordClass.wordClass.numeral]: "Numeral",
|
|
331
|
+
[require_WordClass.wordClass.timeWord]: "Time word",
|
|
332
|
+
[require_WordClass.wordClass.timeExpression]: "Time Expression",
|
|
333
|
+
[require_WordClass.wordClass.stativeVerb]: "Stative Verb",
|
|
334
|
+
[require_WordClass.wordClass.subordinatingConjunction]: "Subordinating Conjunction",
|
|
335
|
+
[require_WordClass.wordClass.exclamationWord]: "Exclamation Word",
|
|
336
|
+
[require_WordClass.wordClass.expression]: "Expression",
|
|
337
|
+
[require_WordClass.wordClass.verb]: "Verb",
|
|
338
|
+
[require_WordClass.wordClass.verbComplement]: "Verb-Complement",
|
|
339
|
+
[require_WordClass.wordClass.verbObject]: "Verb-Object"
|
|
339
340
|
},
|
|
340
341
|
login: "Log in",
|
|
341
342
|
component: {
|