@fgv/ts-res-ui-components 5.0.1-1 → 5.0.1-3

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.
@@ -6,7 +6,7 @@ import { FileTree } from '@fgv/ts-json-base';
6
6
  import { Import } from '@fgv/ts-res';
7
7
  import type { IResultReporter } from '@fgv/ts-utils';
8
8
  import { IUrlConfigOptions } from '@fgv/ts-web-extras';
9
- import { JsonCompatible } from '@fgv/ts-json-base';
9
+ import { JsonCompatibleType } from '@fgv/ts-json-base';
10
10
  import { JsonValue } from '@fgv/ts-json-base';
11
11
  import { Logging } from '@fgv/ts-utils';
12
12
  import { MessageLogLevel } from '@fgv/ts-utils';
@@ -1866,7 +1866,7 @@ declare interface IConfigurationViewProps extends IViewBaseProps {
1866
1866
  *
1867
1867
  * @public
1868
1868
  */
1869
- declare interface ICreatePendingResourceParams<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
1869
+ declare interface ICreatePendingResourceParams<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
1870
1870
  /** Full resource ID (e.g., 'platform.languages.az-AZ') - must be unique */
1871
1871
  id: string;
1872
1872
  /** Name of the resource type to use for validation and template creation */
@@ -1999,7 +1999,7 @@ declare interface IEditableJsonViewProps {
1999
1999
  *
2000
2000
  * @public
2001
2001
  */
2002
- declare interface IEditedResourceInfo<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
2002
+ declare interface IEditedResourceInfo<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
2003
2003
  /** Unique identifier of the resource being edited */
2004
2004
  resourceId: string;
2005
2005
  originalValue: TV;
@@ -3537,7 +3537,7 @@ declare interface IResolutionOptions {
3537
3537
  *
3538
3538
  * @public
3539
3539
  */
3540
- declare interface IResolutionResult<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
3540
+ declare interface IResolutionResult<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
3541
3541
  /** Whether the resolution was successful */
3542
3542
  success: boolean;
3543
3543
  /** ID of the resource that was resolved */
@@ -3763,7 +3763,7 @@ declare interface IResourceDetailData {
3763
3763
  *
3764
3764
  * @public
3765
3765
  */
3766
- declare interface IResourceEditorFactory<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
3766
+ declare interface IResourceEditorFactory<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
3767
3767
  /**
3768
3768
  * Attempts to create a resource editor for the given resource.
3769
3769
  *
@@ -3781,7 +3781,7 @@ declare interface IResourceEditorFactory<T = unknown, TV extends JsonCompatible<
3781
3781
  *
3782
3782
  * @public
3783
3783
  */
3784
- declare interface IResourceEditorProps<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
3784
+ declare interface IResourceEditorProps<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
3785
3785
  /** The original JSON value to edit */
3786
3786
  value: TV;
3787
3787
  /** The resource ID for tracking edits */
@@ -4201,7 +4201,7 @@ declare function isPendingAddition(resourceId: string, pendingResources: Map<str
4201
4201
  *
4202
4202
  * @public
4203
4203
  */
4204
- declare interface IStartNewResourceParams<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
4204
+ declare interface IStartNewResourceParams<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
4205
4205
  /** Resource type to use (optional - will use first available if not provided) */
4206
4206
  defaultTypeName?: string;
4207
4207
  /** Pre-seed with specific ID (optional) */
@@ -5457,7 +5457,7 @@ declare function resolveResourceDetailed(resolver: Runtime.ResourceResolver, res
5457
5457
  *
5458
5458
  * @public
5459
5459
  */
5460
- declare type ResourceEditorResult<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> = {
5460
+ declare type ResourceEditorResult<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> = {
5461
5461
  /** Indicates whether the factory was able to create an editor for the resource */
5462
5462
  success: true;
5463
5463
  /** The React component to render for editing this resource */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.12"
8
+ "packageVersion": "7.53.3"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,6 +1,6 @@
1
1
  import { Result } from '@fgv/ts-utils';
2
2
  import { ResourceJson, Config, Bundle, Resources, Runtime, QualifierTypes, Qualifiers, ResourceTypes, Import } from '@fgv/ts-res';
3
- import { JsonCompatible, JsonValue, FileTree } from '@fgv/ts-json-base';
3
+ import { JsonCompatibleType, JsonValue, FileTree } from '@fgv/ts-json-base';
4
4
  import '@fgv/ts-web-extras';
5
5
  import type { IObservabilityContext } from '../utils/observability';
6
6
  import type { IResourcePickerOptions } from '../components/pickers/ResourcePicker/types';
@@ -255,7 +255,7 @@ export interface ICompiledViewProps extends IViewBaseProps {
255
255
  *
256
256
  * @public
257
257
  */
258
- export type ResourceEditorResult<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> = {
258
+ export type ResourceEditorResult<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> = {
259
259
  /** Indicates whether the factory was able to create an editor for the resource */
260
260
  success: true;
261
261
  /** The React component to render for editing this resource */
@@ -272,7 +272,7 @@ export type ResourceEditorResult<T = unknown, TV extends JsonCompatible<T> = Jso
272
272
  *
273
273
  * @public
274
274
  */
275
- export interface IResourceEditorProps<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
275
+ export interface IResourceEditorProps<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
276
276
  /** The original JSON value to edit */
277
277
  value: TV;
278
278
  /** The resource ID for tracking edits */
@@ -296,7 +296,7 @@ export interface IResourceEditorProps<T = unknown, TV extends JsonCompatible<T>
296
296
  *
297
297
  * @public
298
298
  */
299
- export interface IResourceEditorFactory<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
299
+ export interface IResourceEditorFactory<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
300
300
  /**
301
301
  * Attempts to create a resource editor for the given resource.
302
302
  *
@@ -358,7 +358,7 @@ export interface IResolutionViewProps extends IViewBaseProps {
358
358
  *
359
359
  * @public
360
360
  */
361
- export interface IEditedResourceInfo<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
361
+ export interface IEditedResourceInfo<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
362
362
  /** Unique identifier of the resource being edited */
363
363
  resourceId: string;
364
364
  originalValue: TV;
@@ -422,7 +422,7 @@ export interface IResolutionState {
422
422
  *
423
423
  * @public
424
424
  */
425
- export interface ICreatePendingResourceParams<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
425
+ export interface ICreatePendingResourceParams<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
426
426
  /** Full resource ID (e.g., 'platform.languages.az-AZ') - must be unique */
427
427
  id: string;
428
428
  /** Name of the resource type to use for validation and template creation */
@@ -450,7 +450,7 @@ export interface ICreatePendingResourceParams<T = unknown, TV extends JsonCompat
450
450
  *
451
451
  * @public
452
452
  */
453
- export interface IStartNewResourceParams<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
453
+ export interface IStartNewResourceParams<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
454
454
  /** Resource type to use (optional - will use first available if not provided) */
455
455
  defaultTypeName?: string;
456
456
  /** Pre-seed with specific ID (optional) */
@@ -632,7 +632,7 @@ export interface IResolutionContextOptions {
632
632
  *
633
633
  * @public
634
634
  */
635
- export interface IResolutionResult<T = unknown, TV extends JsonCompatible<T> = JsonCompatible<T>> {
635
+ export interface IResolutionResult<T = unknown, TV extends JsonCompatibleType<T> = JsonCompatibleType<T>> {
636
636
  /** Whether the resolution was successful */
637
637
  success: boolean;
638
638
  /** ID of the resource that was resolved */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-res-ui-components",
3
- "version": "5.0.1-1",
3
+ "version": "5.0.1-3",
4
4
  "description": "Reusable React components for ts-res resource visualization and management",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -22,27 +22,27 @@
22
22
  "dependencies": {
23
23
  "@heroicons/react": "~2.2.0",
24
24
  "tslib": "^2.8.1",
25
- "json-edit-react": "~1.28.2",
26
- "@fgv/ts-res": "5.0.1-1",
27
- "@fgv/ts-utils": "5.0.1-1",
28
- "@fgv/ts-extras": "5.0.1-1",
29
- "@fgv/ts-json": "5.0.1-1",
30
- "@fgv/ts-json-base": "5.0.1-1",
31
- "@fgv/ts-web-extras": "5.0.1-1"
25
+ "json-edit-react": "~1.29.0",
26
+ "@fgv/ts-res": "5.0.1-3",
27
+ "@fgv/ts-json-base": "5.0.1-3",
28
+ "@fgv/ts-json": "5.0.1-3",
29
+ "@fgv/ts-utils": "5.0.1-3",
30
+ "@fgv/ts-extras": "5.0.1-3",
31
+ "@fgv/ts-web-extras": "5.0.1-3"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=18.0.0",
35
35
  "react-dom": ">=18.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/react": "~19.1.10",
39
- "@types/react-dom": "~19.1.7",
40
- "react": "~19.1.1",
38
+ "@types/react": "~19.2.2",
39
+ "@types/react-dom": "~19.2.2",
40
+ "react": "~19.2.0",
41
41
  "@types/jest": "^29.5.14",
42
42
  "@types/node": "^20.14.9",
43
- "@typescript-eslint/eslint-plugin": "^8.42.0",
44
- "@typescript-eslint/parser": "^8.42.0",
45
- "eslint": "^9.35.0",
43
+ "@typescript-eslint/eslint-plugin": "^8.46.2",
44
+ "@typescript-eslint/parser": "^8.46.2",
45
+ "eslint": "^9.39.0",
46
46
  "eslint-plugin-import": "^2.32.0",
47
47
  "eslint-plugin-node": "^11.1.0",
48
48
  "eslint-plugin-promise": "^7.2.1",
@@ -52,18 +52,18 @@
52
52
  "@testing-library/react": "^16",
53
53
  "@testing-library/user-event": "^14.6.1",
54
54
  "@testing-library/jest-dom": "^6.4.2",
55
- "react-dom": "~19.1.1",
56
- "rimraf": "^6.0.1",
57
- "ts-jest": "^29.4.1",
58
- "typescript": "5.8.3",
59
- "@rushstack/heft": "0.74.4",
60
- "@rushstack/heft-web-rig": "0.29.9",
61
- "@rushstack/eslint-config": "4.4.0",
62
- "@rushstack/heft-jest-plugin": "0.16.13",
63
- "@microsoft/api-documenter": "^7.26.31",
64
- "@microsoft/api-extractor": "^7.52.10",
55
+ "react-dom": "~19.2.0",
56
+ "rimraf": "^6.1.0",
57
+ "ts-jest": "^29.4.5",
58
+ "typescript": "5.9.3",
59
+ "@rushstack/heft": "1.1.3",
60
+ "@rushstack/heft-web-rig": "1.1.5",
61
+ "@rushstack/eslint-config": "4.5.3",
62
+ "@rushstack/heft-jest-plugin": "1.1.3",
63
+ "@microsoft/api-documenter": "^7.27.3",
64
+ "@microsoft/api-extractor": "^7.53.3",
65
65
  "@testing-library/dom": "^10.4.0",
66
- "@fgv/ts-utils-jest": "5.0.1-1"
66
+ "@fgv/ts-utils-jest": "5.0.1-3"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "heft build --clean",