@fibery/views 19.0.0 → 19.0.1

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.
Files changed (53) hide show
  1. package/lib/src/index.d.ts +28 -16
  2. package/lib/src/index.js +1 -1
  3. package/lib/src/private/board.d.ts +15 -11
  4. package/lib/src/private/board.js +8 -7
  5. package/lib/src/private/calendar.d.ts +14 -10
  6. package/lib/src/private/calendar.js +4 -3
  7. package/lib/src/private/feed.d.ts +14 -10
  8. package/lib/src/private/feed.js +4 -3
  9. package/lib/src/private/form.d.ts +25 -3
  10. package/lib/src/private/form.js +3 -3
  11. package/lib/src/private/map.d.ts +14 -10
  12. package/lib/src/private/map.js +4 -3
  13. package/lib/src/private/smart-folder.d.ts +23 -15
  14. package/lib/src/private/smart-folder.js +16 -13
  15. package/lib/src/private/timeline.d.ts +39 -10
  16. package/lib/src/private/timeline.js +8 -6
  17. package/lib/src/private/units.d.ts +10 -6
  18. package/lib/src/private/units.js +32 -24
  19. package/lib/src/private/utils.d.ts +64 -17
  20. package/lib/src/private/utils.js +26 -20
  21. package/lib/src/truthy.d.ts +1 -0
  22. package/lib/src/truthy.js +7 -0
  23. package/lib/src/unit-definitions/avatar-collection.js +2 -3
  24. package/lib/src/unit-definitions/avatar.js +3 -5
  25. package/lib/src/unit-definitions/collection-count.js +4 -2
  26. package/lib/src/unit-definitions/file-collection-count.js +9 -7
  27. package/lib/src/unit-definitions/file-compact-collection.js +9 -7
  28. package/lib/src/unit-definitions/file-compact-reference.js +2 -11
  29. package/lib/src/unit-definitions/file-reference.js +6 -4
  30. package/lib/src/unit-definitions/files-gallery.js +9 -7
  31. package/lib/src/unit-definitions/files-l-list-item.js +6 -4
  32. package/lib/src/unit-definitions/files-l-list.js +9 -7
  33. package/lib/src/unit-definitions/files-list-item.js +6 -4
  34. package/lib/src/unit-definitions/files-list.js +9 -7
  35. package/lib/src/unit-definitions/number.js +2 -4
  36. package/lib/src/unit-definitions/progress-bar.js +1 -4
  37. package/lib/src/unit-definitions/rich-text-snippet.d.ts +1 -0
  38. package/lib/src/unit-definitions/rich-text-snippet.js +6 -11
  39. package/lib/src/unit-utils/get-export-value.js +2 -1
  40. package/lib/src/unit-utils/wrap-normalized-in-expression.d.ts +3 -0
  41. package/lib/src/unit-utils/wrap-normalized-in-expression.js +14 -0
  42. package/lib/src/units/board.d.ts +4 -4
  43. package/lib/src/units/canvas/index.d.ts +4 -4
  44. package/lib/src/units/default.d.ts +4 -4
  45. package/lib/src/units/gantt.d.ts +4 -4
  46. package/lib/src/units/grid.d.ts +4 -4
  47. package/lib/src/units/list.d.ts +4 -4
  48. package/lib/src/units/make-factory.d.ts +2 -3
  49. package/lib/src/units/make-factory.js +18 -7
  50. package/lib/src/units/types.d.ts +1 -1
  51. package/package.json +18 -18
  52. package/lib/jest.config.cjs +0 -34
  53. package/lib/jest.config.d.cts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/views",
3
- "version": "19.0.0",
3
+ "version": "19.0.1",
4
4
  "private": false,
5
5
  "description": "Operations on view objects",
6
6
  "license": "UNLICENSED",
@@ -11,23 +11,26 @@
11
11
  "main": "./lib/index.js",
