@dropins/tools 0.42.0-alpha02281407 → 1.0.0-alpha2
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/chunks/deviceUtils.js +9 -9
- package/chunks/icons/Add.js +1 -1
- package/chunks/image-params-keymap.js +3 -0
- package/chunks/initializer.js +1 -1
- package/components.js +1 -1
- package/i18n.js +2 -2
- package/initializer.js +1 -1
- package/lib.js +1 -1
- package/package.json +1 -1
- package/preact-jsx-runtime.js +1 -1
- package/signals.js +1 -1
- package/types/elsie/src/components/Icon/Icon.d.ts +1 -1
- package/types/elsie/src/lib/image-params-keymap.d.ts +1 -1
- package/types/elsie/src/lib/index.d.ts +0 -1
- package/types/elsie/src/lib/initializer.d.ts +0 -10
- package/types/recaptcha/src/index.d.ts +4 -4
- package/chunks/image-src-transformer.js +0 -3
- package/types/elsie/src/lib/image-src-transformer.d.ts +0 -5
package/signals.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{b as V,l as
|
|
3
|
+
import{b as V,l as N,A as O,T as U,y as q,t as z}from"./chunks/icons/Add.js";var B=Symbol.for("preact-signals");function $(){if(h>1)h--;else{for(var t,i=!1;p!==void 0;){var r=p;for(p=void 0,x++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&j(r))try{r.c()}catch(u){i||(t=u,i=!0)}r=n}}if(x=0,h--,i)throw t}}function K(t){if(h>0)return t();h++;try{return t()}finally{$()}}var e=void 0;function L(t){var i=e;e=void 0;try{return t()}finally{e=i}}var p=void 0,h=0,x=0,y=0;function k(t){if(e!==void 0){var i=t.n;if(i===void 0||i.t!==e)return i={i:0,S:t,p:e.s,n:void 0,t:e,e:void 0,x:void 0,r:i},e.s!==void 0&&(e.s.n=i),e.s=i,t.n=i,32&e.f&&t.S(i),i;if(i.i===-1)return i.i=0,i.n!==void 0&&(i.n.p=i.p,i.p!==void 0&&(i.p.n=i.n),i.p=e.s,i.n=void 0,e.s.n=i,e.s=i),i}}function s(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}s.prototype.brand=B;s.prototype.h=function(){return!0};s.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};s.prototype.U=function(t){if(this.t!==void 0){var i=t.e,r=t.x;i!==void 0&&(i.x=r,t.e=void 0),r!==void 0&&(r.e=i,t.x=void 0),t===this.t&&(this.t=r)}};s.prototype.subscribe=function(t){var i=this;return b(function(){var r=i.value,n=e;e=void 0;try{t(r)}finally{e=n}})};s.prototype.valueOf=function(){return this.value};s.prototype.toString=function(){return this.value+""};s.prototype.toJSON=function(){return this.value};s.prototype.peek=function(){var t=e;e=void 0;try{return this.value}finally{e=t}};Object.defineProperty(s.prototype,"value",{get:function(){var t=k(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(x>100)throw new Error("Cycle detected");this.v=t,this.i++,y++,h++;try{for(var i=this.t;i!==void 0;i=i.x)i.t.N()}finally{$()}}}});function C(t){return new s(t)}function j(t){for(var i=t.s;i!==void 0;i=i.n)if(i.S.i!==i.i||!i.S.h()||i.S.i!==i.i)return!0;return!1}function A(t){for(var i=t.s;i!==void 0;i=i.n){var r=i.S.n;if(r!==void 0&&(i.r=r),i.S.n=i,i.i=-1,i.n===void 0){t.s=i;break}}}function P(t){for(var i=t.s,r=void 0;i!==void 0;){var n=i.p;i.i===-1?(i.S.U(i),n!==void 0&&(n.n=i.n),i.n!==void 0&&(i.n.p=n)):r=i,i.S.n=i.r,i.r!==void 0&&(i.r=void 0),i=n}t.s=r}function c(t){s.call(this,void 0),this.x=t,this.s=void 0,this.g=y-1,this.f=4}(c.prototype=new s).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===y))return!0;if(this.g=y,this.f|=1,this.i>0&&!j(this))return this.f&=-2,!0;var t=e;try{A(this),e=this;var i=this.x();(16&this.f||this.v!==i||this.i===0)&&(this.v=i,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return e=t,P(this),this.f&=-2,!0};c.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var i=this.s;i!==void 0;i=i.n)i.S.S(i)}s.prototype.S.call(this,t)};c.prototype.U=function(t){if(this.t!==void 0&&(s.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var i=this.s;i!==void 0;i=i.n)i.S.U(i)}};c.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(c.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=k(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function T(t){return new c(t)}function G(t){var i=t.u;if(t.u=void 0,typeof i=="function"){h++;var r=e;e=void 0;try{i()}catch(n){throw t.f&=-2,t.f|=8,m(t),n}finally{e=r,$()}}}function m(t){for(var i=t.s;i!==void 0;i=i.n)i.S.U(i);t.x=void 0,t.s=void 0,G(t)}function D(t){if(e!==this)throw new Error("Out-of-order effect");P(this),e=t,this.f&=-2,8&this.f&&m(this),$()}function l(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}l.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var i=this.x();typeof i=="function"&&(this.u=i)}finally{t()}};l.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,G(this),A(this),h++;var t=e;return e=this,D.bind(this,t)};l.prototype.N=function(){2&this.f||(this.f|=2,this.o=p,p=this)};l.prototype.d=function(){this.f|=8,1&this.f||m(this)};function b(t){var i=new l(t);try{i.c()}catch(r){throw i.d(),r}return i.d.bind(i)}var w,g;function d(t,i){N[t]=i.bind(null,N[t]||function(){})}function S(t){g&&g(),g=t&&t.S()}function J(t){var i=this,r=t.data,n=H(r);n.value=r;var u=U(function(){for(var o=i.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return i.__$u.c=function(){var f,v=i.__$u.S(),a=u.value;v(),z(a)||((f=i.base)==null?void 0:f.nodeType)!==3?(i.__$f|=1,i.setState({})):i.base.data=a},T(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""})},[]);return u.value}J.displayName="_st";Object.defineProperties(s.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:J},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});d("__b",function(t,i){if(typeof i.type=="string"){var r,n=i.props;for(var u in n)if(u!=="children"){var o=n[u];o instanceof s&&(r||(i.__np=r={}),r[u]=o,n[u]=o.peek())}}t(i)});d("__r",function(t,i){S();var r,n=i.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(u){var o;return b(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),w=n,S(r),t(i)});d("__e",function(t,i,r,n){S(),w=void 0,t(i,r,n)});d("diffed",function(t,i){S(),w=void 0;var r;if(typeof i.type=="string"&&(r=i.__e)){var n=i.__np,u=i.props;if(n){var o=r.U;if(o)for(var f in o){var v=o[f];v!==void 0&&!(f in n)&&(v.d(),o[f]=void 0)}else r.U=o={};for(var a in n){var _=o[a],E=n[a];_===void 0?(_=F(r,a,E,u),o[a]=_):_.o(E,u)}}}t(i)});function F(t,i,r,n){var u=i in t&&t.ownerSVGElement===void 0,o=C(r);return{o:function(f,v){o.value=f,n=v},d:b(function(){var f=o.value.value;n[i]!==f&&(n[i]=f,u?t[i]=f:f?t.setAttribute(i,f):t.removeAttribute(i))})}}d("unmount",function(t,i){if(typeof i.type=="string"){var r=i.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var u in n){var o=n[u];o&&o.d()}}}}else{var f=i.__c;if(f){var v=f.__$u;v&&(f.__$u=void 0,v.d())}}t(i)});d("__h",function(t,i,r,n){(n<3||n===9)&&(i.__$f|=2),t(i,r,n)});V.prototype.shouldComponentUpdate=function(t,i){var r=this.__$u,n=r&&r.s!==void 0;for(var u in i)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(n||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var o in t)if(o!=="__source"&&t[o]!==this.props[o])return!0;for(var f in this.props)if(!(f in t))return!0;return!1};function H(t){return U(function(){return C(t)},[])}function M(t){var i=O(t);return i.current=t,w.__$f|=4,U(function(){return T(function(){return i.current()})},[])}function Q(t){var i=O(t);i.current=t,q(function(){return b(function(){return i.current()})},[])}export{s as Signal,K as batch,T as computed,b as effect,C as signal,L as untracked,M as useComputed,H as useSignal,Q as useSignalEffect};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'preact';
|
|
2
2
|
import { SVGProps } from 'preact/compat';
|
|
3
3
|
|
|
4
|
-
export type IconType = keyof typeof import('@adobe/elsie/icons');
|
|
4
|
+
export type IconType = keyof typeof import('@adobe-commerce/elsie/icons');
|
|
5
5
|
export interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'size'> {
|
|
6
6
|
source: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
7
7
|
title?: string;
|
|
@@ -11,7 +11,6 @@ export * from './types';
|
|
|
11
11
|
export * from './slot';
|
|
12
12
|
export * from './vcomponent';
|
|
13
13
|
export * from './image-params-keymap';
|
|
14
|
-
export * from './image-src-transformer';
|
|
15
14
|
export * from './is-number';
|
|
16
15
|
export * from './deviceUtils';
|
|
17
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -44,7 +44,6 @@ type Initializers = [Initializer<any>, {
|
|
|
44
44
|
* @method register - Registers a new initializer. If the initializers have already been mounted, it immediately binds the event listeners and initializes the API for the new initializer.
|
|
45
45
|
* @method mount - Mounts all registered initializers. This involves binding the event listeners and initializing the APIs for each initializer, in that order.
|
|
46
46
|
* @method setImageParamKeys - Sets the image parameter keys. These keys are used when initializing the APIs for the initializers.
|
|
47
|
-
* @method setImageSrcTransformer - Sets the image source transformer. This transformer is used to transform the image source URL before appending the image optimization parameters.
|
|
48
47
|
*/
|
|
49
48
|
export declare class initializers {
|
|
50
49
|
static _initializers: Initializers;
|
|
@@ -52,10 +51,6 @@ export declare class initializers {
|
|
|
52
51
|
static _imageParamsKeyMap: {
|
|
53
52
|
[key: string]: string;
|
|
54
53
|
} | undefined;
|
|
55
|
-
static _imageSrcTransformer: ((data: {
|
|
56
|
-
src: string;
|
|
57
|
-
params: any;
|
|
58
|
-
}) => string) | undefined;
|
|
59
54
|
/**
|
|
60
55
|
* Registers a new initializer. If the initializers have already been mounted,it immediately binds the event listeners and initializes the API for the new initializer.
|
|
61
56
|
* @param initializer - The initializer to register.
|
|
@@ -81,11 +76,6 @@ export declare class initializers {
|
|
|
81
76
|
static setImageParamKeys(params: {
|
|
82
77
|
[key: string]: any;
|
|
83
78
|
}): void;
|
|
84
|
-
/**
|
|
85
|
-
* Sets the image source transformer. This transformer is used to transform the image source URL before appending the image optimization parameters.
|
|
86
|
-
* @param transformer - The image source transformer.
|
|
87
|
-
*/
|
|
88
|
-
static setImageSrcTransformer(transformer: typeof initializers._imageSrcTransformer): void;
|
|
89
79
|
}
|
|
90
80
|
export {};
|
|
91
81
|
//# sourceMappingURL=initializer.d.ts.map
|
|
@@ -4,14 +4,14 @@ export declare const recaptchaFetchApi: {
|
|
|
4
4
|
setEndpoint: (endpoint: string) => void;
|
|
5
5
|
setFetchGraphQlHeader: (key: string, value: string | null) => void;
|
|
6
6
|
removeFetchGraphQlHeader: (key: string) => void;
|
|
7
|
-
setFetchGraphQlHeaders: (header: import('@adobe/fetch-graphql').Header) => void;
|
|
8
|
-
fetchGraphQl: <T = any>(query: string, options?: import('@adobe/fetch-graphql').FetchOptions | undefined) => Promise<{
|
|
9
|
-
errors?: import('@adobe/fetch-graphql').FetchQueryError | undefined;
|
|
7
|
+
setFetchGraphQlHeaders: (header: import('@adobe-commerce/fetch-graphql').Header) => void;
|
|
8
|
+
fetchGraphQl: <T = any>(query: string, options?: import('@adobe-commerce/fetch-graphql').FetchOptions | undefined) => Promise<{
|
|
9
|
+
errors?: import('@adobe-commerce/fetch-graphql').FetchQueryError | undefined;
|
|
10
10
|
data: T;
|
|
11
11
|
}>;
|
|
12
12
|
getConfig: () => {
|
|
13
13
|
endpoint: string | undefined;
|
|
14
|
-
fetchGraphQlHeaders: import('@adobe/fetch-graphql').Header | undefined;
|
|
14
|
+
fetchGraphQlHeaders: import('@adobe-commerce/fetch-graphql').Header | undefined;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
export declare class RecaptchaModule {
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Copyright 2025 Adobe
|
|
2
|
-
All Rights Reserved. */
|
|
3
|
-
var t=Object.defineProperty;var m=(e,r,s)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s;var a=(e,r,s)=>m(e,typeof r!="symbol"?r+"":r,s);class n{constructor(){a(this,"_map")}get map(){return this._map}set map(r){this._map=r}getMethods(){return{setMap:r=>{this.map=r},getMap:()=>this.map}}}const o=new n,{setMap:h,getMap:M}=o.getMethods();class g{constructor(){a(this,"_transformer")}get transformer(){return this._transformer}set transformer(r){this._transformer=r}getMethods(){return{setTransformer:r=>{this.transformer=r},getTransformer:()=>this.transformer}}}const p=new g,{setTransformer:c,getTransformer:i}=p.getMethods();export{c as a,i as b,M as g,h as s};
|