@seed-design/figma 0.0.39 → 0.0.41

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/index.cjs CHANGED
@@ -142,7 +142,7 @@ function createRestNormalizer(ctx) {
142
142
  if (mainComponent) {
143
143
  componentProperties[key].componentKey = mainComponent.key;
144
144
  }
145
- const mainComponentSet = mainComponent.componentSetId ? ctx.componentSets[mainComponent.componentSetId] : undefined;
145
+ const mainComponentSet = mainComponent?.componentSetId ? ctx.componentSets[mainComponent.componentSetId] : undefined;
146
146
  if (mainComponentSet) {
147
147
  componentProperties[key].componentSetKey = mainComponentSet.key;
148
148
  }
package/lib/index.js CHANGED
@@ -142,7 +142,7 @@ function createRestNormalizer(ctx) {
142
142
  if (mainComponent) {
143
143
  componentProperties[key].componentKey = mainComponent.key;
144
144
  }
145
- const mainComponentSet = mainComponent.componentSetId ? ctx.componentSets[mainComponent.componentSetId] : undefined;
145
+ const mainComponentSet = mainComponent?.componentSetId ? ctx.componentSets[mainComponent.componentSetId] : undefined;
146
146
  if (mainComponentSet) {
147
147
  componentProperties[key].componentSetKey = mainComponentSet.key;
148
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-design/figma",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -38,13 +38,13 @@
38
38
  "lint:publish": "bun publint"
39
39
  },
40
40
  "dependencies": {
41
- "@seed-design/css": "0.0.39",
41
+ "@seed-design/css": "0.0.41",
42
42
  "change-case": "^5.4.4",
43
43
  "ts-pattern": "^5.7.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@figma/plugin-typings": "^1.110.0",
47
- "@figma/rest-api-spec": "^0.31.0",
47
+ "@figma/rest-api-spec": "^0.32.0",
48
48
  "@seed-design/figma-extractor": "^0.0.4",
49
49
  "typescript": "^5.8.3"
50
50
  },
@@ -184,7 +184,7 @@ export function createRestNormalizer(ctx: RestNormalizerContext) {
184
184
  if (mainComponent) {
185
185
  componentProperties[key].componentKey = mainComponent.key;
186
186
  }
187
- const mainComponentSet = mainComponent.componentSetId
187
+ const mainComponentSet = mainComponent?.componentSetId
188
188
  ? ctx.componentSets[mainComponent.componentSetId]
189
189
  : undefined;
190
190
  if (mainComponentSet) {