@cloud-ru/uikit-product-site-rich-text 0.2.10 → 0.2.11

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 0.2.11 (2025-11-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **PD-3377:** contributors update to publish all packages ([719fd3e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/719fd3e1249e247443b125c47ea408d92c8395c3))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 0.2.10 (2025-11-12)
7
18
 
8
19
  ### Only dependencies have been changed
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { WithSupportProps } from '@sbercloud/uikit-product-utils';
3
+ export type RichTextProps = WithSupportProps<{
4
+ richText?: string | ReactNode;
5
+ className?: string;
6
+ }>;
7
+ export declare function RichText({ richText, className, ...rest }: RichTextProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.RichText = RichText;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const classnames_1 = __importDefault(require("classnames"));
20
+ const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
21
+ const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
22
+ function RichText(_a) {
23
+ var { richText = '', className } = _a, rest = __rest(_a, ["richText", "className"]);
24
+ const isStringContent = typeof richText === 'string';
25
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.richText, className) }, (isStringContent ? { dangerouslySetInnerHTML: { __html: richText } } : { children: richText }), (0, uikit_product_utils_1.extractSupportProps)(rest))));
26
+ }
@@ -0,0 +1 @@
1
+ export * from './RichText';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./RichText"), exports);
@@ -0,0 +1,30 @@
1
+ .richText p{
2
+ margin:0;
3
+ }
4
+ .richText a{
5
+ display:inline-block;
6
+ pointer-events:visible;
7
+ color:inherit;
8
+ text-decoration:underline;
9
+ -webkit-text-decoration-skip-ink:none;
10
+ text-decoration-skip-ink:none;
11
+ word-break:break-word;
12
+ transition:color 0.3s ease-in-out;
13
+ width:-moz-fit-content;
14
+ width:fit-content;
15
+ }
16
+ .richText a:hover{
17
+ color:var(--sys-primary-accent-hovered, #12bf6a);
18
+ }
19
+ .richText ul,
20
+ .richText ol{
21
+ margin:0;
22
+ padding:0 0 0 20px;
23
+ }
24
+ .richText img{
25
+ max-width:100%;
26
+ margin-bottom:24px;
27
+ }
28
+ .richText img:last-child{
29
+ margin-bottom:0;
30
+ }
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./components"), exports);
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { WithSupportProps } from '@sbercloud/uikit-product-utils';
3
+ export type RichTextProps = WithSupportProps<{
4
+ richText?: string | ReactNode;
5
+ className?: string;
6
+ }>;
7
+ export declare function RichText({ richText, className, ...rest }: RichTextProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import cn from 'classnames';
14
+ import { extractSupportProps } from '@sbercloud/uikit-product-utils';
15
+ import styles from './styles.module.css';
16
+ export function RichText(_a) {
17
+ var { richText = '', className } = _a, rest = __rest(_a, ["richText", "className"]);
18
+ const isStringContent = typeof richText === 'string';
19
+ return (_jsx("div", Object.assign({ className: cn(styles.richText, className) }, (isStringContent ? { dangerouslySetInnerHTML: { __html: richText } } : { children: richText }), extractSupportProps(rest))));
20
+ }
@@ -0,0 +1 @@
1
+ export * from './RichText';
@@ -0,0 +1 @@
1
+ export * from './RichText';
@@ -0,0 +1,30 @@
1
+ .richText p{
2
+ margin:0;
3
+ }
4
+ .richText a{
5
+ display:inline-block;
6
+ pointer-events:visible;
7
+ color:inherit;
8
+ text-decoration:underline;
9
+ -webkit-text-decoration-skip-ink:none;
10
+ text-decoration-skip-ink:none;
11
+ word-break:break-word;
12
+ transition:color 0.3s ease-in-out;
13
+ width:-moz-fit-content;
14
+ width:fit-content;
15
+ }
16
+ .richText a:hover{
17
+ color:var(--sys-primary-accent-hovered, #12bf6a);
18
+ }
19
+ .richText ul,
20
+ .richText ol{
21
+ margin:0;
22
+ padding:0 0 0 20px;
23
+ }
24
+ .richText img{
25
+ max-width:100%;
26
+ margin-bottom:24px;
27
+ }
28
+ .richText img:last-child{
29
+ margin-bottom:0;
30
+ }
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1 @@
1
+ export * from './components';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-site-rich-text",
3
3
  "title": "Site Rich Text",
4
- "version": "0.2.10",
4
+ "version": "0.2.11",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -30,14 +30,15 @@
30
30
  "name": "Akhremenko Grigorii",
31
31
  "url": "https://github.com/AGrigorii"
32
32
  },
33
+ "contributors": [],
33
34
  "license": "Apache-2.0",
34
35
  "publishConfig": {
35
36
  "access": "public"
36
37
  },
37
38
  "scripts": {},
38
39
  "dependencies": {
39
- "@cloud-ru/uikit-product-utils": "7.0.0",
40
+ "@cloud-ru/uikit-product-utils": "7.0.1",
40
41
  "classnames": "2.5.1"
41
42
  },
42
- "gitHead": "e8bd79bc92b26a8f52611972eec98a867536ccd3"
43
+ "gitHead": "9c11b1e33e716c874534a1c162266c8591f2ed03"
43
44
  }