simplestyle-js 5.4.2 → 5.4.3

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.
@@ -0,0 +1,17 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ClientBoundary", {
7
+ enumerable: true,
8
+ get: function() {
9
+ return ClientBoundary;
10
+ }
11
+ });
12
+ const _jsxruntime = require("react/jsx-runtime");
13
+ function ClientBoundary({ children }) {
14
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
15
+ children: children
16
+ });
17
+ }
@@ -0,0 +1,2 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ export declare function ClientBoundary({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
@@ -9,8 +9,9 @@ Object.defineProperty(exports, "SimpleStyleProvider", {
9
9
  }
10
10
  });
11
11
  const _jsxruntime = require("react/jsx-runtime");
12
+ const _ClientBoundary = require("./ClientBoundary.cjs");
12
13
  function SimpleStyleProvider({ children, registry }) {
13
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_ClientBoundary.ClientBoundary, {
14
15
  children: [
15
16
  registry.getRulesById().map(([ruleId, css])=>/*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
16
17
  id: ruleId,
@@ -0,0 +1,2 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ export declare function ClientBoundary({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
+ export function ClientBoundary({ children }) {
4
+ return /*#__PURE__*/ _jsx(_Fragment, {
5
+ children: children
6
+ });
7
+ }
@@ -1,11 +1,12 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ClientBoundary } from './ClientBoundary.mjs';
2
3
  /**
3
4
  * Accumulates all CSS rules and writes
4
5
  * them to your layout.
5
6
  * Use this for Next.js or other Next.js-like frameworks
6
7
  * that leverage React server components
7
8
  */ export function SimpleStyleProvider({ children, registry }) {
8
- return /*#__PURE__*/ _jsxs(_Fragment, {
9
+ return /*#__PURE__*/ _jsxs(ClientBoundary, {
9
10
  children: [
10
11
  registry.getRulesById().map(([ruleId, css])=>/*#__PURE__*/ _jsx("style", {
11
12
  id: ruleId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplestyle-js",
3
- "version": "5.4.2",
3
+ "version": "5.4.3",
4
4
  "description": "An incredibly straightforward and simple CSS-in-JS solution with zero runtime dependencies, and out-of-the-box TypeScript support",
5
5
  "type": "module",
6
6
  "repository": {
@@ -110,6 +110,16 @@
110
110
  "default": "./dist/esm/makeStyles.mjs"
111
111
  }
112
112
  },
113
+ "./next/ClientBoundary": {
114
+ "require": {
115
+ "types": "./dist/cjs/next/ClientBoundary.d.ts",
116
+ "default": "./dist/cjs/next/ClientBoundary.cjs"
117
+ },
118
+ "import": {
119
+ "types": "./dist/esm/next/ClientBoundary.d.ts",
120
+ "default": "./dist/esm/next/ClientBoundary.mjs"
121
+ }
122
+ },
113
123
  "./next/SimpleStyleProvider": {
114
124
  "require": {
115
125
  "types": "./dist/cjs/next/SimpleStyleProvider.d.ts",