@atlassian/clientside-extensions-registry
Advanced tools
Comparing version 0.8.1-beta-1 to 0.8.1
@@ -31,5 +31,5 @@ import { JSONSchema7 } from 'json-schema'; | ||
/** | ||
* Plugin's resources use this API to register their attribute factories. | ||
* Extension entry-points use this API to register their attribute providers. | ||
*/ | ||
registerPlugin(key: string, attributesProvider: PluginAttributesProvider): void; | ||
registerExtension(key: string, attributesProvider: PluginAttributesProvider): void; | ||
saveSchema(locationName: string, schema: JSONSchema7): void; | ||
@@ -36,0 +36,0 @@ getSchemaByKey(key: string): JSONSchema7 | null; |
@@ -105,5 +105,5 @@ "use strict"; | ||
/** | ||
* Plugin's resources use this API to register their attribute factories. | ||
* Extension entry-points use this API to register their attribute providers. | ||
*/ | ||
ClientPluginsRegistry.prototype.registerPlugin = function (key, attributesProvider) { | ||
ClientPluginsRegistry.prototype.registerExtension = function (key, attributesProvider) { | ||
var pluginDescriptor = ClientPluginsRegistry.getPluginsByKey(key, this.plugins); | ||
@@ -126,5 +126,5 @@ if (!pluginDescriptor) { | ||
// due to the fact that we will load all resources at once | ||
// we can assume that all registerPlugin calls for a location come at the same time | ||
// we can assume that all registerExtension calls for a location come at the same time | ||
// this - combined with the 'deferred' calling nature of the `notify` method | ||
// means we do not have to wait for the last registerPlugin call | ||
// means we do not have to wait for the last registerExtension call | ||
var loadingState = false; | ||
@@ -131,0 +131,0 @@ // set location as initialized. |
@@ -12,3 +12,6 @@ export interface BasePluginDescriptor { | ||
}; | ||
export interface PluginAttributes { | ||
interface PluginAction { | ||
onAction?: (...args: unknown[]) => void; | ||
} | ||
export interface PluginAttributes extends PluginAction { | ||
[key: string]: unknown; | ||
@@ -15,0 +18,0 @@ } |
{ | ||
"name": "@atlassian/clientside-extensions-registry", | ||
"version": "0.8.1-beta-1", | ||
"version": "0.8.1", | ||
"description": "Implements the browser runtime for the client-side extensions.", | ||
@@ -59,4 +59,4 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@atlassian/clientside-extensions-base": "^0.8.1-beta-1", | ||
"@atlassian/clientside-extensions-debug": "^0.8.1-beta-1" | ||
"@atlassian/clientside-extensions-base": "^0.8.1", | ||
"@atlassian/clientside-extensions-debug": "^0.8.1" | ||
}, | ||
@@ -69,3 +69,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "4ea06ffb0a51978fbbc249167d04596f6554f227" | ||
"gitHead": "33594312e0b384bcf92a87238b21ab5061690e5e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
49539
849
1