Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/ui-extensions

Package Overview
Dependencies
Maintainers
24
Versions
681
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/ui-extensions - npm Package Compare versions

Comparing version 0.0.0-unstable-20230717142700 to 0.0.0-unstable-20230717192535

build/ts/surfaces/admin/extension-targets.d.ts

2

build/ts/surfaces/admin.d.ts
export * from './admin/api';
export * from './admin/components';
export * from './admin/extension-points';
export * from './admin/extension-targets';
export * from './admin/extension';

@@ -5,0 +5,0 @@ export * from './admin/shared';

import type { StandardApi } from '../standard/standard';
import type { I18n } from '../../../../api';
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
export interface ActionExtensionApi<ExtensionPoint extends AnyExtensionPoint> extends StandardApi<ExtensionPoint> {
import type { ExtensionTarget as AnyExtensionTarget } from '../../extension-targets';
export interface ActionExtensionApi<ExtensionTarget extends AnyExtensionTarget> extends StandardApi<ExtensionTarget> {
i18n: I18n;

@@ -6,0 +6,0 @@ /**

import type { StandardApi } from '../standard/standard';
import type { I18n } from '../../../../api';
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
import type { ExtensionTarget as AnyExtensionTarget } from '../../extension-targets';
type CustomerSegmentationFeature = 'productsPurchasedByTags' | 'aggregateFilters';
export interface CustomerSegmentationTemplateApi<ExtensionPoint extends AnyExtensionPoint> extends StandardApi<ExtensionPoint> {
export interface CustomerSegmentationTemplateApi<ExtensionTarget extends AnyExtensionTarget> extends StandardApi<ExtensionTarget> {
i18n: I18n;

@@ -7,0 +7,0 @@ /** @private */

import type { StandardApi as BaseStandardApi, I18n } from '../../../../api';
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
import type { ExtensionTarget as AnyExtensionTarget } from '../../extension-targets';
/**
* The following APIs are provided to all extension points.
* The following APIs are provided to all extension targets.
*/
export interface StandardApi<ExtensionPoint extends AnyExtensionPoint> extends BaseStandardApi {
export interface StandardApi<ExtensionTarget extends AnyExtensionTarget> extends BaseStandardApi {
/**
* The identifier of the running extension point.
* The identifier of the running extension target.
*/
extensionPoint: ExtensionPoint;
extension: {
target: ExtensionTarget;
};
i18n: I18n;
}
//# sourceMappingURL=standard.d.ts.map

@@ -1,5 +0,5 @@

import type { ExtensionPoints } from './extension-points';
import type { ExtensionTargets } from './extension-targets';
export * from '../../extension';
export declare const extension: import("../../utilities/registration").ExtensionRegistrationFunctionWithRoot<ExtensionPoints>;
export declare const extend: import("../../utilities/registration").ExtensionRegistrationFunctionWithRoot<ExtensionPoints>;
export declare const extension: import("../../utilities/registration").ExtensionRegistrationFunctionWithRoot<ExtensionTargets>;
export declare const extend: import("../../utilities/registration").ExtensionRegistrationFunctionWithRoot<ExtensionTargets>;
//# sourceMappingURL=extension.d.ts.map

@@ -1,5 +0,5 @@

import type { ExtensionPoints } from './extension-points';
import type { ExtensionTargets } from './extension-targets';
export interface ShopifyGlobal {
extend<ExtensionPoint extends keyof ExtensionPoints>(extensionPoint: ExtensionPoint, extend: ExtensionPoints[ExtensionPoint]): void;
extend<ExtensionTarget extends keyof ExtensionTargets>(extension: ExtensionTarget, extend: ExtensionTargets[ExtensionTarget]): void;
}
//# sourceMappingURL=globals.d.ts.map
{
"name": "@shopify/ui-extensions",
"version": "0.0.0-unstable-20230717142700",
"version": "0.0.0-unstable-20230717192535",
"scripts": {

@@ -5,0 +5,0 @@ "docs:admin": "sh ./docs/surfaces/admin/build-docs.sh \"admin\"",

export * from './admin/api';
export * from './admin/components';
export * from './admin/extension-points';
export * from './admin/extension-targets';
export * from './admin/extension';
export * from './admin/shared';
export * from './admin/globals';
import type {StandardApi} from '../standard/standard';
import type {I18n} from '../../../../api';
import type {ExtensionPoint as AnyExtensionPoint} from '../../extension-points';
import type {ExtensionTarget as AnyExtensionTarget} from '../../extension-targets';
export interface ActionExtensionApi<ExtensionPoint extends AnyExtensionPoint>
extends StandardApi<ExtensionPoint> {
export interface ActionExtensionApi<ExtensionTarget extends AnyExtensionTarget>
extends StandardApi<ExtensionTarget> {
/* Utilities for translating content according to the current `localization` of the admin. */

@@ -8,0 +8,0 @@ i18n: I18n;

import type {StandardApi} from '../standard/standard';
import type {I18n} from '../../../../api';
import type {ExtensionPoint as AnyExtensionPoint} from '../../extension-points';
import type {ExtensionTarget as AnyExtensionTarget} from '../../extension-targets';

@@ -13,4 +13,4 @@ /* List of enabled query language features during a progressive rollout */

export interface CustomerSegmentationTemplateApi<
ExtensionPoint extends AnyExtensionPoint,
> extends StandardApi<ExtensionPoint> {
ExtensionTarget extends AnyExtensionTarget,
> extends StandardApi<ExtensionTarget> {
/* Utilities for translating content according to the current `localization` of the admin. */

@@ -17,0 +17,0 @@ i18n: I18n;

import type {StandardApi as BaseStandardApi, I18n} from '../../../../api';
import type {ExtensionPoint as AnyExtensionPoint} from '../../extension-points';
import type {ExtensionTarget as AnyExtensionTarget} from '../../extension-targets';
/**
* The following APIs are provided to all extension points.
* The following APIs are provided to all extension targets.
*/
export interface StandardApi<ExtensionPoint extends AnyExtensionPoint>
export interface StandardApi<ExtensionTarget extends AnyExtensionTarget>
extends BaseStandardApi {
/**
* The identifier of the running extension point.
* The identifier of the running extension target.
*/
extensionPoint: ExtensionPoint;
extension: {
target: ExtensionTarget;
};
i18n: I18n;
}
import {createExtensionRegistrationFunction} from '../../utilities/registration';
import type {ExtensionPoints} from './extension-points';
import type {ExtensionTargets} from './extension-targets';
export * from '../../extension';
export const extension = createExtensionRegistrationFunction<ExtensionPoints>();
export const extension =
createExtensionRegistrationFunction<ExtensionTargets>();
export const extend = extension;

@@ -1,8 +0,8 @@

import type {ExtensionPoints} from './extension-points';
import type {ExtensionTargets} from './extension-targets';
export interface ShopifyGlobal {
extend<ExtensionPoint extends keyof ExtensionPoints>(
extensionPoint: ExtensionPoint,
extend: ExtensionPoints[ExtensionPoint],
extend<ExtensionTarget extends keyof ExtensionTargets>(
extension: ExtensionTarget,
extend: ExtensionTargets[ExtensionTarget],
): void;
}

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc