@squiz/resource-browser 3.3.11 → 3.3.13

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/lib/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
37
  };
@@ -0,0 +1 @@
1
+ {"root":["../src/index.tsx"],"version":"5.9.3"}
package/lib/types.d.ts CHANGED
@@ -23,8 +23,8 @@ export interface ResourceBrowserSourceWithConfig extends ResourceBrowserSource {
23
23
  configuration?: AuthenticationConfiguration;
24
24
  }
25
25
  export declare enum PluginLaunchModeType {
26
- 'Browse' = "browse",
27
- 'Search' = "search"
26
+ Browse = "browse",
27
+ Search = "search"
28
28
  }
29
29
  export type PluginLaunchMode = {
30
30
  type: PluginLaunchModeType;
package/lib/types.js CHANGED
@@ -5,4 +5,4 @@ var PluginLaunchModeType;
5
5
  (function (PluginLaunchModeType) {
6
6
  PluginLaunchModeType["Browse"] = "browse";
7
7
  PluginLaunchModeType["Search"] = "search";
8
- })(PluginLaunchModeType = exports.PluginLaunchModeType || (exports.PluginLaunchModeType = {}));
8
+ })(PluginLaunchModeType || (exports.PluginLaunchModeType = PluginLaunchModeType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/resource-browser",
3
- "version": "3.3.11",
3
+ "version": "3.3.13",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "private": false,
@@ -21,15 +21,15 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@emotion/styled": "^11.11.5",
25
- "@mui/icons-material": "5.11.16",
24
+ "@emotion/styled": "^11.14.1",
25
+ "@mui/icons-material": "5.18.0",
26
26
  "@react-aria/interactions": "^3.21.1",
27
27
  "@react-types/overlays": "^3.8.7",
28
28
  "@react-types/shared": "^3.23.1",
29
- "@squiz/dx-json-schema-lib": "^1.67.0",
30
- "@squiz/generic-browser-lib": "^1.67.5",
31
- "@squiz/resource-browser-ui-lib": "^1.2.6",
32
- "clsx": "^2.1.0",
29
+ "@squiz/dx-json-schema-lib": "^1.90.2",
30
+ "@squiz/generic-browser-lib": "^1.68.0",
31
+ "@squiz/resource-browser-ui-lib": "1.2.8",
32
+ "clsx": "^2.1.1",
33
33
  "expiry-map": "^2.0.0",
34
34
  "p-memoize": "^4.0.4",
35
35
  "react-aria": "3.23.1",
@@ -37,7 +37,7 @@
37
37
  "react-stately": "3.21.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@squiz/sds": "^1.4.0",
40
+ "@squiz/sds": "^1.18.1",
41
41
  "@squiz/eslint-config": "^1.7.0",
42
42
  "@storybook/addon-essentials": "^7.5.3",
43
43
  "@storybook/addon-interactions": "^7.5.3",
@@ -47,37 +47,37 @@
47
47
  "@storybook/react": "^7.5.3",
48
48
  "@storybook/react-vite": "^7.5.3",
49
49
  "@storybook/testing-library": "0.0.14-next.1",
50
- "@testing-library/jest-dom": "5.16.5",
51
- "@testing-library/react": "14.0.0",
52
- "@testing-library/user-event": "14.4.3",
53
- "@types/postcss-js": "4.0.0",
54
- "@types/react": "^18.2.45",
55
- "@types/react-dom": "^18.2.18",
56
- "@typescript-eslint/parser": "^7.12.0",
57
- "autoprefixer": "10.4.14",
50
+ "@testing-library/jest-dom": "5.17.0",
51
+ "@testing-library/react": "14.3.1",
52
+ "@testing-library/user-event": "14.6.8",
53
+ "@types/postcss-js": "4.1.0",
54
+ "@types/react": "^18.3.31",
55
+ "@types/react-dom": "^18.3.7",
56
+ "@typescript-eslint/parser": "^8.72.1",
57
+ "autoprefixer": "10.6.2",
58
58
  "esbuild": "^0.19.3",
59
- "esbuild-sass-plugin": "^2.8.0",
60
- "eslint-import-resolver-typescript": "^3.6.1",
61
- "eslint-plugin-import": "^2.29.1",
62
- "jest": "29.4.1",
63
- "jest-environment-jsdom": "29.4.1",
64
- "postcss": "8.4.31",
65
- "postcss-loader": "7.2.4",
66
- "postcss-nested": "6.0.1",
67
- "postcss-prefix-selector": "1.16.0",
59
+ "esbuild-sass-plugin": "^2.16.1",
60
+ "eslint-import-resolver-typescript": "^3.10.1",
61
+ "eslint-plugin-import": "^2.32.0",
62
+ "jest": "29.7.0",
63
+ "jest-environment-jsdom": "29.7.0",
64
+ "postcss": "^8.5.32",
65
+ "postcss-loader": "7.3.4",
66
+ "postcss-nested": "6.2.0",
67
+ "postcss-prefix-selector": "1.16.1",
68
68
  "prop-types": "15.8.1",
69
69
  "storybook": "^7.5.3",
70
- "tailwindcss": "3.3.1",
71
- "ts-jest": "29.0.5",
72
- "typescript": "4.9.3",
73
- "vite": "^4.5.0"
70
+ "tailwindcss": "3.4.19",
71
+ "ts-jest": "29.4.15",
72
+ "typescript": "^5.9.3",
73
+ "vite": "^4.5.14"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@types/react": "^16.14.0 || ^17 || ^18",
77
77
  "@types/react-dom": "^16.9.0 || ^17 || ^18",
78
78
  "react": "^16.14.0 || ^17 || ^18",
79
79
  "react-dom": "^16.14.0 || ^17 || ^18",
80
- "@squiz/sds": "^1.4.0"
80
+ "@squiz/sds": "^1.18.1"
81
81
  },
82
82
  "peerDependenciesMeta": {
83
83
  "@types/react": {
@@ -0,0 +1,5 @@
1
+ // jsdom gaps hit by @squiz/sds 1.18+ (react-router 7 and Highcharts are in its import graph)
2
+ import { TextDecoder, TextEncoder } from 'util';
3
+
4
+ Object.assign(window, { TextEncoder, TextDecoder });
5
+ Object.defineProperty(window, 'CSS', { value: { supports: () => false }, writable: true });
package/src/index.scss CHANGED
@@ -3,8 +3,8 @@
3
3
  @import 'tailwindcss/components';
4
4
  @import 'tailwindcss/utilities';
5
5
 
6
- @import '@squiz/sds/lib/package.css';
7
- @import '@squiz/sds/lib/styles/_imports.scss';
6
+ @import '@squiz/sds/dist/package.css';
7
+ @import '@squiz/sds/dist/styles/_imports.scss';
8
8
  @import '@squiz/resource-browser-ui-lib/src/index';
9
9
 
10
10
  // Components
package/src/types.ts CHANGED
@@ -37,8 +37,8 @@ export interface ResourceBrowserSourceWithConfig extends ResourceBrowserSource {
37
37
  }
38
38
 
39
39
  export enum PluginLaunchModeType {
40
- 'Browse' = 'browse',
41
- 'Search' = 'search',
40
+ Browse = 'browse',
41
+ Search = 'search',
42
42
  }
43
43
 
44
44
  export type PluginLaunchMode = {