@stackshift-ui/blockstyle 6.0.4-beta.1 → 6.0.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/blockstyle",
3
3
  "description": "",
4
- "version": "6.0.4-beta.1",
4
+ "version": "6.0.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,20 +29,20 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/eslint-config": "6.0.3-beta.1",
33
- "@stackshift-ui/typescript-config": "6.0.3-beta.1"
32
+ "@stackshift-ui/eslint-config": "6.0.3",
33
+ "@stackshift-ui/typescript-config": "6.0.3"
34
34
  },
35
35
  "dependencies": {
36
36
  "@portabletext/react": "^3.1.0",
37
- "@stackshift-ui/heading": "6.0.4-beta.1",
38
- "@stackshift-ui/scripts": "6.0.3-beta.1",
39
- "@stackshift-ui/text": "6.0.4-beta.1",
40
- "@stackshift-ui/system": "6.0.4-beta.1",
41
- "@stackshift-ui/image": "6.0.4-beta.1",
42
- "@stackshift-ui/link": "6.0.4-beta.1"
37
+ "@stackshift-ui/heading": "6.0.4",
38
+ "@stackshift-ui/image": "6.0.4",
39
+ "@stackshift-ui/scripts": "6.0.3",
40
+ "@stackshift-ui/link": "6.0.4",
41
+ "@stackshift-ui/text": "6.0.4",
42
+ "@stackshift-ui/system": "6.0.4"
43
43
  },
