@kickstartds/ds-agency-premium 1.6.0--canary.17.1001.0 → 1.6.0--canary.18.1019.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.
@@ -1,4 +1,4 @@
1
- import { BlogPostProps } from "../../BlogPostProps-d9decb7c.js";
1
+ import { BlogPostProps } from "../../BlogPostProps-6b3cff22.js";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  declare const BlogPost: FC<PropsWithChildren<BlogPostProps>>;
4
4
  export { BlogPost };
@@ -10,7 +10,7 @@
10
10
  --dsa-footer__link--font-weight: var(--dsa-link--font-weight);
11
11
  --dsa-footer__link--color: var(--dsa-link--color);
12
12
  --dsa-footer__link--text-tecoration: none;
13
- --dsa-footer__link--text-tecorationhover: underline;
13
+ --dsa-footer__link--text-tecoration_hover: underline;
14
14
  --dsa-footer__logo--height: 1.5rem;
15
15
  }
16
16
  @media (min-width: 62em) {
@@ -57,6 +57,6 @@
57
57
  text-decoration: var(--dsa-footer__link--text-tecoration, none);
58
58
  }
59
59
  .dsa-footer__link:not(.c-button):hover {
60
- text-decoration: var(--dsa-footer__link--text-tecoration-hover, underline);
60
+ text-decoration: var(--dsa-footer__link--text-tecoration_hover, underline);
61
61
  color: var(--dsa-footer__link--color_hover, var(--dsa-link--color_hover));
62
62
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.mydesignsystem.com/html.schema.json",
3
+ "$id": "http://schema.kickstartds.com/base/html.schema.json",
4
4
  "title": "HTML",
5
5
  "description": "Display raw HTML.",
6
6
  "type": "object",
@@ -8,34 +8,7 @@
8
8
  "html": {
9
9
  "title": "HTML string",
10
10
  "type": "string",
11
- "examples": [
12
- "<p style=\"color: var(--ks-text-color-default);\">Hello World</p>"
13
- ]
14
- },
15
- "consent": {
16
- "title": "Show HTML after consent",
17
- "type": "boolean",
18
- "default": false
19
- },
20
- "consentText": {
21
- "type": "string"
22
- },
23
- "consentButtonLabel": {
24
- "type": "string"
25
- },
26
- "consentBackgroundImage": {
27
- "type": "string",
28
- "format": "image"
29
- },
30
- "consentAspectRatio": {
31
- "type": "string",
32
- "enum": [
33
- "16:9",
34
- "16:10",
35
- "4:3",
36
- "1:1"
37
- ],
38
- "default": "16:9"
11
+ "examples": ["<p>Hello world!</p>"]
39
12
  },
40
13
  "className": {
41
14
  "title": "Additional Classes",
@@ -4,10 +4,9 @@ import { HTMLAttributes } from "react";
4
4
  /**
5
5
  * This file was automatically generated by json-schema-to-typescript.
6
6
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
- * and run json-schema-to-typescript to regenerate this file.
7
+ * and run `yarn run schema` to regenerate this file.
8
8
  */
9
9
  type HTMLString = string;
10
- type ShowHTMLAfterConsent = boolean;
11
10
  /**
12
11
  * Add additional css classes that should be applied to the element
13
12
  */
@@ -21,15 +20,10 @@ type KsComponentAttribute = string;
21
20
  */
22
21
  interface HTMLProps {
23
22
  html?: HTMLString;
24
- consent?: ShowHTMLAfterConsent;
25
- consentText?: string;
26
- consentButtonLabel?: string;
27
- consentBackgroundImage?: string;
28
- consentAspectRatio?: "16:9" | "16:10" | "4:3" | "1:1";
29
23
  className?: AdditionalClasses;
30
24
  component?: KsComponentAttribute;
31
25
  }
32
26
  declare const HtmlContextDefault: import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
33
27
  declare const HtmlContext: import("react").Context<import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
34
- declare const Html: import("react").ForwardRefExoticComponent<HTMLProps & import("react").RefAttributes<HTMLDivElement>>;
28
+ declare const Html: import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
35
29
  export { HtmlContextDefault, HtmlContext, Html };
@@ -1,22 +1,9 @@
1
- import "./html.css";
2
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
1
+ import { jsx } from 'react/jsx-runtime';
3
2
  import { forwardRef, createContext, useContext } from 'react';
4
3
  import classnames from 'classnames';
5
- import { Button } from '@kickstartds/base/lib/button';
6
- import './HtmlConsent.client.js';
7
- import '@kickstartds/core/lib/component';
8
4
 
9
- const HtmlContextDefault = forwardRef(({ html, consent, consentText, consentBackgroundImage, consentButtonLabel, consentAspectRatio = "16:9", className, component, ...props }, ref) => {
10
- return (jsx("div", { ref: ref, className: classnames("c-html", className), dangerouslySetInnerHTML: consent ? undefined : { __html: html }, "ks-component": component || (consent ? "dsa.html-consent" : undefined), ...props, children: consent ? (jsxs(Fragment, { children: [jsx("template", { dangerouslySetInnerHTML: { __html: html } }), jsxs("div", { style: {
11
- backgroundImage: consentBackgroundImage
12
- ? `url(${consentBackgroundImage})`
13
- : undefined,
14
- }, className: classnames("c-html__consent", {
15
- "c-html__consent--sixteen-to-nine": consentAspectRatio === "16:9",
16
- "c-html__consent--sixteen-to-ten": consentAspectRatio === "16:10",
17
- "c-html__consent--four-to-three": consentAspectRatio === "4:3",
18
- "c-html__consent--square": consentAspectRatio === "1:1",
19
- }), children: [jsx("p", { children: consentText }), jsx(Button, { type: "button", label: consentButtonLabel, className: "c-html__consent-button" })] })] })) : undefined }));
5
+ const HtmlContextDefault = forwardRef(({ html, className, component, ...props }, ref) => {
6
+ return (jsx("div", { ref: ref, className: classnames("c-html", className), dangerouslySetInnerHTML: { __html: html }, "ks-component": component, ...props }));
20
7
  });
21
8
  const HtmlContext = createContext(HtmlContextDefault);
22
9
  const Html = forwardRef((props, ref) => {
@@ -24,7 +24,7 @@ interface SettingsProps {
24
24
  */
25
25
  seo: SeoProps;
26
26
  }
27
- export * from "../../BlogPostProps-d9decb7c.js";
27
+ export * from "../../BlogPostProps-6b3cff22.js";
28
28
  export * from "../../BlogOverviewProps-9f207f1c.js";
29
29
  export * from "../../PageProps-aa29c554.js";
30
30
  export { SettingsProps };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 11 Sep 2024 09:53:01 GMT
3
+ * Generated on Fri, 20 Sep 2024 10:59:47 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2154,33 +2154,6 @@
2154
2154
  },
2155
2155
  "screenshot": "img/screenshots/components-hero--text-box-on-full-screen.png"
2156
2156
  },
2157
- {
2158
- "id": "components-html--html",
2159
- "group": "Components/HTML",
2160
- "name": "HTML",
2161
- "code": "<Html\n consentAspectRatio=\"16:9\"\n html=\"<p style=&quot;color: var(--ks-text-color-default);&quot;>Hello World</p>\"\n/>",
2162
- "args": {
2163
- "html": "<p style=\"color: var(--ks-text-color-default);\">Hello World</p>",
2164
- "consent": false,
2165
- "consentAspectRatio": "16:9"
2166
- },
2167
- "screenshot": "img/screenshots/components-html--html.png"
2168
- },
2169
- {
2170
- "id": "components-html--with-consent",
2171
- "group": "Components/HTML",
2172
- "name": "WithConsent",
2173
- "code": "<Html\n consent\n consentAspectRatio=\"16:9\"\n consentBackgroundImage=\"img/02.jpg\"\n consentButtonLabel=\"yes!\"\n consentText=\"would you like to watch the youtube video?\"\n html=\"<iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube-nocookie.com/embed/oGGIkuGY-7U?si=Y5_JHflGsNwRCLu_&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; allowfullscreen></iframe>\"\n/>",
2174
- "args": {
2175
- "html": "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube-nocookie.com/embed/oGGIkuGY-7U?si=Y5_JHflGsNwRCLu_\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>",
2176
- "consent": true,
2177
- "consentAspectRatio": "16:9",
2178
- "consentText": "would you like to watch the youtube video?",
2179
- "consentButtonLabel": "yes!",
2180
- "consentBackgroundImage": "img/02.jpg"
2181
- },
2182
- "screenshot": "img/screenshots/components-html--with-consent.png"
2183
- },
2184
2157
  {
2185
2158
  "id": "components-image-story--sticky-image-next-to-scrolling-text",
2186
2159
  "group": "Components/Image Story",
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { forwardRef, createContext, useContext } from 'react';
3
3
  import { Quote } from '@kickstartds/content/lib/quote';
4
4
 
5
- const TestimonialContextDefault = forwardRef(({ image, quote, name, title, layout, index, rating, ...rest }, ref) => (jsx(Quote, { ...rest, ref: ref, className: layout === "alternating" && index % 2 === 1 ? "c-quote--reverse" : "", text: quote, source: name, byline: title, image: image.src, renderSource: () => (jsxs(Fragment, { children: [rating ? (jsx("div", { children: [...Array(rating)].map((_, index) => (jsx("span", { children: "\u2605" }, index))) })) : (""), jsx("div", { className: "c-quote__source", children: name })] })) })));
5
+ const TestimonialContextDefault = forwardRef(({ image, quote, name, title, layout, index, rating, ...rest }, ref) => (jsx(Quote, { ...rest, ref: ref, className: layout === "alternating" && index % 2 === 1 ? "c-quote--reverse" : "", text: quote, source: name, byline: title, image: image && image.src, renderSource: () => (jsxs(Fragment, { children: [rating ? (jsx("div", { children: [...Array(rating)].map((_, index) => (jsx("span", { children: "\u2605" }, index))) })) : (""), jsx("div", { className: "c-quote__source", children: name })] })) })));
6
6
  const TestimonialContext = createContext(TestimonialContextDefault);
7
7
  const Testimonial = forwardRef((props, ref) => {
8
8
  const Component = useContext(TestimonialContext);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 11 Sep 2024 09:53:03 GMT
3
+ * Generated on Fri, 20 Sep 2024 10:59:50 GMT
4
4
  */
5
5
  :root [ks-theme=business] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2727,7 +2727,7 @@
2727
2727
  }
2728
2728
  /**
2729
2729
  * Do not edit directly
2730
- * Generated on Wed, 11 Sep 2024 09:53:06 GMT
2730
+ * Generated on Fri, 20 Sep 2024 10:59:55 GMT
2731
2731
  */
2732
2732
  :root [ks-theme=google] {
2733
2733
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -5458,7 +5458,7 @@
5458
5458
  }
5459
5459
  /**
5460
5460
  * Do not edit directly
5461
- * Generated on Wed, 11 Sep 2024 09:53:05 GMT
5461
+ * Generated on Fri, 20 Sep 2024 10:59:52 GMT
5462
5462
  */
5463
5463
  :root [ks-theme=ngo] {
5464
5464
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -8459,7 +8459,7 @@
8459
8459
  }
8460
8460
  /**
8461
8461
  * Do not edit directly
8462
- * Generated on Wed, 11 Sep 2024 09:53:08 GMT
8462
+ * Generated on Fri, 20 Sep 2024 10:59:57 GMT
8463
8463
  */
8464
8464
  :root [ks-theme=telekom] {
8465
8465
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 11 Sep 2024 09:53:01 GMT
3
+ * Generated on Fri, 20 Sep 2024 10:59:47 GMT
4
4
  */
5
5
 
6
6
  :root, [ks-theme] {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 11 Sep 2024 09:53:01 GMT
3
+ * Generated on Fri, 20 Sep 2024 10:59:48 GMT
4
4
  */
5
5
 
6
6
  export const KsBackgroundColorAccentBase = "#230a2b";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kickstartds/ds-agency-premium",
3
- "version": "1.6.0--canary.17.1001.0",
3
+ "version": "1.6.0--canary.18.1019.0",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {
@@ -74,17 +74,20 @@
74
74
  "@bedrock-layout/primitives": "^3.0.23",
75
75
  "@bedrock-layout/spacing-constants": "^3.2.5",
76
76
  "classnames": "^2.3.2",
77
- "markdown-to-jsx": "^7.3.2"
77
+ "markdown-to-jsx": "^7.3.2",
78
+ "react-browser-ui": "^1.3.5",
79
+ "react-loader-spinner": "^6.1.6"
78
80
  },
79
81
  "devDependencies": {
80
82
  "@auto-it/npm": "^11.0.1",
81
83
  "@auto-it/released": "^11.0.1",
82
84
  "@kickstartds/base": "^4.0.2",
83
85
  "@kickstartds/blog": "^4.0.2",
86
+ "@kickstartds/cambria": "^1.0.5",
84
87
  "@kickstartds/content": "^4.0.0",
85
88
  "@kickstartds/core": "^4.0.2",
86
89
  "@kickstartds/form": "^4.0.2",
87
- "@kickstartds/jsonschema-utils": "^3.0.13",
90
+ "@kickstartds/jsonschema-utils": "^3.4.1",
88
91
  "@kickstartds/jsonschema2types": "^1.1.37",
89
92
  "@kickstartds/storybook-addon-component-tokens": "^3.0.0",
90
93
  "@kickstartds/storybook-addon-html": "^1.0.0",
@@ -114,9 +117,11 @@
114
117
  "happy-dom": "^13.3.1",
115
118
  "husky": "^8.0.3",
116
119
  "jest-image-snapshot": "^6.4.0",
120
+ "json-schema-traverse": "^1.0.0",
117
121
  "kickstartds": "^3.0.0",
118
122
  "lazysizes": "^5.3.2",
119
123
  "npm-run-all": "^4.1.5",
124
+ "object-traversal": "^1.0.1",
120
125
  "patch-package": "^8.0.0",
121
126
  "playroom": "^0.34.1",
122
127
  "postcss": "^8.4.29",
@@ -1,5 +0,0 @@
1
- declare class Html {
2
- static identifier: string;
3
- constructor(element: any);
4
- }
5
- export { Html as default };
@@ -1,25 +0,0 @@
1
- import { define, Component } from '@kickstartds/core/lib/component';
2
-
3
- const consentButtonSelector = ".c-html__consent-button";
4
- class Html extends Component {
5
- constructor(element) {
6
- super(element);
7
- const consentButton = element.querySelector(consentButtonSelector);
8
- if (consentButton) {
9
- const replaceHtml = () => {
10
- const template = element.querySelector("template");
11
- const clone = template?.content.cloneNode(true);
12
- element.replaceChildren(clone);
13
- consentButton.removeEventListener("click", replaceHtml);
14
- };
15
- consentButton.addEventListener("click", replaceHtml);
16
- this.onDisconnect(() => {
17
- consentButton.removeEventListener("click", replaceHtml);
18
- });
19
- }
20
- }
21
- }
22
- Html.identifier = "dsa.html-consent";
23
- define(Html.identifier, Html);
24
-
25
- export { Html as default };
@@ -1,20 +0,0 @@
1
- .c-html__consent {
2
- color: var(--ks-text-color-default);
3
- font: var(--ks-font-interface-m);
4
- display: flex;
5
- align-items: center;
6
- flex-direction: column;
7
- justify-content: center;
8
- }
9
- .c-html__consent--sixteen-to-nine {
10
- aspect-ratio: 16/9;
11
- }
12
- .c-html__consent--sixteen-to-ten {
13
- aspect-ratio: 16/10;
14
- }
15
- .c-html__consent--four-to-three {
16
- aspect-ratio: 4/3;
17
- }
18
- .c-html__consent--square {
19
- aspect-ratio: 1;
20
- }
@@ -1,55 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.mydesignsystem.com/html.schema.json",
4
- "title": "HTML",
5
- "description": "Display raw HTML.",
6
- "type": "object",
7
- "properties": {
8
- "html": {
9
- "title": "HTML string",
10
- "type": "string",
11
- "examples": [
12
- "<p style=\"color: var(--ks-text-color-default);\">Hello World</p>"
13
- ]
14
- },
15
- "consent": {
16
- "title": "Show HTML after consent",
17
- "type": "boolean",
18
- "default": false
19
- },
20
- "consentText": {
21
- "type": "string"
22
- },
23
- "consentButtonLabel": {
24
- "type": "string"
25
- },
26
- "consentBackgroundImage": {
27
- "type": "string",
28
- "format": "image"
29
- },
30
- "consentAspectRatio": {
31
- "type": "string",
32
- "enum": [
33
- "16:9",
34
- "16:10",
35
- "4:3",
36
- "1:1"
37
- ],
38
- "default": "16:9"
39
- },
40
- "className": {
41
- "title": "Additional Classes",
42
- "description": "Add additional css classes that should be applied to the element",
43
- "type": "string"
44
- },
45
- "component": {
46
- "title": "`ks-component` attribute",
47
- "description": "Optional custom component identifier",
48
- "type": "string"
49
- },
50
- "type": {
51
- "const": "html"
52
- }
53
- },
54
- "additionalProperties": false
55
- }