Commit Graph

50 Commits

Author SHA1 Message Date
Jacob Overgaard
630b727a02 upgrade router-slot to 2.0.0 2023-04-04 16:47:29 +02:00
Mads Rasmussen
70c2f70420 Chore: Eslint rule to enforce element suffix (#625)
* add eslint rule to enforce element suffix on elements

* remove fixer

* rename first round of elements

* add element to element class name

* add element suffix

* rename element

* add element to UmbControllerHost instead of interface

* update imports after merge

* remove fixable flag

* fix after merge
2023-03-29 17:56:39 +02:00
Niels Lyngsø
07a1a6cc78 performance optimizing 2023-03-27 10:32:41 +02:00
Niels Lyngsø
1ac8a5e1e5 fix filter 2023-03-27 10:32:00 +02:00
Niels Lyngsø
bcc681976a correct memoization methods and test 2023-03-21 15:54:07 +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
Mads Rasmussen
956d2c2040 add function for extension sorting 2023-03-21 09:10:10 +01:00
Mads Rasmussen
35c5dd75da camel case functions 2023-03-21 09:05:34 +01:00
Niels Lyngsø
12981cdc18 test meta merge 2023-03-20 14:39:41 +01:00
Niels Lyngsø
c960a1d4ae fix type 2023-03-20 14:37:17 +01:00
Niels Lyngsø
c9b9431ad3 todo 2023-03-20 14:35:27 +01:00
Niels Lyngsø
e3fbe45fe1 a bit of deep merge. 2023-03-20 14:34:36 +01:00
Niels Lyngsø
93ed6d7789 fix tests 2023-03-20 14:21:31 +01:00
Niels Lyngsø
d5330e5ea1 distinctUntilChanged 2023-03-20 13:01:06 +01:00
Niels Lyngsø
30e165f0ca type fixes 2023-03-20 12:51:52 +01:00
Niels Lyngsø
23ff8d34a9 use alias, simpler kind value 2023-03-20 12:48:58 +01:00
Niels Lyngsø
142f262d22 clean up 2023-03-20 11:43:13 +01:00
Niels Lyngsø
d36e540c1b UmbEntryPointExtensionInitializer 2023-03-20 11:06:39 +01:00
Niels Lyngsø
5d3cbad014 extensionRegistrationsSortedByTypeAndWeight 2023-03-20 10:55:33 +01:00
Niels Lyngsø
7a3ebbe8e4 notes and a test example 2023-03-17 10:45:46 +01:00
Niels Lyngsø
adba6059ca fix sorting 2023-03-17 10:24:32 +01:00
Niels Lyngsø
acd052528c imports 2023-03-17 08:41:11 +01:00
Niels Lyngsø
af67c6922e comment 2023-03-17 08:41:01 +01:00
Niels Lyngsø
2bcf11f930 broad implementation 2023-03-17 08:39:09 +01:00
Niels Lyngsø
6470c7a148 POC kinds 2023-03-16 22:13:47 +01:00
Niels Lyngsø
c65d0506e1 lint and style 2023-03-16 21:13:58 +01:00
Jacob Overgaard
a72c15e93d add rollup to extensions-api to access types from outside 2023-03-14 16:12:16 +01:00
Jacob Overgaard
9edcf5418b export the entrypoint lifecycle onInit type as its own 2023-03-14 16:12:02 +01:00
Jacob Overgaard
86b6725aa4 Merge remote-tracking branch 'origin/main' into feature/slimmer-libs 2023-03-13 10:20:17 +01:00
Niels Lyngsø
6195965fc1 Split View for Document Workspace (#581)
* updated package-lock

* fix document root route

* deep link for variants

* also post fix the redirect

* split view router concept

* remove comment

* split view routing

* fix only one variant scenario

* add bolean state class

* simplified solution

* using block grid editor as deep router test

* bring back the splitViewIndex for workspace-vari

* moving footer, and spread across variants

* hide footer when no content

* only show navigation in right variant

* switchVariant in splitView

* switching refactored to workspace context

* close concept

* create VariantID from data, not props

* fix variant variant ID

* TODOs

* use ContextToken

* just a difference tag on properties

* a bit more

* closeSplitView use URL

* move splitView code into a splitViewManager

* readonly props

* JSDoc

* change JSDoc sligthly

* less dom activity for splitView change

* use router-slot events for updates

* some docs

* context

* fix imports
2023-03-10 11:34:08 +01:00
Jacob Overgaard
8fd2bf910c build declarations for libraries 2023-03-07 15:31:56 +01:00
Jacob Overgaard
62f3c2d6fa Feature/server packages v2 (#574)
* new api models

* use new PackageResource

* do not error out on missing default exports (esmodules auto-execute)

* do not check for js extensions (they might have been registered on the client without a js file)

* prepend the api baseurl to any relataive server JS dependencies

* ignore tsbuildinfo

* create base file for tsconfig

* extend from base config and optimise include/exclude paths

* install rollup plugin to handle json files

* use plugin to bundle json files

* call script for cms builds that builds libs

* add rollup config to utils lib

* add a context token to the extension registry instance itself and provide it through BackofficeElement

* add rollup node resolve

* add node resolve

* only include element mixin in element library

* add error description to module load error

* add types to UmbExtensionRegistry token

* set UmbNotificationService as string in its token to avoid minification

* correct comment

* reverse order of checks

* add host to server extensions and support life-cycle check

* add imports

* use lit rather than lit-html

* correct comment

* add PackageManifestModel

* add import

* run libs build for cms

* revert reorder

* use string name for NotificationContext token

* make alias public readonly of UmbContextToken

* remove TODO

* use UmbContextToken::toString() for all stores

* use string alias for contexts

* move default data so we avoid importing a big lit library just to get default data interface

* add rollup to two extra libraries

* make sure we build uui and lit into our libraries for the few cases we import something

* add lockfile

* add separate options for .js files

* add function to install types of module

* add types output

* remove unused tsconfig-base file for now
2023-03-02 20:29:20 +01:00
Jacob Overgaard
06c1a495a9 allow to check unknown objects for manifest type 2023-02-23 16:24:49 +01:00
Mads Rasmussen
8ff26c1aec add action and entity action base classes 2023-02-07 21:47:58 +01:00
Mads Rasmussen
f364b493cf Merge branch 'main' into feature/entity-actions 2023-02-07 08:40:31 +01:00
Niels Lyngsø
a2682b2c8c use HTMLElementConstructor 2023-02-06 15:58:25 +01:00
Warren Buckley
69a9e783b3 Add new method to extension registry to get a sorted list of extensions by type and then weight 2023-02-06 10:06:24 +00:00
Niels Lyngsø
3de8d31e96 initial collection for Documents with repository 2023-02-03 15:00:41 +01:00
Niels Lyngsø
5f204d5f17 create extension class 2023-02-03 14:17:24 +01:00
Mads Rasmussen
4575001f75 Merge branch 'main' into feature/router-slot-refactor 2023-02-01 15:13:11 +01:00
Mads Rasmussen
69bd4eedfa add to import barrel 2023-02-01 14:34:17 +01:00
Niels Lyngsø
999b96db6a ups, keep using ManifestTypes as attribute type 2023-02-01 14:27:36 +01:00
Niels Lyngsø
992b1e6664 register should use ManifestEntrypoint for the specific 2023-02-01 14:25:21 +01:00
Niels Lyngsø
5520234b4a createExtensionElementOrFallback 2023-02-01 13:47:22 +01:00
Jacob Overgaard
459d22635d remove reference between extensions-api and extensions-registry 2023-01-24 12:13:13 +01:00
Jacob Overgaard
b4886f7c67 revert package setup (for now) 2023-01-24 08:38:24 +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
45252017f1 move extensions-api to libs 2023-01-23 14:56:21 +01:00