@nexia/sdk 0.9.11 → 0.10.0
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/changelog/0.10.0/en.md +17 -0
- package/changelog/0.10.0/ko.md +17 -0
- package/dist/approval.d.ts +11 -1
- package/dist/host.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/shell.d.ts +11 -4
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: published
|
|
3
|
+
version: 0.10.0
|
|
4
|
+
date: 2026-12-04
|
|
5
|
+
title: Stage editing and approval rich text
|
|
6
|
+
description: Edit rows without sorting and use the approval editor in business-form fields.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Stage editor without sorting
|
|
10
|
+
|
|
11
|
+
- `NxStageBuilder` accepts `onMove={false}` to hide sorting. For unordered lists without row IDs, pass `stageCount` so the host preserves the identities of the remaining rows after deletion. Omit `onAdd` or `onRemove` to hide the corresponding controls. Adopt a Core host that supports these options. [Frontend SDK](https://developers.nexia.to/docs/app-sdk-frontend-host-contracts)
|
|
12
|
+
|
|
13
|
+
If your component or test fixture receives `NxStageBuilderProps`, check that `onMove` is a function before calling it. Guard `onAdd` and `onRemove` before calling them.
|
|
14
|
+
|
|
15
|
+
## Rich-text fields in approval widgets
|
|
16
|
+
|
|
17
|
+
App widgets can use the optional `ApprovalBusinessFormSlotPropsV2.renderRichTextField` callback to edit one field with the approval composer editor. Adopt a matching Core host and keep a plain-text fallback for earlier hosts. Your App remains responsible for saving and validating its field values. [Approval contracts](https://developers.nexia.to/docs/app-sdk-approval-contracts)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: published
|
|
3
|
+
version: 0.10.0
|
|
4
|
+
date: 2026-12-04
|
|
5
|
+
title: 단계 편집과 결재 서식 입력
|
|
6
|
+
description: 정렬 없이 행을 편집하고 업무 양식 필드에서 결재 에디터를 사용할 수 있습니다.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 단계 편집기 정렬 끄기
|
|
10
|
+
|
|
11
|
+
- `NxStageBuilder`에서 `onMove={false}`로 정렬을 끌 수 있습니다. 행 ID가 없는 비정렬 목록은 `stageCount`로 행 수를 전달하면 삭제 후에도 나머지 행의 식별자가 유지됩니다. `onAdd`나 `onRemove`를 생략하면 해당 버튼이 숨겨집니다. 이 옵션을 지원하는 Core 호스트를 적용하세요. [프런트엔드 SDK](https://developers.nexia.to/ko/docs/app-sdk-frontend-host-contracts)
|
|
12
|
+
|
|
13
|
+
컴포넌트나 테스트 픽스처가 `NxStageBuilderProps`를 받는다면 `onMove`가 함수일 때만 호출하세요. `onAdd`와 `onRemove`는 값이 전달됐는지 확인한 뒤 호출하세요.
|
|
14
|
+
|
|
15
|
+
## 업무 양식의 서식 입력 필드
|
|
16
|
+
|
|
17
|
+
선택 속성 `ApprovalBusinessFormSlotPropsV2.renderRichTextField`로 앱 위젯의 개별 필드에 결재 작성 화면의 서식 에디터를 연결할 수 있습니다. 대응하는 Core 호스트를 적용하고 이전 호스트에서는 평문 입력을 제공하세요. 필드 검증과 저장은 앱이 담당합니다. [결재 계약](https://developers.nexia.to/ko/docs/app-sdk-approval-contracts)
|
package/dist/approval.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentType, LazyExoticComponent } from 'react';
|
|
1
|
+
import type { ComponentType, LazyExoticComponent, ReactNode } from 'react';
|
|
2
2
|
export declare const APPROVAL_STATES: readonly ["draft", "submitted", "approved", "rejected", "recalled", "cancelled"];
|
|
3
3
|
export type ApprovalState = (typeof APPROVAL_STATES)[number];
|
|
4
4
|
export type ApprovalBusinessFormEntryMode = 'create' | 'link';
|
|
@@ -165,6 +165,16 @@ export interface ApprovalBusinessFormSlotPropsV2 {
|
|
|
165
165
|
/** Source resource identity for an opted-in copy. Authorize in the App and
|
|
166
166
|
* import allowed fields into a new draft; never treat it as appDraftRef. */
|
|
167
167
|
copySourceResourceId?: string | null;
|
|
168
|
+
/** Optional host editor for an App-owned field. Fall back to plain text when omitted. */
|
|
169
|
+
renderRichTextField?: (field: {
|
|
170
|
+
label: string;
|
|
171
|
+
text: string;
|
|
172
|
+
html?: string;
|
|
173
|
+
onChange: (value: {
|
|
174
|
+
text: string;
|
|
175
|
+
html?: string;
|
|
176
|
+
}) => void;
|
|
177
|
+
}) => ReactNode;
|
|
168
178
|
registerController: (controller: ApprovalBusinessFormController | null) => void;
|
|
169
179
|
}
|
|
170
180
|
export type ApprovalBusinessFormWidgetLoader = () => Promise<{
|
package/dist/host.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { ApprovalBusinessFormRegistrar, ApprovalBusinessFormRegistry } from
|
|
|
9
9
|
import type { ContextQueryResult, PermissionsQueryResult } from './context';
|
|
10
10
|
import type { DataMigrationBackgroundOperationClient, DataMigrationProviderRegistration, DataMigrationRegistrar, DataMigrationRegistry, DataMigrationStageRegistration, DataMigrationTargetRegistration } from './data-migration';
|
|
11
11
|
import type { ProcessUserTaskFormRegistration, ProcessUserTaskFormRegistrar, ProcessUserTaskFormRegistry } from './process';
|
|
12
|
-
import type { AppRouteFrameProps, AutoRegisterPackageSurfacesOptions, FormFieldErrors, InspectorActionProps, InspectorResourceActionsProps, MessageApi, MutationFormError, NxAdaptiveSplitProps, NxActionButtonProps, NxAlertProps, NxButtonProps, NxLinkButtonProps, NxIconButtonProps, NxIconLinkProps, NxCanonicalRoutePaneProps, NxCheckboxProps, NxColumnBrowserProps, NxColumnPickerProps, NxComboboxProps, NxDatePickerProps, NxDateRangePickerProps, NxDetailRowProps, NxEmptyViewProps, NxFieldGroupProps, NxFieldLegendProps, NxFieldsetProps, NxFileDropzoneProps, NxFormFieldProps, NxFormSectionProps, NxDropdownMenuProps, NxInsightFilterBarProps, NxInsightSurfaceProps, NxHelpTooltipProps, NxOverviewBandProps, InsightFilterControls, UseInsightFilterStateOptions, NxLoadingBlockProps, NxModalDialogProps, NxOrgChartProps, NxMissingRequiredReferencesAlertProps, NxPageFrameProps, NxPaginationProps, NxRadioGroupProps, NxRadioProps, NxRefreshControlProps, NxSearchFieldProps, NxSectionCardProps, NxDisclosureProps, NxStageBuilderProps, SectionRowProps, NxSectionStackProps, NxResponsiveRegionProps, NxSelectProps, NxStatCardProps, NxStatusBadgeProps, NxSwitchProps, NxTabNavProps, NxToggleGroupProps, NxTextAreaProps, NxTextInputProps, NxTooltipProps, OpenResourceWorkTab, ResourceCreateCompletion, ResourceCreateReceiverRegistration, ResourceInspectorAdapterRegistry, ResourceInspectorAdapterRegistrar, ResourceInspectorPanelProps, ResourceInspectorQueryProps, ResourceInspectorStackHostProps, ResourceInspectorStackProviderProps, ResourceInspectorStateProps, ResourceLinkProps, ResourceListParams, ResourceListParamsControls, ResourceListToolbarMoreMenuProps, ResourcePrimaryCellProps, ResourceRowActionsMenuProps, ResourceStatusBadgeProps, ResourceTableProps, ResourceTableSort, ResourceTextCellProps, UseRegisterListLocateActionOptions, UseResourceListParamsOptions, TabContextActionRegistration, RegisterDraftActionOptions, ToastOptions, WorkSectionProps, FavoriteTarget, WorkSurfaceLabelInput, WorkSurfaceLabels, WorkSurfaceProps } from './shell';
|
|
12
|
+
import type { AppRouteFrameProps, AutoRegisterPackageSurfacesOptions, FormFieldErrors, InspectorActionProps, InspectorResourceActionsProps, MessageApi, MutationFormError, NxAdaptiveSplitProps, NxActionButtonProps, NxAlertProps, NxButtonProps, NxLinkButtonProps, NxIconButtonProps, NxIconLinkProps, NxCanonicalRoutePaneProps, NxCheckboxProps, NxColumnBrowserProps, NxColumnPickerProps, NxComboboxProps, NxDatePickerProps, NxDateRangePickerProps, NxDetailRowProps, NxEmptyViewProps, NxFieldGroupProps, NxFieldLegendProps, NxFieldsetProps, NxFileDropzoneProps, NxFormFieldProps, NxFormSectionProps, NxDropdownMenuProps, NxInsightFilterBarProps, NxInsightSurfaceProps, NxHelpTooltipProps, NxOverviewBandProps, InsightFilterControls, UseInsightFilterStateOptions, NxLoadingBlockProps, NxModalDialogProps, NxOrgChartProps, NxMissingRequiredReferencesAlertProps, NxPageFrameProps, NxPaginationProps, NxRadioGroupProps, NxRadioProps, NxRefreshControlProps, NxSearchFieldProps, NxSectionCardProps, NxDisclosureProps, NxStageBuilderCountProps, NxStageBuilderProps, SectionRowProps, NxSectionStackProps, NxResponsiveRegionProps, NxSelectProps, NxStatCardProps, NxStatusBadgeProps, NxSwitchProps, NxTabNavProps, NxToggleGroupProps, NxTextAreaProps, NxTextInputProps, NxTooltipProps, OpenResourceWorkTab, ResourceCreateCompletion, ResourceCreateReceiverRegistration, ResourceInspectorAdapterRegistry, ResourceInspectorAdapterRegistrar, ResourceInspectorPanelProps, ResourceInspectorQueryProps, ResourceInspectorStackHostProps, ResourceInspectorStackProviderProps, ResourceInspectorStateProps, ResourceLinkProps, ResourceListParams, ResourceListParamsControls, ResourceListToolbarMoreMenuProps, ResourcePrimaryCellProps, ResourceRowActionsMenuProps, ResourceStatusBadgeProps, ResourceTableProps, ResourceTableSort, ResourceTextCellProps, UseRegisterListLocateActionOptions, UseResourceListParamsOptions, TabContextActionRegistration, RegisterDraftActionOptions, ToastOptions, WorkSectionProps, FavoriteTarget, WorkSurfaceLabelInput, WorkSurfaceLabels, WorkSurfaceProps } from './shell';
|
|
13
13
|
import type { AgentComponentRenderer, AttachmentDeleteResult, AttachmentQueryResult, AttachmentUploadOptions, AttachmentUploadResult, ApprovalRoutePoliciesQueryResult, ApprovalSharedLinesQueryResult, DashboardWidgetAutoHeightRef, LegalEntityMemberListParams, LegalEntityMemberQueryResult, LegalEntityApplicabilityQueryResult, LegalEntityQueryResult, MediaUploadResult, OperatingUnitQueryResult, OperatingUnitQueryScope, OperatingUnitScopeFieldProps, OperatingUnitScopeResult, OperatingUnitSelectionResult, PartyListParams, PartyQueryResult, TrustedAssetListParams, TrustedAssetsQueryResult, UploadFileClient } from './platform';
|
|
14
14
|
import type { NxOrganizationTargetSelectorProps, NxOperatingUnitSelectorProps, OrganizationListScopeMode, OrganizationListScopeResult, OrganizationTargetQuery, OrganizationTargetQueryResult } from './organization-target';
|
|
15
15
|
import type { NxCalendarProps, NxResourceSchedulerProps, ResourceBoardProps, ResourceScheduleProps } from './resources/resource-projections';
|
|
@@ -20,7 +20,7 @@ import type { ResourceProjectionChangeSubscription } from './resource-reference'
|
|
|
20
20
|
import type { ResourceCreateDestinationRegistry } from './resource-create-destination';
|
|
21
21
|
export type { ResourceProjectionChangeSubscription } from './resource-reference';
|
|
22
22
|
/** Host-only visual component prop contracts. App packages import these from ./host. */
|
|
23
|
-
export type { AppRoutePrefetchContext, AppRoutePrefetcher, AutoRegisterPackageSurfacesOptions, PackageSurfaceLoader, PackageSurfaceOverride, PackageSurfaceOverrideRegistration, NxAdaptiveSplitAsideWidth, NxAdaptiveSplitBreakpoint, NxAdaptiveSplitDensity, NxAdaptiveSplitProps, NxActionButtonProps, NxAlertProps, NxButtonProps, NxLinkButtonProps, NxIconButtonProps, NxIconLinkProps, NxCanonicalRoutePaneProps, NxCheckboxProps, NxColumnBrowserLabels, NxColumnBrowserProps, NxColumnNode, NxColumnPickerLabels, NxColumnPickerProps, NxComboboxProps, NxDatePickerProps, NxDateRangePickerProps, NxDetailRowProps, NxDropdownMenuProps, NxEmptyViewProps, NxFieldGroupProps, NxFieldLegendProps, NxFieldsetProps, NxFileDropzoneProps, NxFormFieldProps, NxFormSectionProps, NxInsightFilterBarProps, NxInsightSurfaceProps, NxHelpTooltipProps, NxLoadingBlockProps, NxModalDialogProps, NxOrgChartItem, NxOrgChartLabels, NxOrgChartMember, NxOrgChartProps, NxMissingRequiredReferencesAlertProps, NxOverviewBandProps, NxPageFrameProps, NxRadioGroupProps, NxRadioProps, NxRefreshControlProps, NxResponsiveRegionProps, ResourceListToolbarMoreMenuProps, NxSearchFieldProps, NxSectionCardProps, NxDisclosureProps, NxStageBuilderProps, SectionRowProps, NxSectionStackProps, NxSelectProps, NxStatCardProps, NxStatusBadgeProps, NxSwitchProps, NxTabNavItem, NxTabNavProps, NxToggleGroupItem, NxToggleGroupProps, NxTextAreaProps, NxTextInputProps, NxTooltipProps, ResourceListRefreshConfig, ResourceTableDensity, ResourceTableStyle, ResourceTableSummaryRow, } from './shell';
|
|
23
|
+
export type { AppRoutePrefetchContext, AppRoutePrefetcher, AutoRegisterPackageSurfacesOptions, PackageSurfaceLoader, PackageSurfaceOverride, PackageSurfaceOverrideRegistration, NxAdaptiveSplitAsideWidth, NxAdaptiveSplitBreakpoint, NxAdaptiveSplitDensity, NxAdaptiveSplitProps, NxActionButtonProps, NxAlertProps, NxButtonProps, NxLinkButtonProps, NxIconButtonProps, NxIconLinkProps, NxCanonicalRoutePaneProps, NxCheckboxProps, NxColumnBrowserLabels, NxColumnBrowserProps, NxColumnNode, NxColumnPickerLabels, NxColumnPickerProps, NxComboboxProps, NxDatePickerProps, NxDateRangePickerProps, NxDetailRowProps, NxDropdownMenuProps, NxEmptyViewProps, NxFieldGroupProps, NxFieldLegendProps, NxFieldsetProps, NxFileDropzoneProps, NxFormFieldProps, NxFormSectionProps, NxInsightFilterBarProps, NxInsightSurfaceProps, NxHelpTooltipProps, NxLoadingBlockProps, NxModalDialogProps, NxOrgChartItem, NxOrgChartLabels, NxOrgChartMember, NxOrgChartProps, NxMissingRequiredReferencesAlertProps, NxOverviewBandProps, NxPageFrameProps, NxRadioGroupProps, NxRadioProps, NxRefreshControlProps, NxResponsiveRegionProps, ResourceListToolbarMoreMenuProps, NxSearchFieldProps, NxSectionCardProps, NxDisclosureProps, NxStageBuilderCountProps, NxStageBuilderProps, SectionRowProps, NxSectionStackProps, NxSelectProps, NxStatCardProps, NxStatusBadgeProps, NxSwitchProps, NxTabNavItem, NxTabNavProps, NxToggleGroupItem, NxToggleGroupProps, NxTextAreaProps, NxTextInputProps, NxTooltipProps, ResourceListRefreshConfig, ResourceTableDensity, ResourceTableStyle, ResourceTableSummaryRow, } from './shell';
|
|
24
24
|
export type { NxCalendarActionBinding, NxCalendarActionCommand, NxCalendarActionResult, NxCalendarInteraction, NxCalendarOccurrence, NxCalendarProps, NxCalendarRange, NxCalendarSelection, NxCalendarTemporalRange, NxCalendarView, NxResourceSchedulerActionBinding, NxResourceSchedulerActionCommand, NxResourceSchedulerActionResult, NxResourceSchedulerInteraction, NxResourceSchedulerOccurrence, NxResourceSchedulerProps, NxResourceSchedulerResource, NxResourceSchedulerSelection, NxResourceSchedulerView, ResourceBoardCard, ResourceBoardLabels, ResourceBoardLane, ResourceBoardLoadState, ResourceBoardMoveCommand, ResourceBoardMutationResult, ResourceBoardProjection, ResourceBoardProps, ResourceBoardSummaryField, ResourceProjectionReference, ResourceScheduleActionBinding, ResourceScheduleActionCommand, ResourceScheduleDatePair, ResourceScheduleDateSemantics, ResourceScheduleDependency, ResourceScheduleDependencyType, ResourceScheduleInteraction, ResourceScheduleItem, ResourceScheduleItemType, ResourceScheduleLoadState, ResourceScheduleMutationResult, ResourceScheduleProjection, ResourceScheduleProps, ResourceScheduleTimeUnit, ResourceScheduleView, } from './resources/resource-projections';
|
|
25
25
|
export type { DatasetImportConfirmationSummary, NxDatasetExportWorkspaceProps, NxDatasetImportWorkspaceProps, NxInlineResourceCreateProps, NxResourceImportDialogProps, NxResourceTransferActionsProps, } from './resources/resource-transfer';
|
|
26
26
|
export { projectSignatureCapabilityCatalog, signatureCapabilityIdentity, } from './signature';
|
|
@@ -475,7 +475,7 @@ export declare function NxPageFrame(props: NxPageFrameProps): ReactNode;
|
|
|
475
475
|
export declare function NxResponsiveRegion(props: NxResponsiveRegionProps): ReactNode;
|
|
476
476
|
export declare function NxPagination(props: NxPaginationProps): ReactNode;
|
|
477
477
|
export declare function NxSearchField(props: NxSearchFieldProps): ReactNode;
|
|
478
|
-
export declare function NxStageBuilder(props: NxStageBuilderProps): ReactNode;
|
|
478
|
+
export declare function NxStageBuilder(props: NxStageBuilderProps | NxStageBuilderCountProps): ReactNode;
|
|
479
479
|
export declare function NxDisclosure(props: NxDisclosureProps): ReactNode;
|
|
480
480
|
export declare function NxSectionCard(props: NxSectionCardProps): ReactNode;
|
|
481
481
|
export declare function NxSectionRow(props: SectionRowProps): ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,5 +48,5 @@ export { documentDataFieldIdentity } from './document-data';
|
|
|
48
48
|
export type { DocumentDataFieldBinding, DocumentDataCatalogItem, DocumentDataCatalogFilters, DocumentDataCatalogPage, NxDocumentDataFieldPickerProps } from './document-data';
|
|
49
49
|
export { buildAppCatalogTree } from './app-catalog';
|
|
50
50
|
export type { AppCatalogGroup, AppCatalogLeaf } from './app-catalog';
|
|
51
|
-
export type { NxStageBuilderProps } from "./shell";
|
|
51
|
+
export type { NxStageBuilderCountProps, NxStageBuilderProps } from "./shell";
|
|
52
52
|
export type { NxDisclosureProps } from "./shell";
|
package/dist/shell.d.ts
CHANGED
|
@@ -933,10 +933,12 @@ export interface NxStageBuilderProps {
|
|
|
933
933
|
/** Stable, unique identities in the current order. Never use array indexes. */
|
|
934
934
|
stageIds: string[];
|
|
935
935
|
renderStage: (index: number) => ReactNode;
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
936
|
+
/** Omit to hide the add button. */
|
|
937
|
+
onAdd?: () => void;
|
|
938
|
+
/** Pass false to hide sorting. Otherwise both indexes refer to the current order; target is the final position. */
|
|
939
|
+
onMove: false | ((index: number, target: number) => void);
|
|
940
|
+
/** Receives the row's current zero-based index. Omit to hide the remove buttons. */
|
|
941
|
+
onRemove?: (index: number) => void;
|
|
940
942
|
draftStageAddition?: boolean;
|
|
941
943
|
minCount?: number;
|
|
942
944
|
maxCount?: number;
|
|
@@ -952,6 +954,11 @@ export interface NxStageBuilderProps {
|
|
|
952
954
|
dragInstructions?: string;
|
|
953
955
|
};
|
|
954
956
|
}
|
|
957
|
+
/** Unordered editors can let the host keep local row identities by updating the count in the add and remove callbacks. */
|
|
958
|
+
export type NxStageBuilderCountProps = Omit<NxStageBuilderProps, 'stageIds' | 'onMove'> & {
|
|
959
|
+
stageCount: number;
|
|
960
|
+
onMove: false;
|
|
961
|
+
};
|
|
955
962
|
export interface NxDisclosureProps {
|
|
956
963
|
title: string;
|
|
957
964
|
open: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexia/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Frontend contracts for Nexia App Packages",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "node scripts/build.mjs",
|
|
36
36
|
"prepack": "npm run build",
|
|
37
|
-
"test": "npm run build && node tests/WireValuesTest.mjs && node tests/ResourceCompositionFrontendContractsTest.mjs && node scripts/organization-target-contract.mjs && node tests/ResourceInspectorRegistrationTest.mjs && node tests/SettingsPrimitivesTest.mjs && node tests/AppServicesTest.mjs && node tests/AppStylesTest.mjs && node --test tests/ApprovalRequestTest.mjs tests/HmrClientTest.mjs",
|
|
37
|
+
"test": "npm run build && node tests/WireValuesTest.mjs && node tests/ResourceCompositionFrontendContractsTest.mjs && node scripts/organization-target-contract.mjs && node tests/ResourceInspectorRegistrationTest.mjs && node tests/SettingsPrimitivesTest.mjs && node tests/AppServicesTest.mjs && node tests/AppStylesTest.mjs && node tests/ApprovalDocumentTitleTypesTest.mjs && node --test tests/ApprovalRequestTest.mjs tests/HmrClientTest.mjs",
|
|
38
38
|
"test:wire-values": "node tests/WireValuesTest.mjs",
|
|
39
39
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
40
40
|
"test:resource-composition": "pnpm run build && node tests/ResourceCompositionFrontendContractsTest.mjs",
|