@superblocksteam/shared 0.9620.3 → 0.9622.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/dist/errors/http.d.ts +11 -0
- package/dist/errors/http.d.ts.map +1 -1
- package/dist/errors/http.js +11 -0
- package/dist/errors/http.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/jwt/verifier-timeout.test.d.ts +2 -0
- package/dist/jwt/verifier-timeout.test.d.ts.map +1 -0
- package/dist/jwt/verifier-timeout.test.js +120 -0
- package/dist/jwt/verifier-timeout.test.js.map +1 -0
- package/dist/jwt/verifier.d.ts +3 -0
- package/dist/jwt/verifier.d.ts.map +1 -1
- package/dist/jwt/verifier.js +4 -1
- package/dist/jwt/verifier.js.map +1 -1
- package/dist/socket/protocol.d.ts +37 -0
- package/dist/socket/protocol.d.ts.map +1 -1
- package/dist/socket/socket.d.ts +2 -0
- package/dist/socket/socket.d.ts.map +1 -1
- package/dist/socket/socket.js +6 -1
- package/dist/socket/socket.js.map +1 -1
- package/dist/socket/socket.test.js +35 -0
- package/dist/socket/socket.test.js.map +1 -1
- package/dist/types/ai/chat-changed-elsewhere.d.ts +8 -0
- package/dist/types/ai/chat-changed-elsewhere.d.ts.map +1 -0
- package/dist/types/ai/chat-changed-elsewhere.js +12 -0
- package/dist/types/ai/chat-changed-elsewhere.js.map +1 -0
- package/dist/types/ai/editor-restart-required.d.ts +8 -0
- package/dist/types/ai/editor-restart-required.d.ts.map +1 -0
- package/dist/types/ai/editor-restart-required.js +12 -0
- package/dist/types/ai/editor-restart-required.js.map +1 -0
- package/dist/types/ai/index.d.ts +2 -0
- package/dist/types/ai/index.d.ts.map +1 -1
- package/dist/types/ai/index.js +2 -0
- package/dist/types/ai/index.js.map +1 -1
- package/dist/types/ai/native-builder-model.d.ts +29 -5
- package/dist/types/ai/native-builder-model.d.ts.map +1 -1
- package/dist/types/ai/native-builder-model.js +13 -3
- package/dist/types/ai/native-builder-model.js.map +1 -1
- package/dist/types/ai/native-builder-model.test.js +6 -3
- package/dist/types/ai/native-builder-model.test.js.map +1 -1
- package/dist/types/application/index.js +1 -1
- package/dist/types/application/index.js.map +1 -1
- package/dist/types/audit/ocsf.d.ts.map +1 -1
- package/dist/types/audit/ocsf.js +37 -0
- package/dist/types/audit/ocsf.js.map +1 -1
- package/dist/types/branch/index.d.ts +4 -5
- package/dist/types/branch/index.d.ts.map +1 -1
- package/dist/types/deployedAgents.d.ts +31 -0
- package/dist/types/deployedAgents.d.ts.map +1 -0
- package/dist/types/deployedAgents.js +2 -0
- package/dist/types/deployedAgents.js.map +1 -0
- package/dist/types/deployment/currentPublish.d.ts +33 -0
- package/dist/types/deployment/currentPublish.d.ts.map +1 -0
- package/dist/types/deployment/currentPublish.js +2 -0
- package/dist/types/deployment/currentPublish.js.map +1 -0
- package/dist/types/deployment/index.d.ts +1 -0
- package/dist/types/deployment/index.d.ts.map +1 -1
- package/dist/types/git/index.js +1 -1
- package/dist/types/git/index.js.map +1 -1
- package/dist/types/git/index.test.js +5 -0
- package/dist/types/git/index.test.js.map +1 -1
- package/dist/types/policyGate/errors.d.ts +6 -0
- package/dist/types/policyGate/errors.d.ts.map +1 -1
- package/dist/types/policyGate/errors.js +3 -0
- package/dist/types/policyGate/errors.js.map +1 -1
- package/dist/types/policyGate/index.d.ts +10 -2
- package/dist/types/policyGate/index.d.ts.map +1 -1
- package/dist/types/policyGate/index.js.map +1 -1
- package/dist/types/rbac/index.d.ts +8 -0
- package/dist/types/rbac/index.d.ts.map +1 -1
- package/dist/types/rbac/index.js +8 -0
- package/dist/types/rbac/index.js.map +1 -1
- package/dist/types/reviewPolicy/index.d.ts +5 -2
- package/dist/types/reviewPolicy/index.d.ts.map +1 -1
- package/dist/types/reviewPolicy/index.js +10 -2
- package/dist/types/reviewPolicy/index.js.map +1 -1
- package/dist/types/userToken/index.d.ts +1 -0
- package/dist/types/userToken/index.d.ts.map +1 -1
- package/dist/utils/builderHarnessAvailability.d.ts +25 -0
- package/dist/utils/builderHarnessAvailability.d.ts.map +1 -0
- package/dist/utils/builderHarnessAvailability.js +34 -0
- package/dist/utils/builderHarnessAvailability.js.map +1 -0
- package/dist/utils/builderHarnessAvailability.test.d.ts +2 -0
- package/dist/utils/builderHarnessAvailability.test.d.ts.map +1 -0
- package/dist/utils/builderHarnessAvailability.test.js +31 -0
- package/dist/utils/builderHarnessAvailability.test.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/localNativeBuilderFlags.d.ts +2 -1
- package/dist/utils/localNativeBuilderFlags.d.ts.map +1 -1
- package/dist/utils/localNativeBuilderFlags.js +2 -1
- package/dist/utils/localNativeBuilderFlags.js.map +1 -1
- package/dist/utils/localNativeBuilderFlags.test.js +8 -8
- package/dist/utils/localNativeBuilderFlags.test.js.map +1 -1
- package/dist/utils/native-attachment-budget.d.ts +16 -0
- package/dist/utils/native-attachment-budget.d.ts.map +1 -0
- package/dist/utils/native-attachment-budget.js +32 -0
- package/dist/utils/native-attachment-budget.js.map +1 -0
- package/dist/utils/native-attachment-budget.test.d.ts +2 -0
- package/dist/utils/native-attachment-budget.test.d.ts.map +1 -0
- package/dist/utils/native-attachment-budget.test.js +21 -0
- package/dist/utils/native-attachment-budget.test.js.map +1 -0
- package/dist/utils/pageFixtures/v4/container.d.ts +45 -45
- package/dist/utils/pageFixtures/v4/container.d.ts.map +1 -1
- package/dist/utils/pageFixtures/v4/form.d.ts +1 -1
- package/dist/utils/pageFixtures/v6/nested_modal.d.ts +4 -4
- package/dist/utils/pageFixtures/v6/with_main_canvas_children.d.ts +12 -12
- package/dist/utils/pageFixtures/v7/grids_and_forms.d.ts +9 -9
- package/dist/utils/platform-mcp-server-routes.d.ts +1 -1
- package/dist/utils/platform-mcp-server-routes.d.ts.map +1 -1
- package/dist/utils/platform-mcp-server-routes.js +12 -0
- package/dist/utils/platform-mcp-server-routes.js.map +1 -1
- package/package.json +1 -1
- package/src/errors/http.ts +13 -0
- package/src/index.ts +1 -0
- package/src/jwt/verifier-timeout.test.ts +62 -0
- package/src/jwt/verifier.ts +5 -1
- package/src/socket/protocol.ts +38 -2
- package/src/socket/socket.test.ts +43 -0
- package/src/socket/socket.ts +8 -1
- package/src/types/ai/chat-changed-elsewhere.ts +13 -0
- package/src/types/ai/editor-restart-required.ts +13 -0
- package/src/types/ai/index.ts +2 -0
- package/src/types/ai/native-builder-model.test.ts +7 -3
- package/src/types/ai/native-builder-model.ts +18 -3
- package/src/types/application/index.ts +1 -1
- package/src/types/audit/ocsf.ts +37 -0
- package/src/types/branch/index.ts +4 -2
- package/src/types/deployedAgents.ts +19 -0
- package/src/types/deployment/currentPublish.ts +28 -0
- package/src/types/deployment/index.ts +1 -0
- package/src/types/git/index.test.ts +8 -0
- package/src/types/git/index.ts +1 -1
- package/src/types/policyGate/errors.ts +4 -0
- package/src/types/policyGate/index.ts +17 -2
- package/src/types/rbac/index.ts +8 -0
- package/src/types/reviewPolicy/index.ts +12 -2
- package/src/types/userToken/index.ts +2 -0
- package/src/utils/builderHarnessAvailability.test.ts +33 -0
- package/src/utils/builderHarnessAvailability.ts +43 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/localNativeBuilderFlags.test.ts +8 -8
- package/src/utils/localNativeBuilderFlags.ts +4 -3
- package/src/utils/native-attachment-budget.test.ts +23 -0
- package/src/utils/native-attachment-budget.ts +39 -0
- package/src/utils/platform-mcp-server-routes.ts +12 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Opt-in native harness configuration for local development. */
|
|
1
2
|
export class LocalNativeBuilderFlags {
|
|
2
3
|
enabled;
|
|
3
4
|
values;
|
|
@@ -5,7 +6,7 @@ export class LocalNativeBuilderFlags {
|
|
|
5
6
|
this.enabled = enabled;
|
|
6
7
|
this.values = enabled
|
|
7
8
|
? {
|
|
8
|
-
'ui.ai-
|
|
9
|
+
'ui.ai-harnesses.available': ['clark', 'claude_code', 'codex'],
|
|
9
10
|
'clark.sdk-api.enabled': true,
|
|
10
11
|
'superblocks.ai-workspace.agentcore.enabled': true,
|
|
11
12
|
'ui.homepage-app.mode': 'only-3'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localNativeBuilderFlags.js","sourceRoot":"","sources":["../../src/utils/localNativeBuilderFlags.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,uBAAuB;IAGb,OAAO;IAFX,MAAM,
|
|
1
|
+
{"version":3,"file":"localNativeBuilderFlags.js","sourceRoot":"","sources":["../../src/utils/localNativeBuilderFlags.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,OAAO,uBAAuB;IAGb,OAAO;IAFX,MAAM,CAAuD;IAE9E,YAAqB,OAAgB;uBAAhB,OAAO;QAC1B,IAAI,CAAC,MAAM,GAAG,OAAO;YACnB,CAAC,CAAC;gBACE,2BAA2B,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;gBAC9D,uBAAuB,EAAE,IAAI;gBAC7B,4CAA4C,EAAE,IAAI;gBAClD,sBAAsB,EAAE,QAAQ;aACjC;YACH,CAAC,CAAC,EAAE,CAAC;IACT,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,OAAgB,EAAE,QAAgB;QAClD,MAAM,SAAS,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;QACpH,OAAO,IAAI,uBAAuB,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC;IAC3D,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACxE,CAAC;IAED,OAAO,CAAmB,KAAQ;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -2,23 +2,23 @@ import { describe, expect, it } from 'vitest';
|
|
|
2
2
|
import { LocalNativeBuilderFlags } from './localNativeBuilderFlags.js';
|
|
3
3
|
describe('LocalNativeBuilderFlags', () => {
|
|
4
4
|
it.each(['localhost', '127.0.0.1', '[::1]', 'slot1.superblocks.local'])('supports the explicit local option on %s', (host) => {
|
|
5
|
-
expect(LocalNativeBuilderFlags.forBrowser(true, host).valueFor('ui.ai-
|
|
6
|
-
expect(LocalNativeBuilderFlags.forBrowser(false, host).valueFor('ui.ai-
|
|
5
|
+
expect(LocalNativeBuilderFlags.forBrowser(true, host).valueFor('ui.ai-harnesses.available')).toEqual(['clark', 'claude_code', 'codex']);
|
|
6
|
+
expect(LocalNativeBuilderFlags.forBrowser(false, host).valueFor('ui.ai-harnesses.available')).toBeUndefined();
|
|
7
7
|
});
|
|
8
8
|
it.each(['app.superblocks.com', 'localhost.example.com', 'superblocks.local.evil.test'])('ignores the local option on %s', (host) => {
|
|
9
|
-
expect(LocalNativeBuilderFlags.forBrowser(true, host).valueFor('ui.ai-
|
|
9
|
+
expect(LocalNativeBuilderFlags.forBrowser(true, host).valueFor('ui.ai-harnesses.available')).toBeUndefined();
|
|
10
10
|
});
|
|
11
11
|
it('preserves unrelated values and does not mutate the normal flag set', () => {
|
|
12
|
-
const flags = { 'ui.ai-
|
|
12
|
+
const flags = { 'ui.ai-harnesses.available': ['clark'], unrelated: { value: ['normal'] } };
|
|
13
13
|
const native = new LocalNativeBuilderFlags(true);
|
|
14
14
|
expect(native.overlay(flags)).toEqual({
|
|
15
15
|
...flags,
|
|
16
|
-
'ui.ai-
|
|
16
|
+
'ui.ai-harnesses.available': ['clark', 'claude_code', 'codex'],
|
|
17
17
|
'clark.sdk-api.enabled': true,
|
|
18
18
|
'superblocks.ai-workspace.agentcore.enabled': true,
|
|
19
19
|
'ui.homepage-app.mode': 'only-3'
|
|
20
20
|
});
|
|
21
|
-
expect(flags['ui.ai-
|
|
21
|
+
expect(flags['ui.ai-harnesses.available']).toEqual(['clark']);
|
|
22
22
|
expect(native.overlay(flags).unrelated).toBe(flags.unrelated);
|
|
23
23
|
expect(native.valueFor('superblocks.ai-workspace.agentcore.enabled')).toBe(true);
|
|
24
24
|
expect(native.valueFor('unrelated')).toBeUndefined();
|
|
@@ -26,10 +26,10 @@ describe('LocalNativeBuilderFlags', () => {
|
|
|
26
26
|
});
|
|
27
27
|
it('leaves every flag unchanged when disabled', () => {
|
|
28
28
|
const native = new LocalNativeBuilderFlags(false);
|
|
29
|
-
const flags = { 'ui.ai-
|
|
29
|
+
const flags = { 'ui.ai-harnesses.available': ['clark'] };
|
|
30
30
|
expect(native.overlay(flags)).toBe(flags);
|
|
31
31
|
expect(native.valueFor('superblocks.ai-workspace.agentcore.enabled')).toBeUndefined();
|
|
32
|
-
expect(native.valueFor('ui.ai-
|
|
32
|
+
expect(native.valueFor('ui.ai-harnesses.available')).toBeUndefined();
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
//# sourceMappingURL=localNativeBuilderFlags.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localNativeBuilderFlags.test.js","sourceRoot":"","sources":["../../src/utils/localNativeBuilderFlags.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,0CAA0C,EAAE,CAAC,IAAI,EAAE,EAAE;QAC3H,MAAM,CAAC,uBAAuB,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"localNativeBuilderFlags.test.js","sourceRoot":"","sources":["../../src/utils/localNativeBuilderFlags.test.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class NativeAttachmentBudget {
|
|
2
|
+
private readonly scope;
|
|
3
|
+
static readonly maxFiles = 20;
|
|
4
|
+
static readonly maxBytes: number;
|
|
5
|
+
static readonly maxRecoveryFiles = 100;
|
|
6
|
+
static readonly maxRecoveryBytes: number;
|
|
7
|
+
/** Files one native chat keeps across all its turns, screenshots included. */
|
|
8
|
+
static readonly maxRetainedFiles = 500;
|
|
9
|
+
/** Bytes one native chat keeps across all its turns. */
|
|
10
|
+
static readonly maxRetainedBytes: number;
|
|
11
|
+
private bytes;
|
|
12
|
+
constructor(count: number, scope?: 'prompt' | 'recovery');
|
|
13
|
+
addBytes(bytes: number): void;
|
|
14
|
+
get sizeBytes(): number;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=native-attachment-budget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-attachment-budget.d.ts","sourceRoot":"","sources":["../../src/utils/native-attachment-budget.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAsB;IAa/B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAZxB,MAAM,CAAC,QAAQ,CAAC,QAAQ,MAAM;IAC9B,MAAM,CAAC,QAAQ,CAAC,QAAQ,SAAoB;IAC5C,MAAM,CAAC,QAAQ,CAAC,gBAAgB,OAAO;IACvC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SAAoB;IACpD,8EAA8E;IAC9E,MAAM,CAAC,QAAQ,CAAC,gBAAgB,OAAO;IACvC,wDAAwD;IACxD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SAAqB;IACrD,OAAO,CAAC,KAAK,CAAK;IAElB,YACE,KAAK,EAAE,MAAM,EACI,KAAK,GAAE,QAAQ,GAAG,UAAqB,EASzD;IAED,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAS5B;IAED,IAAI,SAAS,IAAI,MAAM,CAEtB;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export class NativeAttachmentBudget {
|
|
2
|
+
scope;
|
|
3
|
+
static maxFiles = 20;
|
|
4
|
+
static maxBytes = 32 * 1024 * 1024;
|
|
5
|
+
static maxRecoveryFiles = 100;
|
|
6
|
+
static maxRecoveryBytes = 64 * 1024 * 1024;
|
|
7
|
+
/** Files one native chat keeps across all its turns, screenshots included. */
|
|
8
|
+
static maxRetainedFiles = 500;
|
|
9
|
+
/** Bytes one native chat keeps across all its turns. */
|
|
10
|
+
static maxRetainedBytes = 512 * 1024 * 1024;
|
|
11
|
+
bytes = 0;
|
|
12
|
+
constructor(count, scope = 'prompt') {
|
|
13
|
+
this.scope = scope;
|
|
14
|
+
const maxFiles = scope === 'recovery' ? NativeAttachmentBudget.maxRecoveryFiles : NativeAttachmentBudget.maxFiles;
|
|
15
|
+
if (!Number.isSafeInteger(count) || count < 0 || count > maxFiles)
|
|
16
|
+
throw new Error(scope === 'recovery'
|
|
17
|
+
? `Native chat can restore up to ${maxFiles} historical attachments.`
|
|
18
|
+
: `Native chat supports up to ${maxFiles} attachments per prompt.`);
|
|
19
|
+
}
|
|
20
|
+
addBytes(bytes) {
|
|
21
|
+
const maxBytes = this.scope === 'recovery' ? NativeAttachmentBudget.maxRecoveryBytes : NativeAttachmentBudget.maxBytes;
|
|
22
|
+
if (!Number.isSafeInteger(bytes) || bytes < 0 || this.bytes + bytes > maxBytes)
|
|
23
|
+
throw new Error(this.scope === 'recovery'
|
|
24
|
+
? 'Native chat can restore up to 64 MiB of historical attachments.'
|
|
25
|
+
: 'Native attachments exceed the 32 MiB prompt limit. Remove files or use smaller images.');
|
|
26
|
+
this.bytes += bytes;
|
|
27
|
+
}
|
|
28
|
+
get sizeBytes() {
|
|
29
|
+
return this.bytes;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=native-attachment-budget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-attachment-budget.js","sourceRoot":"","sources":["../../src/utils/native-attachment-budget.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,sBAAsB;IAad,KAAK;IAZxB,MAAM,CAAU,QAAQ,GAAG,EAAE,CAAC;IAC9B,MAAM,CAAU,QAAQ,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5C,MAAM,CAAU,gBAAgB,GAAG,GAAG,CAAC;IACvC,MAAM,CAAU,gBAAgB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;IACpD,8EAA8E;IAC9E,MAAM,CAAU,gBAAgB,GAAG,GAAG,CAAC;IACvC,wDAAwD;IACxD,MAAM,CAAU,gBAAgB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7C,KAAK,GAAG,CAAC,CAAC;IAElB,YACE,KAAa,EACI,KAAK,GAA0B,QAAQ;qBAAvC,KAAK;QAEtB,MAAM,QAAQ,GAAG,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,sBAAsB,CAAC,QAAQ,CAAC;QAClH,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,QAAQ;YAC/D,MAAM,IAAI,KAAK,CACb,KAAK,KAAK,UAAU;gBAClB,CAAC,CAAC,iCAAiC,QAAQ,0BAA0B;gBACrE,CAAC,CAAC,8BAA8B,QAAQ,0BAA0B,CACrE,CAAC;IACN,CAAC;IAED,QAAQ,CAAC,KAAa;QACpB,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,sBAAsB,CAAC,QAAQ,CAAC;QACvH,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,QAAQ;YAC5E,MAAM,IAAI,KAAK,CACb,IAAI,CAAC,KAAK,KAAK,UAAU;gBACvB,CAAC,CAAC,iEAAiE;gBACnE,CAAC,CAAC,wFAAwF,CAC7F,CAAC;QACJ,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC;IACtB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-attachment-budget.test.d.ts","sourceRoot":"","sources":["../../src/utils/native-attachment-budget.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { expect, it } from 'vitest';
|
|
2
|
+
import { NativeAttachmentBudget } from './native-attachment-budget.js';
|
|
3
|
+
it('accepts 20 attachments within 32 MiB and rejects additional files or bytes', () => {
|
|
4
|
+
const budget = new NativeAttachmentBudget(20);
|
|
5
|
+
budget.addBytes(16_777_216);
|
|
6
|
+
budget.addBytes(16_777_216);
|
|
7
|
+
expect(budget.sizeBytes).toBe(33_554_432);
|
|
8
|
+
expect(() => budget.addBytes(1)).toThrow('32 MiB');
|
|
9
|
+
expect(budget.sizeBytes).toBe(33_554_432);
|
|
10
|
+
expect(() => new NativeAttachmentBudget(21)).toThrow('20 attachments');
|
|
11
|
+
process.stdout.write(`NATIVE_ATTACHMENT_BUDGET_OBSERVED ${JSON.stringify({ acceptedBytes: budget.sizeBytes })}\n`);
|
|
12
|
+
});
|
|
13
|
+
it('bounds recovery independently at 100 historical files and 64 MiB', () => {
|
|
14
|
+
const history = new NativeAttachmentBudget(100, 'recovery');
|
|
15
|
+
history.addBytes(33_554_432);
|
|
16
|
+
history.addBytes(33_554_432);
|
|
17
|
+
expect(history.sizeBytes).toBe(67_108_864);
|
|
18
|
+
expect(() => history.addBytes(1)).toThrow('64 MiB');
|
|
19
|
+
expect(() => new NativeAttachmentBudget(101, 'recovery')).toThrow('100 historical attachments');
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=native-attachment-budget.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-attachment-budget.test.js","sourceRoot":"","sources":["../../src/utils/native-attachment-budget.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,EAAE,CAAC,4EAA4E,EAAE,GAAG,EAAE;IACpF,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,EAAE,CAAC,CAAC;IAC9C,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC5B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC5B,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC1C,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC1C,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,qCAAqC,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC;AACrH,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,kEAAkE,EAAE,GAAG,EAAE;IAC1E,MAAM,OAAO,GAAG,IAAI,sBAAsB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IAC5D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC7B,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3C,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpD,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAsB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAClG,CAAC,CAAC,CAAC"}
|
|
@@ -117,10 +117,11 @@ declare const _default: Readonly<{
|
|
|
117
117
|
shouldScrollContents?: undefined;
|
|
118
118
|
containerStyle?: undefined;
|
|
119
119
|
} | {
|
|
120
|
+
text?: undefined;
|
|
121
|
+
textStyle?: undefined;
|
|
120
122
|
textType?: undefined;
|
|
121
123
|
textAlign?: undefined;
|
|
122
124
|
textColor?: undefined;
|
|
123
|
-
textStyle?: undefined;
|
|
124
125
|
type: string;
|
|
125
126
|
topRow: number;
|
|
126
127
|
children: {
|
|
@@ -265,7 +266,6 @@ declare const _default: Readonly<{
|
|
|
265
266
|
defaultSelectedRow?: undefined;
|
|
266
267
|
horizontalAlignment?: undefined;
|
|
267
268
|
dynamicPropertyPathList?: undefined;
|
|
268
|
-
text?: undefined;
|
|
269
269
|
onClick?: undefined;
|
|
270
270
|
isDisabled?: undefined;
|
|
271
271
|
buttonStyle?: undefined;
|
|
@@ -275,10 +275,11 @@ declare const _default: Readonly<{
|
|
|
275
275
|
canOutsideClickClose?: undefined;
|
|
276
276
|
shouldScrollContents?: undefined;
|
|
277
277
|
} | {
|
|
278
|
+
text?: undefined;
|
|
279
|
+
textStyle?: undefined;
|
|
278
280
|
textType?: undefined;
|
|
279
281
|
textAlign?: undefined;
|
|
280
282
|
textColor?: undefined;
|
|
281
|
-
textStyle?: undefined;
|
|
282
283
|
type: string;
|
|
283
284
|
topRow: number;
|
|
284
285
|
children: {
|
|
@@ -354,7 +355,6 @@ declare const _default: Readonly<{
|
|
|
354
355
|
defaultSelectedRow?: undefined;
|
|
355
356
|
horizontalAlignment?: undefined;
|
|
356
357
|
dynamicPropertyPathList?: undefined;
|
|
357
|
-
text?: undefined;
|
|
358
358
|
onClick?: undefined;
|
|
359
359
|
isDisabled?: undefined;
|
|
360
360
|
buttonStyle?: undefined;
|
|
@@ -364,10 +364,11 @@ declare const _default: Readonly<{
|
|
|
364
364
|
canOutsideClickClose?: undefined;
|
|
365
365
|
shouldScrollContents?: undefined;
|
|
366
366
|
} | {
|
|
367
|
+
text?: undefined;
|
|
368
|
+
textStyle?: undefined;
|
|
367
369
|
textType?: undefined;
|
|
368
370
|
textAlign?: undefined;
|
|
369
371
|
textColor?: undefined;
|
|
370
|
-
textStyle?: undefined;
|
|
371
372
|
backgroundColor?: undefined;
|
|
372
373
|
type: string;
|
|
373
374
|
label: string;
|
|
@@ -1046,7 +1047,6 @@ declare const _default: Readonly<{
|
|
|
1046
1047
|
key: string;
|
|
1047
1048
|
}[];
|
|
1048
1049
|
dynamicPropertyPathList: never[];
|
|
1049
|
-
text?: undefined;
|
|
1050
1050
|
onClick?: undefined;
|
|
1051
1051
|
isDisabled?: undefined;
|
|
1052
1052
|
buttonStyle?: undefined;
|
|
@@ -1058,10 +1058,10 @@ declare const _default: Readonly<{
|
|
|
1058
1058
|
shouldScrollContents?: undefined;
|
|
1059
1059
|
containerStyle?: undefined;
|
|
1060
1060
|
} | {
|
|
1061
|
+
textStyle?: undefined;
|
|
1061
1062
|
textType?: undefined;
|
|
1062
1063
|
textAlign?: undefined;
|
|
1063
1064
|
textColor?: undefined;
|
|
1064
|
-
textStyle?: undefined;
|
|
1065
1065
|
backgroundColor?: undefined;
|
|
1066
1066
|
label?: undefined;
|
|
1067
1067
|
pageType?: undefined;
|
|
@@ -1108,10 +1108,11 @@ declare const _default: Readonly<{
|
|
|
1108
1108
|
shouldScrollContents?: undefined;
|
|
1109
1109
|
containerStyle?: undefined;
|
|
1110
1110
|
} | {
|
|
1111
|
+
text?: undefined;
|
|
1112
|
+
textStyle?: undefined;
|
|
1111
1113
|
textType?: undefined;
|
|
1112
1114
|
textAlign?: undefined;
|
|
1113
1115
|
textColor?: undefined;
|
|
1114
|
-
textStyle?: undefined;
|
|
1115
1116
|
backgroundColor?: undefined;
|
|
1116
1117
|
label?: undefined;
|
|
1117
1118
|
pageType?: undefined;
|
|
@@ -1130,7 +1131,6 @@ declare const _default: Readonly<{
|
|
|
1130
1131
|
defaultSelectedRow?: undefined;
|
|
1131
1132
|
horizontalAlignment?: undefined;
|
|
1132
1133
|
dynamicPropertyPathList?: undefined;
|
|
1133
|
-
text?: undefined;
|
|
1134
1134
|
onClick?: undefined;
|
|
1135
1135
|
isDisabled?: undefined;
|
|
1136
1136
|
buttonStyle?: undefined;
|
|
@@ -1141,19 +1141,19 @@ declare const _default: Readonly<{
|
|
|
1141
1141
|
type: string;
|
|
1142
1142
|
topRow: number;
|
|
1143
1143
|
children: ({
|
|
1144
|
+
text?: undefined;
|
|
1145
|
+
textStyle?: undefined;
|
|
1144
1146
|
textType?: undefined;
|
|
1145
1147
|
textAlign?: undefined;
|
|
1146
|
-
textStyle?: undefined;
|
|
1147
|
-
text?: undefined;
|
|
1148
1148
|
type: string;
|
|
1149
1149
|
topRow: number;
|
|
1150
1150
|
children: {
|
|
1151
1151
|
type: string;
|
|
1152
1152
|
topRow: number;
|
|
1153
1153
|
children: ({
|
|
1154
|
+
textStyle?: undefined;
|
|
1154
1155
|
textType?: undefined;
|
|
1155
1156
|
textAlign?: undefined;
|
|
1156
|
-
textStyle?: undefined;
|
|
1157
1157
|
backgroundColor?: undefined;
|
|
1158
1158
|
dynamicPropertyPathList?: undefined;
|
|
1159
1159
|
text: string;
|
|
@@ -1184,9 +1184,9 @@ declare const _default: Readonly<{
|
|
|
1184
1184
|
shouldScrollContents?: undefined;
|
|
1185
1185
|
containerStyle?: undefined;
|
|
1186
1186
|
} | {
|
|
1187
|
+
textStyle?: undefined;
|
|
1187
1188
|
textType?: undefined;
|
|
1188
1189
|
textAlign?: undefined;
|
|
1189
|
-
textStyle?: undefined;
|
|
1190
1190
|
backgroundColor?: undefined;
|
|
1191
1191
|
dynamicPropertyPathList?: undefined;
|
|
1192
1192
|
isDisabled?: undefined;
|
|
@@ -1217,9 +1217,9 @@ declare const _default: Readonly<{
|
|
|
1217
1217
|
shouldScrollContents?: undefined;
|
|
1218
1218
|
containerStyle?: undefined;
|
|
1219
1219
|
} | {
|
|
1220
|
+
textStyle?: undefined;
|
|
1220
1221
|
textType?: undefined;
|
|
1221
1222
|
textAlign?: undefined;
|
|
1222
|
-
textStyle?: undefined;
|
|
1223
1223
|
backgroundColor?: undefined;
|
|
1224
1224
|
dynamicPropertyPathList?: undefined;
|
|
1225
1225
|
onClick?: undefined;
|
|
@@ -1248,11 +1248,11 @@ declare const _default: Readonly<{
|
|
|
1248
1248
|
shouldScrollContents?: undefined;
|
|
1249
1249
|
containerStyle?: undefined;
|
|
1250
1250
|
} | {
|
|
1251
|
+
text?: undefined;
|
|
1252
|
+
textStyle?: undefined;
|
|
1251
1253
|
textType?: undefined;
|
|
1252
1254
|
textAlign?: undefined;
|
|
1253
|
-
textStyle?: undefined;
|
|
1254
1255
|
dynamicPropertyPathList?: undefined;
|
|
1255
|
-
text?: undefined;
|
|
1256
1256
|
onClick?: undefined;
|
|
1257
1257
|
isDisabled?: undefined;
|
|
1258
1258
|
buttonStyle?: undefined;
|
|
@@ -1345,11 +1345,11 @@ declare const _default: Readonly<{
|
|
|
1345
1345
|
shouldScroll?: undefined;
|
|
1346
1346
|
shouldScrollContents?: undefined;
|
|
1347
1347
|
} | {
|
|
1348
|
+
text?: undefined;
|
|
1349
|
+
textStyle?: undefined;
|
|
1348
1350
|
textType?: undefined;
|
|
1349
1351
|
textAlign?: undefined;
|
|
1350
|
-
textStyle?: undefined;
|
|
1351
1352
|
dynamicPropertyPathList?: undefined;
|
|
1352
|
-
text?: undefined;
|
|
1353
1353
|
onClick?: undefined;
|
|
1354
1354
|
isDisabled?: undefined;
|
|
1355
1355
|
buttonStyle?: undefined;
|
|
@@ -1362,9 +1362,10 @@ declare const _default: Readonly<{
|
|
|
1362
1362
|
type: string;
|
|
1363
1363
|
topRow: number;
|
|
1364
1364
|
children: ({
|
|
1365
|
+
text?: undefined;
|
|
1366
|
+
textStyle?: undefined;
|
|
1365
1367
|
textType?: undefined;
|
|
1366
1368
|
textAlign?: undefined;
|
|
1367
|
-
textStyle?: undefined;
|
|
1368
1369
|
defaultText?: undefined;
|
|
1369
1370
|
onSubmit?: undefined;
|
|
1370
1371
|
inputType?: undefined;
|
|
@@ -1374,7 +1375,6 @@ declare const _default: Readonly<{
|
|
|
1374
1375
|
isMultiple?: undefined;
|
|
1375
1376
|
onOptionChange?: undefined;
|
|
1376
1377
|
defaultOptionValue?: undefined;
|
|
1377
|
-
text?: undefined;
|
|
1378
1378
|
type: string;
|
|
1379
1379
|
label: string;
|
|
1380
1380
|
topRow: number;
|
|
@@ -1403,9 +1403,10 @@ declare const _default: Readonly<{
|
|
|
1403
1403
|
isVertical?: undefined;
|
|
1404
1404
|
placeholderText?: undefined;
|
|
1405
1405
|
} | {
|
|
1406
|
+
text?: undefined;
|
|
1407
|
+
textStyle?: undefined;
|
|
1406
1408
|
textType?: undefined;
|
|
1407
1409
|
textAlign?: undefined;
|
|
1408
|
-
textStyle?: undefined;
|
|
1409
1410
|
onSubmit?: undefined;
|
|
1410
1411
|
isRequired?: undefined;
|
|
1411
1412
|
onTextChanged?: undefined;
|
|
@@ -1414,7 +1415,6 @@ declare const _default: Readonly<{
|
|
|
1414
1415
|
onOptionChange?: undefined;
|
|
1415
1416
|
defaultOptionValue?: undefined;
|
|
1416
1417
|
dynamicPropertyPathList?: undefined;
|
|
1417
|
-
text?: undefined;
|
|
1418
1418
|
isDisabled?: undefined;
|
|
1419
1419
|
dateFormat?: undefined;
|
|
1420
1420
|
defaultDate?: undefined;
|
|
@@ -1442,14 +1442,14 @@ declare const _default: Readonly<{
|
|
|
1442
1442
|
dynamicTriggerPathList: never[];
|
|
1443
1443
|
transformation?: undefined;
|
|
1444
1444
|
} | {
|
|
1445
|
+
text?: undefined;
|
|
1446
|
+
textStyle?: undefined;
|
|
1445
1447
|
textType?: undefined;
|
|
1446
1448
|
textAlign?: undefined;
|
|
1447
|
-
textStyle?: undefined;
|
|
1448
1449
|
options?: undefined;
|
|
1449
1450
|
isMultiple?: undefined;
|
|
1450
1451
|
onOptionChange?: undefined;
|
|
1451
1452
|
defaultOptionValue?: undefined;
|
|
1452
|
-
text?: undefined;
|
|
1453
1453
|
dateFormat?: undefined;
|
|
1454
1454
|
defaultDate?: undefined;
|
|
1455
1455
|
datePickerType?: undefined;
|
|
@@ -1520,9 +1520,10 @@ declare const _default: Readonly<{
|
|
|
1520
1520
|
isVertical?: undefined;
|
|
1521
1521
|
placeholderText?: undefined;
|
|
1522
1522
|
} | {
|
|
1523
|
+
text?: undefined;
|
|
1524
|
+
textStyle?: undefined;
|
|
1523
1525
|
textType?: undefined;
|
|
1524
1526
|
textAlign?: undefined;
|
|
1525
|
-
textStyle?: undefined;
|
|
1526
1527
|
defaultText?: undefined;
|
|
1527
1528
|
onSubmit?: undefined;
|
|
1528
1529
|
inputType?: undefined;
|
|
@@ -1530,7 +1531,6 @@ declare const _default: Readonly<{
|
|
|
1530
1531
|
onTextChanged?: undefined;
|
|
1531
1532
|
isMultiple?: undefined;
|
|
1532
1533
|
dynamicPropertyPathList?: undefined;
|
|
1533
|
-
text?: undefined;
|
|
1534
1534
|
isDisabled?: undefined;
|
|
1535
1535
|
dateFormat?: undefined;
|
|
1536
1536
|
defaultDate?: undefined;
|
|
@@ -1562,9 +1562,10 @@ declare const _default: Readonly<{
|
|
|
1562
1562
|
key: string;
|
|
1563
1563
|
}[];
|
|
1564
1564
|
} | {
|
|
1565
|
+
text?: undefined;
|
|
1566
|
+
textStyle?: undefined;
|
|
1565
1567
|
textType?: undefined;
|
|
1566
1568
|
textAlign?: undefined;
|
|
1567
|
-
textStyle?: undefined;
|
|
1568
1569
|
defaultText?: undefined;
|
|
1569
1570
|
onSubmit?: undefined;
|
|
1570
1571
|
inputType?: undefined;
|
|
@@ -1572,7 +1573,6 @@ declare const _default: Readonly<{
|
|
|
1572
1573
|
onTextChanged?: undefined;
|
|
1573
1574
|
onOptionChange?: undefined;
|
|
1574
1575
|
dynamicPropertyPathList?: undefined;
|
|
1575
|
-
text?: undefined;
|
|
1576
1576
|
isDisabled?: undefined;
|
|
1577
1577
|
dateFormat?: undefined;
|
|
1578
1578
|
defaultDate?: undefined;
|
|
@@ -1697,10 +1697,10 @@ declare const _default: Readonly<{
|
|
|
1697
1697
|
dynamicTriggerPathList: never[];
|
|
1698
1698
|
containerStyle?: undefined;
|
|
1699
1699
|
} | {
|
|
1700
|
+
text?: undefined;
|
|
1701
|
+
textStyle?: undefined;
|
|
1700
1702
|
textType?: undefined;
|
|
1701
1703
|
textAlign?: undefined;
|
|
1702
|
-
textStyle?: undefined;
|
|
1703
|
-
text?: undefined;
|
|
1704
1704
|
type: string;
|
|
1705
1705
|
topRow: number;
|
|
1706
1706
|
children: {
|
|
@@ -1863,10 +1863,11 @@ declare const _default: Readonly<{
|
|
|
1863
1863
|
isVisible?: undefined;
|
|
1864
1864
|
containerStyle?: undefined;
|
|
1865
1865
|
} | {
|
|
1866
|
+
text?: undefined;
|
|
1867
|
+
textStyle?: undefined;
|
|
1866
1868
|
textType?: undefined;
|
|
1867
1869
|
textAlign?: undefined;
|
|
1868
1870
|
textColor?: undefined;
|
|
1869
|
-
textStyle?: undefined;
|
|
1870
1871
|
backgroundColor?: undefined;
|
|
1871
1872
|
label?: undefined;
|
|
1872
1873
|
pageType?: undefined;
|
|
@@ -1885,7 +1886,6 @@ declare const _default: Readonly<{
|
|
|
1885
1886
|
defaultSelectedRow?: undefined;
|
|
1886
1887
|
horizontalAlignment?: undefined;
|
|
1887
1888
|
dynamicPropertyPathList?: undefined;
|
|
1888
|
-
text?: undefined;
|
|
1889
1889
|
onClick?: undefined;
|
|
1890
1890
|
isDisabled?: undefined;
|
|
1891
1891
|
buttonStyle?: undefined;
|
|
@@ -1896,6 +1896,7 @@ declare const _default: Readonly<{
|
|
|
1896
1896
|
type: string;
|
|
1897
1897
|
topRow: number;
|
|
1898
1898
|
children: ({
|
|
1899
|
+
text?: undefined;
|
|
1899
1900
|
label?: undefined;
|
|
1900
1901
|
pageType?: undefined;
|
|
1901
1902
|
textSize?: undefined;
|
|
@@ -1909,7 +1910,6 @@ declare const _default: Readonly<{
|
|
|
1909
1910
|
verticalAlignment?: undefined;
|
|
1910
1911
|
defaultSelectedRow?: undefined;
|
|
1911
1912
|
horizontalAlignment?: undefined;
|
|
1912
|
-
text?: undefined;
|
|
1913
1913
|
onClick?: undefined;
|
|
1914
1914
|
isDisabled?: undefined;
|
|
1915
1915
|
buttonStyle?: undefined;
|
|
@@ -1975,8 +1975,8 @@ declare const _default: Readonly<{
|
|
|
1975
1975
|
isFilterable?: undefined;
|
|
1976
1976
|
defaultFilters?: undefined;
|
|
1977
1977
|
} | {
|
|
1978
|
-
backgroundColor?: undefined;
|
|
1979
1978
|
text?: undefined;
|
|
1979
|
+
backgroundColor?: undefined;
|
|
1980
1980
|
onClick?: undefined;
|
|
1981
1981
|
isDisabled?: undefined;
|
|
1982
1982
|
buttonStyle?: undefined;
|
|
@@ -2238,10 +2238,11 @@ declare const _default: Readonly<{
|
|
|
2238
2238
|
isVisible?: undefined;
|
|
2239
2239
|
containerStyle?: undefined;
|
|
2240
2240
|
} | {
|
|
2241
|
+
text?: undefined;
|
|
2242
|
+
textStyle?: undefined;
|
|
2241
2243
|
textType?: undefined;
|
|
2242
2244
|
textAlign?: undefined;
|
|
2243
2245
|
textColor?: undefined;
|
|
2244
|
-
textStyle?: undefined;
|
|
2245
2246
|
backgroundColor?: undefined;
|
|
2246
2247
|
label?: undefined;
|
|
2247
2248
|
pageType?: undefined;
|
|
@@ -2260,7 +2261,6 @@ declare const _default: Readonly<{
|
|
|
2260
2261
|
defaultSelectedRow?: undefined;
|
|
2261
2262
|
horizontalAlignment?: undefined;
|
|
2262
2263
|
dynamicPropertyPathList?: undefined;
|
|
2263
|
-
text?: undefined;
|
|
2264
2264
|
onClick?: undefined;
|
|
2265
2265
|
isDisabled?: undefined;
|
|
2266
2266
|
buttonStyle?: undefined;
|
|
@@ -2277,9 +2277,9 @@ declare const _default: Readonly<{
|
|
|
2277
2277
|
type: string;
|
|
2278
2278
|
topRow: number;
|
|
2279
2279
|
children: ({
|
|
2280
|
+
textStyle?: undefined;
|
|
2280
2281
|
textType?: undefined;
|
|
2281
2282
|
textAlign?: undefined;
|
|
2282
|
-
textStyle?: undefined;
|
|
2283
2283
|
backgroundColor?: undefined;
|
|
2284
2284
|
dynamicPropertyPathList?: undefined;
|
|
2285
2285
|
isDisabled?: undefined;
|
|
@@ -2310,9 +2310,9 @@ declare const _default: Readonly<{
|
|
|
2310
2310
|
shouldScrollContents?: undefined;
|
|
2311
2311
|
containerStyle?: undefined;
|
|
2312
2312
|
} | {
|
|
2313
|
+
textStyle?: undefined;
|
|
2313
2314
|
textType?: undefined;
|
|
2314
2315
|
textAlign?: undefined;
|
|
2315
|
-
textStyle?: undefined;
|
|
2316
2316
|
backgroundColor?: undefined;
|
|
2317
2317
|
dynamicPropertyPathList?: undefined;
|
|
2318
2318
|
onClick?: undefined;
|
|
@@ -2341,11 +2341,11 @@ declare const _default: Readonly<{
|
|
|
2341
2341
|
shouldScrollContents?: undefined;
|
|
2342
2342
|
containerStyle?: undefined;
|
|
2343
2343
|
} | {
|
|
2344
|
+
text?: undefined;
|
|
2345
|
+
textStyle?: undefined;
|
|
2344
2346
|
textType?: undefined;
|
|
2345
2347
|
textAlign?: undefined;
|
|
2346
|
-
textStyle?: undefined;
|
|
2347
2348
|
dynamicPropertyPathList?: undefined;
|
|
2348
|
-
text?: undefined;
|
|
2349
2349
|
onClick?: undefined;
|
|
2350
2350
|
isDisabled?: undefined;
|
|
2351
2351
|
buttonStyle?: undefined;
|
|
@@ -2494,9 +2494,9 @@ declare const _default: Readonly<{
|
|
|
2494
2494
|
shouldScrollContents?: undefined;
|
|
2495
2495
|
containerStyle?: undefined;
|
|
2496
2496
|
} | {
|
|
2497
|
+
textStyle?: undefined;
|
|
2497
2498
|
textType?: undefined;
|
|
2498
2499
|
textAlign?: undefined;
|
|
2499
|
-
textStyle?: undefined;
|
|
2500
2500
|
backgroundColor?: undefined;
|
|
2501
2501
|
dynamicPropertyPathList?: undefined;
|
|
2502
2502
|
resetFormOnClick?: undefined;
|
|
@@ -2836,9 +2836,9 @@ declare const _default: Readonly<{
|
|
|
2836
2836
|
type: string;
|
|
2837
2837
|
topRow: number;
|
|
2838
2838
|
children: ({
|
|
2839
|
+
textStyle?: undefined;
|
|
2839
2840
|
textType?: undefined;
|
|
2840
2841
|
textAlign?: undefined;
|
|
2841
|
-
textStyle?: undefined;
|
|
2842
2842
|
backgroundColor?: undefined;
|
|
2843
2843
|
dynamicPropertyPathList?: undefined;
|
|
2844
2844
|
parentRowSpace?: undefined;
|
|
@@ -2868,9 +2868,9 @@ declare const _default: Readonly<{
|
|
|
2868
2868
|
isDefaultClickDisabled: boolean;
|
|
2869
2869
|
containerStyle?: undefined;
|
|
2870
2870
|
} | {
|
|
2871
|
+
textStyle?: undefined;
|
|
2871
2872
|
textType?: undefined;
|
|
2872
2873
|
textAlign?: undefined;
|
|
2873
|
-
textStyle?: undefined;
|
|
2874
2874
|
backgroundColor?: undefined;
|
|
2875
2875
|
dynamicPropertyPathList?: undefined;
|
|
2876
2876
|
onClick?: undefined;
|
|
@@ -2898,11 +2898,11 @@ declare const _default: Readonly<{
|
|
|
2898
2898
|
isDefaultClickDisabled: boolean;
|
|
2899
2899
|
containerStyle?: undefined;
|
|
2900
2900
|
} | {
|
|
2901
|
+
text?: undefined;
|
|
2902
|
+
textStyle?: undefined;
|
|
2901
2903
|
textType?: undefined;
|
|
2902
2904
|
textAlign?: undefined;
|
|
2903
|
-
textStyle?: undefined;
|
|
2904
2905
|
dynamicPropertyPathList?: undefined;
|
|
2905
|
-
text?: undefined;
|
|
2906
2906
|
onClick?: undefined;
|
|
2907
2907
|
buttonStyle?: undefined;
|
|
2908
2908
|
isDefaultClickDisabled?: undefined;
|