@atlaskit/editor-plugin-date 1.2.6 → 1.3.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/CHANGELOG.md +21 -0
- package/dist/types/actions.d.ts +2 -16
- package/dist/types/commands.d.ts +3 -4
- package/dist/types-ts4.5/actions.d.ts +28 -48
- package/dist/types-ts4.5/commands.d.ts +3 -9
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 1.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110942](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110942)
|
|
8
|
+
[`aa339aee9aa7d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/aa339aee9aa7d) -
|
|
9
|
+
[ED-23431] Fix EditorPluginAPI type system
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.3.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
|
|
17
|
+
[`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
|
|
18
|
+
Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 1.2.6
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/types/actions.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const setDatePickerAt: (showDatePickerAt: number | null) => (stat
|
|
|
8
8
|
export declare const closeDatePicker: () => Command;
|
|
9
9
|
export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi, }: {
|
|
10
10
|
date?: DateType | undefined;
|
|
11
|
-
pluginInjectionApi?: import("@atlaskit/editor-common/types").
|
|
11
|
+
pluginInjectionApi?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"date", {
|
|
12
12
|
pluginConfiguration: import("./types").DatePluginConfig | undefined;
|
|
13
13
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
14
14
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -30,20 +30,6 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
|
|
|
30
30
|
insertDate: import("./types").InsertDate;
|
|
31
31
|
deleteDate: import("@atlaskit/editor-common/types").EditorCommand;
|
|
32
32
|
};
|
|
33
|
-
}
|
|
34
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
35
|
-
sharedState: {
|
|
36
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
37
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
38
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
39
|
-
};
|
|
40
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
41
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
42
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
43
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
44
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
45
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
46
|
-
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
47
|
-
}, undefined>]> | undefined;
|
|
33
|
+
}> | undefined;
|
|
48
34
|
}) => Command;
|
|
49
35
|
export declare const openDatePicker: () => Command;
|
package/dist/types/commands.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
2
|
import type { DatePlugin, DeleteDate, InsertDate } from './types';
|
|
4
|
-
type DeleteDateCommand = (pluginInjectionApi:
|
|
3
|
+
type DeleteDateCommand = (pluginInjectionApi: ExtractInjectionAPI<DatePlugin> | undefined) => DeleteDate;
|
|
5
4
|
/** Delete the date and close the datepicker */
|
|
6
5
|
export declare const deleteDateCommand: DeleteDateCommand;
|
|
7
|
-
type InsertDateCommand = (pluginInjectionApi:
|
|
6
|
+
type InsertDateCommand = (pluginInjectionApi: ExtractInjectionAPI<DatePlugin> | undefined) => InsertDate;
|
|
8
7
|
export declare const insertDateCommand: InsertDateCommand;
|
|
9
8
|
export {};
|
|
@@ -8,53 +8,33 @@ export declare const setDatePickerAt: (showDatePickerAt: number | null) => (stat
|
|
|
8
8
|
export declare const closeDatePicker: () => Command;
|
|
9
9
|
export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi, }: {
|
|
10
10
|
date?: DateType | undefined;
|
|
11
|
-
pluginInjectionApi?: import("@atlaskit/editor-common/types").
|
|
12
|
-
import("
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import("@atlaskit/editor-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import("@atlaskit/editor-common/types").
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
import("@atlaskit/editor-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, import("./types").DatePluginConfig | undefined>,
|
|
40
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
41
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
42
|
-
sharedState: {
|
|
43
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
44
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
45
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
46
|
-
};
|
|
47
|
-
dependencies: [
|
|
48
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
49
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
50
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
51
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
52
|
-
];
|
|
53
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
54
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
55
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
56
|
-
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
57
|
-
}, undefined>
|
|
58
|
-
]> | undefined;
|
|
11
|
+
pluginInjectionApi?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"date", {
|
|
12
|
+
pluginConfiguration: import("./types").DatePluginConfig | undefined;
|
|
13
|
+
dependencies: [
|
|
14
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
15
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
16
|
+
sharedState: {
|
|
17
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
18
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
19
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
20
|
+
};
|
|
21
|
+
dependencies: [
|
|
22
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
23
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
24
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
25
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
26
|
+
];
|
|
27
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
28
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
29
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
30
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
31
|
+
}, undefined>
|
|
32
|
+
];
|
|
33
|
+
sharedState: import("./types").DatePluginSharedState;
|
|
34
|
+
commands: {
|
|
35
|
+
insertDate: import("./types").InsertDate;
|
|
36
|
+
deleteDate: import("@atlaskit/editor-common/types").EditorCommand;
|
|
37
|
+
};
|
|
38
|
+
}> | undefined;
|
|
59
39
|
}) => Command;
|
|
60
40
|
export declare const openDatePicker: () => Command;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
2
|
import type { DatePlugin, DeleteDate, InsertDate } from './types';
|
|
4
|
-
type DeleteDateCommand = (pluginInjectionApi:
|
|
5
|
-
DatePlugin
|
|
6
|
-
]> | undefined) => DeleteDate;
|
|
3
|
+
type DeleteDateCommand = (pluginInjectionApi: ExtractInjectionAPI<DatePlugin> | undefined) => DeleteDate;
|
|
7
4
|
/** Delete the date and close the datepicker */
|
|
8
5
|
export declare const deleteDateCommand: DeleteDateCommand;
|
|
9
|
-
type InsertDateCommand = (pluginInjectionApi:
|
|
10
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
11
|
-
DatePlugin
|
|
12
|
-
]> | undefined) => InsertDate;
|
|
6
|
+
type InsertDateCommand = (pluginInjectionApi: ExtractInjectionAPI<DatePlugin> | undefined) => InsertDate;
|
|
13
7
|
export declare const insertDateCommand: InsertDateCommand;
|
|
14
8
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
+
"@atlaskit/adf-schema": "^37.0.0",
|
|
36
36
|
"@atlaskit/calendar": "^14.3.0",
|
|
37
37
|
"@atlaskit/date": "^0.10.0",
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
39
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
38
|
+
"@atlaskit/editor-common": "^83.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^1.3.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/locale": "^2.7.0",
|
|
45
45
|
"@atlaskit/textfield": "6.4.0",
|
|
46
46
|
"@atlaskit/theme": "^12.11.0",
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"date-fns": "^2.17.0",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@atlaskit/editor-plugin-composition": "^1.1.0",
|
|
57
|
-
"@atlaskit/editor-plugin-content-insertion": "^1.
|
|
57
|
+
"@atlaskit/editor-plugin-content-insertion": "^1.3.0",
|
|
58
58
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
59
59
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
60
60
|
"@atlaskit/editor-plugin-guideline": "^1.1.0",
|
|
61
61
|
"@atlaskit/editor-plugin-quick-insert": "^1.1.0",
|
|
62
62
|
"@atlaskit/editor-plugin-selection": "^1.2.0",
|
|
63
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
64
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.
|
|
65
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
63
|
+
"@atlaskit/editor-plugin-table": "^7.18.0",
|
|
64
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.4.0",
|
|
65
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.3.0",
|
|
66
66
|
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
67
67
|
"@testing-library/react": "^12.1.5"
|
|
68
68
|
},
|