@nexia/sdk 0.8.0 → 0.8.2
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/dist/approval.d.ts +3 -0
- package/dist/organization-target.d.ts +5 -1
- package/dist/vite.mjs +5 -2
- package/package.json +1 -1
package/dist/approval.d.ts
CHANGED
|
@@ -155,6 +155,9 @@ export interface ApprovalBusinessFormSlotPropsV2 {
|
|
|
155
155
|
binding: ApprovalBusinessFormBinding;
|
|
156
156
|
subject?: ApprovalBusinessFormSubject;
|
|
157
157
|
appDraftRef?: string | null;
|
|
158
|
+
/** Source resource identity for an opted-in copy. Authorize in the App and
|
|
159
|
+
* import allowed fields into a new draft; never treat it as appDraftRef. */
|
|
160
|
+
copySourceResourceId?: string | null;
|
|
158
161
|
registerController: (controller: ApprovalBusinessFormController | null) => void;
|
|
159
162
|
}
|
|
160
163
|
export type ApprovalBusinessFormWidgetLoader = () => Promise<{
|
|
@@ -48,7 +48,11 @@ interface OrganizationTargetSelectorBaseProps {
|
|
|
48
48
|
/** A non-ready scope is a status summary, never an implicit "all" selector. */
|
|
49
49
|
status?: 'loading' | 'invalid' | 'unavailable';
|
|
50
50
|
}
|
|
51
|
-
/** Host-localized
|
|
51
|
+
/** Host-localized page-scope controls. A valid axis with only one choice is hidden.
|
|
52
|
+
* Loading, invalid and unavailable states remain visible. A sole Operating Unit
|
|
53
|
+
* does not require a selector, including an unfiltered read across its Legal Entity.
|
|
54
|
+
* Visibility never changes query values or record ownership.
|
|
55
|
+
*/
|
|
52
56
|
export type NxOrganizationTargetSelectorProps = (OrganizationTargetSelectorBaseProps & {
|
|
53
57
|
mode: 'legal-entity-list';
|
|
54
58
|
/** Opt in only when the endpoint supports company-wide and legal-entity records.
|
package/dist/vite.mjs
CHANGED
|
@@ -12,13 +12,16 @@ export function nexiaAppConfig(configUrl) {
|
|
|
12
12
|
const root = fileURLToPath(new URL('.', configUrl));
|
|
13
13
|
const manifest = JSON.parse(readFileSync(new URL('./nexia.json', configUrl), 'utf8'));
|
|
14
14
|
return {
|
|
15
|
-
root, plugins: [nexiaAppFrontend({ appKey: manifest.app.app_key, root })],
|
|
15
|
+
root, base: './', plugins: [nexiaAppFrontend({ appKey: manifest.app.app_key, root })],
|
|
16
16
|
publicDir: false, envDir: false, esbuild: { jsx: 'automatic' },
|
|
17
17
|
resolve: { alias: { '#app': path.join(root, 'resources/js'), '#lang': path.join(root, 'resources/lang') } },
|
|
18
18
|
build: {
|
|
19
19
|
outDir: 'dist/frontend', emptyOutDir: true, sourcemap: false, manifest: true,
|
|
20
|
-
|
|
20
|
+
// Application builds preload lazy chunks and their dependencies in parallel.
|
|
21
|
+
modulePreload: { polyfill: false }, cssCodeSplit: false,
|
|
21
22
|
rollupOptions: {
|
|
23
|
+
input: path.join(root, 'resources/js/index.ts'),
|
|
24
|
+
output: { format: 'es', entryFileNames: 'index.js' },
|
|
22
25
|
external: (id, importer) => nexiaHostPeers.includes(id)
|
|
23
26
|
&& (!['@nexia/sdk', '@nexia/sdk/host'].includes(id) || importer?.startsWith('\0nexia-app-services:')),
|
|
24
27
|
},
|