@takumi-rs/helpers 0.57.6 → 0.59.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/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var d=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},s=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of x(t))!m.call(e,o)&&o!==n&&u(e,o,{get:()=>t[o],enumerable:!(r=c(t,o))||r.enumerable});return e};var a=e=>s(u({},"__esModule",{value:!0}),e);var l={};d(l,{container:()=>f,em:()=>S,fr:()=>$,image:()=>p,percentage:()=>g,rem:()=>w,rgba:()=>C,style:()=>N,text:()=>y,vh:()=>h,vw:()=>b});module.exports=a(l);function i(e,t){t&&Object.keys(t).length>0&&(e.style=t)}function f(e){let t={type:"container",children:e.children,tw:e.tw};return i(t,e.style),t}function y(e,t){if(typeof e=="string"){let r={type:"text",text:e};return i(r,t),r}let n={type:"text",text:e.text,tw:e.tw};return i(n,t??e.style),n}function p(e){let t={type:"image",src:e.src,width:e.width,height:e.height,tw:e.tw};return i(t,e.style),t}function N(e){return e}function g(e){return`${e}%`}function b(e){return`${e}vw`}function h(e){return`${e}vh`}function S(e){return`${e}em`}function w(e){return`${e}rem`}function $(e){return`${e}fr`}function C(e,t,n,r=1){return`rgb(${e} ${t} ${n} / ${r})`}0&&(module.exports={container,em,fr,image,percentage,rem,rgba,style,text,vh,vw});
1
+ "use strict";var c=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var d=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})},a=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of m(t))!f.call(e,o)&&o!==n&&c(e,o,{get:()=>t[o],enumerable:!(r=x(t,o))||r.enumerable});return e};var s=e=>a(c({},"__esModule",{value:!0}),e);var T={};d(T,{container:()=>y,em:()=>p,fr:()=>C,image:()=>g,percentage:()=>w,rem:()=>l,rgba:()=>$,style:()=>b,text:()=>N,vh:()=>h,vw:()=>S});module.exports=s(T);function i(e,t){t&&Object.keys(t).length>0&&(e.style=t)}function u(e,t){t&&Object.keys(t).length>0&&(e.preset=t)}function y(e){let t={type:"container",children:e.children};return e.tw&&(t.tw=e.tw),u(t,e.preset),i(t,e.style),t}function N(e,t){if(typeof e=="string"){let r={type:"text",text:e};return i(r,t),r}let n={type:"text",text:e.text};return e.tw&&(n.tw=e.tw),u(n,e.preset),i(n,t??e.style),n}function g(e){let t={type:"image",src:e.src,width:e.width,height:e.height};return e.tw&&(t.tw=e.tw),u(t,e.preset),i(t,e.style),t}function b(e){return e}function w(e){return`${e}%`}function S(e){return`${e}vw`}function h(e){return`${e}vh`}function p(e){return`${e}em`}function l(e){return`${e}rem`}function C(e){return`${e}fr`}function $(e,t,n,r=1){return`rgb(${e} ${t} ${n} / ${r})`}0&&(module.exports={container,em,fr,image,percentage,rem,rgba,style,text,vh,vw});
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
- import { C as ContainerNode, T as TextNode, I as ImageNode } from './types-D4Tf1iTw.cjs';
3
- export { A as AnyNode, N as Node, P as PartialStyle } from './types-D4Tf1iTw.cjs';
2
+ import { C as ContainerNode, T as TextNode, I as ImageNode } from './types-DgRXITo4.cjs';
3
+ export { A as AnyNode, N as Node, P as PartialStyle } from './types-DgRXITo4.cjs';
4
4
 
5
5
  declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
6
6
  declare function text(text: string, style?: CSSProperties): TextNode;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
- import { C as ContainerNode, T as TextNode, I as ImageNode } from './types-D4Tf1iTw.js';
3
- export { A as AnyNode, N as Node, P as PartialStyle } from './types-D4Tf1iTw.js';
2
+ import { C as ContainerNode, T as TextNode, I as ImageNode } from './types-DgRXITo4.js';
3
+ export { A as AnyNode, N as Node, P as PartialStyle } from './types-DgRXITo4.js';
4
4
 
5
5
  declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
6
6
  declare function text(text: string, style?: CSSProperties): TextNode;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function o(e,t){t&&Object.keys(t).length>0&&(e.style=t)}function i(e){let t={type:"container",children:e.children,tw:e.tw};return o(t,e.style),t}function u(e,t){if(typeof e=="string"){let r={type:"text",text:e};return o(r,t),r}let n={type:"text",text:e.text,tw:e.tw};return o(n,t??e.style),n}function c(e){let t={type:"image",src:e.src,width:e.width,height:e.height,tw:e.tw};return o(t,e.style),t}function x(e){return e}function m(e){return`${e}%`}function d(e){return`${e}vw`}function s(e){return`${e}vh`}function a(e){return`${e}em`}function f(e){return`${e}rem`}function y(e){return`${e}fr`}function p(e,t,n,r=1){return`rgb(${e} ${t} ${n} / ${r})`}export{i as container,a as em,y as fr,c as image,m as percentage,f as rem,p as rgba,x as style,u as text,s as vh,d as vw};
