@atlaskit/editor-plugin-placeholder 1.2.13 → 1.3.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-placeholder
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#180725](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/180725)
8
+ [`70657a7f9cb2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/70657a7f9cb2f) -
9
+ Refactored folder structure to confirm to new editor standards
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.2.13
4
16
 
5
17
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "placeholderPlugin", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _plugin.placeholderPlugin;
9
+ return _placeholderPlugin.placeholderPlugin;
10
10
  }
11
11
  });
12
- var _plugin = require("./plugin");
12
+ var _placeholderPlugin = require("./placeholderPlugin");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1 +1,4 @@
1
- export { placeholderPlugin } from './plugin';
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
4
+ export { placeholderPlugin } from './placeholderPlugin';
@@ -0,0 +1 @@
1
+ export {};
package/dist/esm/index.js CHANGED
@@ -1 +1,4 @@
1
- export { placeholderPlugin } from './plugin';
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
4
+ export { placeholderPlugin } from './placeholderPlugin';
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
- export type { PlaceholderPlugin, PlaceholderPluginOptions } from './plugin';
2
- export { placeholderPlugin } from './plugin';
1
+ export type { PlaceholderPlugin, PlaceholderPluginOptions } from './placeholderPluginType';
2
+ export { placeholderPlugin } from './placeholderPlugin';
@@ -1,25 +1,11 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI, NextEditorPlugin } from '@atlaskit/editor-common/types';
3
- import type { CompositionPlugin } from '@atlaskit/editor-plugin-composition';
4
- import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
5
- import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
8
5
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
+ import type { PlaceholderPlugin } from './placeholderPluginType';
9
7
  export declare const pluginKey: PluginKey<any>;
10
8
  export declare const placeholderTestId = "placeholder-test-id";
11
9
  export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, pos?: number): DecorationSet;
12
10
  export declare function createPlugin(defaultPlaceholderText?: string, bracketPlaceholderText?: string, api?: ExtractInjectionAPI<PlaceholderPlugin>): SafePlugin | undefined;
13
- export interface PlaceholderPluginOptions {
14
- placeholder?: string;
15
- placeholderBracketHint?: string;
16
- }
17
- export type PlaceholderPlugin = NextEditorPlugin<'placeholder', {
18
- pluginConfiguration: PlaceholderPluginOptions | undefined;
19
- dependencies: [
20
- FocusPlugin,
21
- CompositionPlugin,
22
- TypeAheadPlugin
23
- ];
24
- }>;
25
11
  export declare const placeholderPlugin: PlaceholderPlugin;
@@ -0,0 +1,12 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { CompositionPlugin } from '@atlaskit/editor-plugin-composition';
3
+ import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
4
+ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
5
+ export interface PlaceholderPluginOptions {
6
+ placeholder?: string;
7
+ placeholderBracketHint?: string;
8
+ }
9
+ export type PlaceholderPlugin = NextEditorPlugin<'placeholder', {
10
+ pluginConfiguration: PlaceholderPluginOptions | undefined;
11
+ dependencies: [FocusPlugin, CompositionPlugin, TypeAheadPlugin];
12
+ }>;
@@ -1,2 +1,2 @@
1
- export type { PlaceholderPlugin, PlaceholderPluginOptions } from './plugin';
2
- export { placeholderPlugin } from './plugin';
1
+ export type { PlaceholderPlugin, PlaceholderPluginOptions } from './placeholderPluginType';
2
+ export { placeholderPlugin } from './placeholderPlugin';
@@ -1,21 +1,11 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI, NextEditorPlugin } from '@atlaskit/editor-common/types';
3
- import type { CompositionPlugin } from '@atlaskit/editor-plugin-composition';
4
- import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
5
- import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
8
5
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
+ import type { PlaceholderPlugin } from './placeholderPluginType';
9
7
  export declare const pluginKey: PluginKey<any>;
10
8
  export declare const placeholderTestId = "placeholder-test-id";
11
9
  export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, pos?: number): DecorationSet;
12
10
  export declare function createPlugin(defaultPlaceholderText?: string, bracketPlaceholderText?: string, api?: ExtractInjectionAPI<PlaceholderPlugin>): SafePlugin | undefined;
13
- export interface PlaceholderPluginOptions {
14
- placeholder?: string;
15
- placeholderBracketHint?: string;
16
- }
17
- export type PlaceholderPlugin = NextEditorPlugin<'placeholder', {
18
- pluginConfiguration: PlaceholderPluginOptions | undefined;
19
- dependencies: [FocusPlugin, CompositionPlugin, TypeAheadPlugin];
20
- }>;
21
11
  export declare const placeholderPlugin: PlaceholderPlugin;
@@ -0,0 +1,16 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { CompositionPlugin } from '@atlaskit/editor-plugin-composition';
3
+ import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
4
+ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
5
+ export interface PlaceholderPluginOptions {
6
+ placeholder?: string;
7
+ placeholderBracketHint?: string;
8
+ }
9
+ export type PlaceholderPlugin = NextEditorPlugin<'placeholder', {
10
+ pluginConfiguration: PlaceholderPluginOptions | undefined;
11
+ dependencies: [
12
+ FocusPlugin,
13
+ CompositionPlugin,
14
+ TypeAheadPlugin
15
+ ];
16
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder",
3
- "version": "1.2.13",
3
+ "version": "1.3.0",
4
4
  "description": "Placeholder plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^96.0.0",
34
+ "@atlaskit/editor-common": "^97.0.0",
35
35
  "@atlaskit/editor-plugin-composition": "^1.2.0",
36
36
  "@atlaskit/editor-plugin-focus": "^1.4.0",
37
37
  "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
@@ -53,6 +53,9 @@
53
53
  ],
54
54
  "circular-dependencies": [
55
55
  "file-and-folder-level"
56
+ ],
57
+ "code-structure": [
58
+ "editor-plugin"
56
59
  ]
57
60
  },
58
61
  "@repo/internal": {
File without changes
File without changes
File without changes