@ndla/ui 55.0.14-alpha.0 → 55.0.16-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/dist/panda.buildinfo.json +40 -13
- package/dist/styles.css +160 -54
- package/es/Article/ArticleByline.js +81 -48
- package/es/Article/ArticleFootNotes.js +31 -19
- package/es/AudioPlayer/AudioPlayer.js +1 -0
- package/es/Concept/Concept.js +2 -2
- package/es/ContactBlock/ContactBlock.js +17 -17
- package/es/ContentTypeBadge/ContentTypeBadgeNew.js +1 -0
- package/es/Embed/BrightcoveEmbed.js +0 -1
- package/es/Embed/CopyrightEmbed.js +1 -2
- package/es/FrontpageArticle/FrontpageArticle.js +1 -2
- package/es/LicenseByline/EmbedByline.js +143 -33
- package/es/LicenseByline/LicenseLink.js +16 -9
- package/es/LicenseByline/index.js +2 -2
- package/es/index.js +0 -2
- package/es/model/ContentType.js +3 -1
- package/es/styles.css +160 -54
- package/lib/Article/ArticleByline.d.ts +1 -3
- package/lib/Article/ArticleByline.js +84 -51
- package/lib/Article/ArticleFootNotes.js +31 -20
- package/lib/AudioPlayer/AudioPlayer.js +1 -0
- package/lib/Concept/Concept.js +1 -1
- package/lib/ContactBlock/ContactBlock.js +18 -18
- package/lib/ContentTypeBadge/ContentTypeBadgeNew.d.ts +1 -2
- package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +1 -0
- package/lib/Embed/BrightcoveEmbed.js +0 -1
- package/lib/Embed/CopyrightEmbed.js +1 -2
- package/lib/FrontpageArticle/FrontpageArticle.js +1 -2
- package/lib/LicenseByline/EmbedByline.d.ts +2 -4
- package/lib/LicenseByline/EmbedByline.js +145 -35
- package/lib/LicenseByline/LicenseLink.d.ts +2 -2
- package/lib/LicenseByline/LicenseLink.js +16 -9
- package/lib/LicenseByline/index.d.ts +2 -2
- package/lib/LicenseByline/index.js +4 -5
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -20
- package/lib/model/ContentType.d.ts +1 -0
- package/lib/model/ContentType.js +4 -2
- package/lib/styles.css +160 -54
- package/package.json +5 -6
- package/src/Article/ArticleByline.tsx +83 -70
- package/src/Article/ArticleFootNotes.tsx +32 -36
- package/src/AudioPlayer/AudioPlayer.tsx +1 -0
- package/src/Concept/Concept.tsx +2 -2
- package/src/ContactBlock/ContactBlock.tsx +1 -1
- package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +3 -1
- package/src/Embed/BrightcoveEmbed.tsx +1 -1
- package/src/Embed/CopyrightEmbed.tsx +1 -1
- package/src/FrontpageArticle/FrontpageArticle.tsx +1 -1
- package/src/LicenseByline/EmbedByline.stories.tsx +9 -4
- package/src/LicenseByline/EmbedByline.tsx +139 -53
- package/src/LicenseByline/LicenseLink.tsx +15 -15
- package/src/LicenseByline/index.tsx +2 -2
- package/src/index.ts +0 -3
- package/src/model/ContentType.ts +2 -0
- package/es/CreatedBy/CreatedBy.js +0 -73
- package/es/CreatedBy/index.js +0 -10
- package/es/LicenseByline/LicenseDescription.js +0 -63
- package/es/List/OrderedList.js +0 -41
- package/es/List/UnOrderedList.js +0 -28
- package/es/List/index.js +0 -10
- package/lib/CreatedBy/CreatedBy.d.ts +0 -15
- package/lib/CreatedBy/CreatedBy.js +0 -78
- package/lib/CreatedBy/index.d.ts +0 -9
- package/lib/CreatedBy/index.js +0 -16
- package/lib/LicenseByline/LicenseDescription.d.ts +0 -15
- package/lib/LicenseByline/LicenseDescription.js +0 -70
- package/lib/List/OrderedList.d.ts +0 -16
- package/lib/List/OrderedList.js +0 -48
- package/lib/List/UnOrderedList.d.ts +0 -10
- package/lib/List/UnOrderedList.js +0 -35
- package/lib/List/index.d.ts +0 -9
- package/lib/List/index.js +0 -20
- package/src/CreatedBy/CreatedBy.stories.tsx +0 -36
- package/src/CreatedBy/CreatedBy.tsx +0 -63
- package/src/CreatedBy/index.ts +0 -11
- package/src/LicenseByline/LicenseDescription.tsx +0 -100
- package/src/List/OrderedList.stories.tsx +0 -135
- package/src/List/OrderedList.tsx +0 -158
- package/src/List/UnOrderedList.tsx +0 -43
- package/src/List/UnorderedList.stories.tsx +0 -72
- package/src/List/index.ts +0 -10
|
@@ -11,7 +11,6 @@ import * as contentTypes from "../model/ContentType";
|
|
|
11
11
|
export interface ContentTypeBadgeProps extends Omit<BadgeProps, "colorTheme"> {
|
|
12
12
|
contentType: ContentType | undefined;
|
|
13
13
|
}
|
|
14
|
-
type ContentType = typeof contentTypes.SUBJECT_MATERIAL | typeof contentTypes.TASKS_AND_ACTIVITIES | typeof contentTypes.ASSESSMENT_RESOURCES | typeof contentTypes.SUBJECT | typeof contentTypes.SOURCE_MATERIAL | typeof contentTypes.LEARNING_PATH | typeof contentTypes.TOPIC | typeof contentTypes.MULTIDISCIPLINARY_TOPIC | typeof contentTypes.CONCEPT | typeof contentTypes.EXTERNAL | typeof contentTypes.IMAGE | typeof contentTypes.AUDIO | typeof contentTypes.VIDEO | typeof contentTypes.MISSING | (string & {});
|
|
14
|
+
export type ContentType = typeof contentTypes.SUBJECT_MATERIAL | typeof contentTypes.TASKS_AND_ACTIVITIES | typeof contentTypes.ASSESSMENT_RESOURCES | typeof contentTypes.SUBJECT | typeof contentTypes.SOURCE_MATERIAL | typeof contentTypes.LEARNING_PATH | typeof contentTypes.TOPIC | typeof contentTypes.MULTIDISCIPLINARY_TOPIC | typeof contentTypes.CONCEPT | typeof contentTypes.EXTERNAL | typeof contentTypes.IMAGE | typeof contentTypes.AUDIO | typeof contentTypes.VIDEO | typeof contentTypes.MISSING | typeof contentTypes.PODCAST | (string & {});
|
|
15
15
|
export declare const contentTypeToBadgeVariantMap: Record<ContentType, BadgeVariant>;
|
|
16
16
|
export declare const ContentTypeBadge: import("react").ForwardRefExoticComponent<ContentTypeBadgeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export {};
|
|
@@ -35,6 +35,7 @@ const contentTypeToBadgeVariantMap = exports.contentTypeToBadgeVariantMap = {
|
|
|
35
35
|
// TODO: Verify resourceEmbedTypeMapping colors
|
|
36
36
|
[contentTypes.IMAGE]: "brand1",
|
|
37
37
|
[contentTypes.AUDIO]: "brand1",
|
|
38
|
+
[contentTypes.PODCAST]: "brand1",
|
|
38
39
|
[contentTypes.VIDEO]: "brand1",
|
|
39
40
|
[contentTypes.MISSING]: "neutral"
|
|
40
41
|
};
|
|
@@ -123,7 +123,6 @@ const BrightcoveEmbed = _ref => {
|
|
|
123
123
|
type: "video",
|
|
124
124
|
copyright: data.copyright,
|
|
125
125
|
description: parsedDescription,
|
|
126
|
-
bottomRounded: true,
|
|
127
126
|
children: !!linkedVideoId && (0, _jsxRuntime.jsx)(LinkedVideoButton, {
|
|
128
127
|
size: "small",
|
|
129
128
|
variant: "secondary",
|
|
@@ -22,8 +22,7 @@ const CopyrightEmbed = _ref => {
|
|
|
22
22
|
return (0, _jsxRuntime.jsxs)("figure", {
|
|
23
23
|
children: [children, (0, _jsxRuntime.jsx)(_LicenseByline.EmbedByline, {
|
|
24
24
|
type: "copyright",
|
|
25
|
-
copyright: embed.embedData.copyright
|
|
26
|
-
bottomRounded: true
|
|
25
|
+
copyright: embed.embedData.copyright
|
|
27
26
|
})]
|
|
28
27
|
});
|
|
29
28
|
};
|
|
@@ -25,7 +25,7 @@ const WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH = exports.WIDE_FRONTPAGE_ARTICLE_MAX_WIDT
|
|
|
25
25
|
const StyledArticle = /*#__PURE__*/(0, _base.default)("article", {
|
|
26
26
|
target: "e10a6yg80",
|
|
27
27
|
label: "StyledArticle"
|
|
28
|
-
})("width:100%;max-width:773px;h2[id]{margin-top:", _core.spacing.large, ";}div[data-type=\"campaign-block\"]{margin:", _core.spacing.large, " 0px;}div[data-type=\"grid\"]{h2,h3,h4{margin-top:0px;}}div[data-type=\"grid\"]+div[data-type=\"grid\"]{margin-top:", _core.spacing.xxlarge, ";}&[data-wide=\"true\"]{max-width:1100px;h2[id]{margin-top:", _core.spacing.xxlarge, ";}div[data-type=\"campaign-block\"]{margin:", _core.spacing.xxlarge, " 0px;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZyb250cGFnZUFydGljbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCb0MiLCJmaWxlIjoiRnJvbnRwYWdlQXJ0aWNsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAyMy1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCB7IENTU1Byb3BlcnRpZXMsIFJlYWN0Tm9kZSwgdXNlTWVtbyB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBzcGFjaW5nIH0gZnJvbSBcIkBuZGxhL2NvcmVcIjtcbmltcG9ydCB7IHVzZUNvbXBvbmVudFNpemUgfSBmcm9tIFwiQG5kbGEvaG9va3NcIjtcbmltcG9ydCB7IEhlYWRpbmcsIFRleHQgfSBmcm9tIFwiQG5kbGEvdHlwb2dyYXBoeVwiO1xuaW1wb3J0IHsgQXJ0aWNsZUJ5bGluZSB9IGZyb20gXCIuLi9BcnRpY2xlXCI7XG5pbXBvcnQgeyBBcnRpY2xlIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbmludGVyZmFjZSBQcm9wcyB7XG4gIGFydGljbGU6IE9taXQ8QXJ0aWNsZSwgXCJmb290Tm90ZXNcIj47XG4gIGlkOiBzdHJpbmc7XG4gIGlzV2lkZT86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UFydGljbGUgPSAoeyBhcnRpY2xlLCBpZCwgaXNXaWRlLCBsaWNlbnNlQm94LCBsYW5nIH06IFByb3BzKSA9PiB7XG4gIGNvbnN0IHsgaGVpZ2h0ID0gMCB9ID0gdXNlQ29tcG9uZW50U2l6ZShcIm1hc3RoZWFkXCIpO1xuICBjb25zdCBjc3NWYXJzID0gdXNlTWVtbygoKSA9PiAoeyBcIi0tbWFzdGhlYWQtaGVpZ2h0XCI6IGAke2hlaWdodH1weGAgfSkgYXMgdW5rbm93biBhcyBDU1NQcm9wZXJ0aWVzLCBbaGVpZ2h0XSk7XG4gIGNvbnN0IHsgdGl0bGUsIGludHJvZHVjdGlvbiwgY29udGVudCB9ID0gYXJ0aWNsZTtcblxuICBpZiAoaXNXaWRlKSB7XG4gICAgcmV0dXJuIChcbiAgICAgIDxTdHlsZWRBcnRpY2xlIGRhdGEtd2lkZT17aXNXaWRlfSBzdHlsZT17Y3NzVmFyc30gaWQ9e2lkfT5cbiAgICAgICAge2NvbnRlbnR9XG4gICAgICA8L1N0eWxlZEFydGljbGU+XG4gICAgKTtcbiAgfVxuXG4gIHJldHVybiAoXG4gICAgPFN0eWxlZEFydGljbGUgc3R5bGU9e2Nzc1ZhcnN9PlxuICAgICAgPEhlYWRpbmcgaWQ9e2lkfSBoZWFkaW5nU3R5bGU9XCJoMS1yZXNvdXJjZVwiIGVsZW1lbnQ9XCJoMVwiIG1hcmdpbj1cIm5vcm1hbFwiIHRhYkluZGV4PXstMX0gbGFuZz17bGFuZ30+XG4gICAgICAgIHt0aXRsZX1cbiAgICAgIDwvSGVhZGluZz5cbiAgICAgIDxUZXh0IHRleHRTdHlsZT1cImluZ3Jlc3NcIiBlbGVtZW50PVwiZGl2XCIgbGFuZz17bGFuZ30+XG4gICAgICAgIHtpbnRyb2R1Y3Rpb259XG4gICAgICA8L1RleHQ+
|
|
28
|
+
})("width:100%;max-width:773px;h2[id]{margin-top:", _core.spacing.large, ";}div[data-type=\"campaign-block\"]{margin:", _core.spacing.large, " 0px;}div[data-type=\"grid\"]{h2,h3,h4{margin-top:0px;}}div[data-type=\"grid\"]+div[data-type=\"grid\"]{margin-top:", _core.spacing.xxlarge, ";}&[data-wide=\"true\"]{max-width:1100px;h2[id]{margin-top:", _core.spacing.xxlarge, ";}div[data-type=\"campaign-block\"]{margin:", _core.spacing.xxlarge, " 0px;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZyb250cGFnZUFydGljbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCb0MiLCJmaWxlIjoiRnJvbnRwYWdlQXJ0aWNsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAyMy1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCB7IENTU1Byb3BlcnRpZXMsIFJlYWN0Tm9kZSwgdXNlTWVtbyB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBzcGFjaW5nIH0gZnJvbSBcIkBuZGxhL2NvcmVcIjtcbmltcG9ydCB7IHVzZUNvbXBvbmVudFNpemUgfSBmcm9tIFwiQG5kbGEvaG9va3NcIjtcbmltcG9ydCB7IEhlYWRpbmcsIFRleHQgfSBmcm9tIFwiQG5kbGEvdHlwb2dyYXBoeVwiO1xuaW1wb3J0IHsgQXJ0aWNsZUJ5bGluZSB9IGZyb20gXCIuLi9BcnRpY2xlXCI7XG5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lc3NcIiBlbGVtZW50PVwiZGl2XCIgbGFuZz17bGFuZ30+XG4gICAgICAgIHtpbnRyb2R1Y3Rpb259XG4gICAgICA8L1RleHQ+XG4gICAgICB7Y29udGVudH1cbiAgICAgIDxBcnRpY2xlQnlsaW5lIGxpY2Vuc2VCb3g9e2xpY2Vuc2VCb3h9IGRpc3BsYXlCeWxpbmU9e2ZhbHNlfSAvPlxuICAgIDwvU3R5bGVkQXJ0aWNsZT5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZyb250cGFnZUFydGljbGU7XG4iXX0= */"));
|
|
29
29
|
const FrontpageArticle = _ref => {
|
|
30
30
|
let {
|
|
31
31
|
article,
|
|
@@ -69,7 +69,6 @@ const FrontpageArticle = _ref => {
|
|
|
69
69
|
lang: lang,
|
|
70
70
|
children: introduction
|
|
71
71
|
}), content, (0, _jsxRuntime.jsx)(_Article.ArticleByline, {
|
|
72
|
-
accordionHeaderVariant: "white",
|
|
73
72
|
licenseBox: licenseBox,
|
|
74
73
|
displayByline: false
|
|
75
74
|
})]
|
|
@@ -12,8 +12,6 @@ import { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept
|
|
|
12
12
|
import { ICopyright as ImageCopyright } from "@ndla/types-backend/image-api";
|
|
13
13
|
import { BrightcoveCopyright } from "@ndla/types-embed";
|
|
14
14
|
interface BaseProps {
|
|
15
|
-
topRounded?: boolean;
|
|
16
|
-
bottomRounded?: boolean;
|
|
17
15
|
description?: ReactNode;
|
|
18
16
|
children?: ReactNode;
|
|
19
17
|
visibleAlt?: string;
|
|
@@ -49,11 +47,11 @@ interface CopyrightProps extends BaseProps {
|
|
|
49
47
|
}
|
|
50
48
|
export type EmbedBylineTypeProps = ImageProps | BrightcoveProps | AudioProps | PodcastProps | ConceptProps | CopyrightProps;
|
|
51
49
|
type Props = EmbedBylineTypeProps | EmbedBylineErrorProps;
|
|
52
|
-
declare const EmbedByline: ({ type,
|
|
50
|
+
export declare const EmbedByline: ({ type, description, children, visibleAlt, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
53
51
|
interface LicenseContainerProps {
|
|
54
52
|
children?: ReactNode;
|
|
55
53
|
copyright: EmbedBylineTypeProps["copyright"];
|
|
56
54
|
type: Props["type"];
|
|
57
55
|
}
|
|
58
56
|
export declare const LicenseContainerContent: ({ children, copyright, type }: LicenseContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
-
export
|
|
57
|
+
export {};
|
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var
|
|
6
|
+
exports.LicenseContainerContent = exports.EmbedByline = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
8
|
var _reactI18next = require("react-i18next");
|
|
9
|
-
var _core = require("@ndla/core");
|
|
10
9
|
var _common = require("@ndla/icons/common");
|
|
11
10
|
var _licenses = require("@ndla/licenses");
|
|
12
|
-
var
|
|
13
|
-
var
|
|
11
|
+
var _primitives = require("@ndla/primitives");
|
|
12
|
+
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
13
|
+
var _LicenseLink = require("./LicenseLink");
|
|
14
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
15
|
/**
|
|
17
16
|
* Copyright (c) 2023-present, NDLA.
|
|
18
17
|
*
|
|
@@ -21,19 +20,47 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
21
20
|
*
|
|
22
21
|
*/
|
|
23
22
|
|
|
24
|
-
const BylineWrapper =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
23
|
+
const BylineWrapper = (0, _jsx2.styled)("figcaption", {
|
|
24
|
+
base: {
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
paddingBlock: "xsmall",
|
|
28
|
+
background: "surface.default",
|
|
29
|
+
textStyle: "label.medium"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const ErrorBylineWrapper = (0, _jsx2.styled)(BylineWrapper, {
|
|
33
|
+
base: {
|
|
34
|
+
border: "1px solid",
|
|
35
|
+
borderColor: "stroke.error",
|
|
36
|
+
borderRadius: "xsmall",
|
|
37
|
+
background: "surface.dangerSubtle",
|
|
38
|
+
paddingInline: "medium",
|
|
39
|
+
paddingBlock: "medium"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const StyledText = (0, _jsx2.styled)(_primitives.Text, {
|
|
43
|
+
base: {
|
|
44
|
+
fontStyle: "italic"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
const ContentWrapper = (0, _jsx2.styled)("div", {
|
|
48
|
+
base: {
|
|
49
|
+
display: "flex",
|
|
50
|
+
gap: "xsmall",
|
|
51
|
+
alignItems: "center",
|
|
52
|
+
textStyle: "label.medium"
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const BaseDescription = (0, _jsx2.styled)("div", {
|
|
56
|
+
base: {
|
|
57
|
+
display: "inline-flex",
|
|
58
|
+
whiteSpace: "pre-wrap"
|
|
59
|
+
}
|
|
60
|
+
});
|
|
32
61
|
const EmbedByline = _ref => {
|
|
33
62
|
let {
|
|
34
63
|
type,
|
|
35
|
-
topRounded,
|
|
36
|
-
bottomRounded,
|
|
37
64
|
description,
|
|
38
65
|
children,
|
|
39
66
|
visibleAlt,
|
|
@@ -44,16 +71,15 @@ const EmbedByline = _ref => {
|
|
|
44
71
|
} = (0, _reactI18next.useTranslation)();
|
|
45
72
|
if (props.error) {
|
|
46
73
|
const typeString = type === "h5p" ? "H5P" : t(`embed.type.${type}`).toLowerCase();
|
|
47
|
-
return (0, _jsxRuntime.jsx)(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
})
|
|
74
|
+
return (0, _jsxRuntime.jsx)(ErrorBylineWrapper, {
|
|
75
|
+
children: (0, _jsxRuntime.jsxs)(ContentWrapper, {
|
|
76
|
+
children: [(0, _jsxRuntime.jsx)(_common.WarningOutline, {}), (0, _jsxRuntime.jsx)(BaseDescription, {
|
|
77
|
+
children: (0, _jsxRuntime.jsx)("span", {
|
|
78
|
+
children: t("embed.embedError", {
|
|
79
|
+
type: typeString
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
57
83
|
})
|
|
58
84
|
});
|
|
59
85
|
}
|
|
@@ -69,17 +95,90 @@ const EmbedByline = _ref => {
|
|
|
69
95
|
children: description
|
|
70
96
|
}), children]
|
|
71
97
|
})
|
|
72
|
-
}), visibleAlt ? (0, _jsxRuntime.jsx)(
|
|
73
|
-
|
|
98
|
+
}), visibleAlt ? (0, _jsxRuntime.jsx)(StyledText, {
|
|
99
|
+
color: "text.subtle",
|
|
100
|
+
textStyle: "label.medium",
|
|
101
|
+
asChild: true,
|
|
102
|
+
consumeCss: true,
|
|
103
|
+
children: (0, _jsxRuntime.jsx)("span", {
|
|
104
|
+
children: `Alt: ${visibleAlt}`
|
|
105
|
+
})
|
|
74
106
|
}) : null]
|
|
75
107
|
});
|
|
76
108
|
};
|
|
77
|
-
|
|
109
|
+
exports.EmbedByline = EmbedByline;
|
|
110
|
+
const StyledDescription = (0, _jsx2.styled)(BaseDescription, {
|
|
111
|
+
base: {
|
|
112
|
+
mobileWideDown: {
|
|
113
|
+
display: "grid",
|
|
114
|
+
gridTemplateColumns: "1fr auto",
|
|
115
|
+
alignItems: "center",
|
|
116
|
+
overflow: "hidden",
|
|
117
|
+
_open: {
|
|
118
|
+
display: "inline"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
const TextContent = (0, _jsx2.styled)("span", {
|
|
124
|
+
base: {
|
|
125
|
+
mobileWideDown: {
|
|
126
|
+
whiteSpace: "nowrap",
|
|
127
|
+
maxHeight: "large",
|
|
128
|
+
overflow: "hidden",
|
|
129
|
+
textOverflow: "ellipsis",
|
|
130
|
+
transitionProperty: "max-height",
|
|
131
|
+
transitionDuration: "slow",
|
|
132
|
+
transitionTimingFunction: "ease-in",
|
|
133
|
+
_open: {
|
|
134
|
+
whiteSpace: "pre-wrap",
|
|
135
|
+
maxHeight: "none"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
const StyledButton = (0, _jsx2.styled)(_primitives.Button, {
|
|
141
|
+
base: {
|
|
142
|
+
mobileWide: {
|
|
143
|
+
display: "none"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
const LicenseDescription = _ref2 => {
|
|
148
|
+
let {
|
|
149
|
+
children
|
|
150
|
+
} = _ref2;
|
|
151
|
+
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
152
|
+
const open = isOpen ? {
|
|
153
|
+
"data-open": ""
|
|
154
|
+
} : {};
|
|
155
|
+
const {
|
|
156
|
+
t
|
|
157
|
+
} = (0, _reactI18next.useTranslation)();
|
|
158
|
+
const handleToggle = () => {
|
|
159
|
+
setIsOpen(!isOpen);
|
|
160
|
+
};
|
|
161
|
+
return (0, _jsxRuntime.jsx)(ContentWrapper, {
|
|
162
|
+
children: (0, _jsxRuntime.jsxs)(StyledDescription, {
|
|
163
|
+
...open,
|
|
164
|
+
children: [(0, _jsxRuntime.jsx)(TextContent, {
|
|
165
|
+
...open,
|
|
166
|
+
children: children
|
|
167
|
+
}), (0, _jsxRuntime.jsx)(StyledButton, {
|
|
168
|
+
variant: "link",
|
|
169
|
+
size: "small",
|
|
170
|
+
onClick: handleToggle,
|
|
171
|
+
children: isOpen ? `${t("audio.readLessDescriptionLabel")}` : `${t("audio.readMoreDescriptionLabel")}`
|
|
172
|
+
})]
|
|
173
|
+
})
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
const LicenseContainerContent = _ref3 => {
|
|
78
177
|
let {
|
|
79
178
|
children,
|
|
80
179
|
copyright,
|
|
81
180
|
type
|
|
82
|
-
} =
|
|
181
|
+
} = _ref3;
|
|
83
182
|
const {
|
|
84
183
|
t,
|
|
85
184
|
i18n
|
|
@@ -87,14 +186,25 @@ const LicenseContainerContent = _ref2 => {
|
|
|
87
186
|
const license = copyright ? (0, _licenses.getLicenseByAbbreviation)(copyright.license?.license ?? "", i18n.language) : undefined;
|
|
88
187
|
const authors = (0, _licenses.getLicenseCredits)(copyright);
|
|
89
188
|
const captionAuthors = Object.values(authors).find(i => i.length > 0) ?? [];
|
|
90
|
-
const
|
|
91
|
-
return (0, _jsxRuntime.jsxs)(Component, {
|
|
189
|
+
const content = (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
92
190
|
children: [children, ` ${t(`embed.type.${type}`)}${captionAuthors.length ? ": " : ""}`, captionAuthors.map(author => author.name).join(", "), license ? (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
93
|
-
children: [" / ", (0, _jsxRuntime.jsx)(_LicenseLink.
|
|
191
|
+
children: [" / ", (0, _jsxRuntime.jsx)(_LicenseLink.LicenseLink, {
|
|
94
192
|
license: license
|
|
95
193
|
})]
|
|
96
194
|
}) : null]
|
|
97
195
|
});
|
|
196
|
+
if (children) {
|
|
197
|
+
return (0, _jsxRuntime.jsx)(LicenseDescription, {
|
|
198
|
+
children: content
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
return (0, _jsxRuntime.jsx)(_primitives.Text, {
|
|
202
|
+
textStyle: "label.medium",
|
|
203
|
+
asChild: true,
|
|
204
|
+
consumeCss: true,
|
|
205
|
+
children: (0, _jsxRuntime.jsx)("span", {
|
|
206
|
+
children: content
|
|
207
|
+
})
|
|
208
|
+
});
|
|
98
209
|
};
|
|
99
|
-
exports.LicenseContainerContent = LicenseContainerContent;
|
|
100
|
-
var _default = exports.default = EmbedByline;
|
|
210
|
+
exports.LicenseContainerContent = LicenseContainerContent;
|
|
@@ -9,5 +9,5 @@ import { LicenseLocaleType } from "@ndla/licenses";
|
|
|
9
9
|
interface Props {
|
|
10
10
|
license: LicenseLocaleType;
|
|
11
11
|
}
|
|
12
|
-
declare const LicenseLink: ({ license }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
-
export
|
|
12
|
+
export declare const LicenseLink: ({ license }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
-
var _core = require("@ndla/core");
|
|
6
|
+
exports.LicenseLink = void 0;
|
|
9
7
|
var _safelink = require("@ndla/safelink");
|
|
8
|
+
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
10
9
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
10
|
/**
|
|
13
11
|
* Copyright (c) 2023-present, NDLA.
|
|
14
12
|
*
|
|
@@ -17,10 +15,19 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
17
15
|
*
|
|
18
16
|
*/
|
|
19
17
|
|
|
20
|
-
const StyledSafeLink =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
const StyledSafeLink = (0, _jsx2.styled)(_safelink.SafeLink, {
|
|
19
|
+
base: {
|
|
20
|
+
color: "primary",
|
|
21
|
+
textDecoration: "underline",
|
|
22
|
+
whiteSpace: "nowrap",
|
|
23
|
+
_hover: {
|
|
24
|
+
textDecoration: "none"
|
|
25
|
+
},
|
|
26
|
+
_focusWithin: {
|
|
27
|
+
textDecoration: "none"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
24
31
|
const LicenseLink = _ref => {
|
|
25
32
|
let {
|
|
26
33
|
license
|
|
@@ -39,4 +46,4 @@ const LicenseLink = _ref => {
|
|
|
39
46
|
children: license.abbreviation
|
|
40
47
|
});
|
|
41
48
|
};
|
|
42
|
-
|
|
49
|
+
exports.LicenseLink = LicenseLink;
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
8
|
+
export { EmbedByline } from "./EmbedByline";
|
|
9
|
+
export { LicenseLink } from "./LicenseLink";
|
|
@@ -6,15 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "EmbedByline", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return _EmbedByline.
|
|
9
|
+
return _EmbedByline.EmbedByline;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "LicenseLink", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return _LicenseLink.
|
|
15
|
+
return _LicenseLink.LicenseLink;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
var _EmbedByline =
|
|
19
|
-
var _LicenseLink =
|
|
20
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
var _EmbedByline = require("./EmbedByline");
|
|
19
|
+
var _LicenseLink = require("./LicenseLink");
|
package/lib/index.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export { default as SearchResultSleeve } from "./Search/SearchResultSleeve";
|
|
|
24
24
|
export { default as ContentTypeResult } from "./Search/ContentTypeResult";
|
|
25
25
|
export { SearchFieldForm } from "./Search/SearchFieldForm";
|
|
26
26
|
export { default as resourceTypeColor } from "./utils/resourceTypeColor";
|
|
27
|
-
export { default as CreatedBy } from "./CreatedBy";
|
|
28
27
|
export { MessageBox, MessageBanner } from "./Messages";
|
|
29
28
|
export { ResourceBox } from "./ResourceBox";
|
|
30
29
|
export { default as AudioPlayer } from "./AudioPlayer";
|
|
@@ -49,7 +48,6 @@ export type { Snack, SnackContext } from "./SnackBar";
|
|
|
49
48
|
export { TreeStructure } from "./TreeStructure";
|
|
50
49
|
export type { TreeStructureProps } from "./TreeStructure";
|
|
51
50
|
export { SearchField, SearchResultList, SearchResultItem, ActiveFilters } from "./Search";
|
|
52
|
-
export { OrderedList, UnOrderedList } from "./List";
|
|
53
51
|
export { BlogPostV2 } from "./BlogPost";
|
|
54
52
|
export { ProgrammeCard } from "./ProgrammeCard";
|
|
55
53
|
export { KeyFigure } from "./KeyFigure";
|
package/lib/index.js
CHANGED
|
@@ -207,12 +207,6 @@ Object.defineProperty(exports, "CopyrightEmbed", {
|
|
|
207
207
|
return _Embed.CopyrightEmbed;
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
|
-
Object.defineProperty(exports, "CreatedBy", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function () {
|
|
213
|
-
return _CreatedBy.default;
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
210
|
Object.defineProperty(exports, "DefaultSnackbar", {
|
|
217
211
|
enumerable: true,
|
|
218
212
|
get: function () {
|
|
@@ -429,12 +423,6 @@ Object.defineProperty(exports, "OneColumn", {
|
|
|
429
423
|
return _Layout.OneColumn;
|
|
430
424
|
}
|
|
431
425
|
});
|
|
432
|
-
Object.defineProperty(exports, "OrderedList", {
|
|
433
|
-
enumerable: true,
|
|
434
|
-
get: function () {
|
|
435
|
-
return _List.OrderedList;
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
426
|
Object.defineProperty(exports, "PageContainer", {
|
|
439
427
|
enumerable: true,
|
|
440
428
|
get: function () {
|
|
@@ -615,12 +603,6 @@ Object.defineProperty(exports, "TreeStructure", {
|
|
|
615
603
|
return _TreeStructure.TreeStructure;
|
|
616
604
|
}
|
|
617
605
|
});
|
|
618
|
-
Object.defineProperty(exports, "UnOrderedList", {
|
|
619
|
-
enumerable: true,
|
|
620
|
-
get: function () {
|
|
621
|
-
return _List.UnOrderedList;
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
606
|
Object.defineProperty(exports, "UnknownEmbed", {
|
|
625
607
|
enumerable: true,
|
|
626
608
|
get: function () {
|
|
@@ -770,7 +752,6 @@ var _SearchResultSleeve = _interopRequireDefault(require("./Search/SearchResultS
|
|
|
770
752
|
var _ContentTypeResult = _interopRequireDefault(require("./Search/ContentTypeResult"));
|
|
771
753
|
var _SearchFieldForm = require("./Search/SearchFieldForm");
|
|
772
754
|
var _resourceTypeColor = _interopRequireDefault(require("./utils/resourceTypeColor"));
|
|
773
|
-
var _CreatedBy = _interopRequireDefault(require("./CreatedBy"));
|
|
774
755
|
var _Messages = require("./Messages");
|
|
775
756
|
var _ResourceBox = require("./ResourceBox");
|
|
776
757
|
var _AudioPlayer = _interopRequireDefault(require("./AudioPlayer"));
|
|
@@ -791,7 +772,6 @@ var _TagSelector = require("./TagSelector/TagSelector");
|
|
|
791
772
|
var _SnackBar = require("./SnackBar");
|
|
792
773
|
var _TreeStructure = require("./TreeStructure");
|
|
793
774
|
var _Search = require("./Search");
|
|
794
|
-
var _List = require("./List");
|
|
795
775
|
var _BlogPost = require("./BlogPost");
|
|
796
776
|
var _ProgrammeCard = require("./ProgrammeCard");
|
|
797
777
|
var _KeyFigure = require("./KeyFigure");
|
|
@@ -19,6 +19,7 @@ export declare const MISSING = "missing";
|
|
|
19
19
|
export declare const IMAGE = "image";
|
|
20
20
|
export declare const VIDEO = "video";
|
|
21
21
|
export declare const AUDIO = "audio";
|
|
22
|
+
export declare const PODCAST = "podcast";
|
|
22
23
|
export declare const contentTypes: {
|
|
23
24
|
SUBJECT_MATERIAL: string;
|
|
24
25
|
TASKS_AND_ACTIVITIES: string;
|
package/lib/model/ContentType.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.resourceEmbedTypeMapping = exports.contentTypes = exports.contentTypeMapping = exports.VIDEO = exports.TOPIC = exports.TASKS_AND_ACTIVITIES = exports.SUBJECT_MATERIAL = exports.SUBJECT = exports.SOURCE_MATERIAL = exports.RESOURCE_TYPE_TASKS_AND_ACTIVITIES = exports.RESOURCE_TYPE_SUBJECT_MATERIAL = exports.RESOURCE_TYPE_SOURCE_MATERIAL = exports.RESOURCE_TYPE_LEARNING_PATH = exports.RESOURCE_TYPE_CONCEPT = exports.RESOURCE_TYPE_ASSESSMENT_RESOURCES = exports.MULTIDISCIPLINARY_TOPIC = exports.MISSING = exports.ListOfContentTypes = exports.LEARNING_PATH = exports.IMAGE = exports.EXTERNAL = exports.CONCEPT = exports.AUDIO = exports.ASSESSMENT_RESOURCES = void 0;
|
|
6
|
+
exports.resourceEmbedTypeMapping = exports.contentTypes = exports.contentTypeMapping = exports.VIDEO = exports.TOPIC = exports.TASKS_AND_ACTIVITIES = exports.SUBJECT_MATERIAL = exports.SUBJECT = exports.SOURCE_MATERIAL = exports.RESOURCE_TYPE_TASKS_AND_ACTIVITIES = exports.RESOURCE_TYPE_SUBJECT_MATERIAL = exports.RESOURCE_TYPE_SOURCE_MATERIAL = exports.RESOURCE_TYPE_LEARNING_PATH = exports.RESOURCE_TYPE_CONCEPT = exports.RESOURCE_TYPE_ASSESSMENT_RESOURCES = exports.PODCAST = exports.MULTIDISCIPLINARY_TOPIC = exports.MISSING = exports.ListOfContentTypes = exports.LEARNING_PATH = exports.IMAGE = exports.EXTERNAL = exports.CONCEPT = exports.AUDIO = exports.ASSESSMENT_RESOURCES = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Copyright (c) 2017-present, NDLA.
|
|
9
9
|
*
|
|
@@ -26,6 +26,7 @@ const MISSING = exports.MISSING = "missing";
|
|
|
26
26
|
const IMAGE = exports.IMAGE = "image";
|
|
27
27
|
const VIDEO = exports.VIDEO = "video";
|
|
28
28
|
const AUDIO = exports.AUDIO = "audio";
|
|
29
|
+
const PODCAST = exports.PODCAST = "podcast";
|
|
29
30
|
const contentTypes = exports.contentTypes = {
|
|
30
31
|
SUBJECT_MATERIAL,
|
|
31
32
|
TASKS_AND_ACTIVITIES,
|
|
@@ -59,5 +60,6 @@ const resourceEmbedTypeMapping = exports.resourceEmbedTypeMapping = {
|
|
|
59
60
|
image: "image",
|
|
60
61
|
video: "video",
|
|
61
62
|
concept: "concept",
|
|
62
|
-
audio: "audio"
|
|
63
|
+
audio: "audio",
|
|
64
|
+
podcast: "podcast"
|
|
63
65
|
};
|