🐛 Set correct path if is not provided on sdk addComponent method
Some checks failed
Commit Message Check / Check Commit Message (push) Has been cancelled

This commit is contained in:
Andrey Antukh
2025-10-07 09:57:41 +02:00
parent cf24bdd7a8
commit cc5f86bc84
3 changed files with 9 additions and 4 deletions

View File

@@ -129,8 +129,8 @@
[:file-id {:optional true} ::sm/uuid] [:file-id {:optional true} ::sm/uuid]
[:page-id {:optional true} ::sm/uuid] [:page-id {:optional true} ::sm/uuid]
[:frame-id {:optional true} ::sm/uuid] [:frame-id {:optional true} ::sm/uuid]
[:name {:optional true} ::sm/text] [:name {:optional true} :string]
[:path {:optional true} ::sm/text] [:path {:optional true} :string]
[:variant-id {:optional true} ::sm/uuid] [:variant-id {:optional true} ::sm/uuid]
[:variant-properties {:optional true} [:vector types.variant/schema:variant-property]]]) [:variant-properties {:optional true} [:vector types.variant/schema:variant-property]]])
@@ -465,7 +465,7 @@
{:type :add-component {:type :add-component
:id component-id :id component-id
:name (or name "anonmous") :name (or name "anonmous")
:path path :path (d/nilv path "")
:main-instance-id frame-id :main-instance-id frame-id
:main-instance-page page-id :main-instance-page page-id
:variant-id variant-id :variant-id variant-id

View File

@@ -1,5 +1,10 @@
# CHANGELOG # CHANGELOG
## 1.0.11
- Set correct path if it is not provided on addComponent
## 1.0.10 ## 1.0.10
- Enable variant/v1 feature by default - Enable variant/v1 feature by default

View File

@@ -1,6 +1,6 @@
{ {
"name": "@penpot/library", "name": "@penpot/library",
"version": "1.0.10", "version": "1.0.11",
"license": "MPL-2.0", "license": "MPL-2.0",
"author": "Kaleidos INC", "author": "Kaleidos INC",
"packageManager": "yarn@4.9.1+sha512.f95ce356460e05be48d66401c1ae64ef84d163dd689964962c6888a9810865e39097a5e9de748876c2e0bf89b232d583c33982773e9903ae7a76257270986538", "packageManager": "yarn@4.9.1+sha512.f95ce356460e05be48d66401c1ae64ef84d163dd689964962c6888a9810865e39097a5e9de748876c2e0bf89b232d583c33982773e9903ae7a76257270986538",