@thi.ng/hiccup-css 2.0.0 → 2.0.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,54 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.5...@thi.ng/hiccup-css@2.0.6) (2021-10-28)
7
+
8
+ **Note:** Version bump only for package @thi.ng/hiccup-css
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.4...@thi.ng/hiccup-css@2.0.5) (2021-10-28)
15
+
16
+ **Note:** Version bump only for package @thi.ng/hiccup-css
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.3...@thi.ng/hiccup-css@2.0.4) (2021-10-25)
23
+
24
+ **Note:** Version bump only for package @thi.ng/hiccup-css
25
+
26
+
27
+
28
+
29
+
30
+ ## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.2...@thi.ng/hiccup-css@2.0.3) (2021-10-15)
31
+
32
+ **Note:** Version bump only for package @thi.ng/hiccup-css
33
+
34
+
35
+
36
+
37
+
38
+ ## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.1...@thi.ng/hiccup-css@2.0.2) (2021-10-15)
39
+
40
+ **Note:** Version bump only for package @thi.ng/hiccup-css
41
+
42
+
43
+
44
+
45
+
46
+ ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.0...@thi.ng/hiccup-css@2.0.1) (2021-10-13)
47
+
48
+ **Note:** Version bump only for package @thi.ng/hiccup-css
49
+
50
+
51
+
52
+
53
+
6
54
  # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.73...@thi.ng/hiccup-css@2.0.0) (2021-10-12)
7
55
 
8
56
 
package/README.md CHANGED
@@ -110,10 +110,11 @@ ES module import:
110
110
 
