@newsletterstudio/umbraco 14.0.0-rc1 → 15.0.0
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/components/ns-timeline/ns-timeline-event.element.d.ts +1 -1
- package/dist/core/components/ns-timeline/ns-timeline-icon.element.d.ts +0 -3
- package/dist/core/extensibility/actions/ns-actions.models.d.ts +5 -0
- package/dist/core/extensibility/email-editor/email-control.models.d.ts +6 -0
- package/dist/core/extensibility/email-service/email-service-provider.models.d.ts +5 -0
- package/dist/core/manifest.d.ts +1 -1
- package/dist/core/modal/ns-item-picker-modal/manifest.d.ts +1 -1
- package/dist/core/modal/ns-item-picker-modal/ns-item-picker-modal.element.d.ts +1 -2
- package/dist/modules/administration/manifest.d.ts +1 -2
- package/dist/modules/administration/ns-administration-workspace.context.d.ts +1 -2
- package/dist/modules/campaign/content-section/ns-document-campaign-workspace-modal.token.d.ts +1 -1
- package/dist/modules/campaign/content-section/ns-document-campaign-workspace.context.d.ts +1 -2
- package/dist/modules/campaign/email-section/ns-campaign-workspace-modal-token.d.ts +1 -1
- package/dist/modules/campaign/email-section/ns-campaign-workspace.context.d.ts +1 -2
- package/dist/modules/campaign/report/campaign-report-workspace-modal.token.d.ts +1 -1
- package/dist/modules/campaign/report/campaign-report-workspace.context.d.ts +1 -2
- package/dist/modules/campaign/report/manifest.d.ts +2 -2
- package/dist/modules/campaign/report/recipients/timeline/manifest.d.ts +1 -1
- package/dist/modules/campaign/report/recipients/timeline/ns-campaign-report-recipient.timeline.element.d.ts +1 -2
- package/dist/modules/email-editor/controls/button/manifest.d.ts +1 -2
- package/dist/modules/email-editor/controls/text/manifest.d.ts +1 -1
- package/dist/modules/email-editor/manifest.d.ts +1 -1
- package/dist/modules/mailing-list/edit/actions/import/manifest.d.ts +1 -1
- package/dist/modules/mailing-list/edit/actions/import/ns-mailing-list-import-modal.element.d.ts +1 -2
- package/dist/modules/mailing-list/edit/actions/manifest.d.ts +1 -1
- package/dist/modules/mailing-list/manifest.d.ts +2 -2
- package/dist/modules/mailing-list/ns-mailing-list-workspace-modal.token.d.ts +1 -1
- package/dist/modules/mailing-list/ns-mailing-list-workspace.context.d.ts +1 -2
- package/dist/modules/property-editors/mailing-list-picker/manifest.d.ts +1 -1
- package/dist/modules/property-editors/mailing-list-picker/ns-mailing-list-picker-property-editor.element.d.ts +1 -2
- package/dist/modules/property-editors/manifest.d.ts +1 -1
- package/dist/modules/property-editors/transactional-email-picker/manifest.d.ts +1 -1
- package/dist/modules/property-editors/transactional-email-picker/ns-transactional-email-picker-editor.element.d.ts +1 -2
- package/dist/modules/recipient/manifest.d.ts +2 -2
- package/dist/modules/recipient/ns-recipient-workspace-modal.token.d.ts +1 -1
- package/dist/modules/recipient/ns-recipient-workspace.context.d.ts +1 -2
- package/dist/modules/settings/manifest.d.ts +2 -2
- package/dist/modules/settings/ns-settings-workspace.context.d.ts +1 -2
- package/dist/modules/transactional/manifest.d.ts +2 -2
- package/dist/modules/transactional/ns-transactional-workspace-modal.token.d.ts +1 -1
- package/dist/modules/transactional/ns-transactional-workspace.context.d.ts +1 -2
- package/package.json +5 -4
- package/readme.md +7 -71
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
2
|
import '@newsletterstudio/umbraco/components';
|
|
3
3
|
import './ns-timeline-icon.element.js';
|
|
4
|
-
export type NsTimelineEventType = undefined | 'default' | 'campaign-delivered' | 'campaign-opened' | 'campaign-clicked' | 'campaign-view-in-browser' | 'campaign-delivery-error' | 'mailinglist-subscribed' | 'mailinglist-unsubscribed' | 'recipient-added' | 'transactional-delivered' | 'transactional-opened' | 'transactional-clicked' | 'transactional-error';
|
|
4
|
+
export type NsTimelineEventType = undefined | 'default' | 'campaign-delivered' | 'campaign-opened' | 'campaign-clicked' | 'campaign-view-in-browser' | 'campaign-delivery-error' | 'campaign-unsubscribe-performed' | 'mailinglist-subscribed' | 'mailinglist-unsubscribed' | 'recipient-added' | 'transactional-delivered' | 'transactional-opened' | 'transactional-clicked' | 'transactional-error';
|
|
5
5
|
/**
|
|
6
6
|
* ns-timeline-event
|
|
7
7
|
*/
|
|
@@ -6,9 +6,6 @@ import type { NsTimelineEventType } from './ns-timeline-event.element.js';
|
|
|
6
6
|
export declare class NsTimelineIconElement extends UmbLitElement {
|
|
7
7
|
#private;
|
|
8
8
|
look: NsTimelineEventType;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
9
|
constructor();
|
|
13
10
|
render(): import("lit-html").TemplateResult<1>;
|
|
14
11
|
static styles: import("lit").CSSResult[];
|
|
@@ -7,6 +7,11 @@ export interface ManifestNsAction extends ManifestElementAndApi<UmbElement, NsAc
|
|
|
7
7
|
type: 'nsAction';
|
|
8
8
|
meta: MetaNsAction;
|
|
9
9
|
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface UmbExtensionManifestMap {
|
|
12
|
+
nsAction: ManifestNsAction;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
export interface MetaNsAction {
|
|
11
16
|
entityType: string;
|
|
12
17
|
label: string;
|
|
@@ -11,3 +11,9 @@ export interface ManifestEmailControlDisplayUi extends ManifestElement<NsEmailEd
|
|
|
11
11
|
export interface MetaEmailControlUi {
|
|
12
12
|
controlTypeAlias: string;
|
|
13
13
|
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface UmbExtensionManifestMap {
|
|
16
|
+
nsEmailControlEditUi: ManifestEmailControlEditUi;
|
|
17
|
+
nsEmailControlDisplayUi: ManifestEmailControlDisplayUi;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -7,3 +7,8 @@ export interface ManifestEmailServiceProviderSettingsUi extends ManifestElement<
|
|
|
7
7
|
export interface MetaEmailServiceProviderSettingsUi {
|
|
8
8
|
alias: string;
|
|
9
9
|
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface UmbExtensionManifestMap {
|
|
12
|
+
nsEmailServiceProviderSettingsUi: ManifestEmailServiceProviderSettingsUi;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/core/manifest.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const manifests: import("@umbraco-cms/backoffice/
|
|
1
|
+
export declare const manifests: import("@umbraco-cms/backoffice/modal").ManifestModal[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ManifestModal } from '@umbraco-cms/backoffice/
|
|
1
|
+
import { ManifestModal } from '@umbraco-cms/backoffice/modal';
|
|
2
2
|
export declare const manifests: ManifestModal[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { UmbModalExtensionElement } from '@umbraco-cms/backoffice/
|
|
2
|
-
import type { UmbModalContext } from '@umbraco-cms/backoffice/modal';
|
|
1
|
+
import type { UmbModalContext, UmbModalExtensionElement } from '@umbraco-cms/backoffice/modal';
|
|
3
2
|
import { LitElement } from '@newsletterstudio/umbraco/lit';
|
|
4
3
|
import type { NsItemPickerItemGroup, NsItemPickerModalData, NsItemPickerModalValue } from './ns-item-picker-modal.token.js';
|
|
5
4
|
declare const NsItemPickerModalElement_base: import("@umbraco-cms/backoffice/extension-api").HTMLElementConstructor<import("@umbraco-cms/backoffice/element-api").UmbElement> & typeof LitElement;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const manifests: (import("../../core/extensibility/index.js").ManifestEmailServiceProviderSettingsUi | ManifestWorkspace<import("@umbraco-cms/backoffice/extension-registry").MetaWorkspace, import("@umbraco-cms/backoffice/controller-api").UmbControllerHostElement, import("@umbraco-cms/backoffice/workspace").UmbWorkspaceContext>)[];
|
|
1
|
+
export declare const manifests: (import("../../core/extensibility/index.js").ManifestEmailServiceProviderSettingsUi | import("@umbraco-cms/backoffice/workspace").ManifestWorkspace<import("@umbraco-cms/backoffice/workspace").MetaWorkspace, import("@umbraco-cms/backoffice/controller-api").UmbControllerHostElement, import("@umbraco-cms/backoffice/workspace").UmbWorkspaceContext>)[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
2
2
|
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
|
3
3
|
import type { UmbControllerHostElement } from "@umbraco-cms/backoffice/controller-api";
|
|
4
|
-
import type { ManifestWorkspace } from "@umbraco-cms/backoffice/
|
|
5
|
-
import type { UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
4
|
+
import type { ManifestWorkspace, UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
6
5
|
import { UmbWorkspaceRouteManager } from "@umbraco-cms/backoffice/workspace";
|
|
7
6
|
import type { WorkspaceManageOverviewResponseFrontendModel, WorkspaceManageValueFrontendModel } from "@newsletterstudio/umbraco/backend";
|
|
8
7
|
export declare const NS_ADMINISTRATION_WORKSPACE_CONTEXT: UmbContextToken<NsAdministrationWorkspaceContext, NsAdministrationWorkspaceContext>;
|
package/dist/modules/campaign/content-section/ns-document-campaign-workspace-modal.token.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/modal";
|
|
2
1
|
import { UmbModalToken } from "@umbraco-cms/backoffice/modal";
|
|
2
|
+
import { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/workspace";
|
|
3
3
|
export type NsDocumentCampaignWorkspaceModalData = {
|
|
4
4
|
lorem: string;
|
|
5
5
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
2
2
|
import type { UmbControllerHostElement } from "@umbraco-cms/backoffice/controller-api";
|
|
3
|
-
import type { UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
3
|
+
import type { ManifestWorkspace, UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
4
4
|
import { UmbWorkspaceRouteManager } from "@umbraco-cms/backoffice/workspace";
|
|
5
|
-
import type { ManifestWorkspace } from "@umbraco-cms/backoffice/extension-registry";
|
|
6
5
|
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
|
7
6
|
export { NsDocumentCampaignWorkspaceContext as api };
|
|
8
7
|
export declare const NS_DOCUMENT_CAMPAIGN_WORKSPACE_CONTEXT: UmbContextToken<unknown, NsDocumentCampaignWorkspaceContext>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/modal";
|
|
2
1
|
import { UmbModalToken } from "@umbraco-cms/backoffice/modal";
|
|
2
|
+
import { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/workspace";
|
|
3
3
|
export type NsCampaignWorkspaceModalData = object;
|
|
4
4
|
export type NsCampaignWorkspaceModalValue = object;
|
|
5
5
|
/**
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
2
2
|
import type { UmbControllerHostElement } from "@umbraco-cms/backoffice/controller-api";
|
|
3
|
-
import type { UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
3
|
+
import type { ManifestWorkspace, UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
4
4
|
import { UmbWorkspaceRouteManager } from "@umbraco-cms/backoffice/workspace";
|
|
5
|
-
import type { ManifestWorkspace } from "@umbraco-cms/backoffice/extension-registry";
|
|
6
5
|
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
|
7
6
|
export { NsCampaignWorkspaceContext as api };
|
|
8
7
|
export declare const NS_CAMPAIGN_WORKSPACE_CONTEXT: UmbContextToken<unknown, NsCampaignWorkspaceContext>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/modal";
|
|
2
1
|
import { UmbModalToken } from "@umbraco-cms/backoffice/modal";
|
|
2
|
+
import { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/workspace";
|
|
3
3
|
export type NsCampaignReportWorkspaceModalData = object;
|
|
4
4
|
export type NsCampaignReportWorkspaceModalValue = object;
|
|
5
5
|
export declare const NS_CAMPAIGN_REPORT_WORKSPACE_MODAL: UmbModalToken<Omit<UmbWorkspaceModalData<NsCampaignReportWorkspaceModalData>, "entityType">, NsCampaignReportWorkspaceModalValue>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
2
2
|
import type { UmbControllerHostElement } from "@umbraco-cms/backoffice/controller-api";
|
|
3
|
-
import type { UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
3
|
+
import type { ManifestWorkspace, UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
4
4
|
import { UmbWorkspaceRouteManager } from "@umbraco-cms/backoffice/workspace";
|
|
5
|
-
import type { ManifestWorkspace } from "@umbraco-cms/backoffice/extension-registry";
|
|
6
5
|
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
|
7
6
|
import type { CampaignReportOverviewResponseFrontendModel } from "@newsletterstudio/umbraco/backend";
|
|
8
7
|
export { NsCampaignReportWorkspaceContext as api };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const manifests: (import("@umbraco-cms/backoffice/
|
|
1
|
+
import { ManifestWorkspace } from "@umbraco-cms/backoffice/workspace";
|
|
2
|
+
export declare const manifests: (import("@umbraco-cms/backoffice/modal").ManifestModal | ManifestWorkspace<import("@umbraco-cms/backoffice/workspace").MetaWorkspace, import("@umbraco-cms/backoffice/controller-api").UmbControllerHostElement, import("@umbraco-cms/backoffice/workspace").UmbWorkspaceContext>)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ManifestModal } from '@umbraco-cms/backoffice/modal';
|
|
2
2
|
export declare const manifests: ManifestModal[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { UmbModalExtensionElement } from '@umbraco-cms/backoffice/
|
|
2
|
-
import type { UmbModalContext } from '@umbraco-cms/backoffice/modal';
|
|
1
|
+
import type { UmbModalContext, UmbModalExtensionElement } from '@umbraco-cms/backoffice/modal';
|
|
3
2
|
import { type CampaignReportRecipientTimelineFrontendModel } from '@newsletterstudio/umbraco/backend';
|
|
4
3
|
import { LitElement } from '@newsletterstudio/umbraco/lit';
|
|
5
4
|
import type { ModalData, ModalValue } from './ns-campaign-report-recipient-timeline-modal.token.js';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const manifests: (ManifestEmailControlEditUi | ManifestEmailControlDisplayUi)[];
|
|
1
|
+
export declare const manifests: (import("../../../../core/extensibility/index.js").ManifestEmailControlEditUi | import("../../../../core/extensibility/index.js").ManifestEmailControlDisplayUi)[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ManifestEmailControlDisplayUi, ManifestEmailControlEditUi } from '@newsletterstudio/umbraco/extensibility';
|
|
2
|
-
import
|
|
2
|
+
import { ManifestTinyMcePlugin } from '@umbraco-cms/backoffice/tiny-mce';
|
|
3
3
|
export declare const manifests: (ManifestEmailControlEditUi | ManifestEmailControlDisplayUi | ManifestTinyMcePlugin)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const manifests: (import("../../core/extensibility/index.js").ManifestEmailControlEditUi | import("../../core/extensibility/index.js").ManifestEmailControlDisplayUi | import("@umbraco-cms/backoffice/
|
|
1
|
+
export declare const manifests: (import("../../core/extensibility/index.js").ManifestEmailControlEditUi | import("../../core/extensibility/index.js").ManifestEmailControlDisplayUi | import("@umbraco-cms/backoffice/tiny-mce").ManifestTinyMcePlugin)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ManifestModal } from '@umbraco-cms/backoffice/
|
|
1
|
+
import { ManifestModal } from '@umbraco-cms/backoffice/modal';
|
|
2
2
|
export declare const manifests: ManifestModal[];
|
package/dist/modules/mailing-list/edit/actions/import/ns-mailing-list-import-modal.element.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { UmbModalExtensionElement } from '@umbraco-cms/backoffice/
|
|
2
|
-
import type { UmbModalContext } from '@umbraco-cms/backoffice/modal';
|
|
1
|
+
import type { UmbModalContext, UmbModalExtensionElement } from '@umbraco-cms/backoffice/modal';
|
|
3
2
|
import type { UUIButtonState } from '@umbraco-ui/uui';
|
|
4
3
|
import { LitElement } from '@newsletterstudio/umbraco/lit';
|
|
5
4
|
import type { ImportRecipientsUploadFileAndParseForMappingResponse, ImportRecipientsResultsResponseFrontendModel } from '@newsletterstudio/umbraco/backend';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ManifestNsAction } from '@newsletterstudio/umbraco/extensibility';
|
|
2
|
-
export declare const manifests: (import("@umbraco-cms/backoffice/
|
|
2
|
+
export declare const manifests: (import("@umbraco-cms/backoffice/modal").ManifestModal | ManifestNsAction)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const manifests: (import("@umbraco-cms/backoffice/
|
|
1
|
+
import { ManifestWorkspace } from "@umbraco-cms/backoffice/workspace";
|
|
2
|
+
export declare const manifests: (import("@umbraco-cms/backoffice/modal").ManifestModal | import("../../core/extensibility/index.js").ManifestNsAction | ManifestWorkspace<import("@umbraco-cms/backoffice/workspace").MetaWorkspace, import("@umbraco-cms/backoffice/controller-api").UmbControllerHostElement, import("@umbraco-cms/backoffice/workspace").UmbWorkspaceContext>)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/modal";
|
|
2
1
|
import { UmbModalToken } from "@umbraco-cms/backoffice/modal";
|
|
2
|
+
import { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/workspace";
|
|
3
3
|
export type NsMailingListWorkspaceModalData = object;
|
|
4
4
|
export type NsMailingListWorkspaceModalValue = object;
|
|
5
5
|
export declare const UMB_MAILING_LIST_WORKSPACE_MODAL: UmbModalToken<Omit<UmbWorkspaceModalData<NsMailingListWorkspaceModalData>, "entityType">, NsMailingListWorkspaceModalValue>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
2
2
|
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
|
3
3
|
import type { UmbControllerHostElement } from "@umbraco-cms/backoffice/controller-api";
|
|
4
|
-
import type { ManifestWorkspace } from "@umbraco-cms/backoffice/
|
|
5
|
-
import type { UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
4
|
+
import type { ManifestWorkspace, UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
6
5
|
import { UmbWorkspaceRouteManager } from "@umbraco-cms/backoffice/workspace";
|
|
7
6
|
export declare const NS_MAILING_LIST_WORKSPACE_CONTEXT: UmbContextToken<NsMailingListWorkspaceContext, NsMailingListWorkspaceContext>;
|
|
8
7
|
export declare class NsMailingListWorkspaceContext extends UmbContextBase<NsMailingListWorkspaceContext> implements UmbRoutableWorkspaceContext {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ManifestPropertyEditorSchema, ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/property-editor';
|
|
2
2
|
export declare const manifests: (ManifestPropertyEditorSchema | ManifestPropertyEditorUi)[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry';
|
|
2
1
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
3
|
-
import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
|
|
2
|
+
import type { UmbPropertyEditorConfigCollection, UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/property-editor';
|
|
4
3
|
import '@newsletterstudio/umbraco/components';
|
|
5
4
|
/**
|
|
6
5
|
* ns-mailing-list-property-editor description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const manifests: (import("@umbraco-cms/backoffice/
|
|
1
|
+
export declare const manifests: (import("@umbraco-cms/backoffice/property-editor").ManifestPropertyEditorSchema | import("@umbraco-cms/backoffice/property-editor").ManifestPropertyEditorUi)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ManifestPropertyEditorSchema, ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/property-editor';
|
|
2
2
|
export declare const manifests: (ManifestPropertyEditorSchema | ManifestPropertyEditorUi)[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry';
|
|
2
1
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
3
|
-
import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
|
|
2
|
+
import type { UmbPropertyEditorConfigCollection, UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/property-editor';
|
|
4
3
|
interface PropertyEditorValue {
|
|
5
4
|
workspaceKey: string;
|
|
6
5
|
transactionalEmailKey: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const manifests: (import("../../core/extensibility/index.js").ManifestNsAction | ManifestWorkspace<import("@umbraco-cms/backoffice/
|
|
1
|
+
import { ManifestWorkspace } from '@umbraco-cms/backoffice/workspace';
|
|
2
|
+
export declare const manifests: (import("../../core/extensibility/index.js").ManifestNsAction | ManifestWorkspace<import("@umbraco-cms/backoffice/workspace").MetaWorkspace, import("@umbraco-cms/backoffice/controller-api").UmbControllerHostElement, import("@umbraco-cms/backoffice/workspace").UmbWorkspaceContext>)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/modal";
|
|
2
1
|
import { UmbModalToken } from "@umbraco-cms/backoffice/modal";
|
|
2
|
+
import { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/workspace";
|
|
3
3
|
export type NsRecipientWorkspaceModalData = object;
|
|
4
4
|
export type NsRecipientWorkspaceModalValue = object;
|
|
5
5
|
export declare const NS_RECIPIENT_WORKSPACE_MODAL: UmbModalToken<Omit<UmbWorkspaceModalData<NsRecipientWorkspaceModalData>, "entityType">, NsRecipientWorkspaceModalValue>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
2
2
|
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
|
3
3
|
import type { UmbControllerHostElement } from "@umbraco-cms/backoffice/controller-api";
|
|
4
|
-
import type { ManifestWorkspace } from "@umbraco-cms/backoffice/
|
|
5
|
-
import type { UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
4
|
+
import type { ManifestWorkspace, UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
6
5
|
import { UmbWorkspaceRouteManager } from "@umbraco-cms/backoffice/workspace";
|
|
7
6
|
export declare const NS_RECIPIENT_WORKSPACE_CONTEXT: UmbContextToken<NsRecipientWorkspaceContext, NsRecipientWorkspaceContext>;
|
|
8
7
|
export declare class NsRecipientWorkspaceContext extends UmbContextBase<NsRecipientWorkspaceContext> implements UmbRoutableWorkspaceContext {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const manifests: ManifestWorkspace<import("@umbraco-cms/backoffice/
|
|
1
|
+
import { ManifestWorkspace } from '@umbraco-cms/backoffice/workspace';
|
|
2
|
+
export declare const manifests: ManifestWorkspace<import("@umbraco-cms/backoffice/workspace").MetaWorkspace, import("@umbraco-cms/backoffice/controller-api").UmbControllerHostElement, import("@umbraco-cms/backoffice/workspace").UmbWorkspaceContext>[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
2
2
|
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
|
3
3
|
import type { UmbControllerHostElement } from "@umbraco-cms/backoffice/controller-api";
|
|
4
|
-
import type { ManifestWorkspace } from "@umbraco-cms/backoffice/
|
|
5
|
-
import type { UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
4
|
+
import type { ManifestWorkspace, UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
6
5
|
import { UmbWorkspaceRouteManager } from "@umbraco-cms/backoffice/workspace";
|
|
7
6
|
export declare const NS_SETTINGS_WORKSPACE_CONTEXT: UmbContextToken<NsSettingsWorkspaceContext, NsSettingsWorkspaceContext>;
|
|
8
7
|
export declare class NsSettingsWorkspaceContext extends UmbContextBase<NsSettingsWorkspaceContext> implements UmbRoutableWorkspaceContext {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const manifests: (import("../../core/extensibility/index.js").ManifestNsAction | ManifestWorkspace<import("@umbraco-cms/backoffice/
|
|
1
|
+
import { ManifestWorkspace } from '@umbraco-cms/backoffice/workspace';
|
|
2
|
+
export declare const manifests: (import("../../core/extensibility/index.js").ManifestNsAction | ManifestWorkspace<import("@umbraco-cms/backoffice/workspace").MetaWorkspace, import("@umbraco-cms/backoffice/controller-api").UmbControllerHostElement, import("@umbraco-cms/backoffice/workspace").UmbWorkspaceContext>)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/modal";
|
|
2
1
|
import { UmbModalToken } from "@umbraco-cms/backoffice/modal";
|
|
2
|
+
import { UmbWorkspaceModalData } from "@umbraco-cms/backoffice/workspace";
|
|
3
3
|
export type NsTransactionalWorkspaceModalData = {
|
|
4
4
|
/** When true, the "go to template" button will be hidden */
|
|
5
5
|
hideTemplateButton?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { UmbControllerHostElement } from "@umbraco-cms/backoffice/controller-api";
|
|
2
|
-
import type { ManifestWorkspace } from "@umbraco-cms/backoffice/
|
|
3
|
-
import type { UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
2
|
+
import type { ManifestWorkspace, UmbRoutableWorkspaceContext } from "@umbraco-cms/backoffice/workspace";
|
|
4
3
|
import { UmbWorkspaceRouteManager } from "@umbraco-cms/backoffice/workspace";
|
|
5
4
|
import { UmbContextBase } from "@umbraco-cms/backoffice/class-api";
|
|
6
5
|
import { UmbContextToken } from "@umbraco-cms/backoffice/context-api";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsletterstudio/umbraco",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "15.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": null,
|
|
@@ -22,14 +22,15 @@
|
|
|
22
22
|
"./property-editors": "./dist/modules/property-editors/index.js",
|
|
23
23
|
"./recipient": "./dist/modules/recipient/index.js",
|
|
24
24
|
"./settings": "./dist/modules/settings/index.js",
|
|
25
|
-
"./transactional": "./dist/modules/transactional/index.js"
|
|
25
|
+
"./transactional": "./dist/modules/transactional/index.js",
|
|
26
|
+
"./extension-types": "./dist/core/extensibility/index.d.ts"
|
|
26
27
|
},
|
|
27
28
|
"files": [
|
|
28
29
|
"dist"
|
|
29
30
|
],
|
|
30
31
|
"peerDependencies": {
|
|
31
|
-
"@umbraco-cms/backoffice": "^
|
|
32
|
-
"@umbraco-ui/uui": "^1.
|
|
32
|
+
"@umbraco-cms/backoffice": "^15.0.0",
|
|
33
|
+
"@umbraco-ui/uui": "^1.11.0",
|
|
33
34
|
"lit": "^3.2.0"
|
|
34
35
|
}
|
|
35
36
|
}
|
package/readme.md
CHANGED
|
@@ -1,74 +1,10 @@
|
|
|
1
|
-
# Newsletter Studio
|
|
2
|
-
|
|
1
|
+
# Newsletter Studio / Umbraco
|
|
2
|
+
Use this package to extend [Newsletter Studio](https://www.newsletterstudio.org) for Umbraco. Please refer to our [documentation](https://www.newsletterstudio.org/documentation/) for details on how use the extension points in the package.
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
Use
|
|
4
|
+
While not required, we recommend building extensions using the following technologies:
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
npm run build
|
|
11
|
-
```
|
|
6
|
+
* Lit
|
|
7
|
+
* TypeScript
|
|
8
|
+
* Vite
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
The NPM package is built using the npm cli, there is a script ready to execute the build.
|
|
15
|
-
|
|
16
|
-
### Build NPM Package
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
npm run build:npm
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
This script will run a Typescript-build, clean the output (in the dist-folder), cleanse the package.json file and use `npm pack` to create the package. After this we also need to publish the artifact to npmjs.org.
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
#TODO: How to publish NPM-package to npmjs.org
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Adding new exports / paths
|
|
29
|
-
In `tsconfig.json` there are a number of `paths` configured. These paths can be used internally to make our own code simpler **BUT** this also means that we probably need to export it in the published NPM-package.
|
|
30
|
-
|
|
31
|
-
When do we need to publish the path?
|
|
32
|
-
|
|
33
|
-
* IF the path is used in ANY OTHER component, class or type that is published - the new path also needs to be included in the published NPM-package.
|
|
34
|
-
|
|
35
|
-
To add a new path to the NPM package we need to:
|
|
36
|
-
|
|
37
|
-
* [ ] Add the path to the `tsconfig.json`
|
|
38
|
-
* [ ] Add the path to the `package.json`s `exports`-section (note that this is a relative path to the dist-folder created during build).
|
|
39
|
-
* [ ] Add the path to `vite.config.ts` to ensure that the outputed js-file always have the same name (no hash).
|
|
40
|
-
* [ ] Add the path as a a important map in `umbraco-package.json` (In `/NewsletterStudio/wwwroot/App_Plugins/newsletterstudio/`), have it point to the file outputted by vite.
|
|
41
|
-
|
|
42
|
-
### Local build/install of NPM package
|
|
43
|
-
When we want to try out a new version of the NPM-package we can create a new local build.
|
|
44
|
-
|
|
45
|
-
Run
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
npm run build:npm
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
This will output a `.tgz` file, move/copy this file into the project where we want to test it and install using any of the methods below.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
# Install local package
|
|
56
|
-
npm install "D:\Development\Newsletter Studio\Arkiv\Releases\newsletterstudio-umbraco-14.0.0.tgz"
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Or in package.json, just add the path to the file and run `npm install`
|
|
60
|
-
|
|
61
|
-
```json
|
|
62
|
-
{
|
|
63
|
-
...
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"@newsletterstudio/umbraco": "./../npm-package-src/newsletter-studio-umbraco-ui-0.0.0.tgz",
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## Debugging
|
|
71
|
-
We have several debugging concepts in the package:
|
|
72
|
-
* `<umb-debug visible></umb-debug>` to show Umbraco contexts
|
|
73
|
-
* `<ns-json-debug .data=${}>` to render a object as json inside a pre-element.
|
|
74
|
-
* `<ns-validation-errors-debug></ns-validation-errors-debug>` to show validation errors from the closest context.
|
|
10
|
+
The [NewsletterStudioContrib](https://github.com/enkelmedia/NewsletterStudioContrib)-project on Github provides several examples and can be used as a starting point for the build setup.
|