@devboldly/react-use-google-analytics-embed-api
Advanced tools
Comparing version 0.0.4 to 0.0.5
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var throwError = function (className) { | ||
if (className === void 0) { className = 'API'; } | ||
throw Error(className + ' class must be accessed via the Google Analytics Embed API.'); | ||
}; | ||
/** | ||
* The Data component allows you to query the Google Analytics Core Reporting API and get back the results. | ||
* | ||
* See: https://developers.google.com/analytics/devguides/reporting/embed/v1/component-reference#data | ||
*/ | ||
var Data = /** @class */ (function () { | ||
function Data(options) { | ||
throwError('Data'); | ||
} | ||
Data.prototype.set = function (options) { | ||
return throwError('Data'); | ||
}; | ||
Data.prototype.get = function () { | ||
return throwError('Data'); | ||
}; | ||
Data.prototype.execute = function () { | ||
return throwError('Data'); | ||
}; | ||
Data.prototype.on = function (event, handler) { | ||
return throwError('Data'); | ||
}; | ||
Data.prototype.once = function (event, handler) { | ||
return throwError('Data'); | ||
}; | ||
Data.prototype.off = function (optEvent, optHandler) { | ||
throwError('Data'); | ||
}; | ||
Data.prototype.emit = function (event) { | ||
var optArgs = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
optArgs[_i - 1] = arguments[_i]; | ||
} | ||
throwError('Data'); | ||
}; | ||
return Data; | ||
}()); | ||
/** | ||
* DataChart wraps a standard Google chart and a Data component so you can easily create a visualization from a query without having to wire it together yourself. | ||
* | ||
* See: https://developers.google.com/analytics/devguides/reporting/embed/v1/component-reference#datachart | ||
*/ | ||
var DataChart = /** @class */ (function () { | ||
function DataChart(options) { | ||
throwError('DataChart'); | ||
} | ||
DataChart.prototype.set = function (options) { | ||
return throwError('DataChart'); | ||
}; | ||
DataChart.prototype.get = function () { | ||
return throwError('DataChart'); | ||
}; | ||
DataChart.prototype.execute = function () { | ||
return throwError('DataChart'); | ||
}; | ||
DataChart.prototype.on = function (event, handler) { | ||
return throwError('DataChart'); | ||
}; | ||
DataChart.prototype.once = function (event, handler) { | ||
return throwError('DataChart'); | ||
}; | ||
DataChart.prototype.off = function (optEvent, optHandler) { | ||
throwError('DataChart'); | ||
}; | ||
DataChart.prototype.emit = function (event) { | ||
var optArgs = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
optArgs[_i - 1] = arguments[_i]; | ||
} | ||
throwError('DataChart'); | ||
}; | ||
return DataChart; | ||
}()); | ||
/** | ||
* The ViewSelector component allows you to choose your account, property, and view via dropdown menus. | ||
* | ||
* See: https://developers.google.com/analytics/devguides/reporting/embed/v1/component-reference#viewselector | ||
*/ | ||
var ViewSelector = /** @class */ (function () { | ||
function ViewSelector(options) { | ||
throwError('ViewSelector'); | ||
} | ||
ViewSelector.prototype.set = function (options) { | ||
return throwError('ViewSelector'); | ||
}; | ||
ViewSelector.prototype.get = function () { | ||
return throwError('ViewSelector'); | ||
}; | ||
ViewSelector.prototype.execute = function () { | ||
return throwError('ViewSelector'); | ||
}; | ||
ViewSelector.prototype.on = function (event, handler) { | ||
return throwError('ViewSelector'); | ||
}; | ||
ViewSelector.prototype.once = function (event, handler) { | ||
return throwError('ViewSelector'); | ||
}; | ||
ViewSelector.prototype.off = function (optEvent, optHandler) { | ||
throwError('ViewSelector'); | ||
}; | ||
ViewSelector.prototype.emit = function (event) { | ||
var optArgs = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
optArgs[_i - 1] = arguments[_i]; | ||
} | ||
throwError('ViewSelector'); | ||
}; | ||
return ViewSelector; | ||
}()); |
{ | ||
"name": "@devboldly/react-use-google-analytics-embed-api", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"author": "Dev Boldly <devboldly@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React hook to async load the Google Analytics Embed API.", |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
83672
1933
1