111
111
  [Skypack documentation](https://docs.skypack.dev/)
112
112
 
113
- For NodeJS (v14.6+):
113
+ For Node.js REPL:
114
114
 
115
115
  ```text
116
- node --experimental-specifier-resolution=node --experimental-repl-await
116
+ # with flag only for < v16
117
+ node --experimental-repl-await
117
118
 
118
119
  > const hiccupCss = await import("@thi.ng/hiccup-css");
119
120
  ```
package/animation.d.ts CHANGED
@@ -45,5 +45,5 @@ export interface AnimationOpts {
45
45
  * @param opts - animation config options
46
46
  * @param keyframes - keyframes
47
47
  */
48
- export declare const animation: (id: string, opts: Partial<AnimationOpts>, ...keyframes: any) => (any[] | import("./api").RuleFn)[];
48
+ export declare const animation: (id: string, opts: Partial<AnimationOpts>, ...keyframes: any) => (any[] | import("./api.js").RuleFn)[];
49
49
  //# sourceMappingURL=animation.d.ts.map
package/animation.js CHANGED
@@ -1,4 +1,4 @@
1
- import { at_keyframes } from "./keyframes";
1
+ import { at_keyframes } from "./keyframes.js";
2
2
  /**
3
3
  * Defines new `@keyframes` with given `id` and creates related class of
4
4
  * same name to configure given animation `opts`. Only the `duration`
package/comment.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { RuleFn } from "./api";
1
+ import type { RuleFn } from "./api.js";
2
2
  export declare const comment: (body: string, force?: boolean) => RuleFn;
3
3
  //# sourceMappingURL=comment.d.ts.map
package/comment.js CHANGED
@@ -1,4 +1,4 @@
1
- import { indent } from "./impl";
1
+ import { indent } from "./impl.js";
2
2
  export const comment = (body, force = false) => (acc, opts) => {
3
3
  const space = indent(opts);
4
4
  const inner = indent(opts, opts.depth + 1);
package/conditional.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { Conditional, RuleFn } from "./api";
1
+ import type { Conditional, RuleFn } from "./api.js";
2
2
  export declare const conditional: (type: string, cond: Conditional, rules: any[]) => RuleFn;
3
3
  //# sourceMappingURL=conditional.d.ts.map
package/conditional.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isString } from "@thi.ng/checks/is-string";
2
- import { expand, indent } from "./impl";
2
+ import { expand, indent } from "./impl.js";
3
3
  export const conditional = (type, cond, rules) => (acc, opts) => {
4
4
  const space = indent(opts);
5
5
  acc.push(`${space}${type} ${formatCond(cond)}${opts.format.declStart}`);
package/css.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { CSSOpts } from "./api";
1
+ import { CSSOpts } from "./api.js";
2
2
  export declare const css: (rules: any, opts?: Partial<CSSOpts> | undefined) => any;
3
3
  //# sourceMappingURL=css.d.ts.map
package/css.js CHANGED
@@ -3,8 +3,8 @@ import { isFunction } from "@thi.ng/checks/is-function";
3
3
  import { isNotStringAndIterable } from "@thi.ng/checks/is-not-string-iterable";
4
4
  import { isPlainObject } from "@thi.ng/checks/is-plain-object";
5
5
  import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
6
- import { COMPACT, DEFAULT_VENDORS } from "./api";
7
- import { expand, formatDecls } from "./impl";
6
+ import { COMPACT, DEFAULT_VENDORS } from "./api.js";
7
+ import { expand, formatDecls } from "./impl.js";
8
8
  export const css = (rules, opts) => {
9
9
  opts = {
10
10
  format: COMPACT,
package/impl.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CSSOpts } from "./api";
1
+ import type { CSSOpts } from "./api.js";
2
2
  /** @internal */
3
3
  export declare const expand: (acc: string[], parent: any[], rules: any[], opts: CSSOpts) => string[];
4
4
  /** @internal */
package/import.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { RuleFn } from "./api";
1
+ import type { RuleFn } from "./api.js";
2
2
  export declare const at_import: (url: string, ...queries: string[]) => RuleFn;
3
3
  //# sourceMappingURL=import.d.ts.map
package/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- export * from "./api";
2
- export * from "./animation";
3
- export * from "./attribs";
4
- export * from "./comment";
5
- export * from "./conditional";
6
- export * from "./css";
7
- export * from "./import";
8
- export * from "./inject";
9
- export * from "./keyframes";
10
- export * from "./media";
11
- export * from "./namespace";
12
- export * from "./quoted-functions";
13
- export * from "./supports";
14
- export * from "./units";
1
+ export * from "./api.js";
2
+ export * from "./animation.js";
3
+ export * from "./attribs.js";
4
+ export * from "./comment.js";
5
+ export * from "./conditional.js";
6
+ export * from "./css.js";
7
+ export * from "./import.js";
8
+ export * from "./inject.js";
9
+ export * from "./keyframes.js";
10
+ export * from "./media.js";
11
+ export * from "./namespace.js";
12
+ export * from "./quoted-functions.js";
13
+ export * from "./supports.js";
14
+ export * from "./units.js";
15
15
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- export * from "./api";
2
- export * from "./animation";
3
- export * from "./attribs";
4
- export * from "./comment";
5
- export * from "./conditional";
6
- export * from "./css";
7
- export * from "./import";
8
- export * from "./inject";
9
- export * from "./keyframes";
10
- export * from "./media";
11
- export * from "./namespace";
12
- export * from "./quoted-functions";
13
- export * from "./supports";
14
- export * from "./units";
1
+ export * from "./api.js";
2
+ export * from "./animation.js";
3
+ export * from "./attribs.js";
4
+ export * from "./comment.js";
5
+ export * from "./conditional.js";
6
+ export * from "./css.js";
7
+ export * from "./import.js";
8
+ export * from "./inject.js";
9
+ export * from "./keyframes.js";
10
+ export * from "./media.js";
11
+ export * from "./namespace.js";
12
+ export * from "./quoted-functions.js";
13
+ export * from "./supports.js";
14
+ export * from "./units.js";
package/keyframes.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { RuleFn } from "./api";
1
+ import type { RuleFn } from "./api.js";
2
2
  /**
3
3
  * Rule function for `@keyframes`. If a single declaration object is given,
4
4
  * it's keys are used as keyframe stops and their values as their declarations
package/keyframes.js CHANGED
@@ -1,5 +1,5 @@
1
- import { formatDecls, indent } from "./impl";
2
- import { percent } from "./units";
1
+ import { formatDecls, indent } from "./impl.js";
2
+ import { percent } from "./units.js";
3
3
  export function at_keyframes(id, ...args) {
4
4
  const stops = args.length === 1 ? args[0] : { 0: args[0], 100: args[1] };
5
5
  return (acc, opts) => {
package/media.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { Conditional, RuleFn } from "./api";
1
+ import type { Conditional, RuleFn } from "./api.js";
2
2
  export declare const at_media: (cond: Conditional, rules: any[]) => RuleFn;
3
3
  //# sourceMappingURL=media.d.ts.map
package/media.js CHANGED
@@ -1,2 +1,2 @@
1
- import { conditional } from "./conditional";
1
+ import { conditional } from "./conditional.js";
2
2
  export const at_media = (cond, rules) => conditional("@media", cond, rules);
package/namespace.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { RuleFn } from "./api";
1
+ import type { RuleFn } from "./api.js";
2
2
  export declare function at_namespace(url: string): RuleFn;
3
3
  export declare function at_namespace(prefix: string, url: string): RuleFn;
4
4
  //# sourceMappingURL=namespace.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-css",
3
- "version": "2.0.0",
3
+ "version": "2.0.6",
4
4
  "description": "CSS from nested JS data structures",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,13 +34,13 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.0.0",
38
- "@thi.ng/checks": "^3.0.0",
39
- "@thi.ng/errors": "^2.0.0",
40
- "@thi.ng/transducers": "^8.0.0"
37
+ "@thi.ng/api": "^8.0.6",
38
+ "@thi.ng/checks": "^3.0.6",
39
+ "@thi.ng/errors": "^2.0.6",
40
+ "@thi.ng/transducers": "^8.0.6"
41
41
  },
42
42
  "devDependencies": {
43
- "@thi.ng/testament": "^0.1.0"
43
+ "@thi.ng/testament": "^0.1.6"
44
44
  },
45
45
  "keywords": [
46
46
  "array",
@@ -60,6 +60,9 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
+ "engines": {
64
+ "node": ">=12.7"
65
+ },
63
66
  "files": [
64
67
  "*.js",
65
68
  "*.d.ts"
@@ -119,5 +122,5 @@
119
122
  ],
120
123
  "year": 2016
121
124
  },
122
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
125
+ "gitHead": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
123
126
  }
@@ -1,12 +1,12 @@
1
- import { at_keyframes } from "./keyframes";
2
- import { at_namespace } from "./namespace";
1
+ import { at_keyframes } from "./keyframes.js";
2
+ import { at_namespace } from "./namespace.js";
3
3
  /** @internal */
4
4
  export declare const QUOTED_FNS: {
5
- "@comment": (body: string, force?: boolean) => import("./api").RuleFn;
6
- "@import": (url: string, ...queries: string[]) => import("./api").RuleFn;
5
+ "@comment": (body: string, force?: boolean) => import("./api.js").RuleFn;
6
+ "@import": (url: string, ...queries: string[]) => import("./api.js").RuleFn;
7
7
  "@keyframes": typeof at_keyframes;
8
- "@media": (cond: import("./api").Conditional, rules: any[]) => import("./api").RuleFn;
8
+ "@media": (cond: import("./api.js").Conditional, rules: any[]) => import("./api.js").RuleFn;
9
9
  "@namespace": typeof at_namespace;
10
- "@supports": (cond: import("./api").Conditional, rules: any[]) => import("./api").RuleFn;
10
+ "@supports": (cond: import("./api.js").Conditional, rules: any[]) => import("./api.js").RuleFn;
11
11
  };
12
12
  //# sourceMappingURL=quoted-functions.d.ts.map
@@ -1,9 +1,9 @@
1
- import { comment } from "./comment";
2
- import { at_import } from "./import";
3
- import { at_keyframes } from "./keyframes";
4
- import { at_media } from "./media";
5
- import { at_namespace } from "./namespace";
6
- import { at_supports } from "./supports";
1
+ import { comment } from "./comment.js";
2
+ import { at_import } from "./import.js";
3
+ import { at_keyframes } from "./keyframes.js";
4
+ import { at_media } from "./media.js";
5
+ import { at_namespace } from "./namespace.js";
6
+ import { at_supports } from "./supports.js";
7
7
  /** @internal */
8
8
  export const QUOTED_FNS = {
9
9
  "@comment": comment,
package/supports.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { Conditional, RuleFn } from "./api";
1
+ import type { Conditional, RuleFn } from "./api.js";
2
2
  export declare const at_supports: (cond: Conditional, rules: any[]) => RuleFn;
3
3
  //# sourceMappingURL=supports.d.ts.map
package/supports.js CHANGED
@@ -1,2 +1,2 @@
1
- import { conditional } from "./conditional";
1
+ import { conditional } from "./conditional.js";
2
2
  export const at_supports = (cond, rules) => conditional("@supports", cond, rules);