12
12
  "exports": {
13
13
  ".": {
14
- "types": "./lib/index.d.ts",
15
14
  "@fibery/source": "./index.ts",
15
+ "types": "./lib/index.d.ts",
16
16
  "default": "./lib/index.js"
17
17
  },
18
18
  "./src/*": {
19
+ "@fibery/source": {
20
+ "types": "./src/*.ts",
21
+ "default": "./src/*"
22
+ },
19
23
  "types": "./lib/src/*.d.ts",
20
- "@fibery/source": "./src/*",
21
24
  "default": "./lib/src/*.js"
22
25
  },
23
26
  "./src/unit-definitions": {
24
- "types": "./lib/src/unit-definitions/index.d.ts",
25
27
  "@fibery/source": "./src/unit-definitions/index.ts",
28
+ "types": "./lib/src/unit-definitions/index.d.ts",
26
29
  "default": "./lib/src/unit-definitions/index.js"
27
30
  },
28
31
  "./src/units/canvas": {
29
- "types": "./lib/src/units/canvas/index.d.ts",
30
32
  "@fibery/source": "./src/units/canvas/index.ts",
33
+ "types": "./lib/src/units/canvas/index.d.ts",
31
34
  "default": "./lib/src/units/canvas/index.js"
32
35
  }
33
36
  },
@@ -36,32 +39,29 @@
36
39
  "lodash": "4.17.21",
37
40
  "moment": "2.29.4",
38
41
  "@fibery/context-filters": "1.1.4",
39
- "@fibery/expression-utils": "9.7.0",
40
- "@fibery/helpers": "2.0.0",
41
- "@fibery/query-utils": "1.1.5",
42
- "@fibery/schema": "10.2.15"
42
+ "@fibery/expression-utils": "9.7.1",
43
+ "@fibery/helpers": "2.0.1",
44
+ "@fibery/query-utils": "1.1.6",
45
+ "@fibery/schema": "10.2.16"
43
46
  },
44
47
  "devDependencies": {
45
48
  "@babel/core": "7.28.5",
46
- "@swc/jest": "0.2.39",
47
49
  "@types/lodash": "4.14.172",
48
50
  "immutability-helper": "2.4.0",
49
- "jest": "30.2.0",
50
- "jest-junit": "16.0.0",
51
- "typescript": "6.0.0-beta",
51
+ "typescript": "6.0.1-rc",
52
52
  "@fibery/babel-preset": "7.4.2"
53
53
  },
54
54
  "peerDependencies": {
55
- "@fibery/expression-utils": "^9.7.0",
56
- "@fibery/schema": "^10.2.15",
55
+ "@fibery/expression-utils": "^9.7.1",
56
+ "@fibery/schema": "^10.2.16",
57
57
  "immutability-helper": "^2.4.0",
58
58
  "lodash": "4.17.21"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "rm -rf lib && tsc --project tsconfig.build.json",
62
- "test": "jest",
63
- "test:ci": "pnpm run test --reporters=default --reporters=jest-junit",
64
- "test:coverage": "pnpm run test --coverage --coverageDirectory=${JEST_COVERAGE_RESULT_DIR:-$(pwd)}/coverage/view --reporters=default --reporters=jest-junit",
62
+ "test": "../../scripts/test.sh",
63
+ "test:ci": "../../scripts/test.sh --ci",
64
+ "test:coverage": "../../scripts/test.sh --ci --coverage",
65
65
  "check": "../../scripts/check.sh",
66
66
  "lint": "../../scripts/lint.sh"
67
67
  },
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /** @type {import('@jest/schemas').InitialOptions} */
3
- const config = {
4
- testEnvironment: "node",
5
- testEnvironmentOptions: {
6
- customExportConditions: ["@fibery/source"],
7
- url: "http://localhost",
8
- },
9
- coveragePathIgnorePatterns: ["/node_modules/"],
10
- collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"],
11
- coverageReporters: ["text", "cobertura"],
12
- testPathIgnorePatterns: ["<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]"],
13
- transform: {
14
- "^.+\\.(js|jsx|ts|tsx)$": [
15
- "@swc/jest",
16
- {
17
- jsc: {
18
- parser: {
19
- syntax: "typescript",
20
- tsx: true,
21
- decorators: true,
22
- dynamicImport: true,
23
- },
24
- transform: {
25
- react: {
26
- runtime: "automatic",
27
- },
28
- },
29
- },
30
- },
31
- ],
32
- },
33
- };
34
- module.exports = config;
@@ -1,3 +0,0 @@
1
- export = config;
2
- /** @type {import('@jest/schemas').InitialOptions} */
3
- declare const config: any;