1
+ function o(e,t){t&&Object.keys(t).length>0&&(e.style=t)}function i(e,t){t&&Object.keys(t).length>0&&(e.preset=t)}function c(e){let t={type:"container",children:e.children};return e.tw&&(t.tw=e.tw),i(t,e.preset),o(t,e.style),t}function u(e,t){if(typeof e=="string"){let r={type:"text",text:e};return o(r,t),r}let n={type:"text",text:e.text};return e.tw&&(n.tw=e.tw),i(n,e.preset),o(n,t??e.style),n}function x(e){let t={type:"image",src:e.src,width:e.width,height:e.height};return e.tw&&(t.tw=e.tw),i(t,e.preset),o(t,e.style),t}function m(e){return e}function f(e){return`${e}%`}function d(e){return`${e}vw`}function a(e){return`${e}vh`}function s(e){return`${e}em`}function y(e){return`${e}rem`}function N(e){return`${e}fr`}function g(e,t,n,r=1){return`rgb(${e} ${t} ${n} / ${r})`}export{c as container,s as em,N as fr,x as image,f as percentage,y as rem,g as rgba,m as style,u as text,a as vh,d as vw};
package/dist/jsx/jsx.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var d=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var z=Object.prototype.hasOwnProperty;var F=(t,e)=>{for(var n in e)d(t,n,{get:e[n],enumerable:!0})},j=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of O(e))!z.call(t,o)&&o!==n&&d(t,o,{get:()=>e[o],enumerable:!(r=$(e,o))||r.enumerable});return t};var I=t=>j(d({},"__esModule",{value:!0}),t);var Q={};F(Q,{fromJsx:()=>K});module.exports=I(Q);function l(t,e){e&&Object.keys(e).length>0&&(t.style=e)}function f(t){let e={type:"container",children:t.children,tw:t.tw};return l(e,t.style),e}function m(t,e){if(typeof t=="string"){let r={type:"text",text:t};return l(r,e),r}let n={type:"text",text:t.text,tw:t.tw};return l(n,e??t.style),n}function y(t){let e={type:"image",src:t.src,width:t.width,height:t.height,tw:t.tw};return l(e,t.style),e}function h(t){return`${t}%`}var a={body:{margin:8},p:{marginTop:"1em",marginBottom:"1em",display:"block"},blockquote:{marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40,display:"block"},center:{textAlign:"center",display:"block"},hr:{marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,display:"block"},h1:{fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h2:{fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h3:{fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h4:{marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h5:{fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h6:{fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},u:{textDecoration:"underline",display:"inline"},strong:{fontWeight:"bold",display:"inline"},b:{fontWeight:"bold",display:"inline"},i:{fontStyle:"italic",display:"inline"},em:{fontStyle:"italic",display:"inline"},code:{fontFamily:"monospace",display:"inline"},kbd:{fontFamily:"monospace",display:"inline"},pre:{fontFamily:"monospace",margin:"1em 0",display:"block"},mark:{backgroundColor:"yellow",color:"black",display:"inline"},big:{fontSize:"1.2em",display:"inline"},small:{fontSize:"0.8em",display:"inline"},s:{textDecoration:"line-through",display:"inline"},span:{display:"inline"},img:{display:"inline"},svg:{display:"inline"}};var W=new Set(["head","meta","link","style","script"]);function S(t){return W.has(t.type)}function u(t,e){return t.type===e&&"props"in t}function E(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function i(t){return typeof t=="object"&&t!==null&&"type"in t}function p(t){return typeof t=="function"}var B=Symbol.for("react.forward_ref"),M=Symbol.for("react.memo"),H=Symbol.for("react.fragment");function w(t){return t.$$typeof===B}function P(t){return t.$$typeof===M}function R(t){return t.type===H}function _(t){return typeof t=="string"||typeof t=="number"}function T(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function D(t){return Object.keys(t).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}:${String(t[e]).trim()}`).join(";")}var V=["stopColor","stopOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","fillRule","clipRule","colorInterpolationFilters","floodColor","floodOpacity","accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipPathUnits","colorInterpolation","colorProfile","colorRendering","enableBackground","fillOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","preserveAspectRatio","pointerEvents","shapeRendering","strokeMiterlimit","strokeOpacity","textAnchor","textDecoration","textRendering","transformOrigin","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vectorEffect","vertAdvY","vertOriginX","vertOriginY","vAlphabetic","vHanging","vIdeographic","vMathematical","wordSpacing","writingMode"];function X(t,e){if(t==="children"||e==null)return;let n;if(t==="className"?n="class":V.includes(t)?n=E(t):n=t,typeof e=="boolean")return`${n}="${String(e)}"`;if(t==="style"&&typeof e=="object"){let r=D(e);if(r)return`style="${T(r)}"`}return`${n}="${T(String(e))}"`}function J(t){return Object.entries(t).map(([e,n])=>X(e,n)).filter(e=>e!==void 0)}var Y=(t,e)=>{let n=t.props||{};if(p(t.type))return c(t.type(t.props));if(typeof t.type=="symbol"||typeof t.type!="string")return"";let r=J(n),o=n.children,g=Array.isArray(o)?o.map(x=>e(x)).join(""):e(o);return`<${t.type}${r.length>0?` ${r.join(" ")}`:""}>${g}</${t.type}>`},c=t=>t==null||t===!1?"":_(t)?String(t):Array.isArray(t)?t.map(c).join(""):i(t)?Y(t,c):"";function C(t){let e=t.props||{};if(!("xmlns"in e)){let n={...t,props:{...e,xmlns:"http://www.w3.org/2000/svg"}};return c(n)||""}return c(t)||""}async function K(t){let e=await s(t);return e.length===0?f({}):e.length===1&&e[0]!==void 0?e[0]:f({children:e,style:{width:h(100),height:h(100)}})}async function s(t){if(t==null||t===!1)return[];if(t instanceof Promise)return s(await t);if(typeof t=="object"&&Symbol.iterator in t)return U(t);if(i(t)){let e=await A(t);return Array.isArray(e)?e:e?[e]:[]}return[m(String(t),a.span)]}function q(t){if(!(typeof t.type!="object"||t.type===null)){if(w(t.type)&&"render"in t.type){let e=t.type;return s(e.render(t.props,null))}if(P(t.type)&&"type"in t.type){let n=t.type.type;if(p(n))return s(n(t.props));let r={...t,type:n};return A(r)}}}function L(t){if(!i(t))return Promise.resolve(void 0);let e=typeof t.props=="object"&&t.props!==null&&"children"in t.props?t.props.children:void 0;return typeof e=="string"?Promise.resolve(e):typeof e=="number"?Promise.resolve(String(e)):Array.isArray(e)?Promise.resolve(N(e)):typeof e=="object"&&e!==null&&Symbol.iterator in e?Promise.resolve(N(Array.from(e))):i(e)&&R(e)?L(e):Promise.resolve(void 0)}function N(t){if(!t.some(e=>i(e)))return t.map(e=>typeof e=="string"?e:typeof e=="number"?String(e):"").join("")}async function A(t){if(p(t.type))return s(t.type(t.props));let e=q(t);if(e!==void 0)return e;if(R(t))return await v(t)||[];if(S(t))return[];if(u(t,"br"))return[m(`
2
- `,a.span)];if(u(t,"img"))return[Z(t)];if(u(t,"svg"))return[G(t)];let n=b(t),r=k(t),o=await L(t);if(o!==void 0)return[m({text:o,style:n,tw:r})];let g=await v(t);return[f({children:g,style:n,tw:r})]}function Z(t){if(!t.props.src)throw new Error("Image element must have a 'src' prop.");let e=b(t),n=k(t);return y({src:t.props.src,style:e,tw:n})}function G(t){let e=b(t),n=k(t),r=C(t);return y({style:e,src:r,tw:n})}function b(t){let e={};typeof t.type=="string"&&t.type in a&&Object.assign(e,a[t.type]);let n=typeof t.props=="object"&&t.props!==null&&"style"in t.props&&typeof t.props.style=="object"&&t.props.style!==null?t.props.style:void 0;return n&&Object.keys(n).length>0&&Object.assign(e,n),e}function k(t){if(!(typeof t.props!="object"||t.props===null||!("tw"in t.props)))return t.props.tw}function v(t){return typeof t.props!="object"||t.props===null||!("children"in t.props)?Promise.resolve([]):s(t.props.children)}function U(t){return Promise.all(Array.from(t).map(e=>s(e))).then(e=>e.flat())}0&&(module.exports={fromJsx});
1
+ "use strict";var g=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var j=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},W=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of z(t))!I.call(e,i)&&i!==r&&g(e,i,{get:()=>t[i],enumerable:!(n=J(t,i))||n.enumerable});return e};var B=e=>W(g({},"__esModule",{value:!0}),e);var re={};j(re,{defaultStylePresets:()=>x,fromJsx:()=>G});module.exports=B(re);function f(e,t){t&&Object.keys(t).length>0&&(e.style=t)}function y(e,t){t&&Object.keys(t).length>0&&(e.preset=t)}function m(e){let t={type:"container",children:e.children};return e.tw&&(t.tw=e.tw),y(t,e.preset),f(t,e.style),t}function u(e,t){if(typeof e=="string"){let n={type:"text",text:e};return f(n,t),n}let r={type:"text",text:e.text};return e.tw&&(r.tw=e.tw),y(r,e.preset),f(r,t??e.style),r}function h(e){let t={type:"image",src:e.src,width:e.width,height:e.height};return e.tw&&(t.tw=e.tw),y(t,e.preset),f(t,e.style),t}function R(e){return`${e}%`}var x={body:{margin:8},p:{marginTop:"1em",marginBottom:"1em",display:"block"},blockquote:{marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40,display:"block"},center:{textAlign:"center",display:"block"},hr:{marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,display:"block"},h1:{fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h2:{fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h3:{fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h4:{marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h5:{fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h6:{fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},u:{textDecoration:"underline",display:"inline"},strong:{fontWeight:"bold",display:"inline"},b:{fontWeight:"bold",display:"inline"},i:{fontStyle:"italic",display:"inline"},em:{fontStyle:"italic",display:"inline"},code:{fontFamily:"monospace",display:"inline"},kbd:{fontFamily:"monospace",display:"inline"},pre:{fontFamily:"monospace",margin:"1em 0",display:"block"},mark:{backgroundColor:"yellow",color:"black",display:"inline"},big:{fontSize:"1.2em",display:"inline"},small:{fontSize:"0.8em",display:"inline"},s:{textDecoration:"line-through",display:"inline"},span:{display:"inline"},img:{display:"inline"},svg:{display:"inline"}};var M=new Set(["head","meta","link","style","script"]);function E(e){return M.has(e.type)}function d(e,t){return e.type===t&&"props"in e}function P(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function s(e){return typeof e=="object"&&e!==null&&"type"in e}function p(e){return typeof e=="function"}var H=Symbol.for("react.forward_ref"),_=Symbol.for("react.memo"),D=Symbol.for("react.fragment");function C(e){return e.$$typeof===H}function T(e){return e.$$typeof===_}function S(e){return e.type===D}function V(e){return typeof e=="string"||typeof e=="number"}function N(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function X(e){return Object.keys(e).map(t=>`${t.replace(/([A-Z])/g,"-$1").toLowerCase()}:${String(e[t]).trim()}`).join(";")}var Y=["stopColor","stopOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","fillRule","clipRule","colorInterpolationFilters","floodColor","floodOpacity","accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipPathUnits","colorInterpolation","colorProfile","colorRendering","enableBackground","fillOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","preserveAspectRatio","pointerEvents","shapeRendering","strokeMiterlimit","strokeOpacity","textAnchor","textDecoration","textRendering","transformOrigin","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vectorEffect","vertAdvY","vertOriginX","vertOriginY","vAlphabetic","vHanging","vIdeographic","vMathematical","wordSpacing","writingMode"];function K(e,t){if(e==="children"||t==null)return;let r;if(e==="className"?r="class":Y.includes(e)?r=P(e):r=e,typeof t=="boolean")return`${r}="${String(t)}"`;if(e==="style"&&typeof t=="object"){let n=X(t);if(n)return`style="${N(n)}"`}return`${r}="${N(String(t))}"`}function q(e){return Object.entries(e).map(([t,r])=>K(t,r)).filter(t=>t!==void 0)}var Z=(e,t)=>{let r=e.props||{};if(p(e.type))return c(e.type(e.props));if(typeof e.type=="symbol"||typeof e.type!="string")return"";let n=q(r),i=r.children,o=Array.isArray(i)?i.map(l=>t(l)).join(""):t(i);return`<${e.type}${n.length>0?` ${n.join(" ")}`:""}>${o}</${e.type}>`},c=e=>e==null||e===!1?"":V(e)?String(e):Array.isArray(e)?e.map(c).join(""):s(e)?Z(e,c):"";function v(e){let t=e.props||{};if(!("xmlns"in t)){let r={...e,props:{...t,xmlns:"http://www.w3.org/2000/svg"}};return c(r)||""}return c(e)||""}async function G(e,t){let r=await a(e,t);return r.length===0?m({}):r.length===1&&r[0]!==void 0?r[0]:m({children:r,style:{width:R(100),height:R(100)}})}async function a(e,t){if(e==null||e===!1)return[];if(e instanceof Promise)return a(await e,t);if(typeof e=="object"&&Symbol.iterator in e)return te(e,t);if(s(e)){let r=await $(e,t);return Array.isArray(r)?r:r?[r]:[]}return[u({text:String(e),preset:b(t)?.span})]}function b(e){if(e?.defaultStyles!==!1)return e?.defaultStyles??x}function U(e,t){if(!(typeof e.type!="object"||e.type===null)){if(C(e.type)&&"render"in e.type){let r=e.type;return a(r.render(e.props,null),t)}if(T(e.type)&&"type"in e.type){let n=e.type.type;if(p(n))return a(n(e.props),t);let i={...e,type:n};return $(i,t)}}}function A(e){if(!s(e))return Promise.resolve(void 0);let t=typeof e.props=="object"&&e.props!==null&&"children"in e.props?e.props.children:void 0;return typeof t=="string"?Promise.resolve(t):typeof t=="number"?Promise.resolve(String(t)):Array.isArray(t)?Promise.resolve(L(t)):typeof t=="object"&&t!==null&&Symbol.iterator in t?Promise.resolve(L(Array.from(t))):s(t)&&S(t)?A(t):Promise.resolve(void 0)}function L(e){if(!e.some(t=>s(t)))return e.map(t=>typeof t=="string"?t:typeof t=="number"?String(t):"").join("")}async function $(e,t){if(p(e.type))return a(e.type(e.props),t);let r=U(e,t);if(r!==void 0)return r;if(S(e))return await O(e,t)||[];if(E(e))return[];if(d(e,"br"))return[u({text:`
2
+ `,preset:b(t)?.span})];if(d(e,"img"))return[Q(e,t)];if(d(e,"svg"))return[ee(e,t)];let{preset:n,style:i}=k(e,t),o=w(e),l=await A(e);if(l!==void 0)return[u({text:l,preset:n,style:i,tw:o})];let F=await O(e,t);return[m({children:F,preset:n,style:i,tw:o})]}function Q(e,t){if(!e.props.src)throw new Error("Image element must have a 'src' prop.");let{preset:r,style:n}=k(e,t),i=w(e);return h({src:e.props.src,preset:r,style:n,tw:i})}function ee(e,t){let{preset:r,style:n}=k(e,t),i=w(e),o=v(e);return h({preset:r,style:n,src:o,tw:i})}function k(e,t){let r,n,i=b(t);i&&typeof e.type=="string"&&e.type in i&&(r={...i[e.type]});let o=typeof e.props=="object"&&e.props!==null&&"style"in e.props&&typeof e.props.style=="object"&&e.props.style!==null?e.props.style:void 0;return o&&Object.keys(o).length>0&&(n=o),{preset:r,style:n}}function w(e){if(!(typeof e.props!="object"||e.props===null||!("tw"in e.props)))return e.props.tw}function O(e,t){return typeof e.props!="object"||e.props===null||!("children"in e.props)?Promise.resolve([]):a(e.props.children,t)}function te(e,t){return Promise.all(Array.from(e).map(r=>a(r,t))).then(r=>r.flat())}0&&(module.exports={defaultStylePresets,fromJsx});
@@ -1,5 +1,7 @@
1
- import { ReactNode } from 'react';
2
- import { N as Node } from '../types-D4Tf1iTw.cjs';
1
+ import { JSX, CSSProperties, ReactNode } from 'react';
2
+ import { N as Node } from '../types-DgRXITo4.cjs';
3
+
4
+ declare const defaultStylePresets: Partial<Record<keyof JSX.IntrinsicElements, CSSProperties>>;
3
5
 
4
6
  type ReactElementLike = {
5
7
  type: string | symbol | ((props: unknown) => ReactElementLike) | ReactElementLike;
@@ -12,6 +14,16 @@ declare module "react" {
12
14
  tw?: string;
13
15
  }
14
16
  }
15
- declare function fromJsx(element: ReactNode | ReactElementLike): Promise<Node>;
17
+ interface FromJsxOptions {
18
+ /**
19
+ * Override or disable the default Chromium style presets.
20
+ *
21
+ * If an object is provided, all the default style presets will be overridden.
22
+ *
23
+ * If `false` is provided explicitly, no default style presets will be used.
24
+ */
25
+ defaultStyles?: typeof defaultStylePresets | false;
26
+ }
27
+ declare function fromJsx(element: ReactNode | ReactElementLike, options?: FromJsxOptions): Promise<Node>;
16
28
 
17
- export { fromJsx };
29
+ export { type FromJsxOptions, defaultStylePresets, fromJsx };
package/dist/jsx/jsx.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- import { ReactNode } from 'react';
2
- import { N as Node } from '../types-D4Tf1iTw.js';
1
+ import { JSX, CSSProperties, ReactNode } from 'react';
2
+ import { N as Node } from '../types-DgRXITo4.js';
3
+
4
+ declare const defaultStylePresets: Partial<Record<keyof JSX.IntrinsicElements, CSSProperties>>;
3
5
 
4
6
  type ReactElementLike = {
5
7
  type: string | symbol | ((props: unknown) => ReactElementLike) | ReactElementLike;
@@ -12,6 +14,16 @@ declare module "react" {
12
14
  tw?: string;
13
15
  }
14
16
  }
15
- declare function fromJsx(element: ReactNode | ReactElementLike): Promise<Node>;
17
+ interface FromJsxOptions {
18
+ /**
19
+ * Override or disable the default Chromium style presets.
20
+ *
21
+ * If an object is provided, all the default style presets will be overridden.
22
+ *
23
+ * If `false` is provided explicitly, no default style presets will be used.
24
+ */
25
+ defaultStyles?: typeof defaultStylePresets | false;
26
+ }
27
+ declare function fromJsx(element: ReactNode | ReactElementLike, options?: FromJsxOptions): Promise<Node>;
16
28
 
17
- export { fromJsx };
29
+ export { type FromJsxOptions, defaultStylePresets, fromJsx };
package/dist/jsx/jsx.js CHANGED
@@ -1,2 +1,2 @@
1
- function l(t,e){e&&Object.keys(e).length>0&&(t.style=e)}function f(t){let e={type:"container",children:t.children,tw:t.tw};return l(e,t.style),e}function m(t,e){if(typeof t=="string"){let r={type:"text",text:t};return l(r,e),r}let n={type:"text",text:t.text,tw:t.tw};return l(n,e??t.style),n}function d(t){let e={type:"image",src:t.src,width:t.width,height:t.height,tw:t.tw};return l(e,t.style),e}function y(t){return`${t}%`}var a={body:{margin:8},p:{marginTop:"1em",marginBottom:"1em",display:"block"},blockquote:{marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40,display:"block"},center:{textAlign:"center",display:"block"},hr:{marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,display:"block"},h1:{fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h2:{fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h3:{fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h4:{marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h5:{fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h6:{fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},u:{textDecoration:"underline",display:"inline"},strong:{fontWeight:"bold",display:"inline"},b:{fontWeight:"bold",display:"inline"},i:{fontStyle:"italic",display:"inline"},em:{fontStyle:"italic",display:"inline"},code:{fontFamily:"monospace",display:"inline"},kbd:{fontFamily:"monospace",display:"inline"},pre:{fontFamily:"monospace",margin:"1em 0",display:"block"},mark:{backgroundColor:"yellow",color:"black",display:"inline"},big:{fontSize:"1.2em",display:"inline"},small:{fontSize:"0.8em",display:"inline"},s:{textDecoration:"line-through",display:"inline"},span:{display:"inline"},img:{display:"inline"},svg:{display:"inline"}};var A=new Set(["head","meta","link","style","script"]);function x(t){return A.has(t.type)}function u(t,e){return t.type===e&&"props"in t}function S(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function o(t){return typeof t=="object"&&t!==null&&"type"in t}function p(t){return typeof t=="function"}var $=Symbol.for("react.forward_ref"),O=Symbol.for("react.memo"),z=Symbol.for("react.fragment");function E(t){return t.$$typeof===$}function w(t){return t.$$typeof===O}function h(t){return t.type===z}function F(t){return typeof t=="string"||typeof t=="number"}function P(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function j(t){return Object.keys(t).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}:${String(t[e]).trim()}`).join(";")}var I=["stopColor","stopOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","fillRule","clipRule","colorInterpolationFilters","floodColor","floodOpacity","accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipPathUnits","colorInterpolation","colorProfile","colorRendering","enableBackground","fillOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","preserveAspectRatio","pointerEvents","shapeRendering","strokeMiterlimit","strokeOpacity","textAnchor","textDecoration","textRendering","transformOrigin","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vectorEffect","vertAdvY","vertOriginX","vertOriginY","vAlphabetic","vHanging","vIdeographic","vMathematical","wordSpacing","writingMode"];function W(t,e){if(t==="children"||e==null)return;let n;if(t==="className"?n="class":I.includes(t)?n=S(t):n=t,typeof e=="boolean")return`${n}="${String(e)}"`;if(t==="style"&&typeof e=="object"){let r=j(e);if(r)return`style="${P(r)}"`}return`${n}="${P(String(e))}"`}function B(t){return Object.entries(t).map(([e,n])=>W(e,n)).filter(e=>e!==void 0)}var M=(t,e)=>{let n=t.props||{};if(p(t.type))return c(t.type(t.props));if(typeof t.type=="symbol"||typeof t.type!="string")return"";let r=B(n),s=n.children,g=Array.isArray(s)?s.map(k=>e(k)).join(""):e(s);return`<${t.type}${r.length>0?` ${r.join(" ")}`:""}>${g}</${t.type}>`},c=t=>t==null||t===!1?"":F(t)?String(t):Array.isArray(t)?t.map(c).join(""):o(t)?M(t,c):"";function T(t){let e=t.props||{};if(!("xmlns"in e)){let n={...t,props:{...e,xmlns:"http://www.w3.org/2000/svg"}};return c(n)||""}return c(t)||""}async function tt(t){let e=await i(t);return e.length===0?f({}):e.length===1&&e[0]!==void 0?e[0]:f({children:e,style:{width:y(100),height:y(100)}})}async function i(t){if(t==null||t===!1)return[];if(t instanceof Promise)return i(await t);if(typeof t=="object"&&Symbol.iterator in t)return V(t);if(o(t)){let e=await L(t);return Array.isArray(e)?e:e?[e]:[]}return[m(String(t),a.span)]}function H(t){if(!(typeof t.type!="object"||t.type===null)){if(E(t.type)&&"render"in t.type){let e=t.type;return i(e.render(t.props,null))}if(w(t.type)&&"type"in t.type){let n=t.type.type;if(p(n))return i(n(t.props));let r={...t,type:n};return L(r)}}}function v(t){if(!o(t))return Promise.resolve(void 0);let e=typeof t.props=="object"&&t.props!==null&&"children"in t.props?t.props.children:void 0;return typeof e=="string"?Promise.resolve(e):typeof e=="number"?Promise.resolve(String(e)):Array.isArray(e)?Promise.resolve(C(e)):typeof e=="object"&&e!==null&&Symbol.iterator in e?Promise.resolve(C(Array.from(e))):o(e)&&h(e)?v(e):Promise.resolve(void 0)}function C(t){if(!t.some(e=>o(e)))return t.map(e=>typeof e=="string"?e:typeof e=="number"?String(e):"").join("")}async function L(t){if(p(t.type))return i(t.type(t.props));let e=H(t);if(e!==void 0)return e;if(h(t))return await N(t)||[];if(x(t))return[];if(u(t,"br"))return[m(`
2
- `,a.span)];if(u(t,"img"))return[_(t)];if(u(t,"svg"))return[D(t)];let n=R(t),r=b(t),s=await v(t);if(s!==void 0)return[m({text:s,style:n,tw:r})];let g=await N(t);return[f({children:g,style:n,tw:r})]}function _(t){if(!t.props.src)throw new Error("Image element must have a 'src' prop.");let e=R(t),n=b(t);return d({src:t.props.src,style:e,tw:n})}function D(t){let e=R(t),n=b(t),r=T(t);return d({style:e,src:r,tw:n})}function R(t){let e={};typeof t.type=="string"&&t.type in a&&Object.assign(e,a[t.type]);let n=typeof t.props=="object"&&t.props!==null&&"style"in t.props&&typeof t.props.style=="object"&&t.props.style!==null?t.props.style:void 0;return n&&Object.keys(n).length>0&&Object.assign(e,n),e}function b(t){if(!(typeof t.props!="object"||t.props===null||!("tw"in t.props)))return t.props.tw}function N(t){return typeof t.props!="object"||t.props===null||!("children"in t.props)?Promise.resolve([]):i(t.props.children)}function V(t){return Promise.all(Array.from(t).map(e=>i(e))).then(e=>e.flat())}export{tt as fromJsx};
1
+ function f(e,t){t&&Object.keys(t).length>0&&(e.style=t)}function g(e,t){t&&Object.keys(t).length>0&&(e.preset=t)}function m(e){let t={type:"container",children:e.children};return e.tw&&(t.tw=e.tw),g(t,e.preset),f(t,e.style),t}function u(e,t){if(typeof e=="string"){let n={type:"text",text:e};return f(n,t),n}let r={type:"text",text:e.text};return e.tw&&(r.tw=e.tw),g(r,e.preset),f(r,t??e.style),r}function y(e){let t={type:"image",src:e.src,width:e.width,height:e.height};return e.tw&&(t.tw=e.tw),g(t,e.preset),f(t,e.style),t}function h(e){return`${e}%`}var k={body:{margin:8},p:{marginTop:"1em",marginBottom:"1em",display:"block"},blockquote:{marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40,display:"block"},center:{textAlign:"center",display:"block"},hr:{marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,display:"block"},h1:{fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h2:{fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h3:{fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h4:{marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h5:{fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},h6:{fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold",display:"block"},u:{textDecoration:"underline",display:"inline"},strong:{fontWeight:"bold",display:"inline"},b:{fontWeight:"bold",display:"inline"},i:{fontStyle:"italic",display:"inline"},em:{fontStyle:"italic",display:"inline"},code:{fontFamily:"monospace",display:"inline"},kbd:{fontFamily:"monospace",display:"inline"},pre:{fontFamily:"monospace",margin:"1em 0",display:"block"},mark:{backgroundColor:"yellow",color:"black",display:"inline"},big:{fontSize:"1.2em",display:"inline"},small:{fontSize:"0.8em",display:"inline"},s:{textDecoration:"line-through",display:"inline"},span:{display:"inline"},img:{display:"inline"},svg:{display:"inline"}};var F=new Set(["head","meta","link","style","script"]);function w(e){return F.has(e.type)}function d(e,t){return e.type===t&&"props"in e}function E(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function s(e){return typeof e=="object"&&e!==null&&"type"in e}function p(e){return typeof e=="function"}var J=Symbol.for("react.forward_ref"),z=Symbol.for("react.memo"),I=Symbol.for("react.fragment");function P(e){return e.$$typeof===J}function C(e){return e.$$typeof===z}function R(e){return e.type===I}function j(e){return typeof e=="string"||typeof e=="number"}function T(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function W(e){return Object.keys(e).map(t=>`${t.replace(/([A-Z])/g,"-$1").toLowerCase()}:${String(e[t]).trim()}`).join(";")}var B=["stopColor","stopOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","fillRule","clipRule","colorInterpolationFilters","floodColor","floodOpacity","accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipPathUnits","colorInterpolation","colorProfile","colorRendering","enableBackground","fillOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","preserveAspectRatio","pointerEvents","shapeRendering","strokeMiterlimit","strokeOpacity","textAnchor","textDecoration","textRendering","transformOrigin","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vectorEffect","vertAdvY","vertOriginX","vertOriginY","vAlphabetic","vHanging","vIdeographic","vMathematical","wordSpacing","writingMode"];function M(e,t){if(e==="children"||t==null)return;let r;if(e==="className"?r="class":B.includes(e)?r=E(e):r=e,typeof t=="boolean")return`${r}="${String(t)}"`;if(e==="style"&&typeof t=="object"){let n=W(t);if(n)return`style="${T(n)}"`}return`${r}="${T(String(t))}"`}function H(e){return Object.entries(e).map(([t,r])=>M(t,r)).filter(t=>t!==void 0)}var _=(e,t)=>{let r=e.props||{};if(p(e.type))return c(e.type(e.props));if(typeof e.type=="symbol"||typeof e.type!="string")return"";let n=H(r),i=r.children,o=Array.isArray(i)?i.map(l=>t(l)).join(""):t(i);return`<${e.type}${n.length>0?` ${n.join(" ")}`:""}>${o}</${e.type}>`},c=e=>e==null||e===!1?"":j(e)?String(e):Array.isArray(e)?e.map(c).join(""):s(e)?_(e,c):"";function N(e){let t=e.props||{};if(!("xmlns"in t)){let r={...e,props:{...t,xmlns:"http://www.w3.org/2000/svg"}};return c(r)||""}return c(e)||""}async function ie(e,t){let r=await a(e,t);return r.length===0?m({}):r.length===1&&r[0]!==void 0?r[0]:m({children:r,style:{width:h(100),height:h(100)}})}async function a(e,t){if(e==null||e===!1)return[];if(e instanceof Promise)return a(await e,t);if(typeof e=="object"&&Symbol.iterator in e)return Y(e,t);if(s(e)){let r=await A(e,t);return Array.isArray(r)?r:r?[r]:[]}return[u({text:String(e),preset:x(t)?.span})]}function x(e){if(e?.defaultStyles!==!1)return e?.defaultStyles??k}function D(e,t){if(!(typeof e.type!="object"||e.type===null)){if(P(e.type)&&"render"in e.type){let r=e.type;return a(r.render(e.props,null),t)}if(C(e.type)&&"type"in e.type){let n=e.type.type;if(p(n))return a(n(e.props),t);let i={...e,type:n};return A(i,t)}}}function O(e){if(!s(e))return Promise.resolve(void 0);let t=typeof e.props=="object"&&e.props!==null&&"children"in e.props?e.props.children:void 0;return typeof t=="string"?Promise.resolve(t):typeof t=="number"?Promise.resolve(String(t)):Array.isArray(t)?Promise.resolve(v(t)):typeof t=="object"&&t!==null&&Symbol.iterator in t?Promise.resolve(v(Array.from(t))):s(t)&&R(t)?O(t):Promise.resolve(void 0)}function v(e){if(!e.some(t=>s(t)))return e.map(t=>typeof t=="string"?t:typeof t=="number"?String(t):"").join("")}async function A(e,t){if(p(e.type))return a(e.type(e.props),t);let r=D(e,t);if(r!==void 0)return r;if(R(e))return await L(e,t)||[];if(w(e))return[];if(d(e,"br"))return[u({text:`
2
+ `,preset:x(t)?.span})];if(d(e,"img"))return[V(e,t)];if(d(e,"svg"))return[X(e,t)];let{preset:n,style:i}=S(e,t),o=b(e),l=await O(e);if(l!==void 0)return[u({text:l,preset:n,style:i,tw:o})];let $=await L(e,t);return[m({children:$,preset:n,style:i,tw:o})]}function V(e,t){if(!e.props.src)throw new Error("Image element must have a 'src' prop.");let{preset:r,style:n}=S(e,t),i=b(e);return y({src:e.props.src,preset:r,style:n,tw:i})}function X(e,t){let{preset:r,style:n}=S(e,t),i=b(e),o=N(e);return y({preset:r,style:n,src:o,tw:i})}function S(e,t){let r,n,i=x(t);i&&typeof e.type=="string"&&e.type in i&&(r={...i[e.type]});let o=typeof e.props=="object"&&e.props!==null&&"style"in e.props&&typeof e.props.style=="object"&&e.props.style!==null?e.props.style:void 0;return o&&Object.keys(o).length>0&&(n=o),{preset:r,style:n}}function b(e){if(!(typeof e.props!="object"||e.props===null||!("tw"in e.props)))return e.props.tw}function L(e,t){return typeof e.props!="object"||e.props===null||!("children"in e.props)?Promise.resolve([]):a(e.props.children,t)}function Y(e,t){return Promise.all(Array.from(e).map(r=>a(r,t))).then(r=>r.flat())}export{k as defaultStylePresets,ie as fromJsx};
@@ -13,6 +13,7 @@ type PartialStyle = CSSProperties;
13
13
  type Node = ContainerNode | TextNode | ImageNode | AnyNode;
14
14
  type ContainerNode = {
15
15
  type: "container";
16
+ preset?: CSSProperties;
16
17
  style?: CSSProperties;
17
18
  children?: Node[];
18
19
  tw?: string;
@@ -20,6 +21,7 @@ type ContainerNode = {
20
21
  type TextNode = {
21
22
  type: "text";
22
23
  text: string;
24
+ preset?: CSSProperties;
23
25
  style?: CSSProperties;
24
26
  tw?: string;
25
27
  };
@@ -28,6 +30,7 @@ type ImageNode = {
28
30
  src: string;
29
31
  width?: number;
30
32
  height?: number;
33
+ preset?: CSSProperties;
31
34
  style?: CSSProperties;
32
35
  tw?: string;
33
36
  };
@@ -13,6 +13,7 @@ type PartialStyle = CSSProperties;
13
13
  type Node = ContainerNode | TextNode | ImageNode | AnyNode;
14
14
  type ContainerNode = {
15
15
  type: "container";
16
+ preset?: CSSProperties;
16
17
  style?: CSSProperties;
17
18
  children?: Node[];
18
19
  tw?: string;
@@ -20,6 +21,7 @@ type ContainerNode = {
20
21
  type TextNode = {
21
22
  type: "text";
22
23
  text: string;
24
+ preset?: CSSProperties;
23
25
  style?: CSSProperties;
24
26
  tw?: string;
25
27
  };
@@ -28,6 +30,7 @@ type ImageNode = {
28
30
  src: string;
29
31
  width?: number;
30
32
  height?: number;
33
+ preset?: CSSProperties;
31
34
  style?: CSSProperties;
32
35
  tw?: string;
33
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/helpers",
3
- "version": "0.57.6",
3
+ "version": "0.59.0",
4
4
  "author": {
5
5
  "email": "me@kane.tw",
6
6
  "name": "Kane Wang",