pixel-react 1.15.20 → 1.15.22

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.
Files changed (62) hide show
  1. package/lib/_virtual/index11.js +2 -2
  2. package/lib/_virtual/index9.js +2 -2
  3. package/lib/assets/icons/exasure_loader.svg.js +6 -0
  4. package/lib/assets/icons/exasure_loader.svg.js.map +1 -0
  5. package/lib/assets/icons/exasure_logo_name.svg.js +6 -0
  6. package/lib/assets/icons/exasure_logo_name.svg.js.map +1 -0
  7. package/lib/components/Icon/iconList.js +4 -0
  8. package/lib/components/Icon/iconList.js.map +1 -1
  9. package/lib/components/MultiSelect/MultiSelect.js +9 -10
  10. package/lib/components/MultiSelect/MultiSelect.js.map +1 -1
  11. package/lib/components/SessionDropdown/SessionDropdown.js +4 -2
  12. package/lib/components/SessionDropdown/SessionDropdown.js.map +1 -1
  13. package/lib/components/SessionManager/SessionManager.js +4 -3
  14. package/lib/components/SessionManager/SessionManager.js.map +1 -1
  15. package/lib/components/SessionManager/types.d.ts +1 -0
  16. package/lib/index.cjs +5591 -35
  17. package/lib/index.cjs.map +1 -1
  18. package/lib/index.d.ts +2 -1
  19. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  20. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  21. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  22. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  23. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  24. package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
  25. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  26. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  27. package/lib/node_modules/jsencrypt/lib/JSEncrypt.js +246 -0
  28. package/lib/node_modules/jsencrypt/lib/JSEncrypt.js.map +1 -0
  29. package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js +325 -0
  30. package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js.map +1 -0
  31. package/lib/node_modules/jsencrypt/lib/index.js +6 -0
  32. package/lib/node_modules/jsencrypt/lib/index.js.map +1 -0
  33. package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js +570 -0
  34. package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js.map +1 -0
  35. package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js +88 -0
  36. package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js.map +1 -0
  37. package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js +66 -0
  38. package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js.map +1 -0
  39. package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js +87 -0
  40. package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js.map +1 -0
  41. package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js +65 -0
  42. package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js.map +1 -0
  43. package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js +1700 -0
  44. package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js.map +1 -0
  45. package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js +48 -0
  46. package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js.map +1 -0
  47. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js +77 -0
  48. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js.map +1 -0
  49. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js +415 -0
  50. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js.map +1 -0
  51. package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js +307 -0
  52. package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js.map +1 -0
  53. package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js +61 -0
  54. package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js.map +1 -0
  55. package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js +1559 -0
  56. package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js.map +1 -0
  57. package/lib/styles.css +1 -1
  58. package/lib/styles.css.map +1 -1
  59. package/lib/utils/getEncryptedData/getEncryptedData.d.ts +1 -1
  60. package/lib/utils/getEncryptedData/getEncryptedData.js +8 -17
  61. package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
  62. package/package.json +2 -1
@@ -1 +1 @@
1
- export declare function getEncryptedData(data: string, base64PublicKey: string): Promise<string>;
1
+ export declare const getEncryptedData: (data: string, publicKey: string) => string | false;
@@ -1,20 +1,11 @@
1
- async function getEncryptedData(data, base64PublicKey) {
2
- // Decode the base64-encoded public key
3
- const keyBytes = Uint8Array.from(atob(base64PublicKey), c => c.charCodeAt(0));
4
- // Import the public key in SPKI format
5
- const publicKey = await crypto.subtle.importKey('spki', keyBytes, {
6
- name: 'RSA-OAEP',
7
- hash: 'SHA-256'
8
- }, false, ['encrypt']);
9
- // Convert data to Uint8Array
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);
15
- // Convert encrypted data to base64
16
- return btoa(String.fromCharCode(...new Uint8Array(encryptedData)));
17
- }
1
+ import { JSEncrypt } from '../../node_modules/jsencrypt/lib/JSEncrypt.js';
2
+
3
+ const getEncryptedData = (data, publicKey) => {
4
+ const encrypt = new JSEncrypt();
5
+ encrypt.setPublicKey(publicKey);
6
+ const enData = encrypt.encrypt(data);
7
+ return enData;
8
+ };
18
9
 
19
10
  export { getEncryptedData };
20
11
  //# sourceMappingURL=getEncryptedData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getEncryptedData.js","sources":["../../../src/utils/getEncryptedData/getEncryptedData.ts"],"sourcesContent":[null],"names":["getEncryptedData","data","base64PublicKey","keyBytes","Uint8Array","from","atob","c","charCodeAt","publicKey","crypto","subtle","importKey","name","hash","encodedData","TextEncoder","encode","encryptedData","encrypt","btoa","String","fromCharCode"],"mappings":"AAAO,eAAeA,gBAAgBA,CAACC,IAAY,EAAEC,eAAuB,EAAA;AAC1E;AACA,EAAA,MAAMC,QAAQ,GAAGC,UAAU,CAACC,IAAI,CAACC,IAAI,CAACJ,eAAe,CAAC,EAAEK,CAAC,IAAIA,CAAC,CAACC,UAAU,CAAC,CAAC,CAAC,CAAC;AAE7E;AACA,EAAA,MAAMC,SAAS,GAAG,MAAMC,MAAM,CAACC,MAAM,CAACC,SAAS,CAC7C,MAAM,EACNT,QAAQ,EACR;AACEU,IAAAA,IAAI,EAAE,UAAU;AAChBC,IAAAA,IAAI,EAAE;AACP,GAAA,EACD,KAAK,EACL,CAAC,SAAS,CAAC,CACZ;AAED;EACA,MAAMC,WAAW,GAAG,IAAIC,WAAW,EAAE,CAACC,MAAM,CAAChB,IAAI,CAAC;AAElD;EACA,MAAMiB,aAAa,GAAG,MAAMR,MAAM,CAACC,MAAM,CAACQ,OAAO,CAC/C;AACEN,IAAAA,IAAI,EAAE;AACP,GAAA,EACDJ,SAAS,EACTM,WAAW,CACZ;AAED;AACA,EAAA,OAAOK,IAAI,CAACC,MAAM,CAACC,YAAY,CAAC,GAAG,IAAIlB,UAAU,CAACc,aAAa,CAAC,CAAC,CAAC;AACpE;;;;"}
1
+ {"version":3,"file":"getEncryptedData.js","sources":["../../../src/utils/getEncryptedData/getEncryptedData.ts"],"sourcesContent":[null],"names":["getEncryptedData","data","publicKey","encrypt","JSEncrypt","setPublicKey","enData"],"mappings":";;MAEaA,gBAAgB,GAAGA,CAACC,IAAY,EAAEC,SAAiB,KAAI;AAClE,EAAA,MAAMC,OAAO,GAAG,IAAIC,SAAS,EAAE;AAC/BD,EAAAA,OAAO,CAACE,YAAY,CAACH,SAAS,CAAC;AAC/B,EAAA,MAAMI,MAAM,GAAGH,OAAO,CAACA,OAAO,CAACF,IAAI,CAAC;AACpC,EAAA,OAAOK,MAAM;AACf;;;;"}
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.20",
4
+ "version": "1.15.22",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -80,6 +80,7 @@
80
80
  "draft-js": "^0.11.7",
81
81
  "janus-gateway": "^1.3.1",
82
82
  "js-beautify": "^1.15.1",
83
+ "jsencrypt": "^3.5.4",
83
84
  "monaco-editor": "^0.52.2",
84
85
  "prop-types": "^15.6.2",
85
86
  "react-archer": "^4.4.0",