Commit Graph

14 Commits

Author SHA1 Message Date
Nicola Krumschmidt
a128836145 Rename sourceMaps flag to sourcemap to align with other tools and add no-minify flag to the extensions-sdk CLI (#11106)
* Rename sourceMaps CLI flag to sourcemap to align with other tools

* Add no-minify flag to the extensions-sdk CLI
2022-01-17 13:50:14 -05:00
Nicola Krumschmidt
e009f52f1f Always inline dynamic imports when bundling extensions (#11100)
This ensures that the Extensions SDK always generates a single `index.js`.
2022-01-17 09:52:31 -05:00
Nicola Krumschmidt
9ee6e97cd9 Move useLayout composable to shared and expose it through extensions-sdk (#10850)
* Move useLayout composable to shared

* Expose useLayout through extensions-sdk
2022-01-05 15:38:48 -05:00
Nicola Krumschmidt
af0a197a99 Make registered extensions accessible from extensions (#10849)
* Add extensions system provide and useExtensions composable

* Expose useExtensions through extensions-sdk
2022-01-05 10:33:52 -05:00
Azri Kahar
f071a4a933 add custom panel extensions template & docs (#10386) 2021-12-08 11:13:10 -05:00
Nicola Krumschmidt
b500c32072 Fix extension config importing on Windows (#10242)
Fixes #10239
2021-12-02 16:39:57 -05:00
John Huffsmith
37dc1d44b1 Adding sourceMap flag to extension cli to enable debugging (#9932) 2021-11-22 16:48:03 +00:00
Nicola Krumschmidt
ec3832d337 Make directus:extension.hidden optional (#8593)
This field will be used in conjunction with pack extensions
to be able to hide extensions that are only usable as part of a pack.
There is no need to make the field required, though.
2021-10-06 17:52:57 +02:00
Dieter Luypaert
aadb699e11 Add extensions-sdk watch build option (#7856) 2021-09-17 17:24:10 +02:00
Nicola Krumschmidt
1ff2fa0110 Add return type to useFilterFields (#8062) 2021-09-15 18:15:02 -04:00
Nitwel
ce8401b940 Move some compositons, utils and types to shared (#8059)
* move composables, types and utils to shared

* move composables, utils and types to shared

* expose utils and composables in extensionsSDK

* fix missing dependencies

* Sort index.ts exports

* Do the thing

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-15 16:41:08 -04:00
Nicola Krumschmidt
f99b97720e Rework layout extension component management (#7489)
* Rework layout extension component management

* Move cards layout to new system

* Move calendar layout to new system

* Move map layout to new system

* Use new useLayout everywhere

* Remove useLayoutState composable
2021-08-31 10:55:46 -04:00
Nicola Krumschmidt
2a82927423 Add support for typescript extensions to extension-sdk (#6881)
* Add support for scaffolding typescript extensions to extensions-sdk

* Add support for building typescript extensions to extensions-sdk

* Fix type issues in extension templates

* Expose types of extensions-sdk

* Add language option to create-directus-extension
2021-08-30 10:57:43 -04:00
Nicola Krumschmidt
d2ca0d094c Rename extension-sdk to extensions-sdk (#7282)
While it is never nice to rename an already published package,
this allows us to reserve the "@directus/extension-" prefix for official extensions.
2021-08-27 13:48:19 -04:00