@atlaskit/analytics-next
Advanced tools
Comparing version 10.1.1 to 10.2.0
@@ -8,4 +8,3 @@ { | ||
"outDir": "../dist", | ||
"rootDir": "../", | ||
"baseUrl": "../" | ||
"rootDir": "../" | ||
}, | ||
@@ -12,0 +11,0 @@ "include": [ |
{ | ||
"extends": "../../../../tsconfig.entry-points.jira.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es5", | ||
"outDir": "../../../../../tsDist/@atlaskit__analytics-next/app", | ||
"composite": true, | ||
"rootDir": "../" | ||
}, | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*", | ||
"../src/performance/examples.tsx" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json" | ||
} | ||
] | ||
} | ||
"extends": "../../../../tsconfig.entry-points.jira.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es5", | ||
"outDir": "../../../../../tsDist/@atlaskit__analytics-next/app", | ||
"rootDir": "../", | ||
"composite": true | ||
}, | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*", | ||
"../src/performance/examples.tsx" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json" | ||
} | ||
] | ||
} |
{ | ||
"extends": "../../../../tsconfig.entry-points.post-office.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es5", | ||
"outDir": "../../../../../tsDist/@atlaskit__analytics-next/app", | ||
"composite": true, | ||
"rootDir": "../" | ||
}, | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*", | ||
"../src/performance/examples.tsx" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../../../platform/feature-flags/afm-post-office/tsconfig.json" | ||
} | ||
] | ||
} | ||
"extends": "../../../../tsconfig.entry-points.post-office.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es5", | ||
"outDir": "../../../../../post-office/tsDist/@atlaskit__analytics-next/app", | ||
"rootDir": "../", | ||
"composite": true | ||
}, | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*", | ||
"../src/performance/examples.tsx" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../../../platform/feature-flags/afm-post-office/tsconfig.json" | ||
} | ||
] | ||
} |
# @atlaskit/analytics-next | ||
## 10.2.0 | ||
### Minor Changes | ||
- [#176214](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/176214) | ||
[`c0c1a54579ce7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c0c1a54579ce7) - | ||
Set @atlaskit/analytics deprecated and move functions to @atlaskit/analytics-next | ||
## 10.1.1 | ||
@@ -4,0 +12,0 @@ |
@@ -14,5 +14,5 @@ "use strict"; | ||
var ExportedAnalyticsContext = function ExportedAnalyticsContext(props) { | ||
var isModernContext = _isModernContextEnabledEnv.default || (0, _platformFeatureFlags.fg)('platform.analytics-next-use-modern-context_fqgbx'); | ||
var isModernContext = _isModernContextEnabledEnv.default || (0, _platformFeatureFlags.fg)('analytics-next-use-modern-context_jira'); | ||
return isModernContext ? /*#__PURE__*/_react.default.createElement(_ModernAnalyticsContext.default, props) : /*#__PURE__*/_react.default.createElement(_LegacyAnalyticsContext.default, props); | ||
}; | ||
var _default = exports.default = ExportedAnalyticsContext; |
@@ -57,3 +57,3 @@ "use strict"; | ||
var hasError = this.state.hasError; | ||
var isModernContext = _isModernContextEnabledEnv.default || (0, _platformFeatureFlags.fg)('platform.analytics-next-use-modern-context_fqgbx'); | ||
var isModernContext = _isModernContextEnabledEnv.default || (0, _platformFeatureFlags.fg)('analytics-next-use-modern-context_jira'); | ||
if (hasError) { | ||
@@ -60,0 +60,0 @@ if (ErrorComponent) { |
@@ -14,5 +14,5 @@ "use strict"; | ||
var ExportedAnalyticsListener = function ExportedAnalyticsListener(props) { | ||
var isModernContext = _isModernContextEnabledEnv.default || (0, _platformFeatureFlags.fg)('platform.analytics-next-use-modern-context_fqgbx'); | ||
var isModernContext = _isModernContextEnabledEnv.default || (0, _platformFeatureFlags.fg)('analytics-next-use-modern-context_jira'); | ||
return isModernContext ? /*#__PURE__*/_react.default.createElement(_ModernAnalyticsListener.default, props) : /*#__PURE__*/_react.default.createElement(_LegacyAnalyticsListener.default, props); | ||
}; | ||
var _default = exports.default = ExportedAnalyticsListener; |
@@ -19,3 +19,3 @@ "use strict"; | ||
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /// <reference types="node" /> | ||
var isUIAnalyticsEvent = exports.isUIAnalyticsEvent = function isUIAnalyticsEvent(obj) { | ||
@@ -22,0 +22,0 @@ var _obj$constructor; |
@@ -14,2 +14,14 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "AnalyticsDecorator", { | ||
enumerable: true, | ||
get: function get() { | ||
return _AnalyticsDecorator.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "AnalyticsDelegate", { | ||
enumerable: true, | ||
get: function get() { | ||
return _AnalyticsDelegate.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "AnalyticsErrorBoundary", { | ||
@@ -93,2 +105,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "withAnalytics", { | ||
enumerable: true, | ||
get: function get() { | ||
return _withAnalytics.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "withAnalyticsContext", { | ||
@@ -120,3 +138,6 @@ enumerable: true, | ||
var _cleanProps = _interopRequireDefault(require("./utils/cleanProps")); | ||
var _AnalyticsDecorator = _interopRequireDefault(require("./components/AnalyticsDecorator")); | ||
var _AnalyticsDelegate = _interopRequireDefault(require("./components/AnalyticsDelegate")); | ||
var _withAnalytics = _interopRequireDefault(require("./utils/withAnalytics")); | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } |
@@ -8,2 +8,3 @@ "use strict"; | ||
var _process$env; | ||
/// <reference types="node" /> | ||
var _default = exports.default = typeof process !== 'undefined' && process !== null && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']); |
@@ -7,5 +7,5 @@ import React from 'react'; | ||
const ExportedAnalyticsContext = props => { | ||
const isModernContext = isModernContextEnabledEnv || fg('platform.analytics-next-use-modern-context_fqgbx'); | ||
const isModernContext = isModernContextEnabledEnv || fg('analytics-next-use-modern-context_jira'); | ||
return isModernContext ? /*#__PURE__*/React.createElement(ModernAnalyticsContext, props) : /*#__PURE__*/React.createElement(LegacyAnalyticsContext, props); | ||
}; | ||
export default ExportedAnalyticsContext; |
@@ -36,3 +36,3 @@ import React, { Component } from 'react'; | ||
} = this.state; | ||
const isModernContext = isModernContextEnabledEnv || fg('platform.analytics-next-use-modern-context_fqgbx'); | ||
const isModernContext = isModernContextEnabledEnv || fg('analytics-next-use-modern-context_jira'); | ||
if (hasError) { | ||
@@ -39,0 +39,0 @@ if (ErrorComponent) { |
@@ -7,5 +7,5 @@ import React from 'react'; | ||
const ExportedAnalyticsListener = props => { | ||
const isModernContext = isModernContextEnabledEnv || fg('platform.analytics-next-use-modern-context_fqgbx'); | ||
const isModernContext = isModernContextEnabledEnv || fg('analytics-next-use-modern-context_jira'); | ||
return isModernContext ? /*#__PURE__*/React.createElement(ModernAnalyticsListener, props) : /*#__PURE__*/React.createElement(LegacyAnalyticsListener, props); | ||
}; | ||
export default ExportedAnalyticsListener; |
import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
/// <reference types="node" /> | ||
import AnalyticsEvent from './AnalyticsEvent'; | ||
@@ -3,0 +4,0 @@ export const isUIAnalyticsEvent = obj => { |
@@ -23,2 +23,7 @@ // Analytics event classes | ||
export { default as createAndFireEvent } from './utils/createAndFireEvent'; | ||
export { default as cleanProps } from './utils/cleanProps'; | ||
export { default as cleanProps } from './utils/cleanProps'; | ||
// Moved from deprecated @atlaskit/analytics | ||
export { default as AnalyticsDecorator } from './components/AnalyticsDecorator'; | ||
export { default as AnalyticsDelegate } from './components/AnalyticsDelegate'; | ||
export { default as withAnalytics } from './utils/withAnalytics'; |
var _process$env; | ||
/// <reference types="node" /> | ||
export default typeof process !== 'undefined' && process !== null && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']); |
@@ -7,5 +7,5 @@ import React from 'react'; | ||
var ExportedAnalyticsContext = function ExportedAnalyticsContext(props) { | ||
var isModernContext = isModernContextEnabledEnv || fg('platform.analytics-next-use-modern-context_fqgbx'); | ||
var isModernContext = isModernContextEnabledEnv || fg('analytics-next-use-modern-context_jira'); | ||
return isModernContext ? /*#__PURE__*/React.createElement(ModernAnalyticsContext, props) : /*#__PURE__*/React.createElement(LegacyAnalyticsContext, props); | ||
}; | ||
export default ExportedAnalyticsContext; |
@@ -47,3 +47,3 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
var hasError = this.state.hasError; | ||
var isModernContext = isModernContextEnabledEnv || fg('platform.analytics-next-use-modern-context_fqgbx'); | ||
var isModernContext = isModernContextEnabledEnv || fg('analytics-next-use-modern-context_jira'); | ||
if (hasError) { | ||
@@ -50,0 +50,0 @@ if (ErrorComponent) { |
@@ -7,5 +7,5 @@ import React from 'react'; | ||
var ExportedAnalyticsListener = function ExportedAnalyticsListener(props) { | ||
var isModernContext = isModernContextEnabledEnv || fg('platform.analytics-next-use-modern-context_fqgbx'); | ||
var isModernContext = isModernContextEnabledEnv || fg('analytics-next-use-modern-context_jira'); | ||
return isModernContext ? /*#__PURE__*/React.createElement(ModernAnalyticsListener, props) : /*#__PURE__*/React.createElement(LegacyAnalyticsListener, props); | ||
}; | ||
export default ExportedAnalyticsListener; |
@@ -12,2 +12,3 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
/// <reference types="node" /> | ||
import AnalyticsEvent from './AnalyticsEvent'; | ||
@@ -14,0 +15,0 @@ export var isUIAnalyticsEvent = function isUIAnalyticsEvent(obj) { |
@@ -23,2 +23,7 @@ // Analytics event classes | ||
export { default as createAndFireEvent } from './utils/createAndFireEvent'; | ||
export { default as cleanProps } from './utils/cleanProps'; | ||
export { default as cleanProps } from './utils/cleanProps'; | ||
// Moved from deprecated @atlaskit/analytics | ||
export { default as AnalyticsDecorator } from './components/AnalyticsDecorator'; | ||
export { default as AnalyticsDelegate } from './components/AnalyticsDelegate'; | ||
export { default as withAnalytics } from './utils/withAnalytics'; |
var _process$env; | ||
/// <reference types="node" /> | ||
export default typeof process !== 'undefined' && process !== null && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']); |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
} | ||
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof WithAnalyticsEventsProps>>> & React.RefAttributes<any>>; | ||
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props, Component>(WrappedComponent: React.ComponentType<WithAnalyticsEventsProps & Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof WithAnalyticsEventsProps>>> & React.RefAttributes<any>>; | ||
export default withAnalyticsEvents; |
@@ -26,1 +26,4 @@ export type { CreateUIAnalyticsEvent } from './types'; | ||
export { default as cleanProps } from './utils/cleanProps'; | ||
export { default as AnalyticsDecorator } from './components/AnalyticsDecorator'; | ||
export { default as AnalyticsDelegate } from './components/AnalyticsDelegate'; | ||
export { default as withAnalytics } from './utils/withAnalytics'; |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
} | ||
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof WithAnalyticsEventsProps>>> & React.RefAttributes<any>>; | ||
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props, Component>(WrappedComponent: React.ComponentType<WithAnalyticsEventsProps & Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof WithAnalyticsEventsProps>>> & React.RefAttributes<any>>; | ||
export default withAnalyticsEvents; |
@@ -26,1 +26,4 @@ export type { CreateUIAnalyticsEvent } from './types'; | ||
export { default as cleanProps } from './utils/cleanProps'; | ||
export { default as AnalyticsDecorator } from './components/AnalyticsDecorator'; | ||
export { default as AnalyticsDelegate } from './components/AnalyticsDelegate'; | ||
export { default as withAnalytics } from './utils/withAnalytics'; |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "10.1.1", | ||
"version": "10.2.0", | ||
"description": "React components, HOCs and hooks to assist with tracking user activity with React components", | ||
@@ -36,2 +36,5 @@ "publishConfig": { | ||
"./AnalyticsContext": "./src/components/AnalyticsContext/index.tsx", | ||
"./AnalyticsDecorator": "./src/components/AnalyticsDecorator/index.ts", | ||
"./AnalyticsDelegate": "./src/components/AnalyticsDelegate/index.ts", | ||
"./withAnalytics": "./src/utils/withAnalytics.tsx", | ||
"./AnalyticsListener": "./src/components/AnalyticsListener/index.tsx", | ||
@@ -65,3 +68,3 @@ "./AnalyticsErrorBoundary": "./src/components/AnalyticsErrorBoundary.tsx", | ||
"@testing-library/react": "^12.1.5", | ||
"storybook-addon-performance": "^0.16.0", | ||
"storybook-addon-performance": "^0.17.3", | ||
"typescript": "~5.4.2" | ||
@@ -92,3 +95,3 @@ }, | ||
"platform-feature-flags": { | ||
"platform.analytics-next-use-modern-context_fqgbx": { | ||
"analytics-next-use-modern-context_jira": { | ||
"type": "boolean" | ||
@@ -95,0 +98,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
303358
185
5032
1