@stackshift-ui/blockstyle 6.0.11 → 7.0.0-beta.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/blockstyle",
3
3
  "description": "",
4
- "version": "6.0.11",
4
+ "version": "7.0.0-beta.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -34,15 +34,15 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@portabletext/react": "^3.1.0",
37
- "@stackshift-ui/scripts": "6.0.10",
38
- "@stackshift-ui/text": "6.0.11",
39
- "@stackshift-ui/system": "6.0.11",
40
- "@stackshift-ui/link": "6.0.11",
41
- "@stackshift-ui/heading": "6.0.11",
42
- "@stackshift-ui/image": "6.0.11"
37
+ "@stackshift-ui/system": "6.1.0-beta.0",
38
+ "@stackshift-ui/link": "6.0.12-beta.0",
39
+ "@stackshift-ui/scripts": "6.1.0-beta.0",
40
+ "@stackshift-ui/text": "7.0.0-beta.0",
41
+ "@stackshift-ui/heading": "7.0.0-beta.0",
42
+ "@stackshift-ui/image": "6.1.0-beta.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@stackshift-ui/system": ">=6.0.11",
45
+ "@stackshift-ui/system": ">=6.1.0-beta.0",
46
46
  "@types/react": "16.8 - 19",
47
47
  "next": "10 - 14",
48
48
  "react": "16.8 - 19",
@@ -7,7 +7,7 @@ describe.concurrent("blockstyle", () => {
7
7
 
8
8
  test("Common: Blockstyle - test if renders without errors", ({ expect }) => {
9
9
  const clx = "blockStyle-class";
10
- render(<Blockstyle className={clx} />);
10
+ render(<Blockstyle data-testid="div" className={clx} />);
11
11
 
12
12
  expect(screen.getByTestId("div").classList).toContain(clx);
13
13
  });
@@ -1,6 +1,6 @@
1
+ import { PortableText } from "@portabletext/react";
1
2
  import { DefaultComponent, useStackShiftUIComponents } from "@stackshift-ui/system";
2
3
  import type { ElementType, HTMLProps, ReactNode } from "react";
3
- import { PortableText } from "@portabletext/react";
4
4
  import { defaultBlockStyle } from "./defaultBlockStyle";
5
5
 
6
6
  export interface BlockstyleProps extends Omit<HTMLProps<HTMLElement>, "as"> {
@@ -22,7 +22,7 @@ export const Blockstyle: React.FC<BlockstyleProps> = ({
22
22
  const { [displayName]: Component = DefaultComponent } = useStackShiftUIComponents();
23
23
 
24
24
  return (
25
- <Component as={as} className={className} {...props} data-testid={displayName}>
25
+ <Component as={as} className={className} {...props}>
26
26
  {content ? <PortableText value={content} components={defaultBlockStyle} /> : children}
27
27
  </Component>
28
28
  );