@tecof/theme-editor 0.0.19 → 0.0.21

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/styles.css CHANGED
@@ -1536,4 +1536,89 @@
1536
1536
  .tecof-lang-loading-dot:nth-child(3) { animation: tecof-pulse 1.2s ease-in-out 0.4s infinite; }
1537
1537
  .filepond--root {
1538
1538
  margin-bottom: 0 !important;
1539
+ }
1540
+
1541
+ /* ─── Puck Drawer (Sidebar Component Preview) Settings ─── */
1542
+ .tecof-drawer-item-group {
1543
+ position: relative;
1544
+ width: 100%;
1545
+ }
1546
+
1547
+ .tecof-drawer-popover {
1548
+ display: none;
1549
+ position: absolute;
1550
+ left: 105%;
1551
+ top: 0;
1552
+ z-index: 1000;
1553
+ width: 320px;
1554
+ flex-direction: column;
1555
+ background-color: #ffffff;
1556
+ border-radius: 8px;
1557
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
1558
+ border: 1px solid #e4e4e7;
1559
+ overflow: hidden;
1560
+ user-select: none;
1561
+ pointer-events: none; /* Prevent flickering and accidental interactions */
1562
+ }
1563
+
1564
+ /* Show the popover when hovering over its parent .group */
1565
+ .group:hover .tecof-drawer-popover {
1566
+ display: flex;
1567
+ }
1568
+
1569
+ .tecof-drawer-popover-header {
1570
+ background-color: #f4f4f5;
1571
+ border-bottom: 1px solid #e4e4e7;
1572
+ padding: 8px 12px;
1573
+ font-size: 11px;
1574
+ font-family: 'Inter', system-ui, sans-serif;
1575
+ font-weight: 600;
1576
+ color: #3f3f46;
1577
+ text-transform: uppercase;
1578
+ letter-spacing: 0.5px;
1579
+ }
1580
+
1581
+ .tecof-drawer-popover-body {
1582
+ position: relative;
1583
+ width: 100%;
1584
+ min-height: 120px;
1585
+ background-color: #fafafa;
1586
+ display: flex;
1587
+ align-items: center;
1588
+ justify-content: center;
1589
+ padding: 8px;
1590
+ box-sizing: border-box;
1591
+ }
1592
+
1593
+ .tecof-drawer-skeleton {
1594
+ position: absolute;
1595
+ inset: 8px;
1596
+ background-color: #e4e4e7;
1597
+ border-radius: 6px;
1598
+ animation: tecof-pulse-loader 1.5s infinite ease-in-out;
1599
+ }
1600
+
1601
+ .tecof-drawer-img {
1602
+ position: relative;
1603
+ z-index: 10;
1604
+ width: 100%;
1605
+ height: auto;
1606
+ border-radius: 4px;
1607
+ box-shadow: 0 1px 3px rgba(0,0,0,0.05);
1608
+ border: 1px solid #f4f4f5;
1609
+ background: white;
1610
+ }
1611
+
1612
+ @keyframes tecof-pulse-loader {
1613
+ 0%, 100% { opacity: 1; }
1614
+ 50% { opacity: 0.5; }
1615
+ }
1616
+
1617
+ .tecof-picture-wrapper {
1618
+ width: 100%;
1619
+ height: 100%;
1620
+ display: flex;
1621
+ align-items: center;
1622
+ justify-content: center;
1623
+ position: relative;
1539
1624
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecof/theme-editor",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "React theme editor library for Tecof projects",
5
5
  "keywords": [
6
6
  "react",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@monaco-editor/react": "^4.7.0",
60
- "@puckeditor/core": "^0.21.1",
60
+ "@puckeditor/core": "^0.21.2",
61
61
  "@storybook/react-vite": "^8.0.0",
62
62
  "@types/react": "^19.0.0",
63
63
  "@types/react-dom": "^19.0.0",
@@ -80,5 +80,9 @@
80
80
  "typescript": "^5.0.0",
81
81
  "vaul": "^1.1.2",
82
82
  "vitest": "^3.0.0"
83
+ },
84
+ "dependencies": {
85
+ "i": "^0.3.7",
86
+ "npm": "^11.12.1"
83
87
  }
84
88
  }