tetrons 2.3.76 → 2.3.78

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.
@@ -514,6 +514,15 @@
514
514
  resize: none;
515
515
  }
516
516
 
517
+ .ai-modal-preview {
518
+ margin-top: 1rem;
519
+ font-size: 1.2rem;
520
+ }
521
+
522
+ .ai-modal-preview-output {
523
+ margin-top: 0.5rem;
524
+ }
525
+
517
526
  .ai-modal-error {
518
527
  font-size: 0.875rem;
519
528
  color: red;
@@ -561,3 +570,101 @@
561
570
  opacity: 0.5;
562
571
  cursor: not-allowed;
563
572
  }
573
+
574
+ .code-modal-overlay {
575
+ position: fixed;
576
+ top: 0;
577
+ left: 0;
578
+ width: 100%;
579
+ height: 100%;
580
+ background: rgba(0, 0, 0, 0.6);
581
+ display: flex;
582
+ justify-content: center;
583
+ align-items: center;
584
+ z-index: 9999;
585
+ }
586
+
587
+ .code-modal-content {
588
+ background: white;
589
+ width: 90%;
590
+ max-width: 800px;
591
+ border-radius: 8px;
592
+ padding: 20px;
593
+ box-shadow: 0 0 10px #00000033;
594
+ display: flex;
595
+ flex-direction: column;
596
+ }
597
+
598
+ .code-modal-header {
599
+ display: flex;
600
+ justify-content: space-between;
601
+ align-items: center;
602
+ margin-bottom: 1rem;
603
+ }
604
+
605
+ .code-close-btn {
606
+ font-size: 24px;
607
+ border: none;
608
+ background: transparent;
609
+ cursor: pointer;
610
+ }
611
+
612
+ .code-modal-controls {
613
+ display: flex;
614
+ align-items: center;
615
+ gap: 10px;
616
+ margin-bottom: 10px;
617
+ }
618
+
619
+ .code-modal-controls select,
620
+ .code-modal-controls button {
621
+ padding: 6px 12px;
622
+ font-size: 14px;
623
+ }
624
+
625
+ .code-output {
626
+ background: #f2f2f2;
627
+ padding: 12px;
628
+ border-radius: 4px;
629
+ margin-top: 15px;
630
+ height: 150px;
631
+ overflow-y: auto;
632
+ white-space: pre-wrap;
633
+ }
634
+
635
+ .addon-btn {
636
+ padding: 8px 16px;
637
+ background: linear-gradient(to right, #7f00ff, #4f46e5);
638
+ color: white;
639
+ font-weight: bold;
640
+ border: none;
641
+ border-radius: 6px;
642
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
643
+ cursor: pointer;
644
+ transition: background 0.3s ease, transform 0.2s ease;
645
+ }
646
+
647
+ .addon-btn:hover {
648
+ background: linear-gradient(to right, #6b00d6, #4338ca);
649
+ transform: translateY(-1px);
650
+ }
651
+
652
+ .addon-btn:active {
653
+ transform: scale(0.97);
654
+ }
655
+
656
+ .run-code{
657
+ margin-left: auto;
658
+ background-color: black;
659
+ color: white;
660
+ padding: 6px 16px;
661
+ border: none;
662
+ border-radius: 4px;
663
+ cursor: pointer;
664
+ font-size: 14px;
665
+ }
666
+
667
+ .run-code:disabled {
668
+ opacity: 0.6;
669
+ cursor: not-allowed;
670
+ }
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "tetrons",
3
- "version": "2.3.76",
3
+ "version": "2.3.78",
4
4
  "description": "A Next.js project written in TypeScript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
9
9
  "dev": "next dev --turbo",
10
- "build": "tsup && copyfiles -u 2 src/styles/*.css dist/styles && copyfiles -u 2 src/components/**/*.tsx dist/components",
10
+ "build": "tsup && copyfiles -u 2 src/styles/*.css dist/styles && copyfiles -u 2 src/components/**/*.tsx dist/components && copyfiles -u 1 public/dictionaries/* dist/dictionaries",
11
11
  "start": "next start",
12
12
  "lint": "next lint"
13
13
  },
14
14
  "dependencies": {
15
15
  "@emoji-mart/react": "1.1.1",
16
+ "@monaco-editor/react": "^4.7.0",
16
17
  "@tiptap/core": "2.24.1",
17
18
  "@tiptap/extension-code-block-lowlight": "2.24.1",
18
19
  "@tiptap/extension-color": "2.24.1",
@@ -35,12 +36,17 @@
35
36
  "formidable": "3.5.4",
36
37
  "framer-motion": "12.23.0",
37
38
  "html2pdf.js": "0.10.3",
39
+ "katex": "^0.16.22",
38
40
  "lowlight": "3.3.0",
41
+ "lucide-react": "^0.537.0",
39
42
  "mime": "4.0.7",
40
- "mongoose": "8.16.0",
43
+ "mongoose": "^8.17.1",
41
44
  "openai": "^4.40.0",
45
+ "prettier": "^3.6.2",
46
+ "prettier-plugin-jsdoc": "^1.3.3",
42
47
  "react-icons": "5.5.0",
43
- "typo-js": "1.2.5"
48
+ "typo-js": "1.2.5",
49
+ "uuid": "^11.1.0"
44
50
  },
45
51
  "peerDependencies": {
46
52
  "next": "15.3.2",
@@ -55,7 +61,7 @@
55
61
  "@types/react-dom": "^18.2.7",
56
62
  "autoprefixer": "10.4.21",
57
63
  "copyfiles": "2.4.1",
58
- "eslint": "9.0.0",
64
+ "eslint": "^8.57.0",
59
65
  "eslint-config-next": "15.3.2",
60
66
  "tsup": "8.5.0",
61
67
  "typescript": "5.4.5"
@@ -101,15 +107,20 @@
101
107
  "./app/api/validate/route": {
102
108
  "import": "./dist/app/api/validate/route.mjs",
103
109
  "require": "./dist/app/api/validate/route.cjs"
110
+ },
111
+ "./app/api/execute/route": {
112
+ "import": "./dist/app/api/execute/route.mjs",
113
+ "require": "./dist/app/api/execute/route.cjs"
104
114
  }
105
115
  },
106
116
  "files": [
107
117
  "dist",
108
118
  "dist/styles/tetrons.css",
109
- "dist/components"
119
+ "dist/components",
120
+ "dist/public/dictionaries"
110
121
  ],
111
122
  "bugs": {
112
123
  "url": "https://github.com/Finapsys/Tetrons/issues"
113
124
  },
114
125
  "homepage": "https://github.com/Finapsys/Tetrons#readme"
115
- }
126
+ }