zss-engine 2.1.0 → 2.1.2
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/utils/hash.js +1 -2
- package/dist/esm/utils/hash.js +0 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/types/main/global.d.ts +2 -2
- package/dist/types/types/main/variableTypes.d.ts +2 -8
- package/dist/types/types/main/{viewTransitionOptions.d.ts → viewTransition.d.ts} +1 -1
- package/package.json +1 -1
- /package/dist/cjs/types/main/{viewTransitionOptions.js → viewTransition.js} +0 -0
- /package/dist/esm/types/main/{viewTransitionOptions.js → viewTransition.js} +0 -0
package/dist/cjs/utils/hash.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.genBase36Hash = genBase36Hash;
|
|
4
|
-
const util_1 = require("util");
|
|
5
4
|
const { asUintN } = BigInt;
|
|
6
5
|
function deepNormalize(obj) {
|
|
7
6
|
if (obj === null)
|
|
@@ -35,7 +34,7 @@ function murmurhash3_x64_128(str, seed) {
|
|
|
35
34
|
let h2 = asUintN(64, BigInt(seed));
|
|
36
35
|
const c1 = 0x87c37b91114253d5n;
|
|
37
36
|
const c2 = 0x4cf5ad432745937fn;
|
|
38
|
-
const encoder = new
|
|
37
|
+
const encoder = new TextEncoder();
|
|
39
38
|
const key = encoder.encode(str);
|
|
40
39
|
const len = key.length;
|
|
41
40
|
const nblocks = Math.floor(len / 16);
|
package/dist/esm/utils/hash.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type { CSSProperties } from './types/common/css-properties';
|
|
2
2
|
export type { CreateStyleType, ReturnType, CreateStyle } from './types/main/create';
|
|
3
|
-
export type { CSSHTML,
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
3
|
+
export type { CSSHTML, Keyframes } from './types/main/global';
|
|
4
|
+
export type { CreateStatic, CreateTheme, ReturnVariableType, Styles } from './types/main/variableTypes';
|
|
5
|
+
export type { ViewTransition } from './types/main/viewTransition';
|
|
6
6
|
export { isServer, isDevelopment, isTestingDevelopment } from './utils/helper.js';
|
|
7
7
|
export { genBase36Hash } from './utils/hash.js';
|
|
8
8
|
export { transpile } from './utils/transpile.js';
|
|
@@ -24,11 +24,11 @@ type PseudoElementSelector = {
|
|
|
24
24
|
[K in PseudoElement]: CSSProperties;
|
|
25
25
|
};
|
|
26
26
|
type KeyframesInSelector = 'from' | 'to' | `${number}%`;
|
|
27
|
-
export type
|
|
27
|
+
export type Keyframes = {
|
|
28
28
|
[K in KeyframesInSelector]?: CSSProperties;
|
|
29
29
|
};
|
|
30
30
|
type KeyframesSelector = {
|
|
31
|
-
[K in `@keyframes ${string}`]:
|
|
31
|
+
[K in `@keyframes ${string}`]: Keyframes;
|
|
32
32
|
};
|
|
33
33
|
type QuerySelectorHTML = {
|
|
34
34
|
[K in Query]: CSSHTML;
|
|
@@ -3,18 +3,12 @@ export type CSSVariableValue = `var(${CSSVariableKey})`;
|
|
|
3
3
|
export type CSSVariableProperty = {
|
|
4
4
|
[key: CSSVariableKey]: string | number;
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type CreateStatic = Record<string, string | number>;
|
|
7
7
|
export type CreateTheme = Record<string, Record<string, string | number>>;
|
|
8
8
|
export type ReturnVariableType<T> = {
|
|
9
9
|
[K in keyof T]: CSSVariableValue;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type Styles = {
|
|
12
12
|
[key: CSSVariableKey]: string;
|
|
13
13
|
};
|
|
14
|
-
export type ReturnX = {
|
|
15
|
-
className: string;
|
|
16
|
-
style: {
|
|
17
|
-
[k: string]: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
14
|
export {};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|