Commit Graph

22 Commits

Author SHA1 Message Date
Mads Rasmussen
4bc178020d move context token into folder 2023-03-23 10:46:47 +01:00
Jacob Overgaard
796533ff11 Refactor libs into @umbraco-cms/backoffice/* (#608)
* merge libs rollup configs to one rollup

* move css from libs to src/core

* run rollup on cms build

* move test-utils to /utils folder

* move css to src/core

* mark @umbraco-cms/backoffice as external when building for CMS

* rename all models to include @umbraco-cms/backoffice in their path to allow us to publish as a single module

* rename all imports to @umbraco-cms/backoffice/*

* rename events to umb-events to avoid rollup error of protected module name(?)

* test that libs can build

* move css to src/core

* move umb-lit-element and modal elements to src/core

* move some modal interfaces back to libs/modal

* move the icon store into src/core since it is very localized to the backoffice

* comment out build:libs for now since Github runs out of memory

* rename to match tsconfig alias

* add package.json to libs

* only make libs for lib folders

* turn off emit for typescript since we are handling types for libs separately

* build libs locally

* add script to move libs to final destination with some transform

* move libs after build

* move package.json to dist folder first (so we can publish from there)

* remove inline comments

* ensure the outputDir exists

* Remove re-export of extensions-registry library from models library

* move to individual files to avoid circular imports

* check if outputDir exists before trying to create it

* write transforms first in dist file and then copy the file to outputDir

* ensure all umbraco types are external

* copy information from main package.json file
2023-03-21 11:41:06 +01:00
Jacob Overgaard
8fd2bf910c build declarations for libraries 2023-03-07 15:31:56 +01:00
Jacob Overgaard
a028bfd8f8 make context-provider test independent of external libs 2023-03-07 15:30:09 +01:00
Jacob Overgaard
7e3ab09ba3 add TYPE property to UmbContextToken to get the generic type 2023-03-01 11:02:01 +01:00
Warren Buckley
e311465a1e Remove unused import 2023-02-15 09:06:31 +00:00
Warren Buckley
7b99678f20 Merge remote-tracking branch 'origin/main' into feature/debug-component
# Conflicts:
#	libs/context-api/provide/context-provider.ts
2023-02-15 09:05:01 +00:00
Niels Lyngsø
5df2f3a4f1 context-provider-controller prevents replacement (#519)
* context-provider-controller prevents replacement

* correct import order

* do not re-provide self providing context

* define and test controller-host-test element
2023-02-15 08:47:00 +00:00
Warren Buckley
5c2236fe40 Some work witrh help of pairing with Mads to get the contexts collected and then passed to callback on original firing event 2023-02-14 14:12:51 +00:00
Warren Buckley
c00b77791e Rework based on Mads notes 2023-02-14 12:08:30 +00:00
Niels Lyngsø
32690751b5 implement document tree repository 2023-02-02 10:49:57 +01:00
Niels Lyngsø
e2c1fb15f1 mega refactor commit 2023-01-27 09:29:55 +01:00
Niels Lyngsø
339db3eb6f optional destroy on context instances 2023-01-25 16:25:34 +01:00
Jacob Overgaard
b4886f7c67 revert package setup (for now) 2023-01-24 08:38:24 +01:00
Jacob Overgaard
5ef2173889 move context-provider element to element package to avoid circular dependencies 2023-01-24 08:36:07 +01:00
Jacob Overgaard
c0d30be4f0 Revert "integrate @umbraco-cms/element and @umbraco-cms/context-api due to circular dependencies"
This reverts commit e87439ff5f.
2023-01-24 08:30:18 +01:00
Jacob Overgaard
e87439ff5f integrate @umbraco-cms/element and @umbraco-cms/context-api due to circular dependencies 2023-01-23 16:24:42 +01:00
Jacob Overgaard
095337245e update module of package.json [skip ci] 2023-01-23 15:39:05 +01:00
Jacob Overgaard
4f53ab43ea add package and rollup to libs 2023-01-23 14:36:50 +01:00
Jacob Overgaard
65a8015c10 export context-provider element 2023-01-23 14:35:31 +01:00
Jacob Overgaard
b501ffc763 Merge remote-tracking branch 'origin/main' into feature/split-into-libs 2023-01-23 13:49:45 +01:00
Jacob Overgaard
99e91a7c65 migrate @umbraco-cms/context-api 2023-01-20 13:31:31 +01:00