pixel-react 1.15.26 → 1.15.28
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/lib/_virtual/index11.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +0 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +0 -2
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/EditableCell.js +1 -11
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/EditableCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +0 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +1 -4
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/index.cjs +11 -30
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.js +10 -13
- package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
- package/package.json +3 -1
package/lib/index.d.ts
CHANGED
|
@@ -3447,7 +3447,6 @@ interface ExcelFileProps {
|
|
|
3447
3447
|
rowContextEnable?: boolean;
|
|
3448
3448
|
sheetBarContextEnable?: boolean;
|
|
3449
3449
|
minimumColumnWidth?: number;
|
|
3450
|
-
showHider?: boolean;
|
|
3451
3450
|
scroller?: boolean;
|
|
3452
3451
|
attachmentAction?: {
|
|
3453
3452
|
addAttachment: (file: File) => Promise<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as beautifier } from '../../../../../_virtual/
|
|
1
|
+
import { __exports as beautifier } from '../../../../../_virtual/beautifier.js';
|
|
2
2
|
import { __require as requireOptions } from './options.js';
|
|
3
3
|
import { __require as requireOutput } from '../core/output.js';
|
|
4
4
|
import { __require as requireInputscanner } from '../core/inputscanner.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as css } from '../../../../../_virtual/
|
|
1
|
+
import { __module as css } from '../../../../../_virtual/index9.js';
|
|
2
2
|
import { __require as requireBeautifier } from './beautifier.js';
|
|
3
3
|
import { __require as requireOptions } from './options.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as beautifier } from '../../../../../_virtual/
|
|
1
|
+
import { __exports as beautifier } from '../../../../../_virtual/beautifier2.js';
|
|
2
2
|
import { __require as requireOptions } from './options.js';
|
|
3
3
|
import { __require as requireOutput } from '../core/output.js';
|
|
4
4
|
import { __require as requireTokenizer } from './tokenizer.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as beautifier } from '../../../../../_virtual/
|
|
1
|
+
import { __exports as beautifier } from '../../../../../_virtual/beautifier3.js';
|
|
2
2
|
import { __require as requireOutput } from '../core/output.js';
|
|
3
3
|
import { __require as requireToken } from '../core/token.js';
|
|
4
4
|
import { __require as requireAcorn } from './acorn.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as javascript } from '../../../../../_virtual/
|
|
1
|
+
import { __module as javascript } from '../../../../../_virtual/index11.js';
|
|
2
2
|
import { __require as requireBeautifier } from './beautifier.js';
|
|
3
3
|
import { __require as requireOptions } from './options.js';
|
|
4
4
|
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
+
import forge from 'node-forge';
|
|
2
|
+
|
|
1
3
|
async function getEncryptedData(data, base64PublicKey) {
|
|
2
4
|
// Decode the base64-encoded public key
|
|
3
|
-
const
|
|
4
|
-
//
|
|
5
|
-
const publicKey =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const encodedData = new TextEncoder().encode(data);
|
|
11
|
-
// Encrypt the data using RSA-OAEP
|
|
12
|
-
const encryptedData = await crypto.subtle.encrypt({
|
|
13
|
-
name: 'RSA-OAEP'
|
|
14
|
-
}, publicKey, encodedData);
|
|
5
|
+
const publicKeyPem = `-----BEGIN PUBLIC KEY-----\n${base64PublicKey}\n-----END PUBLIC KEY-----`;
|
|
6
|
+
// Load the public key using node-forge
|
|
7
|
+
const publicKey = forge.pki.publicKeyFromPem(publicKeyPem);
|
|
8
|
+
// Encrypt the data using RSA-OAEP with SHA-256
|
|
9
|
+
const encrypted = publicKey.encrypt(data, 'RSA-OAEP', {
|
|
10
|
+
md: forge.md.sha256.create()
|
|
11
|
+
});
|
|
15
12
|
// Convert encrypted data to base64
|
|
16
|
-
return
|
|
13
|
+
return forge.util.encode64(encrypted);
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
export { getEncryptedData };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEncryptedData.js","sources":["../../../src/utils/getEncryptedData/getEncryptedData.ts"],"sourcesContent":[null],"names":["getEncryptedData","data","base64PublicKey","
|
|
1
|
+
{"version":3,"file":"getEncryptedData.js","sources":["../../../src/utils/getEncryptedData/getEncryptedData.ts"],"sourcesContent":[null],"names":["getEncryptedData","data","base64PublicKey","publicKeyPem","publicKey","forge","pki","publicKeyFromPem","encrypted","encrypt","md","sha256","create","util","encode64"],"mappings":";;AAEO,eAAeA,gBAAgBA,CAACC,IAAY,EAAEC,eAAuB,EAAA;AAC1E;AACA,EAAA,MAAMC,YAAY,GAAG,CAA+BD,4BAAAA,EAAAA,eAAe,CAA4B,0BAAA,CAAA;AAE/F;EACA,MAAME,SAAS,GAAGC,KAAK,CAACC,GAAG,CAACC,gBAAgB,CAACJ,YAAY,CAAC;AAE1D;EACA,MAAMK,SAAS,GAAGJ,SAAS,CAACK,OAAO,CAACR,IAAI,EAAE,UAAU,EAAE;IACpDS,EAAE,EAAEL,KAAK,CAACK,EAAE,CAACC,MAAM,CAACC,MAAM;AAC3B,GAAA,CAAC;AACF;AACA,EAAA,OAAOP,KAAK,CAACQ,IAAI,CAACC,QAAQ,CAACN,SAAS,CAAC;AACvC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixel-react",
|
|
3
3
|
"description": "Great for pixel-perfect, design-focused components in React",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.28",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@storybook/react-vite": "^8.4.5",
|
|
32
32
|
"@storybook/test": "^8.4.5",
|
|
33
33
|
"@types/js-beautify": "^1.14.3",
|
|
34
|
+
"@types/node-forge": "^1.3.14",
|
|
34
35
|
"@types/react": "^18.3.12",
|
|
35
36
|
"@types/react-dom": "^18.3.1",
|
|
36
37
|
"@types/react-draft-wysiwyg": "^1.13.8",
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
"js-beautify": "^1.15.1",
|
|
83
84
|
"jsencrypt": "^3.3.2",
|
|
84
85
|
"monaco-editor": "^0.53.0",
|
|
86
|
+
"node-forge": "^1.3.1",
|
|
85
87
|
"prop-types": "^15.6.2",
|
|
86
88
|
"react-archer": "^4.4.0",
|
|
87
89
|
"react-day-picker": "^9.2.1",
|