Is there no way to import components?

  • alice_alexandra-1355122438962286662

    alice_alexandra

    1 month ago

    According to [this Toddle video](https://www.youtube.com/watch?v=eDR23yGc6kc), there should be a way to import components, which is definitely vital for maintaining multiple project.

    However, in the current Toddle interface, I can't find this functionality.
    1355122439067271188-CleanShot_2025-03-28_at_12.11.19.png
    βœ…1
  • erikbeus-1355123379161665607

    Erik Beuschau

    1 month ago

    Hi @alice_alexandra
    We used to have this functionality, but I believe it was removed since it had a number of issues. Instead, we now recommend that you copy/paste components directly in the editor. That works really well - even for larger components.
    This workflow doesn't copy dependencies though (if a component references other components or formulas for instance), but we hope to address that soon 🀞
    πŸ™Œ1
  • alice_alexandra-1355151371573399732

    alice_alexandra

    1 month ago

    Thanks, @Erik Beuschau, but does this workflow keep components in sync to their source?
  • erikbeus-1355152015449260222

    Erik Beuschau

    1 month ago

    No. Neither did the original import workflow.
    While keeping them in sync is sometimes what you want, it's really unfortunate when it is not. In toddle we generally prefer copying things rather than extending/inheriting. If you do want to make something reusable, it should most often be done with a component. Or in your case, perhaps a package with an exported component?
    πŸ‘1
  • alice_alexandra-1355158096653193288

    alice_alexandra

    1 month ago

    @Erik Beuschau, A package with an exported component would definitely solve this, but can packages only be public? My use case is specific to my backend, and so I wouldn't want to publish that to everyone. Just wanted to check before I buy a subscription.
  • alice_alexandra-1357245208525537311

    alice_alexandra

    25 days ago

    Hey, @Erik Beuschauβ€”just repinging here on the last question. Can packages be published privately?

    Thanks so much.
  • erikbeus-1357250486218002433

    Erik Beuschau

    25 days ago

    No. That’s not an option at the moment. It is something we plan to support though.
    I don’t know what back-end you use, but perhaps you could utilize our API services for managing it in an easy/reusable way?
    In case you’re not aware, please note that toddle doesn’t support API secrets atm.
    πŸ‘1
  • alice_alexandra-1357251533774782535

    alice_alexandra

    25 days ago

    No, that makes total sense. I did notice the yellow text here, though, which confused me, as I can't figure out how that works.
  • 1357251597423607929-CleanShot_2025-04-03_at_09.12.46.png
  • erikbeus-1357254503174377524

    Erik Beuschau

    25 days ago

    Within your own organization you can install unpublished packages (from the same organization) and those packages won’t be listed for anyone else. They’re still public though, but obviously difficult for others to find/guess the name of.
    This feature was mostly built to allow package authors to test their package in their own projects before publishing it to everyone.
  • alice_alexandra-1357260863714758657

    alice_alexandra

    25 days ago

    Ah, okayβ€”I think this functionality you're describing might be broken. I cannot search and find my package (having never launched it).
  • alice_alexandra-1357261519422881913

    alice_alexandra

    25 days ago

  • Tod-1357261520547086397

    Tod

    25 days ago

    Great energy @alice_alexandra! Your continuous contribution to the toddle Community just made you advance to Community Level 3!
  • max.kayr-1357264800358465586

    Max

    25 days ago

    This is still behind a feature flag @Erik Beuschau
  • erikbeus-1357265071134343289

    Erik Beuschau

    25 days ago

    Lol I completely forgot. Thank you πŸ˜… I’ll see if we can make this available for everyone πŸ‘
  • alice_alexandra-1357608187494273086

    alice_alexandra

    24 days ago

    Ah, amazing! Thank you!
  • erikbeus-1357632782989262929

    Erik Beuschau

    24 days ago

    πŸ™Œ1
    πŸ‘1
    🫢1