@cleartrip/ct-design-text-editor-renderer 3.21.0-SNAPSHOT-radio-label1.0 → 3.21.0-SNAPSHOT-stable-rnw.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/ct-design-text-editor-renderer.browser.cjs.js +1 -1
- package/dist/ct-design-text-editor-renderer.browser.cjs.js.map +1 -1
- package/dist/ct-design-text-editor-renderer.browser.esm.js +1 -1
- package/dist/ct-design-text-editor-renderer.browser.esm.js.map +1 -1
- package/dist/ct-design-text-editor-renderer.cjs.js +1 -1
- package/dist/ct-design-text-editor-renderer.esm.js +1 -1
- package/dist/ct-design-text-editor-renderer.umd.js +2 -2
- package/package.json +11 -9
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var n=require("tslib"),e=require("react/jsx-runtime"),t=require("react"),r=require("styled
|
|
1
|
+
"use strict";var n=require("tslib"),e=require("react/jsx-runtime"),t=require("react"),r=require("@emotion/styled"),i=require("@cleartrip/ct-design-typography"),o=require("@cleartrip/ct-design-conditional-wrap"),a=require("@cleartrip/ct-design-divider"),s=require("@cleartrip/ct-design-theme");function p(n){return n&&n.__esModule?n:{default:n}}var l,c=p(r),d=p(o),u=function(n){var e={};return[{id:1,style:{fontWeight:"700"}},{id:2,style:{fontStyle:"italic"}},{id:4,style:{textDecoration:"line-through"}},{id:8,style:{textDecoration:"underline"}},{id:12,style:{textDecoration:"line-through underline"}}].forEach((function(t){(n&t.id)===t.id&&Object.assign(e,t.style)})),e},h=function(n){return(null==n?void 0:n.length)?"ta-".concat(n):""},g=function(n){void 0===n&&(n="");var e={};return n.split(";").forEach((function(n){var t=n.split(":"),r=t[0],i=t[1];if(r){var o,a,s=(o=r.trim(),1===(a=o.split("-")).length?a[0]:a[0]+a.slice(1).map((function(n){return n[0].toUpperCase()+n.slice(1)})).join(""));e[s]=i.trim()}})),e},m={h1:{variant:"HM1",componentNode:"h1"},h2:{variant:"HM2",componentNode:"h2"},h3:{variant:"HM3",componentNode:"h3"},paragraph:{variant:"P2",componentNode:"p"},link:{variant:"L2",componentNode:"span"},list:{variant:"P2",componentNode:"li"}},x={h1:{variant:"HD3",componentNode:"h1"},h2:{variant:"HM1",componentNode:"h2"},h3:{variant:"HM2",componentNode:"h3"},paragraph:{variant:"P2",componentNode:"p"},link:{variant:"L2",componentNode:"span"},list:{variant:"P2",componentNode:"li"}},v=c.default.a(l||(l=n.__makeTemplateObject(["\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n"],["\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n"]))),f=function(r){var o,p=r.content,l=r.typographyConfig;if(!p)return null;var c=s.useThemeContext().platform,d=l||("desktop"===c?x:m),u=null===(o=p.children)||void 0===o?void 0:o.map((function(r,o){var s,p={key:{nodeIndex:o}},l=r.type;if("text"===l)return e.jsx(y,{node:r,props:p});if(0===(null===(s=r.children)||void 0===s?void 0:s.length))return e.jsx("br",{});var c=r.tag,u=r.indent,g=u?{paddingLeft:"".concat(16*u,"px")}:{},m=h(r.format),x=n.__assign({},g);if(p.classNames=m,p.style=x,"horizontalrule"===l)return e.jsx(a.Divider,n.__assign({},p));if("list"===l)return e.jsx(_,{props:p,node:r,typographyMapping:d},o);var j=null;return r.children&&(j=f({content:r,typographyConfig:d})),["heading","paragraph"].includes(l)?e.jsx(i.Typography,n.__assign({variant:d[c||l].variant,componentNode:d[c||l].componentNode},p,{children:j})):"link"===l?e.jsx(v,n.__assign({href:r.url,target:"_blank"},p,{children:e.jsx(i.Typography,n.__assign({variant:d[l].variant,componentNode:d[l].componentNode,color:"link"},p,{children:j}))})):"linebreak"===l?e.jsx("br",n.__assign({},p)):e.jsx(t.Fragment,n.__assign({},p,{children:j}))}));return e.jsxs(e.Fragment,{children:[" ",u]})},y=function(t){var r=t.node,i=t.props,o=u(r.format),a=g(r.style);return e.jsx(d.default,n.__assign({},i,{condition:!!o||!!a,wrap:function(t){return e.jsx("span",n.__assign({style:n.__assign(n.__assign({},o),a)},{children:t}))}},{children:e.jsx(e.Fragment,{children:r.text})}))},_=function(t){var r=t.node,o=t.typographyMapping,a=t.props,s="list",p=r.children.map((function(t,r){if("text"!==t.type)return e.jsx(i.Typography,n.__assign({variant:o[s].variant,componentNode:o[s].componentNode},{children:e.jsx(f,{content:t,typographyConfig:o})}),r)}));return"bullet"===r.listType?e.jsx("ul",n.__assign({className:"mx-8"},a,{children:p})):e.jsx("ol",n.__assign({className:"mx-8"},a,{children:p}))};exports.TextEditorRenderer=f,exports.desktopTypographyConfig=x,exports.formatAlignmentWithClasses=h,exports.formatText=u,exports.getStyleObjectFromString=g,exports.indentPaddingPx=16,exports.mobileTypographyConfig=m;
|
|
2
2
|
//# sourceMappingURL=ct-design-text-editor-renderer.browser.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-text-editor-renderer.browser.cjs.js","sources":["../packages/components/TextEditorRenderer/src/utils.ts","../packages/components/TextEditorRenderer/src/TextEditorRenderer.tsx"],"sourcesContent":[null,null],"names":["formatText","formatId","style","id","fontWeight","fontStyle","textDecoration","forEach","item","Object","assign","formatAlignmentWithClasses","format","length","getStyleObjectFromString","styleString","split","el","_a","property","value","propertyName","splitted","formattedProperty","trim","slice","map","word","toUpperCase","join","mobileTypographyConfig","h1","variant","componentNode","h2","h3","paragraph","link","list","desktopTypographyConfig","LinkTag","styled","default","a","templateObject_1","__makeTemplateObject","TextEditorRenderer","content","typographyConfig","platform","useThemeContext","typographyMapping","node","_b","children","nodeIndex","props","key","type","_jsx","RenderLeafNode","tag","indent","indentPadding","paddingLeft","classes","__assign","Divider","RenderList","childNode","includes","jsx","Typography","href","url","target","color","Fragment","_jsxs","_Fragment","formattedStyles","appliedStyles","ConditionalWrap","condition","wrap","text","listItems","elem","liIndex","listType","className"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ct-design-text-editor-renderer.browser.cjs.js","sources":["../packages/components/TextEditorRenderer/src/utils.ts","../packages/components/TextEditorRenderer/src/TextEditorRenderer.tsx"],"sourcesContent":[null,null],"names":["formatText","formatId","style","id","fontWeight","fontStyle","textDecoration","forEach","item","Object","assign","formatAlignmentWithClasses","format","length","getStyleObjectFromString","styleString","split","el","_a","property","value","propertyName","splitted","formattedProperty","trim","slice","map","word","toUpperCase","join","mobileTypographyConfig","h1","variant","componentNode","h2","h3","paragraph","link","list","desktopTypographyConfig","LinkTag","styled","default","a","templateObject_1","__makeTemplateObject","TextEditorRenderer","content","typographyConfig","platform","useThemeContext","typographyMapping","node","_b","children","nodeIndex","props","key","type","_jsx","RenderLeafNode","tag","indent","indentPadding","paddingLeft","classes","__assign","Divider","RenderList","childNode","includes","jsx","Typography","href","url","target","color","Fragment","_jsxs","_Fragment","formattedStyles","appliedStyles","ConditionalWrap","condition","wrap","text","listItems","elem","liIndex","listType","className"],"mappings":"4WAiBaA,EAAa,SAACC,GACzB,IAQMC,EAAQ,CAAA,EAQd,MAhBkB,CAChB,CAAEC,GAAI,EAAGD,MAAO,CAAEE,WAAY,QAC9B,CAAED,GAAI,EAAGD,MAAO,CAAEG,UAAW,WAC7B,CAAEF,GAAI,EAAGD,MAAO,CAAEI,eAAgB,iBAClC,CAAEH,GAAI,EAAGD,MAAO,CAAEI,eAAgB,cAClC,CAAEH,GAAI,GAAID,MAAO,CAAEI,eAAgB,4BAK3BC,SAAQ,SAACC,IACZP,EAAWO,EAAKL,MAAQK,EAAKL,IAChCM,OAAOC,OAAOR,EAAOM,EAAKN,MAE9B,IAEOA,CACT,EAEaS,EAA6B,SAACC,GACzC,OAAOA,aAAA,EAAAA,EAAQC,QAAS,aAAMD,GAAW,EAC3C,EAcaE,EAA2B,SAACC,QAAA,IAAAA,IAAAA,EAAgB,IACvD,IAAMb,EAAgC,CAAA,EAStC,OARAa,EAAYC,MAAM,KAAKT,SAAQ,SAACU,GACxB,IAAAC,EAAoBD,EAAGD,MAAM,KAA5BG,EAAQD,EAAA,GAAEE,OACjB,GAAKD,EAAL,CAEA,IAl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AOS,EAAAA,KAAAC,EAAAA,SAAA,CAAAzB,SAAA,CAAA,IAAIF,IACb,EAIMQ,EAAiB,SAAC1C,OAAEkC,EAAIlC,EAAAkC,KAAEI,EAAKtC,EAAAsC,MAC7BwB,EAAkBhF,EAAWoD,EAAKxC,QAClCqE,EAAgBnE,EAAyBsC,EAAKlD,OACpD,OACEyD,EAACY,IAAAW,EAAexC,sBACVc,EAAK,CACT2B,YAAaH,KAAqBC,EAClCG,KAAM,SAAC9B,GAAa,OAAAK,yBAAMzD,MAAKgE,EAAAA,SAAAA,EAAAA,SAAA,GAAOc,GAAoBC,cAAkB3B,IAAgB,GAAA,CAAAA,SAE5FK,EAAAA,yBAAGP,EAAKiC,SAGd,EAEMjB,EAAa,SAAClD,GAClB,IAAAkC,SACAD,EAAiBjC,EAAAiC,kBACjBK,EAAKtC,EAAAsC,MAMCE,EAAO,OACP4B,EAAYlC,EAAKE,SAAS5B,KAAI,SAAC6D,EAAMC,GACzC,GAAkB,SAAdD,EAAK7B,KACP,OACEC,MAACa,EAAAA,WACCN,EAAAA,SAAA,CAAAlC,QAASmB,EAAkBO,GAAM1B,QACjCC,cAAekB,EAAkBO,GAAMzB,eAGvC,CAAAqB,SAAAK,MAACb,EAAkB,CAACC,QAASwC,EAAMvC,iBAAkBG,MAFhDqC,EAKb,IACA,MAAyB,WAAlBpC,EAAKqC,SACV9B,EAAIY,IAAA,KAAAL,WAAA,CAAAwB,UAAU,QAAWlC,EAAK,CAAAF,SAC3BgC,KAGH3B,EAAAA,IAAI,KAAAO,EAAAA,SAAA,CAAAwB,UAAU,QAAWlC,EAAK,CAAAF,SAC3BgC,IAGP,sLDxB+B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n,__assign as t}from"tslib";import{jsx as e,jsxs as r,Fragment as o}from"react/jsx-runtime";import{Fragment as i}from"react";import a from"styled
|
|
1
|
+
import{__makeTemplateObject as n,__assign as t}from"tslib";import{jsx as e,jsxs as r,Fragment as o}from"react/jsx-runtime";import{Fragment as i}from"react";import a from"@emotion/styled";import{Typography as l}from"@cleartrip/ct-design-typography";import p from"@cleartrip/ct-design-conditional-wrap";import{Divider as c}from"@cleartrip/ct-design-divider";import{useThemeContext as d}from"@cleartrip/ct-design-theme";var h,m=function(n){var t={};return[{id:1,style:{fontWeight:"700"}},{id:2,style:{fontStyle:"italic"}},{id:4,style:{textDecoration:"line-through"}},{id:8,style:{textDecoration:"underline"}},{id:12,style:{textDecoration:"line-through underline"}}].forEach((function(e){(n&e.id)===e.id&&Object.assign(t,e.style)})),t},s=function(n){return(null==n?void 0:n.length)?"ta-".concat(n):""},u=function(n){void 0===n&&(n="");var t={};return n.split(";").forEach((function(n){var e=n.split(":"),r=e[0],o=e[1];if(r){var i,a,l=(i=r.trim(),1===(a=i.split("-")).length?a[0]:a[0]+a.slice(1).map((function(n){return n[0].toUpperCase()+n.slice(1)})).join(""));t[l]=o.trim()}})),t},f={h1:{variant:"HM1",componentNode:"h1"},h2:{variant:"HM2",componentNode:"h2"},h3:{variant:"HM3",componentNode:"h3"},paragraph:{variant:"P2",componentNode:"p"},link:{variant:"L2",componentNode:"span"},list:{variant:"P2",componentNode:"li"}},v={h1:{variant:"HD3",componentNode:"h1"},h2:{variant:"HM1",componentNode:"h2"},h3:{variant:"HM2",componentNode:"h3"},paragraph:{variant:"P2",componentNode:"p"},link:{variant:"L2",componentNode:"span"},list:{variant:"P2",componentNode:"li"}},g=16,y=a.a(h||(h=n(["\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n"],["\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n"]))),N=function(n){var a,p=n.content,h=n.typographyConfig;if(!p)return null;var m=d().platform,u=h||("desktop"===m?v:f),g=null===(a=p.children)||void 0===a?void 0:a.map((function(n,r){var o,a={key:{nodeIndex:r}},p=n.type;if("text"===p)return e(x,{node:n,props:a});if(0===(null===(o=n.children)||void 0===o?void 0:o.length))return e("br",{});var d=n.tag,h=n.indent,m=h?{paddingLeft:"".concat(16*h,"px")}:{},f=s(n.format),v=t({},m);if(a.classNames=f,a.style=v,"horizontalrule"===p)return e(c,t({},a));if("list"===p)return e(k,{props:a,node:n,typographyMapping:u},r);var g=null;return n.children&&(g=N({content:n,typographyConfig:u})),["heading","paragraph"].includes(p)?e(l,t({variant:u[d||p].variant,componentNode:u[d||p].componentNode},a,{children:g})):"link"===p?e(y,t({href:n.url,target:"_blank"},a,{children:e(l,t({variant:u[p].variant,componentNode:u[p].componentNode,color:"link"},a,{children:g}))})):"linebreak"===p?e("br",t({},a)):e(i,t({},a,{children:g}))}));return r(o,{children:[" ",g]})},x=function(n){var r=n.node,i=n.props,a=m(r.format),l=u(r.style);return e(p,t({},i,{condition:!!a||!!l,wrap:function(n){return e("span",t({style:t(t({},a),l)},{children:n}))}},{children:e(o,{children:r.text})}))},k=function(n){var r=n.node,o=n.typographyMapping,i=n.props,a="list",p=r.children.map((function(n,r){if("text"!==n.type)return e(l,t({variant:o[a].variant,componentNode:o[a].componentNode},{children:e(N,{content:n,typographyConfig:o})}),r)}));return"bullet"===r.listType?e("ul",t({className:"mx-8"},i,{children:p})):e("ol",t({className:"mx-8"},i,{children:p}))};export{N as TextEditorRenderer,v as desktopTypographyConfig,s as formatAlignmentWithClasses,m as formatText,u as getStyleObjectFromString,g as indentPaddingPx,f as mobileTypographyConfig};
|
|
2
2
|
//# sourceMappingURL=ct-design-text-editor-renderer.browser.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-text-editor-renderer.browser.esm.js","sources":["../packages/components/TextEditorRenderer/src/utils.ts","../packages/components/TextEditorRenderer/src/TextEditorRenderer.tsx"],"sourcesContent":[null,null],"names":["formatText","formatId","style","id","fontWeight","fontStyle","textDecoration","forEach","item","Object","assign","formatAlignmentWithClasses","format","length","getStyleObjectFromString","styleString","split","el","_a","property","value","propertyName","splitted","formattedProperty","trim","slice","map","word","toUpperCase","join","mobileTypographyConfig","h1","variant","componentNode","h2","h3","paragraph","link","list","desktopTypographyConfig","indentPaddingPx","LinkTag","styled","a","templateObject_1","__makeTemplateObject","TextEditorRenderer","content","typographyConfig","platform","useThemeContext","typographyMapping","node","_b","children","nodeIndex","props","key","type","_jsx","RenderLeafNode","tag","indent","indentPadding","paddingLeft","classes","__assign","Divider","RenderList","childNode","includes","Typography","href","url","target","color","Fragment","_jsxs","_Fragment","formattedStyles","appliedStyles","ConditionalWrap","condition","wrap","text","listItems","elem","liIndex","listType","className"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ct-design-text-editor-renderer.browser.esm.js","sources":["../packages/components/TextEditorRenderer/src/utils.ts","../packages/components/TextEditorRenderer/src/TextEditorRenderer.tsx"],"sourcesContent":[null,null],"names":["formatText","formatId","style","id","fontWeight","fontStyle","textDecoration","forEach","item","Object","assign","formatAlignmentWithClasses","format","length","getStyleObjectFromString","styleString","split","el","_a","property","value","propertyName","splitted","formattedProperty","trim","slice","map","word","toUpperCase","join","mobileTypographyConfig","h1","variant","componentNode","h2","h3","paragraph","link","list","desktopTypographyConfig","indentPaddingPx","LinkTag","styled","a","templateObject_1","__makeTemplateObject","TextEditorRenderer","content","typographyConfig","platform","useThemeContext","typographyMapping","node","_b","children","nodeIndex","props","key","type","_jsx","RenderLeafNode","tag","indent","indentPadding","paddingLeft","classes","__assign","Divider","RenderList","childNode","includes","Typography","href","url","target","color","Fragment","_jsxs","_Fragment","formattedStyles","appliedStyles","ConditionalWrap","condition","wrap","text","listItems","elem","liIndex","listType","className"],"mappings":"iaAiBO,MAAMA,EAAa,SAACC,GACzB,IAQMC,EAAQ,CAAA,EAQd,MAhBkB,CAChB,CAAEC,GAAI,EAAGD,MAAO,CAAEE,WAAY,QAC9B,CAAED,GAAI,EAAGD,MAAO,CAAEG,UAAW,WAC7B,CAAEF,GAAI,EAAGD,MAAO,CAAEI,eAAgB,iBAClC,CAAEH,GAAI,EAAGD,MAAO,CAAEI,eAAgB,cAClC,CAAEH,GAAI,GAAID,MAAO,CA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SAC3B+B,IAGP"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var react = require('react');
|
|
6
|
-
var styled = require('styled
|
|
6
|
+
var styled = require('@emotion/styled');
|
|
7
7
|
var ctDesignTypography = require('@cleartrip/ct-design-typography');
|
|
8
8
|
var ConditionalWrap = require('@cleartrip/ct-design-conditional-wrap');
|
|
9
9
|
var ctDesignDivider = require('@cleartrip/ct-design-divider');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __makeTemplateObject, __assign } from 'tslib';
|
|
2
2
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
3
3
|
import { Fragment } from 'react';
|
|
4
|
-
import styled from 'styled
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { Typography } from '@cleartrip/ct-design-typography';
|
|
6
6
|
import ConditionalWrap from '@cleartrip/ct-design-conditional-wrap';
|
|
7
7
|
import { Divider } from '@cleartrip/ct-design-divider';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('styled
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', 'styled
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('@emotion/styled'), require('@cleartrip/ct-design-typography'), require('@cleartrip/ct-design-conditional-wrap'), require('@cleartrip/ct-design-divider'), require('@cleartrip/ct-design-theme')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', '@emotion/styled', '@cleartrip/ct-design-typography', '@cleartrip/ct-design-conditional-wrap', '@cleartrip/ct-design-divider', '@cleartrip/ct-design-theme'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemTextEditorRenderer = {}, global.jsxRuntime, global.React, global.styled, global.ctDesignTypography, global.ConditionalWrap, global.ctDesignDivider, global.ctDesignTheme));
|
|
5
5
|
})(this, (function (exports, jsxRuntime, react, styled, ctDesignTypography, ConditionalWrap, ctDesignDivider, ctDesignTheme) { 'use strict';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-text-editor-renderer",
|
|
3
|
-
"version": "3.21.0-SNAPSHOT-
|
|
3
|
+
"version": "3.21.0-SNAPSHOT-stable-rnw.0",
|
|
4
4
|
"description": "Text Editor Renderer Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-design-text-editor-renderer.cjs.js",
|
|
@@ -15,19 +15,21 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
20
|
-
"@cleartrip/ct-design-
|
|
21
|
-
"@cleartrip/ct-design-
|
|
18
|
+
"@emotion/react": "^11.14.0",
|
|
19
|
+
"@emotion/styled": "^11.14.0",
|
|
20
|
+
"@cleartrip/ct-design-typography": "3.23.0-SNAPSHOT-stable-rnw.0",
|
|
21
|
+
"@cleartrip/ct-design-conditional-wrap": "3.21.0-SNAPSHOT-stable-rnw.0",
|
|
22
|
+
"@cleartrip/ct-design-divider": "3.21.0-SNAPSHOT-stable-rnw.0",
|
|
23
|
+
"@cleartrip/ct-design-theme": "3.21.0-SNAPSHOT-stable-rnw.0"
|
|
22
24
|
},
|
|
23
25
|
"devDependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@cleartrip/ct-design-
|
|
26
|
+
"@emotion/babel-plugin": "^11.12.0",
|
|
27
|
+
"@cleartrip/ct-design-container": "3.21.0-SNAPSHOT-stable-rnw.0",
|
|
28
|
+
"@cleartrip/ct-design-common-utils": "3.20.1-SNAPSHOT-stable-rnw.0"
|
|
26
29
|
},
|
|
27
30
|
"peerDependencies": {
|
|
28
31
|
"react": ">=16.8.0",
|
|
29
|
-
"react-dom": ">=16.8.0"
|
|
30
|
-
"styled-components": "^5.3.6"
|
|
32
|
+
"react-dom": ">=16.8.0"
|
|
31
33
|
},
|
|
32
34
|
"publishConfig": {
|
|
33
35
|
"access": "public"
|