-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2332 from umbraco/v15/fix/embedded-media-package
Feature: Embedded media package
- Loading branch information
Showing
25 changed files
with
63 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/packages/core/modal/common/embedded-media/manifests.ts
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/packages/core/modal/common/embedded-media/repository/index.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from './embedded-media/index.js'; | ||
export * from './confirm/index.js'; | ||
export * from './item-picker/index.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
import { manifests as confirmManifests } from './confirm/manifests.js'; | ||
import { manifests as itemPickerManifests } from './item-picker/manifests.js'; | ||
|
||
export const manifests: Array<UmbExtensionManifest> = [ | ||
{ | ||
type: 'modal', | ||
alias: 'Umb.Modal.EmbeddedMedia', | ||
name: 'Embedded Media Modal', | ||
element: () => import('./embedded-media/embedded-media-modal.element.js'), | ||
}, | ||
...confirmManifests, | ||
...itemPickerManifests, | ||
]; | ||
export const manifests: Array<UmbExtensionManifest> = [...confirmManifests, ...itemPickerManifests]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from './change-password-modal.token.js'; | ||
export * from './embedded-media-modal.token.js'; | ||
export * from './modal-token.js'; |
1 change: 1 addition & 0 deletions
1
...core/modal/common/embedded-media/index.ts → src/packages/embedded-media/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './modal/index.js'; | ||
export * from './repository/index.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { manifests as modalManifests } from './modal/manifests.js'; | ||
import { manifests as repositoryManifests } from './repository/manifests.js'; | ||
|
||
export const manifests: Array<UmbExtensionManifest> = [...modalManifests, ...repositoryManifests]; |
4 changes: 2 additions & 2 deletions
4
...ded-media/embedded-media-modal.element.ts → ...dia/modal/embedded-media-modal.element.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ded-media/embedded-media-modal.stories.ts → ...dia/modal/embedded-media-modal.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...modal/token/embedded-media-modal.token.ts → ...media/modal/embedded-media-modal.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './embedded-media-modal.token.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const manifests: Array<UmbExtensionManifest> = [ | ||
{ | ||
type: 'modal', | ||
alias: 'Umb.Modal.EmbeddedMedia', | ||
name: 'Embedded Media Modal', | ||
element: () => import('./embedded-media-modal.element.js'), | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "@umbraco-backoffice/embedded-media", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build": "vite build" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const UMB_OEMBED_REPOSITORY_ALIAS = 'Umb.Repository.OEmbed'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './oembed.repository.js'; | ||
export * from './constants.js'; |
2 changes: 1 addition & 1 deletion
2
...on/embedded-media/repository/manifests.ts → ...es/embedded-media/repository/manifests.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const name = 'Umbraco.Core.EmbeddedMedia'; | ||
export const extensions = [ | ||
{ | ||
name: 'Embedded Media Bundle', | ||
alias: 'Umb.Bundle.EmbeddedMedia', | ||
type: 'bundle', | ||
js: () => import('./manifests.js'), | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { defineConfig } from 'vite'; | ||
import { rmSync } from 'fs'; | ||
import { getDefaultConfig } from '../../vite-config-base'; | ||
|
||
const dist = '../../../dist-cms/packages/embedded-media'; | ||
|
||
// delete the unbundled dist folder | ||
rmSync(dist, { recursive: true, force: true }); | ||
|
||
export default defineConfig({ | ||
...getDefaultConfig({ dist }), | ||
}); |
5 changes: 3 additions & 2 deletions
5
src/packages/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters