zss-engine 0.2.72 → 0.2.74

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/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getServerCSS = exports.injectServerCSS = exports.injectClientGlobalCSS = exports.injectClientCSS = exports.applyCssValue = exports.camelToKebabCase = exports.build = exports.processAtomicProps = exports.splitAtomicAndNested = exports.transpileAtomic = exports.transpile = exports.genBase36Hash = exports.isTestingDevelopment = exports.isDevelopment = exports.isServer = void 0;
3
+ exports.injectClientGlobalCSS = exports.injectClientCSS = exports.applyCssValue = exports.camelToKebabCase = exports.build = exports.processAtomicProps = exports.splitAtomicAndNested = exports.transpileAtomic = exports.transpile = exports.genBase36Hash = exports.isTestingDevelopment = exports.isDevelopment = exports.isServer = void 0;
4
4
  var helper_js_1 = require("./utils/helper.js");
5
5
  Object.defineProperty(exports, "isServer", { enumerable: true, get: function () { return helper_js_1.isServer; } });
6
6
  Object.defineProperty(exports, "isDevelopment", { enumerable: true, get: function () { return helper_js_1.isDevelopment; } });
@@ -23,6 +23,3 @@ var inject_client_css_js_1 = require("./utils/inject-client-css.js");
23
23
  Object.defineProperty(exports, "injectClientCSS", { enumerable: true, get: function () { return inject_client_css_js_1.injectClientCSS; } });
24
24
  var inject_client_global_css_js_1 = require("./utils/inject-client-global-css.js");
25
25
  Object.defineProperty(exports, "injectClientGlobalCSS", { enumerable: true, get: function () { return inject_client_global_css_js_1.injectClientGlobalCSS; } });
26
- var inject_server_css_js_1 = require("./utils/inject-server-css.js");
27
- Object.defineProperty(exports, "injectServerCSS", { enumerable: true, get: function () { return inject_server_css_js_1.injectServerCSS; } });
28
- Object.defineProperty(exports, "getServerCSS", { enumerable: true, get: function () { return inject_server_css_js_1.getServerCSS; } });
package/dist/esm/index.js CHANGED
@@ -7,4 +7,3 @@ export { build } from './utils/build.js';
7
7
  export { camelToKebabCase, applyCssValue } from './utils/helper.js';
8
8
  export { injectClientCSS } from './utils/inject-client-css.js';
9
9
  export { injectClientGlobalCSS } from './utils/inject-client-global-css.js';
10
- export { injectServerCSS, getServerCSS } from './utils/inject-server-css.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zss-engine",
3
- "version": "0.2.72",
3
+ "version": "0.2.74",
4
4
  "description": "Zero-runtime StyleSheet Engine",
5
5
  "keywords": [
6
6
  "zero-runtime",
@@ -15,20 +15,20 @@
15
15
  "exports": {
16
16
  "./package.json": "./package.json",
17
17
  ".": {
18
- "types": "./types/index.d.ts",
18
+ "types": "./dist/index.d.ts",
19
19
  "import": "./dist/esm/index.js",
20
20
  "default": "./dist/cjs/index.js"
21
21
  }
22
22
  },
23
23
  "main": "dist/cjs/index.js",
24
24
  "module": "dist/esm/index.js",
25
- "types": "types/index.d.ts",
25
+ "types": "dist/index.d.ts",
26
26
  "files": [
27
27
  "dist/",
28
28
  "types/"
29
29
  ],
30
30
  "scripts": {
31
- "build": "rimraf dist types && pnpm esm && pnpm cjs",
31
+ "build": "rimraf dist && pnpm esm && pnpm cjs",
32
32
  "cjs": "tsc --project tsconfig.cjs.json",
33
33
  "esm": "tsc --project tsconfig.esm.json",
34
34
  "test": "jest"
package/types/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export type { CSSProperties } from './types/common/css-properties';
2
2
  export type { CreateStyleType, ReturnType, CreateStyle } from './types/main/create';
3
3
  export type { CSSHTML, CreateKeyframes } from './types/main/global';
4
4
  export type { CreateValues, CreateTheme, ReturnVariableType, RxVariableSet, ReturnRx } from './types/main/vars';
5
- export type { Join } from './types/main/join';
6
5
  export { isServer, isDevelopment, isTestingDevelopment } from './utils/helper.js';
7
6
  export { genBase36Hash } from './utils/hash.js';
8
7
  export { transpile } from './utils/transpile.js';
@@ -12,4 +11,3 @@ export { build } from './utils/build.js';
12
11
  export { camelToKebabCase, applyCssValue } from './utils/helper.js';
13
12
  export { injectClientCSS } from './utils/inject-client-css.js';
14
13
  export { injectClientGlobalCSS } from './utils/inject-client-global-css.js';
15
- export { injectServerCSS, getServerCSS } from './utils/inject-server-css.js';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.injectServerCSS = injectServerCSS;
4
- exports.getServerCSS = getServerCSS;
5
- const styleSheets = {};
6
- function injectServerCSS(hash, sheet) {
7
- styleSheets[hash] = sheet;
8
- }
9
- function getServerCSS() {
10
- return Object.values(styleSheets).join('\n');
11
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- const styleSheets = {};
2
- export function injectServerCSS(hash, sheet) {
3
- styleSheets[hash] = sheet;
4
- }
5
- export function getServerCSS() {
6
- return Object.values(styleSheets).join('\n');
7
- }
@@ -1 +0,0 @@
1
- export type Join<T extends readonly string[]> = T extends [infer F extends string, ...infer R extends string[]] ? `${F}${Join<R>}` : '';
@@ -1,2 +0,0 @@
1
- export declare function injectServerCSS(hash: string, sheet: string): void;
2
- export declare function getServerCSS(): string;