@atlaskit/editor-plugin-placeholder-text 9.0.0 → 9.0.2

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-text
2
2
 
3
+ ## 9.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 9.0.0
4
16
 
5
17
  ### Patch Changes
@@ -255,12 +255,13 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
255
255
  tr.setMeta(_pluginKey.pluginKey, {
256
256
  showInsertPanelAt: tr.selection.anchor
257
257
  });
258
+ var resolvedInputMethod = _analytics.INPUT_METHOD.QUICK_INSERT;
258
259
  api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.attachAnalyticsEvent({
259
260
  action: _analytics.ACTION.INSERTED,
260
261
  actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
261
262
  actionSubjectId: _analytics.ACTION_SUBJECT_ID.PLACEHOLDER_TEXT,
262
263
  attributes: {
263
- inputMethod: _analytics.INPUT_METHOD.QUICK_INSERT
264
+ inputMethod: resolvedInputMethod
264
265
  },
265
266
  eventType: _analytics.EVENT_TYPE.TRACK
266
267
  })(tr);
@@ -15,7 +15,7 @@ var _styles = require("./styles");
15
15
  * @jsx jsx
16
16
  */
17
17
 
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
19
19
 
20
20
  function FloatingToolbar(_ref) {
21
21
  var children = _ref.children,
@@ -78,5 +78,6 @@ var PlaceholderFloatingToolbar = /*#__PURE__*/function (_React$Component) {
78
78
  }));
79
79
  }
80
80
  }]);
81
- }(_react.default.Component);
82
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(PlaceholderFloatingToolbar);
81
+ }(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
82
+ var _default_1 = (0, _reactIntlNext.injectIntl)(PlaceholderFloatingToolbar);
83
+ var _default = exports.default = _default_1;
@@ -238,12 +238,13 @@ const decorateWithPluginOptions = (plugin, options, api) => {
238
238
  tr.setMeta(pluginKey, {
239
239
  showInsertPanelAt: tr.selection.anchor
240
240
  });
241
+ const resolvedInputMethod = INPUT_METHOD.QUICK_INSERT;
241
242
  api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions.attachAnalyticsEvent({
242
243
  action: ACTION.INSERTED,
243
244
  actionSubject: ACTION_SUBJECT.DOCUMENT,
244
245
  actionSubjectId: ACTION_SUBJECT_ID.PLACEHOLDER_TEXT,
245
246
  attributes: {
246
- inputMethod: INPUT_METHOD.QUICK_INSERT
247
+ inputMethod: resolvedInputMethod
247
248
  },
248
249
  eventType: EVENT_TYPE.TRACK
249
250
  })(tr);
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import React from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { jsx } from '@emotion/react';
10
10
  import { Popup } from '@atlaskit/editor-common/ui';
11
11
  import { container } from './styles';
@@ -56,4 +56,7 @@ class PlaceholderFloatingToolbar extends React.Component {
56
56
  }));
57
57
  }
58
58
  }
59
- export default injectIntl(PlaceholderFloatingToolbar);
59
+
60
+ // eslint-disable-next-line @typescript-eslint/ban-types
61
+ const _default_1 = injectIntl(PlaceholderFloatingToolbar);
62
+ export default _default_1;
@@ -247,12 +247,13 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
247
247
  tr.setMeta(pluginKey, {
248
248
  showInsertPanelAt: tr.selection.anchor
249
249
  });
250
+ var resolvedInputMethod = INPUT_METHOD.QUICK_INSERT;
250
251
  api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.attachAnalyticsEvent({
251
252
  action: ACTION.INSERTED,
252
253
  actionSubject: ACTION_SUBJECT.DOCUMENT,
253
254
  actionSubjectId: ACTION_SUBJECT_ID.PLACEHOLDER_TEXT,
254
255
  attributes: {
255
- inputMethod: INPUT_METHOD.QUICK_INSERT
256
+ inputMethod: resolvedInputMethod
256
257
  },
257
258
  eventType: EVENT_TYPE.TRACK
258
259
  })(tr);
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import React from 'react';
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { jsx } from '@emotion/react';
10
10
  import { Popup } from '@atlaskit/editor-common/ui';
11
11
  import { container } from './styles';
@@ -71,5 +71,6 @@ var PlaceholderFloatingToolbar = /*#__PURE__*/function (_React$Component) {
71
71
  }));
72
72
  }
73
73
  }]);
74
- }(React.Component);
75
- export default injectIntl(PlaceholderFloatingToolbar);
74
+ }(React.Component); // eslint-disable-next-line @typescript-eslint/ban-types
75
+ var _default_1 = injectIntl(PlaceholderFloatingToolbar);
76
+ export default _default_1;
@@ -1 +1,2 @@
1
- export declare const container: (height?: number) => import("@emotion/utils").SerializedStyles;
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ export declare const container: (height?: number) => SerializedStyles;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { Coordinates } from '../FloatingToolbar';
4
4
  export interface Props {
5
5
  children?: React.ReactNode;
@@ -13,7 +13,7 @@ export interface Props {
13
13
  setFocusInEditor: () => void;
14
14
  showInsertPanelAt: number;
15
15
  }
16
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
16
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
17
17
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
18
18
  };
19
- export default _default;
19
+ export default _default_1;
@@ -1 +1,2 @@
1
- export declare const container: (height?: number) => import("@emotion/utils").SerializedStyles;
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ export declare const container: (height?: number) => SerializedStyles;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { Coordinates } from '../FloatingToolbar';
4
4
  export interface Props {
5
5
  children?: React.ReactNode;
@@ -13,7 +13,7 @@ export interface Props {
13
13
  setFocusInEditor: () => void;
14
14
  showInsertPanelAt: number;
15
15
  }
16
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
16
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
17
17
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
18
18
  };
19
- export default _default;
19
+ export default _default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder-text",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "placeholder text plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,13 +33,13 @@
33
33
  "@atlaskit/editor-prosemirror": "^7.3.0",
34
34
  "@atlaskit/icon": "^32.0.0",
35
35
  "@atlaskit/theme": "^22.0.0",
36
- "@atlaskit/tmp-editor-statsig": "^35.10.0",
36
+ "@atlaskit/tmp-editor-statsig": "^37.0.0",
37
37
  "@atlaskit/tokens": "^11.1.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "@emotion/react": "^11.7.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@atlaskit/editor-common": "^112.0.0",
42
+ "@atlaskit/editor-common": "^112.2.0",
43
43
  "react": "^18.2.0",
44
44
  "react-dom": "^18.2.0",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -84,6 +84,11 @@
84
84
  ]
85
85
  }
86
86
  },
87
+ "platform-feature-flags": {
88
+ "platform_editor_element_browser_analytic": {
89
+ "type": "boolean"
90
+ }
91
+ },
87
92
  "typesVersions": {
88
93
  ">=4.5 <4.9": {
89
94
  "*": [