@newsletterstudio/umbraco 16.0.0-rc1 → 16.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/extensibility/index.d.ts +1 -0
- package/dist/core/extensibility/tiptap/tiptap-configuration.d.ts +20 -0
- package/dist/modules/campaign/content-section/modal/steps/ns-document-campaign-edit-preview.element.d.ts +3 -1
- package/dist/modules/email-editor/controls/text/ns-email-editor-control-text-edit.element.d.ts +7 -3
- package/dist/modules/email-editor/controls/text/tip-tap/ns-tiptap-fake-property-dataset-context.d.ts +10 -0
- package/package.json +4 -1
|
@@ -8,3 +8,4 @@ export * from './email-editor/email-editor-css.js';
|
|
|
8
8
|
export * from './email-service/email-service-provider.models.js';
|
|
9
9
|
export * from './email-service/NsEmailServiceProviderUiBase.js';
|
|
10
10
|
export * from './actions/ns-actions.models.js';
|
|
11
|
+
export * from './tiptap/tiptap-configuration.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ManifestApi, UmbApi } from "@umbraco-cms/backoffice/extension-api";
|
|
2
|
+
import { UmbPropertyEditorConfigProperty } from "@umbraco-cms/backoffice/property-editor";
|
|
3
|
+
export interface ManifestEmailTiptapConfiguration extends ManifestApi<NsTiptapConfigurationSource> {
|
|
4
|
+
type: 'nsTiptapConfiguration';
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Type that knows how to get configuration for the Tiptap Rich Text Editor
|
|
8
|
+
*/
|
|
9
|
+
export interface NsTiptapConfigurationSource extends UmbApi {
|
|
10
|
+
/**
|
|
11
|
+
* Method to return configuration for the Tiptap Rich Text Editor in Newsletter Studio
|
|
12
|
+
* @param defaults The default configuraiton used by Newsletter Studio
|
|
13
|
+
*/
|
|
14
|
+
getConfiguration(defaults: UmbPropertyEditorConfigProperty[]): Promise<UmbPropertyEditorConfigProperty[]>;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface UmbExtensionManifestMap {
|
|
18
|
+
nsTiptapConfiguration: ManifestEmailTiptapConfiguration;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from '@newsletterstudio/umbraco/lit';
|
|
2
2
|
import type { DocumentCampaignEditFormModel, NsDocumentCampaignModalContext } from './../ns-document-campaign-modal-context.js';
|
|
3
|
+
import { DocumentCampaignResponseFrontendModel } from '@newsletterstudio/umbraco/backend';
|
|
3
4
|
declare const NsDocumentCampaignEditPreviewElement_base: import("@umbraco-cms/backoffice/extension-api").HTMLElementConstructor<import("@umbraco-cms/backoffice/element-api").UmbElement> & typeof LitElement;
|
|
4
5
|
/**
|
|
5
6
|
* ns-document-campaign-edit-preview description
|
|
@@ -10,8 +11,9 @@ declare const NsDocumentCampaignEditPreviewElement_base: import("@umbraco-cms/ba
|
|
|
10
11
|
export declare class NsDocumentCampaignEditPreviewElement extends NsDocumentCampaignEditPreviewElement_base {
|
|
11
12
|
context?: NsDocumentCampaignModalContext;
|
|
12
13
|
model?: DocumentCampaignEditFormModel;
|
|
14
|
+
serverModel?: DocumentCampaignResponseFrontendModel;
|
|
13
15
|
constructor();
|
|
14
|
-
render(): import("lit-html").TemplateResult<1
|
|
16
|
+
render(): import("lit-html").TemplateResult<1> | "";
|
|
15
17
|
static styles: import("lit").CSSResult[];
|
|
16
18
|
}
|
|
17
19
|
export default NsDocumentCampaignEditPreviewElement;
|
package/dist/modules/email-editor/controls/text/ns-email-editor-control-text-edit.element.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
|
|
1
|
+
import { UmbPropertyEditorConfigCollection, UmbPropertyEditorConfigProperty } from '@umbraco-cms/backoffice/property-editor';
|
|
2
2
|
import { NsEmailEditorControlEditUiBase } from '@newsletterstudio/umbraco/extensibility';
|
|
3
3
|
import type { NsEmailEditorControlTextData } from './ns-email-editor-control-text.models.js';
|
|
4
|
+
import { UmbInputTiptapElement } from '@umbraco-cms/backoffice/tiptap';
|
|
4
5
|
import '@newsletterstudio/umbraco/components';
|
|
5
6
|
import '@umbraco-cms/backoffice/tiptap';
|
|
6
|
-
import { UmbInputTiptapElement } from '@umbraco-cms/backoffice/tiptap';
|
|
7
7
|
/**
|
|
8
8
|
* ns-email-editor-control-text-edit
|
|
9
9
|
*/
|
|
10
10
|
export declare class NsEmailEditorControlTextEditElement extends NsEmailEditorControlEditUiBase<NsEmailEditorControlTextData> {
|
|
11
|
+
#private;
|
|
11
12
|
tiptap: UmbInputTiptapElement;
|
|
12
|
-
|
|
13
|
+
/** Default configuration for the RTE, could be overridden by nsTiptapConfiguration extension */
|
|
14
|
+
configuration: UmbPropertyEditorConfigProperty[];
|
|
15
|
+
/** Holds configuration for RTE, will be set by connectedCallback or by this component */
|
|
16
|
+
rteConfigurationCollection?: UmbPropertyEditorConfigCollection;
|
|
13
17
|
/**
|
|
14
18
|
* A "local" list of TipTap-extensions that we don't want to register globally
|
|
15
19
|
*/
|
package/dist/modules/email-editor/controls/text/tip-tap/ns-tiptap-fake-property-dataset-context.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UmbContext, UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
2
|
+
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
|
3
|
+
import { UmbVariantId } from "@umbraco-cms/backoffice/variant";
|
|
4
|
+
export declare const NS_FAKE_UMB_PROPERTY_DATASET_CONTEXT: UmbContextToken<FakeUmbPropertyDatasetContext, FakeUmbPropertyDatasetContext>;
|
|
5
|
+
export interface FakeUmbPropertyDatasetContext extends UmbContext {
|
|
6
|
+
getVariantId(): UmbVariantId;
|
|
7
|
+
}
|
|
8
|
+
export declare class NsFakeUmbPropertyDatasetContext extends UmbContextBase implements FakeUmbPropertyDatasetContext {
|
|
9
|
+
getVariantId(): UmbVariantId;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsletterstudio/umbraco",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "16.0.
|
|
4
|
+
"version": "16.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": null,
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
|
+
"volta": {
|
|
32
|
+
"node": "22.14.0"
|
|
33
|
+
},
|
|
31
34
|
"peerDependencies": {
|
|
32
35
|
"@umbraco-cms/backoffice": "^16.0.0-rc5",
|
|
33
36
|
"@umbraco-ui/uui": "^1.14.0-rc.4",
|