@atlaskit/editor-plugin-date 4.1.10 → 4.2.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/CHANGELOG.md +13 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/pm-plugins/actions.d.ts +3 -3
- package/dist/types/types/index.d.ts +8 -2
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/actions.d.ts +3 -3
- package/dist/types-ts4.5/types/index.d.ts +8 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
|
|
8
|
+
[`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
|
|
10
|
+
`@atlassian/confluence-presets` package with Confluence `full-page` preset is created
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 4.1.10
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as datePlugin } from './datePlugin';
|
|
2
2
|
export type { DatePlugin } from './datePluginType';
|
|
3
|
-
export type { DatePluginSharedState, DatePluginConfig, DateType, InsertDate } from './types';
|
|
3
|
+
export type { DatePluginSharedState, DatePluginConfig, DatePluginOptions, DateType, InsertDate, } from './types';
|
|
@@ -9,7 +9,7 @@ export declare const closeDatePicker: () => Command;
|
|
|
9
9
|
export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi, }: {
|
|
10
10
|
date?: DateType | undefined;
|
|
11
11
|
pluginInjectionApi?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"date", {
|
|
12
|
-
pluginConfiguration: import("../types").
|
|
12
|
+
pluginConfiguration: import("../types").DatePluginOptions | undefined;
|
|
13
13
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
14
14
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
15
15
|
sharedState: {
|
|
@@ -37,12 +37,12 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
|
|
|
37
37
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
38
38
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
39
39
|
dependencies: [];
|
|
40
|
-
pluginConfiguration?: import("@atlaskit/editor-plugin-editor-viewmode").
|
|
40
|
+
pluginConfiguration?: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
41
41
|
commands: {
|
|
42
42
|
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
43
43
|
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
44
44
|
};
|
|
45
|
-
}, import("@atlaskit/editor-plugin-editor-viewmode").
|
|
45
|
+
}, import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginOptions | undefined>>];
|
|
46
46
|
sharedState: import("../types").DatePluginSharedState;
|
|
47
47
|
commands: {
|
|
48
48
|
insertDate: import("../types").InsertDate;
|
|
@@ -11,9 +11,15 @@ export type DateType = {
|
|
|
11
11
|
month: number;
|
|
12
12
|
day?: number;
|
|
13
13
|
};
|
|
14
|
-
export interface
|
|
14
|
+
export interface DatePluginOptions {
|
|
15
15
|
weekStartDay?: WeekDay;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* @deprecated Use {@link DatePluginOptions} instead.
|
|
20
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
21
|
+
*/
|
|
22
|
+
export type DatePluginConfig = DatePluginOptions;
|
|
17
23
|
export type DatePluginSharedState = {
|
|
18
24
|
showDatePickerAt?: number | null;
|
|
19
25
|
isNew: boolean;
|
|
@@ -27,7 +33,7 @@ export type InsertDate = (props: {
|
|
|
27
33
|
}) => EditorCommand;
|
|
28
34
|
export type DeleteDate = EditorCommand;
|
|
29
35
|
export type DatePlugin = NextEditorPlugin<'date', {
|
|
30
|
-
pluginConfiguration:
|
|
36
|
+
pluginConfiguration: DatePluginOptions | undefined;
|
|
31
37
|
dependencies: [
|
|
32
38
|
typeof analyticsPlugin,
|
|
33
39
|
EditorDisabledPlugin,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as datePlugin } from './datePlugin';
|
|
2
2
|
export type { DatePlugin } from './datePluginType';
|
|
3
|
-
export type { DatePluginSharedState, DatePluginConfig, DateType, InsertDate } from './types';
|
|
3
|
+
export type { DatePluginSharedState, DatePluginConfig, DatePluginOptions, DateType, InsertDate, } from './types';
|
|
@@ -9,7 +9,7 @@ export declare const closeDatePicker: () => Command;
|
|
|
9
9
|
export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi, }: {
|
|
10
10
|
date?: DateType | undefined;
|
|
11
11
|
pluginInjectionApi?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"date", {
|
|
12
|
-
pluginConfiguration: import("../types").
|
|
12
|
+
pluginConfiguration: import("../types").DatePluginOptions | undefined;
|
|
13
13
|
dependencies: [
|
|
14
14
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
15
15
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -44,12 +44,12 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
|
|
|
44
44
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
45
45
|
dependencies: [
|
|
46
46
|
];
|
|
47
|
-
pluginConfiguration?: import("@atlaskit/editor-plugin-editor-viewmode").
|
|
47
|
+
pluginConfiguration?: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginOptions | undefined;
|
|
48
48
|
commands: {
|
|
49
49
|
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
50
50
|
updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
51
51
|
};
|
|
52
|
-
}, import("@atlaskit/editor-plugin-editor-viewmode").
|
|
52
|
+
}, import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginOptions | undefined>>
|
|
53
53
|
];
|
|
54
54
|
sharedState: import("../types").DatePluginSharedState;
|
|
55
55
|
commands: {
|
|
@@ -11,9 +11,15 @@ export type DateType = {
|
|
|
11
11
|
month: number;
|
|
12
12
|
day?: number;
|
|
13
13
|
};
|
|
14
|
-
export interface
|
|
14
|
+
export interface DatePluginOptions {
|
|
15
15
|
weekStartDay?: WeekDay;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* @deprecated Use {@link DatePluginOptions} instead.
|
|
20
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
21
|
+
*/
|
|
22
|
+
export type DatePluginConfig = DatePluginOptions;
|
|
17
23
|
export type DatePluginSharedState = {
|
|
18
24
|
showDatePickerAt?: number | null;
|
|
19
25
|
isNew: boolean;
|
|
@@ -27,7 +33,7 @@ export type InsertDate = (props: {
|
|
|
27
33
|
}) => EditorCommand;
|
|
28
34
|
export type DeleteDate = EditorCommand;
|
|
29
35
|
export type DatePlugin = NextEditorPlugin<'date', {
|
|
30
|
-
pluginConfiguration:
|
|
36
|
+
pluginConfiguration: DatePluginOptions | undefined;
|
|
31
37
|
dependencies: [
|
|
32
38
|
typeof analyticsPlugin,
|
|
33
39
|
EditorDisabledPlugin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@atlaskit/calendar": "^17.1.0",
|
|
38
38
|
"@atlaskit/css": "^0.10.0",
|
|
39
39
|
"@atlaskit/date": "^2.0.0",
|
|
40
|
-
"@atlaskit/editor-common": "^103.
|
|
40
|
+
"@atlaskit/editor-common": "^103.4.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
42
|
-
"@atlaskit/editor-plugin-annotation": "^2.
|
|
42
|
+
"@atlaskit/editor-plugin-annotation": "^2.5.0",
|
|
43
43
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
44
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^3.
|
|
44
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
46
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
47
47
|
"@atlaskit/form": "^12.0.0",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"@atlaskit/editor-plugin-composition": "^1.3.0",
|
|
64
64
|
"@atlaskit/editor-plugin-content-insertion": "^2.1.0",
|
|
65
65
|
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
66
|
-
"@atlaskit/editor-plugin-feature-flags": "^1.
|
|
66
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.4.0",
|
|
67
67
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
68
|
-
"@atlaskit/editor-plugin-quick-insert": "^2.
|
|
68
|
+
"@atlaskit/editor-plugin-quick-insert": "^2.3.0",
|
|
69
69
|
"@atlaskit/editor-plugin-selection": "^2.1.0",
|
|
70
|
-
"@atlaskit/editor-plugin-table": "^10.
|
|
71
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^5.
|
|
70
|
+
"@atlaskit/editor-plugin-table": "^10.7.0",
|
|
71
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^5.1.0",
|
|
72
72
|
"@atlaskit/editor-plugin-type-ahead": "^2.3.0",
|
|
73
73
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
74
74
|
"@testing-library/react": "^13.4.0"
|