44
44
  "peerDependencies": {
45
- "@stackshift-ui/system": ">=6.0.4-beta.1",
45
+ "@stackshift-ui/system": ">=6.0.4",
46
46
  "@types/react": "16.8 - 19",
47
47
  "next": "10 - 14",
48
48
  "react": "16.8 - 19",
@@ -1,8 +0,0 @@
1
- import type { ElementType, HTMLProps, ReactNode } from "react";
2
- export interface BlockstyleProps extends Omit<HTMLProps<HTMLElement>, "as"> {
3
- children?: ReactNode;
4
- className?: string;
5
- as?: ElementType;
6
- content?: any;
7
- }
8
- export declare const Blockstyle: React.FC<BlockstyleProps>;
@@ -1 +0,0 @@
1
- "use strict";var n=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var T=(e,o)=>{for(var l in o)n(e,l,{get:o[l],enumerable:!0})},w=(e,o,l,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of k(o))!N.call(e,m)&&m!==l&&n(e,m,{get:()=>o[m],enumerable:!(a=h(o,m))||a.enumerable});return e};var C=e=>w(n({},"__esModule",{value:!0}),e);var P={};T(P,{Blockstyle:()=>f});module.exports=C(P);var r=require("@stackshift-ui/system"),b=require("@portabletext/react");var s=require("@stackshift-ui/heading"),d=require("@stackshift-ui/text"),p=require("@stackshift-ui/link"),g=require("@stackshift-ui/image"),t=require("react/jsx-runtime"),x={block:{h1:({children:e})=>(0,t.jsx)(s.Heading,{fontSize:"3xl",weight:"bold",className:"mb-8 leading-normal text-black",children:e}),h2:({children:e})=>(0,t.jsx)(s.Heading,{type:"h2",weight:"bold",fontSize:"2xl",className:"mb-8 text-black",children:e}),h3:({children:e})=>(0,t.jsx)(s.Heading,{type:"h3",fontSize:"xl",weight:"bold",className:"mb-8 leading-normal text-black",children:e}),h4:({children:e})=>(0,t.jsx)(s.Heading,{type:"h4",weight:"bold",fontSize:"lg",className:"mb-8 leading-normal text-black",children:e}),normal:({children:e})=>(0,t.jsx)(d.Text,{className:"mb-8 leading-relaxed",children:e}),blockquote:({children:e})=>(0,t.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,t.jsx)("pre",{"data-language":e.language,children:(0,t.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,t.jsx)("ul",{className:"flex flex-col pl-10 mb-8 space-y-4 leading-relaxed list-disc",children:e}),number:({children:e})=>(0,t.jsx)("ol",{className:"flex flex-col pl-10 mb-8 space-y-4 leading-relaxed list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e}),number:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e})},marks:{strong:({children:e})=>(0,t.jsx)("strong",{children:e}),em:({children:e})=>(0,t.jsx)("em",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),link:({children:e,value:o})=>(0,t.jsx)(p.Link,{className:"hover:text-primary-foreground text-primary",href:o.href,target:"_blank",rel:"noopener noreferrer",children:e})},types:{addImage:({value:e})=>{var o,l,a;return(0,t.jsx)(g.Image,{className:"w-full h-full mb-5",width:500,height:500,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:(l=(o=e==null?void 0:e.image)==null?void 0:o.asset)==null?void 0:l._ref})}}};var i="Blockstyle",f=({children:e,className:o,as:l,content:a,...m})=>{let{[i]:y=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,t.jsx)(y,{as:l,className:o,...m,"data-testid":i,children:a?(0,t.jsx)(b.PortableText,{value:a,components:x}):e})};f.displayName=i;0&&(module.exports={Blockstyle});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-INK7XA5Q.mjs";import"./chunk-GLR2G3MJ.mjs";export{a as Blockstyle};
@@ -1 +0,0 @@
1
- import{Heading as a}from"@stackshift-ui/heading";import{Text as i}from"@stackshift-ui/text";import{Link as r}from"@stackshift-ui/link";import{Image as n}from"@stackshift-ui/image";import{jsx as l,jsxs as s}from"react/jsx-runtime";var b={block:{h1:({children:e})=>l(a,{fontSize:"3xl",weight:"bold",className:"mb-8 leading-normal text-black",children:e}),h2:({children:e})=>l(a,{type:"h2",weight:"bold",fontSize:"2xl",className:"mb-8 text-black",children:e}),h3:({children:e})=>l(a,{type:"h3",fontSize:"xl",weight:"bold",className:"mb-8 leading-normal text-black",children:e}),h4:({children:e})=>l(a,{type:"h4",weight:"bold",fontSize:"lg",className:"mb-8 leading-normal text-black",children:e}),normal:({children:e})=>l(i,{className:"mb-8 leading-relaxed",children:e}),blockquote:({children:e})=>s("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>l("pre",{"data-language":e.language,children:l("code",{children:e.code})}),list:{bullet:({children:e})=>l("ul",{className:"flex flex-col pl-10 mb-8 space-y-4 leading-relaxed list-disc",children:e}),number:({children:e})=>l("ol",{className:"flex flex-col pl-10 mb-8 space-y-4 leading-relaxed list-decimal",children:e})},listItem:{bullet:({children:e})=>l("li",{className:"leading-relaxed",children:e}),number:({children:e})=>l("li",{className:"leading-relaxed",children:e})},marks:{strong:({children:e})=>l("strong",{children:e}),em:({children:e})=>l("em",{children:e}),code:({children:e})=>l("code",{children:e}),link:({children:e,value:t})=>l(r,{className:"hover:text-primary-foreground text-primary",href:t.href,target:"_blank",rel:"noopener noreferrer",children:e})},types:{addImage:({value:e})=>{var t,o,m;return l(n,{className:"w-full h-full mb-5",width:500,height:500,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",src:e==null?void 0:e.image,alt:(m=e==null?void 0:e.alt)!=null?m:(o=(t=e==null?void 0:e.image)==null?void 0:t.asset)==null?void 0:o._ref})}}};export{b as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-GLR2G3MJ.mjs";import{DefaultComponent as r,useStackShiftUIComponents as c}from"@stackshift-ui/system";import{PortableText as i}from"@portabletext/react";import{jsx as s}from"react/jsx-runtime";var e="Blockstyle",y=({children:a,className:l,as:n,content:t,...m})=>{let{[e]:p=r}=c();return s(p,{as:n,className:l,...m,"data-testid":e,children:t?s(i,{value:t,components:o}):a})};y.displayName=e;export{y as a};
@@ -1,10 +0,0 @@
1
- import { PortableTextComponents } from "@portabletext/react";
2
- export type MyPortableTextComponents = PortableTextComponents & {
3
- code?: ({ value }: {
4
- value: {
5
- language?: string;
6
- code?: string;
7
- };
8
- }) => JSX.Element;
9
- };
10
- export declare const defaultBlockStyle: MyPortableTextComponents;
@@ -1 +0,0 @@
1
- "use strict";var r=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var b=(e,t)=>{for(var a in t)r(e,a,{get:t[a],enumerable:!0})},p=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of g(t))!x.call(e,m)&&m!==a&&r(e,m,{get:()=>t[m],enumerable:!(o=c(t,m))||o.enumerable});return e};var f=e=>p(r({},"__esModule",{value:!0}),e);var k={};b(k,{defaultBlockStyle:()=>h});module.exports=f(k);var i=require("@stackshift-ui/heading"),n=require("@stackshift-ui/text"),s=require("@stackshift-ui/link"),d=require("@stackshift-ui/image"),l=require("react/jsx-runtime"),h={block:{h1:({children:e})=>(0,l.jsx)(i.Heading,{fontSize:"3xl",weight:"bold",className:"mb-8 leading-normal text-black",children:e}),h2:({children:e})=>(0,l.jsx)(i.Heading,{type:"h2",weight:"bold",fontSize:"2xl",className:"mb-8 text-black",children:e}),h3:({children:e})=>(0,l.jsx)(i.Heading,{type:"h3",fontSize:"xl",weight:"bold",className:"mb-8 leading-normal text-black",children:e}),h4:({children:e})=>(0,l.jsx)(i.Heading,{type:"h4",weight:"bold",fontSize:"lg",className:"mb-8 leading-normal text-black",children:e}),normal:({children:e})=>(0,l.jsx)(n.Text,{className:"mb-8 leading-relaxed",children:e}),blockquote:({children:e})=>(0,l.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,l.jsx)("pre",{"data-language":e.language,children:(0,l.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,l.jsx)("ul",{className:"flex flex-col pl-10 mb-8 space-y-4 leading-relaxed list-disc",children:e}),number:({children:e})=>(0,l.jsx)("ol",{className:"flex flex-col pl-10 mb-8 space-y-4 leading-relaxed list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,l.jsx)("li",{className:"leading-relaxed",children:e}),number:({children:e})=>(0,l.jsx)("li",{className:"leading-relaxed",children:e})},marks:{strong:({children:e})=>(0,l.jsx)("strong",{children:e}),em:({children:e})=>(0,l.jsx)("em",{children:e}),code:({children:e})=>(0,l.jsx)("code",{children:e}),link:({children:e,value:t})=>(0,l.jsx)(s.Link,{className:"hover:text-primary-foreground text-primary",href:t.href,target:"_blank",rel:"noopener noreferrer",children:e})},types:{addImage:({value:e})=>{var t,a,o;return(0,l.jsx)(d.Image,{className:"w-full h-full mb-5",width:500,height:500,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",src:e==null?void 0:e.image,alt:(o=e==null?void 0:e.alt)!=null?o:(a=(t=e==null?void 0:e.image)==null?void 0:t.asset)==null?void 0:a._ref})}}};0&&(module.exports={defaultBlockStyle});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-GLR2G3MJ.mjs";export{a as defaultBlockStyle};
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { Blockstyle } from "./blockstyle";
2
- export { defaultBlockStyle } from "./defaultBlockStyle";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var T=(e,o)=>{for(var l in o)i(e,l,{get:o[l],enumerable:!0})},w=(e,o,l,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of k(o))!N.call(e,m)&&m!==l&&i(e,m,{get:()=>o[m],enumerable:!(a=h(o,m))||a.enumerable});return e};var S=e=>w(i({},"__esModule",{value:!0}),e);var C={};T(C,{Blockstyle:()=>p,defaultBlockStyle:()=>s});module.exports=S(C);var n=require("@stackshift-ui/system"),b=require("@portabletext/react");var r=require("@stackshift-ui/heading"),g=require("@stackshift-ui/text"),x=require("@stackshift-ui/link"),f=require("@stackshift-ui/image"),t=require("react/jsx-runtime"),s={block:{h1:({children:e})=>(0,t.jsx)(r.Heading,{fontSize:"3xl",weight:"bold",className:"mb-8 leading-normal text-black",children:e}),h2:({children:e})=>(0,t.jsx)(r.Heading,{type:"h2",weight:"bold",fontSize:"2xl",className:"mb-8 text-black",children:e}),h3:({children:e})=>(0,t.jsx)(r.Heading,{type:"h3",fontSize:"xl",weight:"bold",className:"mb-8 leading-normal text-black",children:e}),h4:({children:e})=>(0,t.jsx)(r.Heading,{type:"h4",weight:"bold",fontSize:"lg",className:"mb-8 leading-normal text-black",children:e}),normal:({children:e})=>(0,t.jsx)(g.Text,{className:"mb-8 leading-relaxed",children:e}),blockquote:({children:e})=>(0,t.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,t.jsx)("pre",{"data-language":e.language,children:(0,t.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,t.jsx)("ul",{className:"flex flex-col pl-10 mb-8 space-y-4 leading-relaxed list-disc",children:e}),number:({children:e})=>(0,t.jsx)("ol",{className:"flex flex-col pl-10 mb-8 space-y-4 leading-relaxed list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e}),number:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e})},marks:{strong:({children:e})=>(0,t.jsx)("strong",{children:e}),em:({children:e})=>(0,t.jsx)("em",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),link:({children:e,value:o})=>(0,t.jsx)(x.Link,{className:"hover:text-primary-foreground text-primary",href:o.href,target:"_blank",rel:"noopener noreferrer",children:e})},types:{addImage:({value:e})=>{var o,l,a;return(0,t.jsx)(f.Image,{className:"w-full h-full mb-5",width:500,height:500,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:(l=(o=e==null?void 0:e.image)==null?void 0:o.asset)==null?void 0:l._ref})}}};var c="Blockstyle",p=({children:e,className:o,as:l,content:a,...m})=>{let{[c]:y=n.DefaultComponent}=(0,n.useStackShiftUIComponents)();return(0,t.jsx)(y,{as:l,className:o,...m,"data-testid":c,children:a?(0,t.jsx)(b.PortableText,{value:a,components:s}):e})};p.displayName=c;0&&(module.exports={Blockstyle,defaultBlockStyle});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as l}from"./chunk-INK7XA5Q.mjs";import{a as e}from"./chunk-GLR2G3MJ.mjs";export{l as Blockstyle,e as defaultBlockStyle};