@bgord/ui 0.8.39 → 0.9.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.
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/services/cookies.ts"],"names":[],"mappings":"AAEA,qBAAa,OAAO;IAClB,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE3C;IAED,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAErC;CACF"}
1
+ {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/services/cookies.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAO;IAClB,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE3C;IAED,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAErC;CACF"}
@@ -1,10 +1,9 @@
1
- import JsCookie from "js-cookie";
2
1
  export class Cookies {
3
2
  static extractFrom(request) {
4
3
  return request.headers.get("cookie") ?? "";
5
4
  }
6
5
  static set(name, value) {
7
- JsCookie.set(name, value);
6
+ document.cookie = `${encodeURIComponent(name)}=${encodeURIComponent(value)}`;
8
7
  }
9
8
  }
10
9
  //# sourceMappingURL=cookies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.js","sourceRoot":"","sources":["../../src/services/cookies.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,WAAW,CAAC;AAEjC,MAAM,OAAO,OAAO;IAClB,MAAM,CAAC,WAAW,CAAC,OAAgB;QACjC,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,KAAa;QACpC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF"}
1
+ {"version":3,"file":"cookies.js","sourceRoot":"","sources":["../../src/services/cookies.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,OAAO;IAClB,MAAM,CAAC,WAAW,CAAC,OAAgB;QACjC,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,KAAa;QACpC,QAAQ,CAAC,MAAM,GAAG,GAAG,kBAAkB,CAAC,IAAI,CAAC,IAAI,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/E,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bgord/ui",
3
- "version": "0.8.39",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bartosz Gordon",
@@ -8,20 +8,19 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./dist/index.js",
12
- "types": "./dist/index.d.ts"
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
13
  }
14
14
  },
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
18
  "scripts": {
19
- "build": "bash scripts/package-build.sh",
20
- "preinstall": "bunx only-allow bun"
19
+ "build": "bash scripts/package-build.sh"
21
20
  },
22
21
  "devDependencies": {
23
- "@biomejs/biome": "2.4.16",
24
- "@happy-dom/global-registrator": "20.10.1",
22
+ "@biomejs/biome": "2.5.0",
23
+ "@happy-dom/global-registrator": "20.10.3",
25
24
  "@stryker-mutator/core": "9.6.1",
26
25
  "@stryker-mutator/typescript-checker": "9.6.1",
27
26
  "@testing-library/dom": "10.4.1",
@@ -29,22 +28,20 @@
29
28
  "@testing-library/react": "16.3.2",
30
29
  "@testing-library/user-event": "14.6.1",
31
30
  "@types/bun": "1.3.14",
32
- "@types/js-cookie": "3.0.6",
33
31
  "@types/react": "19.2.17",
34
32
  "@types/react-dom": "19.2.3",
35
- "@typescript/native-preview": "7.0.0-dev.20260606.1",
33
+ "@typescript/native-preview": "7.0.0-dev.20260614.1",
36
34
  "cspell": "10.0.1",
37
- "knip": "6.15.0",
35
+ "fallow": "2.96.0",
38
36
  "lefthook": "2.1.9",
39
37
  "lockfile-lint": "5.0.0",
40
- "only-allow": "1.2.2",
38
+ "publint": "0.3.21",
41
39
  "shellcheck": "4.1.0",
42
40
  "typescript": "6.0.3"
43
41
  },
44
42
  "dependencies": {
45
- "js-cookie": "3.0.8",
46
43
  "polish-plurals": "1.1.0",
47
- "tinykeys": "3.0.0"
44
+ "tinykeys": "4.0.0"
48
45
  },
49
46
  "peerDependencies": {
50
47
  "react": "19.2.7",
package/readme.md CHANGED
@@ -17,7 +17,7 @@ bun i
17
17
  Run the tests
18
18
 
19
19
  ```
20
- ./bgord-scripts/test-run.sh
20
+ ./bgord-scripts/test.sh
21
21
  ```
22
22
 
23
23
  ## Files:
@@ -42,27 +42,26 @@ src/
42
42
  │   ├── use-text-field.ts
43
43
  │   ├── use-toggle.ts
44
44
  │   └── use-window-dimensions.ts
45
- ├── services
46
- │   ├── absolute-url.ts
47
- │   ├── autocomplete.ts
48
- │   ├── clipboard.ts
49
- │   ├── cookies.ts
50
- │   ├── date-field.ts
51
- │   ├── etag.ts
52
- │   ├── exec.ts
53
- │   ├── fields.ts
54
- │   ├── form.ts
55
- │   ├── get-safe-window.ts
56
- │   ├── head.ts
57
- │   ├── noop.ts
58
- │   ├── notifications.tsx
59
- │   ├── number-field.ts
60
- │   ├── pluralize.ts
61
- │   ├── rhythm.ts
62
- │   ├── text-field.ts
63
- │   ├── time-zone-offset.ts
64
- │   ├── translations.tsx
65
- │   └── weak-etag.ts
66
- └── tinykeys.d.ts
45
+ └── services
46
+ ├── absolute-url.ts
47
+ ├── autocomplete.ts
48
+ ├── clipboard.ts
49
+ ├── cookies.ts
50
+ ├── date-field.ts
51
+ ├── etag.ts
52
+ ├── exec.ts
53
+ ├── fields.ts
54
+ ├── form.ts
55
+ ├── get-safe-window.ts
56
+ ├── head.ts
57
+ ├── noop.ts
58
+ ├── notifications.tsx
59
+ ├── number-field.ts
60
+ ├── pluralize.ts
61
+ ├── rhythm.ts
62
+ ├── text-field.ts
63
+ ├── time-zone-offset.ts
64
+ ├── translations.tsx
65
+ └── weak-etag.ts
67
66
  ```
68
67