@designid/tokens 1.2.0 → 1.2.1

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 (2) hide show
  1. package/bin/editor.js +7 -2
  2. package/package.json +1 -1
package/bin/editor.js CHANGED
@@ -1009,6 +1009,9 @@ function handleRoute() {
1009
1009
  // Composition not found, show list
1010
1010
  console.warn(\`Composition \${route.id} not found\`);
1011
1011
  }
1012
+ } else if (compositions.length === 0) {
1013
+ // No compositions exist - show add form by default
1014
+ showAddCompositionForm();
1012
1015
  }
1013
1016
  });
1014
1017
  }
@@ -2904,8 +2907,10 @@ function renderCompositionsList() {
2904
2907
  if (compositions.length === 0) {
2905
2908
  container.innerHTML = \`
2906
2909
  <div style="padding: 40px 20px; text-align: center; color: #666;">
2907
- <p>No compositions yet</p>
2908
- <p style="font-size: 12px; margin-top: 8px;">Click "Add New Composition" to create your first CSS class</p>
2910
+ <p style="font-size: 14px; margin-bottom: 8px;">No compositions yet</p>
2911
+ <p style="font-size: 12px; color: #999;">
2912
+ Use the form on the right to create your first composition →
2913
+ </p>
2909
2914
  </div>
2910
2915
  \`;
2911
2916
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designid/tokens",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "author": "Isa Ozler",
5
5
  "packageManager": "bun@1.2.16",
6
6
  "license": "Apache-2.0",