secure-ui-components 0.2.7 → 0.3.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/README.md +23 -25
- package/dist/components/secure-card/secure-card.d.ts.map +1 -1
- package/dist/components/secure-card/secure-card.js +1 -1
- package/dist/components/secure-card/secure-card.js.map +1 -1
- package/dist/components/secure-datetime/secure-datetime.js +1 -1
- package/dist/components/secure-datetime/secure-datetime.js.map +1 -1
- package/dist/components/secure-file-upload/secure-file-upload.js +1 -1
- package/dist/components/secure-form/secure-form.d.ts +1 -108
- package/dist/components/secure-form/secure-form.d.ts.map +1 -1
- package/dist/components/secure-form/secure-form.js +1 -33
- package/dist/components/secure-form/secure-form.js.map +1 -1
- package/dist/components/secure-input/secure-input.css +0 -13
- package/dist/components/secure-input/secure-input.d.ts +1 -112
- package/dist/components/secure-input/secure-input.d.ts.map +1 -1
- package/dist/components/secure-input/secure-input.js +1 -30
- package/dist/components/secure-input/secure-input.js.map +1 -1
- package/dist/components/secure-password-confirm/secure-password-confirm.d.ts +0 -1
- package/dist/components/secure-password-confirm/secure-password-confirm.d.ts.map +1 -1
- package/dist/components/secure-password-confirm/secure-password-confirm.js +1 -1
- package/dist/components/secure-password-confirm/secure-password-confirm.js.map +1 -1
- package/dist/components/secure-select/secure-select.d.ts +2 -132
- package/dist/components/secure-select/secure-select.d.ts.map +1 -1
- package/dist/components/secure-select/secure-select.js +1 -38
- package/dist/components/secure-select/secure-select.js.map +1 -1
- package/dist/components/secure-submit-button/secure-submit-button.d.ts +0 -46
- package/dist/components/secure-submit-button/secure-submit-button.d.ts.map +1 -1
- package/dist/components/secure-submit-button/secure-submit-button.js +1 -22
- package/dist/components/secure-submit-button/secure-submit-button.js.map +1 -1
- package/dist/components/secure-table/secure-table.d.ts +0 -51
- package/dist/components/secure-table/secure-table.d.ts.map +1 -1
- package/dist/components/secure-table/secure-table.js +25 -25
- package/dist/components/secure-table/secure-table.js.map +1 -1
- package/dist/components/secure-textarea/secure-textarea.css +0 -13
- package/dist/components/secure-textarea/secure-textarea.d.ts +1 -106
- package/dist/components/secure-textarea/secure-textarea.d.ts.map +1 -1
- package/dist/components/secure-textarea/secure-textarea.js +1 -30
- package/dist/components/secure-textarea/secure-textarea.js.map +1 -1
- package/dist/core/base-component.d.ts +9 -130
- package/dist/core/base-component.d.ts.map +1 -1
- package/dist/core/base-component.js +1 -18
- package/dist/core/base-component.js.map +1 -1
- package/dist/core/security-config.d.ts +6 -70
- package/dist/core/security-config.d.ts.map +1 -1
- package/dist/core/security-config.js +1 -16
- package/dist/core/security-config.js.map +1 -1
- package/dist/core/types.d.ts +27 -28
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +0 -5
- package/dist/core/types.js.map +1 -1
- package/dist/index.d.ts +2 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/secure-ui.bundle.js +25 -218
- package/package.json +1 -5
package/dist/core/types.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Shared type definitions for the Secure-UI component library.
|
|
3
|
-
* @module types
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
1
|
+
/** Shared type definitions for the Secure-UI component library. */
|
|
6
2
|
/**
|
|
7
3
|
* Security tier string literal values
|
|
8
4
|
*/
|
|
@@ -93,16 +89,14 @@ export interface RateLimitState {
|
|
|
93
89
|
attempts: number;
|
|
94
90
|
windowStart: number;
|
|
95
91
|
}
|
|
96
|
-
/**
|
|
97
|
-
* Audit log entry
|
|
98
|
-
*/
|
|
99
92
|
export interface AuditLogEntry {
|
|
100
93
|
event: string;
|
|
101
94
|
tier: SecurityTierValue;
|
|
102
95
|
timestamp: string;
|
|
103
96
|
userAgent?: string;
|
|
104
97
|
language?: string;
|
|
105
|
-
|
|
98
|
+
/** Additional event-specific data attached at audit time. */
|
|
99
|
+
data?: Record<string, unknown>;
|
|
106
100
|
}
|
|
107
101
|
/**
|
|
108
102
|
* CSP directive mapping
|
|
@@ -115,7 +109,7 @@ export type SecurityHeaders = Record<string, string>;
|
|
|
115
109
|
/**
|
|
116
110
|
* Custom event detail for secure-input events
|
|
117
111
|
*/
|
|
118
|
-
export interface
|
|
112
|
+
export interface SecureInputChangeDetail {
|
|
119
113
|
name: string;
|
|
120
114
|
value: string;
|
|
121
115
|
masked: boolean;
|
|
@@ -124,23 +118,21 @@ export interface SecureInputEventDetail {
|
|
|
124
118
|
/**
|
|
125
119
|
* Custom event detail for secure-textarea events
|
|
126
120
|
*/
|
|
127
|
-
export interface
|
|
121
|
+
export interface SecureTextareaChangeDetail {
|
|
128
122
|
name: string;
|
|
129
123
|
value: string;
|
|
130
124
|
tier: SecurityTierValue;
|
|
131
125
|
}
|
|
132
|
-
|
|
133
|
-
* Custom event detail for secure-select events
|
|
134
|
-
*/
|
|
135
|
-
export interface SecureSelectEventDetail {
|
|
126
|
+
export interface SecureSelectChangeDetail {
|
|
136
127
|
name: string;
|
|
137
|
-
|
|
128
|
+
/** string for single-select; string[] for multi-select */
|
|
129
|
+
value: string | string[];
|
|
138
130
|
tier: SecurityTierValue;
|
|
139
131
|
}
|
|
140
132
|
/**
|
|
141
133
|
* Custom event detail for secure-file-upload events
|
|
142
134
|
*/
|
|
143
|
-
export interface
|
|
135
|
+
export interface SecureFileChangeDetail {
|
|
144
136
|
name: string;
|
|
145
137
|
files: File[];
|
|
146
138
|
tier: SecurityTierValue;
|
|
@@ -148,20 +140,22 @@ export interface SecureFileUploadEventDetail {
|
|
|
148
140
|
/**
|
|
149
141
|
* Custom event detail for secure-datetime events
|
|
150
142
|
*/
|
|
151
|
-
export interface
|
|
143
|
+
export interface SecureDatetimeChangeDetail {
|
|
152
144
|
name: string;
|
|
153
145
|
value: string;
|
|
154
146
|
type: string;
|
|
155
147
|
tier: SecurityTierValue;
|
|
156
148
|
}
|
|
157
|
-
/**
|
|
158
|
-
* Custom event detail for secure-form-submit events
|
|
159
|
-
*/
|
|
160
149
|
export interface SecureFormSubmitEventDetail {
|
|
161
150
|
formData: Record<string, string>;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
151
|
+
/**
|
|
152
|
+
* Call to cancel the library's internal fetch submission.
|
|
153
|
+
* Distinct from `event.preventDefault()` (which also cancels, via the
|
|
154
|
+
* cancelable event flag) — this additionally re-enables the form and
|
|
155
|
+
* resets submitting state so the UI recovers cleanly.
|
|
156
|
+
*/
|
|
157
|
+
cancelSubmission: () => void;
|
|
158
|
+
/** Behavioral telemetry collected from all secure fields. */
|
|
165
159
|
telemetry: SessionTelemetry;
|
|
166
160
|
}
|
|
167
161
|
/**
|
|
@@ -177,9 +171,6 @@ export interface SecureFormSuccessEventDetail {
|
|
|
177
171
|
* Custom event detail for secure-audit events
|
|
178
172
|
*/
|
|
179
173
|
export type SecureAuditEventDetail = AuditLogEntry;
|
|
180
|
-
/**
|
|
181
|
-
* Table column definition
|
|
182
|
-
*/
|
|
183
174
|
export interface TableColumnDefinition {
|
|
184
175
|
key: string;
|
|
185
176
|
label: string;
|
|
@@ -187,6 +178,12 @@ export interface TableColumnDefinition {
|
|
|
187
178
|
filterable?: boolean;
|
|
188
179
|
tier?: SecurityTierValue;
|
|
189
180
|
width?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Custom cell renderer. Return value is treated as an HTML string and run
|
|
183
|
+
* through the library's DOMParser-based sanitizer before insertion — event
|
|
184
|
+
* handlers and disallowed tags are stripped. Safe data-* attributes and
|
|
185
|
+
* common inline elements are preserved.
|
|
186
|
+
*/
|
|
190
187
|
render?: (value: unknown, row: Record<string, unknown>, columnKey: string) => string;
|
|
191
188
|
}
|
|
192
189
|
/**
|
|
@@ -365,11 +362,13 @@ export type CardType = 'visa' | 'mastercard' | 'amex' | 'discover' | 'diners' |
|
|
|
365
362
|
* Security note: full PAN and CVC are intentionally absent.
|
|
366
363
|
* Use element.getCardData() to obtain raw values for SDK tokenisation.
|
|
367
364
|
*/
|
|
368
|
-
export interface
|
|
365
|
+
export interface SecureCardChangeDetail {
|
|
369
366
|
name: string;
|
|
370
367
|
cardType: CardType;
|
|
371
368
|
last4: string;
|
|
369
|
+
/** 1–12 */
|
|
372
370
|
expiryMonth: number;
|
|
371
|
+
/** Full 4-digit year (e.g. 2027, not 27) */
|
|
373
372
|
expiryYear: number;
|
|
374
373
|
cardholderName: string;
|
|
375
374
|
valid: boolean;
|
package/dist/core/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAInE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,eAAe,GAAG,WAAW,GAAG,UAAU,CAAC;AAEtF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;CAChC;AAED;;GA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AAuE;IACvE,OAAO,EAAE,OAAO,CAAC;CAClB;AAID;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,MAAM,GACN,YAAY,GACZ,MAAM,GACN,UAAU,GACV,QAAQ,GACR,KAAK,GACL,SAAS,CAAC;AAEd;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB"}
|
package/dist/core/types.js
CHANGED
package/dist/core/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,mEAAmE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Secure-UI Component Library
|
|
3
|
-
*
|
|
4
|
-
* @module @anthropic/secure-ui-components
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
export { SecureBaseComponent } from './core/base-component.js';
|
|
8
|
-
export { SecurityTier, TIER_CONFIG, getTierConfig, isValidTier, compareTiers, getMoreSecureTier, CSP_RECOMMENDATIONS, SECURITY_HEADERS } from './core/security-config.js';
|
|
1
|
+
export { SecurityTier, TIER_CONFIG, getTierConfig, isValidTier, compareTiers, getMoreSecureTier, } from './core/security-config.js';
|
|
9
2
|
export { SecureInput } from './components/secure-input/secure-input.js';
|
|
10
3
|
export { SecureTextarea } from './components/secure-textarea/secure-textarea.js';
|
|
11
4
|
export { SecureSelect } from './components/secure-select/secure-select.js';
|
|
@@ -17,5 +10,5 @@ export { SecureSubmitButton } from './components/secure-submit-button/secure-sub
|
|
|
17
10
|
export { SecureCard } from './components/secure-card/secure-card.js';
|
|
18
11
|
export { SecureTelemetryProvider } from './components/secure-telemetry-provider/secure-telemetry-provider.js';
|
|
19
12
|
export { SecurePasswordConfirm } from './components/secure-password-confirm/secure-password-confirm.js';
|
|
20
|
-
export type { SecurityTierValue, TierConfig, ValidationConfig, MaskingConfig, StorageConfig, AuditConfig, RateLimitConfig, ValidationResult, ValidationOptions, RateLimitResult,
|
|
13
|
+
export type { SecurityTierValue, TierConfig, ValidationConfig, MaskingConfig, StorageConfig, AuditConfig, RateLimitConfig, ValidationResult, ValidationOptions, RateLimitResult, AuditLogEntry, SecureInputChangeDetail, SecureTextareaChangeDetail, SecureSelectChangeDetail, SecureFileChangeDetail, SecureDatetimeChangeDetail, SecureFormSubmitEventDetail, SecureFormSuccessEventDetail, SecureAuditEventDetail, ThreatDetectedDetail, TableColumnDefinition, TableSortConfig, TablePaginationState, DateTimeInputType, CardType, SecureCardChangeDetail, FieldTelemetry, FieldTelemetrySnapshot, SessionTelemetry, EnvironmentalSignals, SignedTelemetryEnvelope, SecurePasswordConfirmEventDetail, } from './core/types.js';
|
|
21
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,aAAa,EACb,WAAW,EACX,YAAY,EACZ,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qEAAqE,CAAC;AAC9G,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AAGxG,YAAY,EACV,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,QAAQ,EACR,sBAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Secure-UI Component Library
|
|
3
|
-
*
|
|
4
|
-
* @module @anthropic/secure-ui-components
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/import{SecureBaseComponent as o}from"./core/base-component.js";import{SecurityTier as m,TIER_CONFIG as S,getTierConfig as p,isValidTier as u,compareTiers as c,getMoreSecureTier as f,CSP_RECOMMENDATIONS as i,SECURITY_HEADERS as x}from"./core/security-config.js";import{SecureInput as a}from"./components/secure-input/secure-input.js";import{SecureTextarea as l}from"./components/secure-textarea/secure-textarea.js";import{SecureSelect as E}from"./components/secure-select/secure-select.js";import{SecureForm as s}from"./components/secure-form/secure-form.js";import{SecureFileUpload as R}from"./components/secure-file-upload/secure-file-upload.js";import{SecureDateTime as D}from"./components/secure-datetime/secure-datetime.js";import{SecureTable as M}from"./components/secure-table/secure-table.js";import{SecureSubmitButton as O}from"./components/secure-submit-button/secure-submit-button.js";import{SecureCard as _}from"./components/secure-card/secure-card.js";import{SecureTelemetryProvider as y}from"./components/secure-telemetry-provider/secure-telemetry-provider.js";import{SecurePasswordConfirm as B}from"./components/secure-password-confirm/secure-password-confirm.js";export{i as CSP_RECOMMENDATIONS,x as SECURITY_HEADERS,o as SecureBaseComponent,_ as SecureCard,D as SecureDateTime,R as SecureFileUpload,s as SecureForm,a as SecureInput,B as SecurePasswordConfirm,E as SecureSelect,O as SecureSubmitButton,M as SecureTable,y as SecureTelemetryProvider,l as SecureTextarea,m as SecurityTier,S as TIER_CONFIG,c as compareTiers,f as getMoreSecureTier,p as getTierConfig,u as isValidTier};
|
|
1
|
+
import{SecurityTier as o,TIER_CONFIG as t,getTierConfig as m,isValidTier as u,compareTiers as c,getMoreSecureTier as p}from"./core/security-config.js";import{SecureInput as f}from"./components/secure-input/secure-input.js";import{SecureTextarea as x}from"./components/secure-textarea/secure-textarea.js";import{SecureSelect as a}from"./components/secure-select/secure-select.js";import{SecureForm as d}from"./components/secure-form/secure-form.js";import{SecureFileUpload as s}from"./components/secure-file-upload/secure-file-upload.js";import{SecureDateTime as g}from"./components/secure-datetime/secure-datetime.js";import{SecureTable as I}from"./components/secure-table/secure-table.js";import{SecureSubmitButton as y}from"./components/secure-submit-button/secure-submit-button.js";import{SecureCard as v}from"./components/secure-card/secure-card.js";import{SecureTelemetryProvider as B}from"./components/secure-telemetry-provider/secure-telemetry-provider.js";import{SecurePasswordConfirm as E}from"./components/secure-password-confirm/secure-password-confirm.js";export{v as SecureCard,g as SecureDateTime,s as SecureFileUpload,d as SecureForm,f as SecureInput,E as SecurePasswordConfirm,a as SecureSelect,y as SecureSubmitButton,I as SecureTable,B as SecureTelemetryProvider,x as SecureTextarea,o as SecurityTier,t as TIER_CONFIG,c as compareTiers,p as getMoreSecureTier,m as getTierConfig,u as isValidTier};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,aAAa,EACb,WAAW,EACX,YAAY,EACZ,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AAEnC,aAAa;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qEAAqE,CAAC;AAC9G,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC"}
|