@atlaskit/editor-common 122.8.2 → 122.9.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 +31 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +20 -0
- package/dist/cjs/element-browser/components/ViewMore.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionFloatingLabel.js +1 -1
- package/dist/cjs/extensibility/GeneratedContentReveal.js +1 -1
- package/dist/cjs/extensions/UnknownMacroPlaceholder.js +1 -1
- package/dist/cjs/icons/shared/PanelErrorIcon.js +1 -1
- package/dist/cjs/icons/shared/PanelInfoIcon.js +1 -1
- package/dist/cjs/icons/shared/PanelNoteIcon.js +1 -1
- package/dist/cjs/icons/shared/PanelSuccessIcon.js +1 -1
- package/dist/cjs/icons/shared/PanelWarningIcon.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/CompactQuickInsertMenuItem.js +1 -1
- package/dist/cjs/quick-insert/QuickInsertHoverPreview.js +1 -1
- package/dist/cjs/table/NewSortingIcon.js +1 -1
- package/dist/cjs/table/getStickyHeaderHeight.js +34 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Shortcut/index.js +1 -1
- package/dist/cjs/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/cjs/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/cjs/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/cjs/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/cjs/ui/Toolbar/Separator.js +1 -1
- package/dist/cjs/utils/is-non-production-build.js +21 -0
- package/dist/cjs/utils/validate-using-spec.js +5 -4
- package/dist/es2019/ai-messages/ai-suggestions.js +20 -0
- package/dist/es2019/element-browser/components/ViewMore.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionFloatingLabel.js +1 -1
- package/dist/es2019/extensibility/GeneratedContentReveal.js +1 -1
- package/dist/es2019/extensions/UnknownMacroPlaceholder.js +1 -1
- package/dist/es2019/icons/shared/PanelErrorIcon.js +1 -1
- package/dist/es2019/icons/shared/PanelInfoIcon.js +1 -1
- package/dist/es2019/icons/shared/PanelNoteIcon.js +1 -1
- package/dist/es2019/icons/shared/PanelSuccessIcon.js +1 -1
- package/dist/es2019/icons/shared/PanelWarningIcon.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/CompactQuickInsertMenuItem.js +1 -1
- package/dist/es2019/quick-insert/QuickInsertHoverPreview.js +1 -1
- package/dist/es2019/table/NewSortingIcon.js +1 -1
- package/dist/es2019/table/getStickyHeaderHeight.js +28 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Shortcut/index.js +1 -1
- package/dist/es2019/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/es2019/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/es2019/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/es2019/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/es2019/ui/Toolbar/Separator.js +1 -1
- package/dist/es2019/utils/is-non-production-build.js +15 -0
- package/dist/es2019/utils/validate-using-spec.js +5 -4
- package/dist/esm/ai-messages/ai-suggestions.js +20 -0
- package/dist/esm/element-browser/components/ViewMore.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionFloatingLabel.js +1 -1
- package/dist/esm/extensibility/GeneratedContentReveal.js +1 -1
- package/dist/esm/extensions/UnknownMacroPlaceholder.js +1 -1
- package/dist/esm/icons/shared/PanelErrorIcon.js +1 -1
- package/dist/esm/icons/shared/PanelInfoIcon.js +1 -1
- package/dist/esm/icons/shared/PanelNoteIcon.js +1 -1
- package/dist/esm/icons/shared/PanelSuccessIcon.js +1 -1
- package/dist/esm/icons/shared/PanelWarningIcon.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/CompactQuickInsertMenuItem.js +1 -1
- package/dist/esm/quick-insert/QuickInsertHoverPreview.js +1 -1
- package/dist/esm/table/NewSortingIcon.js +1 -1
- package/dist/esm/table/getStickyHeaderHeight.js +28 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Shortcut/index.js +1 -1
- package/dist/esm/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/esm/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/esm/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/esm/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/esm/ui/Toolbar/Separator.js +1 -1
- package/dist/esm/utils/is-non-production-build.js +15 -0
- package/dist/esm/utils/validate-using-spec.js +5 -4
- package/dist/types/ai-messages/ai-suggestions.d.ts +20 -0
- package/dist/types/table/getStickyHeaderHeight.d.ts +6 -0
- package/dist/types/utils/is-non-production-build.d.ts +10 -0
- package/dist/types/utils/validate-using-spec.d.ts +1 -1
- package/package.json +3 -3
- package/table/get-sticky-header-height/package.json +10 -0
- package/utils/is-non-production-build/package.json +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 122.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`08cc5b3a5abad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/08cc5b3a5abad) -
|
|
8
|
+
EDITOR-8471 Fix the validation override that relaxes INVALID_CONTENT for container children inside
|
|
9
|
+
a panel on load. `processRawValue` passed `allowContainerInPanel` while `validateADFEntity` still
|
|
10
|
+
read `allowExpandInPanel`, so with the `platform_editor_nest_container_in_panel` experiment
|
|
11
|
+
enabled an `expand` inside a `panel` was wrapped as `unsupportedBlock`. The option is now named
|
|
12
|
+
`allowContainerInPanel` on both sides, including `ErrorCallbackOptions` in `@atlaskit/adf-utils`.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 122.9.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`1167e60345129`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1167e60345129) -
|
|
20
|
+
Add `getNonProductionBuildAnalyticsAttributes` for product analytics listeners to attach an
|
|
21
|
+
explicit `isNonProductionBuild` boolean behind `platform_editor_non_production_build_analytics`.
|
|
22
|
+
Unknown classifications and the control cohort omit the attribute. The helper accepts a lazy
|
|
23
|
+
classifier callback so product metadata and cookies are only read in treatment.
|
|
24
|
+
- [`9686b07310cc9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9686b07310cc9) -
|
|
25
|
+
Show the count of new suggestions after a review and reuse the toolbar review icon. Keep existing
|
|
26
|
+
refresh timing, View navigation, and dismissal behavior.
|
|
27
|
+
- [`20d41af8d6f4c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20d41af8d6f4c) -
|
|
28
|
+
EDITOR-9000 Fixes scroll to suggestion when it is in table with sticky header
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
|
|
3
34
|
## 122.8.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -356,6 +356,26 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
356
356
|
defaultMessage: 'Finalizing suggestions for review',
|
|
357
357
|
description: 'Loading message shown while the AI is finalizing suggestions for review'
|
|
358
358
|
},
|
|
359
|
+
thinkingCompleteSuggestionCount: {
|
|
360
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.suggestionCount.non-final',
|
|
361
|
+
defaultMessage: '{count, plural, one {# suggestion} other {# suggestions}} from {reviewer}',
|
|
362
|
+
description: 'Number of newly available suggestions after a review that began with no pending suggestions. Reviewer is the agent name.'
|
|
363
|
+
},
|
|
364
|
+
thinkingCompleteNewSuggestionCount: {
|
|
365
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.newSuggestionCount.non-final',
|
|
366
|
+
defaultMessage: '{count, plural, one {# new suggestion} other {# new suggestions}} from {reviewer}',
|
|
367
|
+
description: 'Number of newly available suggestions after a review that began with pending suggestions. Reviewer is the agent name.'
|
|
368
|
+
},
|
|
369
|
+
thinkingCompleteSuggestionCountWithoutReviewer: {
|
|
370
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.suggestionCountWithoutReviewer.non-final',
|
|
371
|
+
defaultMessage: '{count, plural, one {# suggestion} other {# suggestions}}',
|
|
372
|
+
description: 'Review result count when the reviewer name is unavailable and no suggestions existed at review start.'
|
|
373
|
+
},
|
|
374
|
+
thinkingCompleteNewSuggestionCountWithoutReviewer: {
|
|
375
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.newSuggestionCountWithoutReviewer.non-final',
|
|
376
|
+
defaultMessage: '{count, plural, one {# new suggestion} other {# new suggestions}}',
|
|
377
|
+
description: 'Review result count when the reviewer name is unavailable and suggestions existed at review start.'
|
|
378
|
+
},
|
|
359
379
|
thinkingCompleteReviewComplete: {
|
|
360
380
|
id: 'fabric.editor.ai.suggestions.thinkingComplete.reviewComplete.non-final',
|
|
361
381
|
defaultMessage: 'Suggestions ready',
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "122.
|
|
30
|
+
var packageVersion = "122.9.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getStickyHeaderHeight = getStickyHeaderHeight;
|
|
7
|
+
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
8
|
+
/**
|
|
9
|
+
* Returns the outermost table's sticky header height for `targetPos` when it is eligible to be
|
|
10
|
+
* sticky. Table headers at least half the viewport high intentionally do not become sticky.
|
|
11
|
+
*/
|
|
12
|
+
function getStickyHeaderHeight(view, targetPos) {
|
|
13
|
+
var _findParentNodeOfType;
|
|
14
|
+
var closestTable = (0, _utils.findParentNodeOfTypeClosestToPos)(view.state.doc.resolve(targetPos), view.state.schema.nodes.table);
|
|
15
|
+
if (!closestTable) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
var outermostTable = (_findParentNodeOfType = (0, _utils.findParentNodeOfTypeClosestToPos)(view.state.doc.resolve(closestTable.pos), view.state.schema.nodes.table)) !== null && _findParentNodeOfType !== void 0 ? _findParentNodeOfType : closestTable;
|
|
19
|
+
var firstRow = outermostTable.node.firstChild;
|
|
20
|
+
var isHeaderRow = Boolean(firstRow && firstRow.childCount > 0);
|
|
21
|
+
firstRow === null || firstRow === void 0 || firstRow.forEach(function (cell) {
|
|
22
|
+
isHeaderRow && (isHeaderRow = cell.type === view.state.schema.nodes.tableHeader);
|
|
23
|
+
});
|
|
24
|
+
if (!isHeaderRow) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
var firstRowDom = view.nodeDOM(outermostTable.pos + 1);
|
|
28
|
+
if (!(firstRowDom instanceof HTMLTableRowElement)) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
var headerRow = firstRowDom;
|
|
32
|
+
var height = headerRow.getBoundingClientRect().height;
|
|
33
|
+
return height > 0 && height <= window.innerHeight / 2 ? height : undefined;
|
|
34
|
+
}
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "122.
|
|
27
|
+
var packageVersion = "122.9.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getNonProductionBuildAnalyticsAttributes = void 0;
|
|
7
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
8
|
+
/**
|
|
9
|
+
* Adds a product-owned build classification when the analytics experiment is enabled.
|
|
10
|
+
* A classifier callback is only evaluated in treatment, keeping browser reads out of control.
|
|
11
|
+
* An unknown classification is omitted; an explicit false is preserved.
|
|
12
|
+
*/
|
|
13
|
+
var getNonProductionBuildAnalyticsAttributes = exports.getNonProductionBuildAnalyticsAttributes = function getNonProductionBuildAnalyticsAttributes(classification) {
|
|
14
|
+
if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_non_production_build_analytics')) {
|
|
15
|
+
return {};
|
|
16
|
+
}
|
|
17
|
+
var isNonProductionBuild = typeof classification === 'function' ? classification() : classification;
|
|
18
|
+
return isNonProductionBuild !== undefined ? {
|
|
19
|
+
isNonProductionBuild: isNonProductionBuild
|
|
20
|
+
} : {};
|
|
21
|
+
};
|
|
@@ -26,7 +26,7 @@ var errorCallbackFor = function errorCallbackFor(marks, validate, dispatchAnalyt
|
|
|
26
26
|
return validationErrorHandler(entity, error, _objectSpread(_objectSpread({}, options), {}, {
|
|
27
27
|
allowNestedTables: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowNestedTables,
|
|
28
28
|
allowTableInPanel: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowTableInPanel,
|
|
29
|
-
|
|
29
|
+
allowContainerInPanel: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowContainerInPanel
|
|
30
30
|
}), marks, validate, dispatchAnalyticsEvent);
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -110,9 +110,10 @@ var validationErrorHandler = exports.validationErrorHandler = function validatio
|
|
|
110
110
|
|
|
111
111
|
// panel_c1 is a ProseMirror-only variant: on save, expand-in-panel documents are stored as
|
|
112
112
|
// plain ADF `panel` nodes containing an `expand`. The base validator-spec does not permit
|
|
113
|
-
// `expand` inside `panel` (it's gated behind the experiment
|
|
114
|
-
//
|
|
115
|
-
|
|
113
|
+
// `expand` inside `panel` (it's gated behind the consolidated container-in-panel experiment,
|
|
114
|
+
// see `isPanelNestingContainerSupported`), so we suppress the INVALID_CONTENT error when
|
|
115
|
+
// `allowContainerInPanel` is set.
|
|
116
|
+
if (options.allowContainerInPanel) {
|
|
116
117
|
var _meta2 = error.meta;
|
|
117
118
|
if ((_meta2 === null || _meta2 === void 0 ? void 0 : _meta2.parentType) === 'panel' && error.code === 'INVALID_CONTENT' && entity.type === 'expand') {
|
|
118
119
|
return entity;
|
|
@@ -350,6 +350,26 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
350
350
|
defaultMessage: 'Finalizing suggestions for review',
|
|
351
351
|
description: 'Loading message shown while the AI is finalizing suggestions for review'
|
|
352
352
|
},
|
|
353
|
+
thinkingCompleteSuggestionCount: {
|
|
354
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.suggestionCount.non-final',
|
|
355
|
+
defaultMessage: '{count, plural, one {# suggestion} other {# suggestions}} from {reviewer}',
|
|
356
|
+
description: 'Number of newly available suggestions after a review that began with no pending suggestions. Reviewer is the agent name.'
|
|
357
|
+
},
|
|
358
|
+
thinkingCompleteNewSuggestionCount: {
|
|
359
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.newSuggestionCount.non-final',
|
|
360
|
+
defaultMessage: '{count, plural, one {# new suggestion} other {# new suggestions}} from {reviewer}',
|
|
361
|
+
description: 'Number of newly available suggestions after a review that began with pending suggestions. Reviewer is the agent name.'
|
|
362
|
+
},
|
|
363
|
+
thinkingCompleteSuggestionCountWithoutReviewer: {
|
|
364
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.suggestionCountWithoutReviewer.non-final',
|
|
365
|
+
defaultMessage: '{count, plural, one {# suggestion} other {# suggestions}}',
|
|
366
|
+
description: 'Review result count when the reviewer name is unavailable and no suggestions existed at review start.'
|
|
367
|
+
},
|
|
368
|
+
thinkingCompleteNewSuggestionCountWithoutReviewer: {
|
|
369
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.newSuggestionCountWithoutReviewer.non-final',
|
|
370
|
+
defaultMessage: '{count, plural, one {# new suggestion} other {# new suggestions}}',
|
|
371
|
+
description: 'Review result count when the reviewer name is unavailable and suggestions existed at review start.'
|
|
372
|
+
},
|
|
353
373
|
thinkingCompleteReviewComplete: {
|
|
354
374
|
id: 'fabric.editor.ai.suggestions.thinkingComplete.reviewComplete.non-final',
|
|
355
375
|
defaultMessage: 'Suggestions ready',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ExtensionFloatingLabel.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* ExtensionFloatingLabel.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./ExtensionFloatingLabel.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* GeneratedContentReveal.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* GeneratedContentReveal.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./GeneratedContentReveal.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* UnknownMacroPlaceholder.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* UnknownMacroPlaceholder.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./UnknownMacroPlaceholder.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "122.
|
|
16
|
+
const packageVersion = "122.9.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* CompactQuickInsertMenuItem.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* CompactQuickInsertMenuItem.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./CompactQuickInsertMenuItem.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* QuickInsertHoverPreview.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* QuickInsertHoverPreview.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./QuickInsertHoverPreview.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the outermost table's sticky header height for `targetPos` when it is eligible to be
|
|
4
|
+
* sticky. Table headers at least half the viewport high intentionally do not become sticky.
|
|
5
|
+
*/
|
|
6
|
+
export function getStickyHeaderHeight(view, targetPos) {
|
|
7
|
+
var _findParentNodeOfType;
|
|
8
|
+
const closestTable = findParentNodeOfTypeClosestToPos(view.state.doc.resolve(targetPos), view.state.schema.nodes.table);
|
|
9
|
+
if (!closestTable) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
const outermostTable = (_findParentNodeOfType = findParentNodeOfTypeClosestToPos(view.state.doc.resolve(closestTable.pos), view.state.schema.nodes.table)) !== null && _findParentNodeOfType !== void 0 ? _findParentNodeOfType : closestTable;
|
|
13
|
+
const firstRow = outermostTable.node.firstChild;
|
|
14
|
+
let isHeaderRow = Boolean(firstRow && firstRow.childCount > 0);
|
|
15
|
+
firstRow === null || firstRow === void 0 ? void 0 : firstRow.forEach(cell => {
|
|
16
|
+
isHeaderRow &&= cell.type === view.state.schema.nodes.tableHeader;
|
|
17
|
+
});
|
|
18
|
+
if (!isHeaderRow) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
const firstRowDom = view.nodeDOM(outermostTable.pos + 1);
|
|
22
|
+
if (!(firstRowDom instanceof HTMLTableRowElement)) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const headerRow = firstRowDom;
|
|
26
|
+
const height = headerRow.getBoundingClientRect().height;
|
|
27
|
+
return height > 0 && height <= window.innerHeight / 2 ? height : undefined;
|
|
28
|
+
}
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "122.
|
|
17
|
+
const packageVersion = "122.9.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./DropdownTriggerWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
|
+
/**
|
|
3
|
+
* Adds a product-owned build classification when the analytics experiment is enabled.
|
|
4
|
+
* A classifier callback is only evaluated in treatment, keeping browser reads out of control.
|
|
5
|
+
* An unknown classification is omitted; an explicit false is preserved.
|
|
6
|
+
*/
|
|
7
|
+
export const getNonProductionBuildAnalyticsAttributes = classification => {
|
|
8
|
+
if (!isExperimentEnabled('platform_editor_non_production_build_analytics')) {
|
|
9
|
+
return {};
|
|
10
|
+
}
|
|
11
|
+
const isNonProductionBuild = typeof classification === 'function' ? classification() : classification;
|
|
12
|
+
return isNonProductionBuild !== undefined ? {
|
|
13
|
+
isNonProductionBuild
|
|
14
|
+
} : {};
|
|
15
|
+
};
|
|
@@ -11,7 +11,7 @@ const errorCallbackFor = (marks, validate, dispatchAnalyticsEvent, validationOve
|
|
|
11
11
|
...options,
|
|
12
12
|
allowNestedTables: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowNestedTables,
|
|
13
13
|
allowTableInPanel: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowTableInPanel,
|
|
14
|
-
|
|
14
|
+
allowContainerInPanel: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowContainerInPanel
|
|
15
15
|
}, marks, validate, dispatchAnalyticsEvent);
|
|
16
16
|
};
|
|
17
17
|
};
|
|
@@ -95,9 +95,10 @@ export const validationErrorHandler = (entity, error, options, marks, validate,
|
|
|
95
95
|
|
|
96
96
|
// panel_c1 is a ProseMirror-only variant: on save, expand-in-panel documents are stored as
|
|
97
97
|
// plain ADF `panel` nodes containing an `expand`. The base validator-spec does not permit
|
|
98
|
-
// `expand` inside `panel` (it's gated behind the experiment
|
|
99
|
-
//
|
|
100
|
-
|
|
98
|
+
// `expand` inside `panel` (it's gated behind the consolidated container-in-panel experiment,
|
|
99
|
+
// see `isPanelNestingContainerSupported`), so we suppress the INVALID_CONTENT error when
|
|
100
|
+
// `allowContainerInPanel` is set.
|
|
101
|
+
if (options.allowContainerInPanel) {
|
|
101
102
|
const meta = error.meta;
|
|
102
103
|
if ((meta === null || meta === void 0 ? void 0 : meta.parentType) === 'panel' && error.code === 'INVALID_CONTENT' && entity.type === 'expand') {
|
|
103
104
|
return entity;
|
|
@@ -350,6 +350,26 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
350
350
|
defaultMessage: 'Finalizing suggestions for review',
|
|
351
351
|
description: 'Loading message shown while the AI is finalizing suggestions for review'
|
|
352
352
|
},
|
|
353
|
+
thinkingCompleteSuggestionCount: {
|
|
354
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.suggestionCount.non-final',
|
|
355
|
+
defaultMessage: '{count, plural, one {# suggestion} other {# suggestions}} from {reviewer}',
|
|
356
|
+
description: 'Number of newly available suggestions after a review that began with no pending suggestions. Reviewer is the agent name.'
|
|
357
|
+
},
|
|
358
|
+
thinkingCompleteNewSuggestionCount: {
|
|
359
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.newSuggestionCount.non-final',
|
|
360
|
+
defaultMessage: '{count, plural, one {# new suggestion} other {# new suggestions}} from {reviewer}',
|
|
361
|
+
description: 'Number of newly available suggestions after a review that began with pending suggestions. Reviewer is the agent name.'
|
|
362
|
+
},
|
|
363
|
+
thinkingCompleteSuggestionCountWithoutReviewer: {
|
|
364
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.suggestionCountWithoutReviewer.non-final',
|
|
365
|
+
defaultMessage: '{count, plural, one {# suggestion} other {# suggestions}}',
|
|
366
|
+
description: 'Review result count when the reviewer name is unavailable and no suggestions existed at review start.'
|
|
367
|
+
},
|
|
368
|
+
thinkingCompleteNewSuggestionCountWithoutReviewer: {
|
|
369
|
+
id: 'fabric.editor.ai.suggestions.thinkingComplete.newSuggestionCountWithoutReviewer.non-final',
|
|
370
|
+
defaultMessage: '{count, plural, one {# new suggestion} other {# new suggestions}}',
|
|
371
|
+
description: 'Review result count when the reviewer name is unavailable and suggestions existed at review start.'
|
|
372
|
+
},
|
|
353
373
|
thinkingCompleteReviewComplete: {
|
|
354
374
|
id: 'fabric.editor.ai.suggestions.thinkingComplete.reviewComplete.non-final',
|
|
355
375
|
defaultMessage: 'Suggestions ready',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ExtensionFloatingLabel.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* ExtensionFloatingLabel.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./ExtensionFloatingLabel.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* GeneratedContentReveal.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* GeneratedContentReveal.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./GeneratedContentReveal.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* UnknownMacroPlaceholder.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* UnknownMacroPlaceholder.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./UnknownMacroPlaceholder.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "122.
|
|
22
|
+
var packageVersion = "122.9.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* CompactQuickInsertMenuItem.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* CompactQuickInsertMenuItem.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./CompactQuickInsertMenuItem.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* QuickInsertHoverPreview.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* QuickInsertHoverPreview.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./QuickInsertHoverPreview.compiled.css";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the outermost table's sticky header height for `targetPos` when it is eligible to be
|
|
4
|
+
* sticky. Table headers at least half the viewport high intentionally do not become sticky.
|
|
5
|
+
*/
|
|
6
|
+
export function getStickyHeaderHeight(view, targetPos) {
|
|
7
|
+
var _findParentNodeOfType;
|
|
8
|
+
var closestTable = findParentNodeOfTypeClosestToPos(view.state.doc.resolve(targetPos), view.state.schema.nodes.table);
|
|
9
|
+
if (!closestTable) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
var outermostTable = (_findParentNodeOfType = findParentNodeOfTypeClosestToPos(view.state.doc.resolve(closestTable.pos), view.state.schema.nodes.table)) !== null && _findParentNodeOfType !== void 0 ? _findParentNodeOfType : closestTable;
|
|
13
|
+
var firstRow = outermostTable.node.firstChild;
|
|
14
|
+
var isHeaderRow = Boolean(firstRow && firstRow.childCount > 0);
|
|
15
|
+
firstRow === null || firstRow === void 0 || firstRow.forEach(function (cell) {
|
|
16
|
+
isHeaderRow && (isHeaderRow = cell.type === view.state.schema.nodes.tableHeader);
|
|
17
|
+
});
|
|
18
|
+
if (!isHeaderRow) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
var firstRowDom = view.nodeDOM(outermostTable.pos + 1);
|
|
22
|
+
if (!(firstRowDom instanceof HTMLTableRowElement)) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
var headerRow = firstRowDom;
|
|
26
|
+
var height = headerRow.getBoundingClientRect().height;
|
|
27
|
+
return height > 0 && height <= window.innerHeight / 2 ? height : undefined;
|
|
28
|
+
}
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "122.
|
|
24
|
+
var packageVersion = "122.9.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./DropdownTriggerWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
|
+
/**
|
|
3
|
+
* Adds a product-owned build classification when the analytics experiment is enabled.
|
|
4
|
+
* A classifier callback is only evaluated in treatment, keeping browser reads out of control.
|
|
5
|
+
* An unknown classification is omitted; an explicit false is preserved.
|
|
6
|
+
*/
|
|
7
|
+
export var getNonProductionBuildAnalyticsAttributes = function getNonProductionBuildAnalyticsAttributes(classification) {
|
|
8
|
+
if (!isExperimentEnabled('platform_editor_non_production_build_analytics')) {
|
|
9
|
+
return {};
|
|
10
|
+
}
|
|
11
|
+
var isNonProductionBuild = typeof classification === 'function' ? classification() : classification;
|
|
12
|
+
return isNonProductionBuild !== undefined ? {
|
|
13
|
+
isNonProductionBuild: isNonProductionBuild
|
|
14
|
+
} : {};
|
|
15
|
+
};
|
|
@@ -13,7 +13,7 @@ var errorCallbackFor = function errorCallbackFor(marks, validate, dispatchAnalyt
|
|
|
13
13
|
return validationErrorHandler(entity, error, _objectSpread(_objectSpread({}, options), {}, {
|
|
14
14
|
allowNestedTables: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowNestedTables,
|
|
15
15
|
allowTableInPanel: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowTableInPanel,
|
|
16
|
-
|
|
16
|
+
allowContainerInPanel: validationOverrides === null || validationOverrides === void 0 ? void 0 : validationOverrides.allowContainerInPanel
|
|
17
17
|
}), marks, validate, dispatchAnalyticsEvent);
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -97,9 +97,10 @@ export var validationErrorHandler = function validationErrorHandler(entity, erro
|
|
|
97
97
|
|
|
98
98
|
// panel_c1 is a ProseMirror-only variant: on save, expand-in-panel documents are stored as
|
|
99
99
|
// plain ADF `panel` nodes containing an `expand`. The base validator-spec does not permit
|
|
100
|
-
// `expand` inside `panel` (it's gated behind the experiment
|
|
101
|
-
//
|
|
102
|
-
|
|
100
|
+
// `expand` inside `panel` (it's gated behind the consolidated container-in-panel experiment,
|
|
101
|
+
// see `isPanelNestingContainerSupported`), so we suppress the INVALID_CONTENT error when
|
|
102
|
+
// `allowContainerInPanel` is set.
|
|
103
|
+
if (options.allowContainerInPanel) {
|
|
103
104
|
var _meta2 = error.meta;
|
|
104
105
|
if ((_meta2 === null || _meta2 === void 0 ? void 0 : _meta2.parentType) === 'panel' && error.code === 'INVALID_CONTENT' && entity.type === 'expand') {
|
|
105
106
|
return entity;
|
|
@@ -298,6 +298,16 @@ export declare const aiSuggestionsMessages: {
|
|
|
298
298
|
description: string;
|
|
299
299
|
id: string;
|
|
300
300
|
};
|
|
301
|
+
thinkingCompleteNewSuggestionCount: {
|
|
302
|
+
defaultMessage: string;
|
|
303
|
+
description: string;
|
|
304
|
+
id: string;
|
|
305
|
+
};
|
|
306
|
+
thinkingCompleteNewSuggestionCountWithoutReviewer: {
|
|
307
|
+
defaultMessage: string;
|
|
308
|
+
description: string;
|
|
309
|
+
id: string;
|
|
310
|
+
};
|
|
301
311
|
thinkingCompleteNoSuggestions: {
|
|
302
312
|
defaultMessage: string;
|
|
303
313
|
description: string;
|
|
@@ -318,6 +328,16 @@ export declare const aiSuggestionsMessages: {
|
|
|
318
328
|
description: string;
|
|
319
329
|
id: string;
|
|
320
330
|
};
|
|
331
|
+
thinkingCompleteSuggestionCount: {
|
|
332
|
+
defaultMessage: string;
|
|
333
|
+
description: string;
|
|
334
|
+
id: string;
|
|
335
|
+
};
|
|
336
|
+
thinkingCompleteSuggestionCountWithoutReviewer: {
|
|
337
|
+
defaultMessage: string;
|
|
338
|
+
description: string;
|
|
339
|
+
id: string;
|
|
340
|
+
};
|
|
321
341
|
thinkingCompleteViewSuggestions: {
|
|
322
342
|
defaultMessage: string;
|
|
323
343
|
description: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the outermost table's sticky header height for `targetPos` when it is eligible to be
|
|
4
|
+
* sticky. Table headers at least half the viewport high intentionally do not become sticky.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getStickyHeaderHeight(view: EditorView, targetPos: number): number | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type NonProductionBuildAnalyticsAttributes = {
|
|
2
|
+
isNonProductionBuild?: boolean;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* Adds a product-owned build classification when the analytics experiment is enabled.
|
|
6
|
+
* A classifier callback is only evaluated in treatment, keeping browser reads out of control.
|
|
7
|
+
* An unknown classification is omitted; an explicit false is preserved.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getNonProductionBuildAnalyticsAttributes: (classification?: boolean | (() => boolean | undefined)) => NonProductionBuildAnalyticsAttributes;
|
|
10
|
+
export {};
|
|
@@ -12,7 +12,7 @@ export declare const validationErrorHandler: (entity: ADFEntity, error: Validati
|
|
|
12
12
|
type: string;
|
|
13
13
|
} | undefined;
|
|
14
14
|
export declare const validateADFEntity: (schema: Schema, node: ADFEntity, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, validationOverrides?: {
|
|
15
|
-
|
|
15
|
+
allowContainerInPanel?: boolean;
|
|
16
16
|
allowNestedTables?: boolean;
|
|
17
17
|
allowTableInPanel?: boolean;
|
|
18
18
|
}, adfStage?: ADFStage) => ADFEntity;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "122.
|
|
3
|
+
"version": "122.9.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"@atlaskit/profilecard": "^26.24.0",
|
|
77
77
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
78
78
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
79
|
-
"@atlaskit/react-ufo": "^7.
|
|
79
|
+
"@atlaskit/react-ufo": "^7.11.0",
|
|
80
80
|
"@atlaskit/section-message": "^10.2.0",
|
|
81
|
-
"@atlaskit/smart-card": "^45.
|
|
81
|
+
"@atlaskit/smart-card": "^45.24.0",
|
|
82
82
|
"@atlaskit/smart-user-picker": "^11.8.0",
|
|
83
83
|
"@atlaskit/spinner": "^20.4.0",
|
|
84
84
|
"@atlaskit/task-decision": "^21.10.0",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/table/get-sticky-header-height",
|
|
3
|
+
"main": "../../dist/cjs/table/getStickyHeaderHeight.js",
|
|
4
|
+
"module": "../../dist/esm/table/getStickyHeaderHeight.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/table/getStickyHeaderHeight.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/table/getStickyHeaderHeight.d.ts"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/utils/is-non-production-build",
|
|
3
|
+
"main": "../../dist/cjs/utils/is-non-production-build.js",
|
|
4
|
+
"module": "../../dist/esm/utils/is-non-production-build.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/utils/is-non-production-build.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/utils/is-non-production-build.d.ts"
|
|
10
|
+
}
|