@octanejs/styled-components 0.1.44 → 0.1.46

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/styled-components",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -42,17 +42,17 @@
42
42
  "stylis": "^4.4.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "octane": "^0.1.51 || ^0.2.0"
45
+ "octane": "^0.4.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@tsrx/react": "^0.2.63",
48
+ "@tsrx/react": "^0.3.0",
49
49
  "@types/stylis": "^4.2.7",
50
50
  "esbuild": "^0.28.1",
51
- "react": "^19.2.7",
52
- "react-dom": "^19.2.7",
51
+ "react": "19.2.7",
52
+ "react-dom": "19.2.7",
53
53
  "styled-components": "6.4.3",
54
54
  "vitest": "^4.1.10",
55
- "octane": "0.2.0"
55
+ "octane": "0.4.0"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run"
@@ -203,7 +203,7 @@ export function StyleSheetManager(props: IStyleSheetManager): unknown {
203
203
  SLOT_SSM_VALUE,
204
204
  );
205
205
 
206
- return createElement(StyleSheetContext.Provider as any, {
206
+ return createElement(StyleSheetContext as any, {
207
207
  value: styleSheetContextValue,
208
208
  children: props.children,
209
209
  });
@@ -1,5 +1,5 @@
1
1
  // Ported from styled-components 6.4.3 (MIT), adapted for octane: contexts are
2
- // provided through `createElement(Ctx.Provider, …)` descriptors (works on both
2
+ // provided through `createElement(Ctx, …)` descriptors (works on both
3
3
  // the client and server runtimes), and the Consumer components are hand-built
4
4
  // because octane's React-19-shaped contexts have no `.Consumer`.
5
5
  import { createContext, createElement, isChildrenBlock, useContext, useMemo } from 'octane';
@@ -117,7 +117,7 @@ export default function ThemeProvider(props: Props): unknown {
117
117
  return null;
118
118
  }
119
119
 
120
- return createElement(ThemeContext.Provider as any, {
120
+ return createElement(ThemeContext as any, {
121
121
  value: themeContext,
122
122
  children: props.children,
123
123
  });