@fgv/ts-res-ui-components 5.0.1-2 → 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 {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 */
|
package/lib/tsdoc-metadata.json
CHANGED
package/lib/types/index.d.ts
CHANGED
|
@@ -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 {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
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.
|
|
26
|
-
"@fgv/ts-
|
|
27
|
-
"@fgv/ts-
|
|
28
|
-
"@fgv/ts-
|
|
29
|
-
"@fgv/ts-
|
|
30
|
-
"@fgv/ts-
|
|
31
|
-
"@fgv/ts-
|
|
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.
|
|
39
|
-
"@types/react-dom": "~19.
|
|
40
|
-
"react": "~19.
|
|
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.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
45
|
-
"eslint": "^9.
|
|
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.
|
|
56
|
-
"rimraf": "^6.0
|
|
57
|
-
"ts-jest": "^29.4.
|
|
58
|
-
"typescript": "5.
|
|
59
|
-
"@rushstack/heft": "
|
|
60
|
-
"@rushstack/heft-web-rig": "
|
|
61
|
-
"@rushstack/eslint-config": "4.
|
|
62
|
-
"@rushstack/heft-jest-plugin": "
|
|
63
|
-
"@microsoft/api-documenter": "^7.
|
|
64
|
-
"@microsoft/api-extractor": "^7.
|
|
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-
|
|
66
|
+
"@fgv/ts-utils-jest": "5.0.1-3"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "heft build --clean",
|