@salesforce/storefront-next-runtime 0.4.0-alpha.2 → 0.4.0
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/dist/ComponentContext.js.map +1 -1
- package/dist/DesignComponent.js +46 -31
- package/dist/DesignComponent.js.map +1 -1
- package/dist/DesignContext.js +91 -65
- package/dist/DesignContext.js.map +1 -1
- package/dist/DesignFrame.js +8 -4
- package/dist/DesignFrame.js.map +1 -1
- package/dist/DesignRegion.js +6 -8
- package/dist/DesignRegion.js.map +1 -1
- package/dist/component.types.d.ts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/custom-global-preferences.d.ts +3 -3
- package/dist/custom-site-preferences.d.ts +3 -3
- package/dist/data-store.d.ts +3 -3
- package/dist/data-store.d.ts.map +1 -1
- package/dist/design-react-core.d.ts +2 -1
- package/dist/design-react-core.d.ts.map +1 -1
- package/dist/gcp-preferences.d.ts +3 -3
- package/dist/index.d.ts +25 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/scapi.d.ts.map +1 -1
- package/dist/site-context.d.ts +5 -5
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { n as DefineConfigOptions, r as defineConfig, t as BaseConfig } from "./
|
|
|
3
3
|
import * as react0 from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_router12 from "react-router";
|
|
7
7
|
import { MiddlewareFunction, RouterContextProvider } from "react-router";
|
|
8
8
|
|
|
9
9
|
//#region src/config/get-config.d.ts
|
|
@@ -39,7 +39,7 @@ declare function useConfig<T extends Record<string, unknown> = Record<string, un
|
|
|
39
39
|
* Populated by `createAppConfigMiddleware` with the `app` section of config.
|
|
40
40
|
* Accessible in loaders, actions, and middleware via `context.get(appConfigContext)`.
|
|
41
41
|
*/
|
|
42
|
-
declare const appConfigContext:
|
|
42
|
+
declare const appConfigContext: react_router12.RouterContext<Record<string, unknown>>;
|
|
43
43
|
/**
|
|
44
44
|
* React context for application configuration.
|
|
45
45
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_router0 from "react-router";
|
|
2
2
|
import { RouterContextProvider } from "react-router";
|
|
3
3
|
|
|
4
4
|
//#region src/data-store/middleware/custom-global-preferences.d.ts
|
|
5
5
|
|
|
6
6
|
type CustomGlobalPreferences = Record<string, unknown>;
|
|
7
7
|
declare const DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY = "custom-global-preferences";
|
|
8
|
-
declare const customGlobalPreferencesContext:
|
|
8
|
+
declare const customGlobalPreferencesContext: react_router0.RouterContext<CustomGlobalPreferences | null>;
|
|
9
9
|
/**
|
|
10
10
|
* Read custom global preferences from router context.
|
|
11
11
|
*
|
|
@@ -14,7 +14,7 @@ declare const customGlobalPreferencesContext: react_router1.RouterContext<Custom
|
|
|
14
14
|
* @throws Error when the data-store context is not available
|
|
15
15
|
*/
|
|
16
16
|
declare function getCustomGlobalPreferences(context: Readonly<RouterContextProvider>): CustomGlobalPreferences;
|
|
17
|
-
declare const customGlobalPreferencesMiddleware:
|
|
17
|
+
declare const customGlobalPreferencesMiddleware: react_router0.MiddlewareFunction<Response>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { getCustomGlobalPreferences as a, customGlobalPreferencesMiddleware as i, DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY as n, customGlobalPreferencesContext as r, CustomGlobalPreferences as t };
|
|
20
20
|
//# sourceMappingURL=custom-global-preferences.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_router3 from "react-router";
|
|
2
2
|
import { RouterContextProvider } from "react-router";
|
|
3
3
|
|
|
4
4
|
//#region src/data-store/middleware/custom-site-preferences.d.ts
|
|
5
5
|
|
|
6
6
|
type SitePreferences = Record<string, unknown>;
|
|
7
7
|
declare const DEFAULT_SITE_PREFERENCES_KEY = "site-preferences";
|
|
8
|
-
declare const sitePreferencesContext:
|
|
8
|
+
declare const sitePreferencesContext: react_router3.RouterContext<SitePreferences | null>;
|
|
9
9
|
/**
|
|
10
10
|
* Read site preferences from router context.
|
|
11
11
|
*
|
|
@@ -14,7 +14,7 @@ declare const sitePreferencesContext: react_router0.RouterContext<SitePreference
|
|
|
14
14
|
* @throws Error when the data-store context is not available
|
|
15
15
|
*/
|
|
16
16
|
declare function getSitePreferences(context: Readonly<RouterContextProvider>): SitePreferences;
|
|
17
|
-
declare const customSitePreferencesMiddleware:
|
|
17
|
+
declare const customSitePreferencesMiddleware: react_router3.MiddlewareFunction<Response>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { sitePreferencesContext as a, getSitePreferences as i, SitePreferences as n, customSitePreferencesMiddleware as r, DEFAULT_SITE_PREFERENCES_KEY as t };
|
|
20
20
|
//# sourceMappingURL=custom-site-preferences.d.ts.map
|
package/dist/data-store.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as sitePreferencesContext, i as getSitePreferences, n as SitePreferences, t as DEFAULT_SITE_PREFERENCES_KEY } from "./custom-site-preferences.js";
|
|
2
2
|
import { a as getCustomGlobalPreferences, n as DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY, r as customGlobalPreferencesContext, t as CustomGlobalPreferences } from "./custom-global-preferences.js";
|
|
3
3
|
import { a as getGcpApiKey, n as GcpPreferences, o as getGcpPreferences, r as gcpPreferencesContext, t as DEFAULT_GCP_PREFERENCES_KEY } from "./gcp-preferences.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_router6 from "react-router";
|
|
5
5
|
import { MiddlewareFunction, RouterContextProvider, createContext } from "react-router";
|
|
6
6
|
import { DataStore, DataStoreNotFoundError, DataStoreServiceError, DataStoreUnavailableError } from "@salesforce/mrt-utilities/data-store";
|
|
7
7
|
|
|
@@ -54,7 +54,7 @@ declare function getDataStoreEntry<TValue = unknown>(key: string): Promise<DataS
|
|
|
54
54
|
type LoginPreferences = {
|
|
55
55
|
emailVerificationEnabled?: boolean;
|
|
56
56
|
};
|
|
57
|
-
declare const loginPreferencesContext:
|
|
57
|
+
declare const loginPreferencesContext: react_router6.RouterContext<LoginPreferences | null>;
|
|
58
58
|
/**
|
|
59
59
|
* Read login preferences from router context.
|
|
60
60
|
*
|
|
@@ -64,7 +64,7 @@ declare const loginPreferencesContext: react_router7.RouterContext<LoginPreferen
|
|
|
64
64
|
declare function getLoginPreferences(context: Readonly<RouterContextProvider>): LoginPreferences;
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region src/data-store/index.d.ts
|
|
67
|
-
declare const dataStoreMiddleware:
|
|
67
|
+
declare const dataStoreMiddleware: react_router6.MiddlewareFunction<Response>[];
|
|
68
68
|
//#endregion
|
|
69
69
|
export { type CustomGlobalPreferences, DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY, DEFAULT_GCP_PREFERENCES_KEY, DEFAULT_SITE_PREFERENCES_KEY, DataStore, type DataStoreContextKey, type DataStoreEntry, type DataStoreEntryKey, type DataStoreMiddlewareOptions, DataStoreNotFoundError, DataStoreServiceError, DataStoreUnavailableError, type GcpPreferences, type LoginPreferences, type SitePreferences, createDataStoreContext, createDataStoreMiddleware, customGlobalPreferencesContext, dataStoreMiddleware, gcpPreferencesContext, getCustomGlobalPreferences, getDataStoreEntry, getGcpApiKey, getGcpPreferences, getLoginPreferences, getSitePreferences, loginPreferencesContext, sitePreferencesContext };
|
|
70
70
|
//# sourceMappingURL=data-store.d.ts.map
|
package/dist/data-store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-store.d.ts","names":[],"sources":["../src/data-store/utils.ts","../src/data-store/middleware/login-preferences.ts","../src/data-store/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAkCc,KATF,mBASE,CAAA,CAAA,CAAA,GATuB,UASvB,CAAA,OATyC,aASzC,CATuD,CASvD,GAAA,IAAA,CAAA,CAAA;AACmB,KARrB,iBAAA,GAQqB,MAAA,GAAA,CAAA,CAAA,OAAA,EARmB,QAQnB,CAR4B,qBAQ5B,CAAA,EAAA,GAAA,MAAA,CAAA;AAApB,KAND,cAMC,CAAA,SAAA,OAAA,CAAA,GAAA;EACW,KAAA,CAAA,EANZ,MAMY;CAA4B;AAEhC,KALR,0BAKQ,CAAA,CAAA,CAAA,GAAA;EAAwB,QAAA,EAJ9B,iBAI8B;EAAT,OAAA,EAHtB,mBAGsB,CAHF,CAGE,CAAA;EAAoC,SAAA,CAAA,EAAA,CAAA,KAAA,EAF/C,MAE+C,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GAFnB,CAEmB;EAAC,aAAA,CAAA,EAAA,OAAA,GAAA,UAAA;EAUxD,aAAA,CAAA,EAVI,CAUJ,GAAA,CAAA,CAAA,OAAsB,EAVH,QAU8B,CAVrB,
|
|
1
|
+
{"version":3,"file":"data-store.d.ts","names":[],"sources":["../src/data-store/utils.ts","../src/data-store/middleware/login-preferences.ts","../src/data-store/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAkCc,KATF,mBASE,CAAA,CAAA,CAAA,GATuB,UASvB,CAAA,OATyC,aASzC,CATuD,CASvD,GAAA,IAAA,CAAA,CAAA;AACmB,KARrB,iBAAA,GAQqB,MAAA,GAAA,CAAA,CAAA,OAAA,EARmB,QAQnB,CAR4B,qBAQ5B,CAAA,EAAA,GAAA,MAAA,CAAA;AAApB,KAND,cAMC,CAAA,SAAA,OAAA,CAAA,GAAA;EACW,KAAA,CAAA,EANZ,MAMY;CAA4B;AAEhC,KALR,0BAKQ,CAAA,CAAA,CAAA,GAAA;EAAwB,QAAA,EAJ9B,iBAI8B;EAAT,OAAA,EAHtB,mBAGsB,CAHF,CAGE,CAAA;EAAoC,SAAA,CAAA,EAAA,CAAA,KAAA,EAF/C,MAE+C,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GAFnB,CAEmB;EAAC,aAAA,CAAA,EAAA,OAAA,GAAA,UAAA;EAUxD,aAAA,CAAA,EAVI,CAUJ,GAAA,CAAA,CAAA,OAAsB,EAVH,QAU8B,CAVrB,qBAUoB,CAAA,EAAA,GAVO,CAUP,CAAA;AAgBhE,CAAA;;;;;;AAwDA;;AAAgF,iBAxEhE,sBAwEgE,CAAA,CAAA,CAAA,CAAA,CAAA,EAxEnC,mBAwEmC,CAxEf,CAwEe,CAAA;;;;;;ACrGhF;AAIA;AASA;;;;;iBDgCgB,sCAAsC,2BAA2B,KAAK,mBAAmB;;;AETzG;;;;;;iBFiEsB,kDAAkD,QAAQ,eAAe;;;AAtFjF,KCfF,gBAAA,GDeE;EACmB,wBAAA,CAAA,EAAA,OAAA;CAApB;AACW,cCbX,uBDaW,ECbY,aAAA,CAAA,aDaZ,CCbY,gBDaZ,GAAA,IAAA,CAAA;;;;;;;AAYR,iBChBA,mBAAA,CDgBiD,OAApB,EChBA,QDgBA,CChBS,qBDgBU,CAAA,CAAA,EChBe,gBDgBf;;;AAgBsB,cETzE,mBFSyE,EETtD,aAAA,CAAA,kBFSsD,CETtD,QFSsD,CAAA,EAAA"}
|
|
@@ -54,7 +54,7 @@ declare function PageDesignerPageMetadataProvider({
|
|
|
54
54
|
//#region src/design/react/core/RegionContext.d.ts
|
|
55
55
|
interface RegionContextType {
|
|
56
56
|
regionId: string;
|
|
57
|
-
|
|
57
|
+
contentLinkUuids: string[];
|
|
58
58
|
}
|
|
59
59
|
declare const RegionContext: React$1.Context<RegionContextType | null>;
|
|
60
60
|
declare const useRegionContext: () => RegionContextType | null;
|
|
@@ -63,6 +63,7 @@ declare const useRegionContext: () => RegionContextType | null;
|
|
|
63
63
|
interface ComponentContextType {
|
|
64
64
|
componentId: string;
|
|
65
65
|
name?: string;
|
|
66
|
+
contentLinkUuid?: string;
|
|
66
67
|
}
|
|
67
68
|
declare const ComponentContext: React$1.Context<ComponentContextType | null>;
|
|
68
69
|
declare const useComponentContext: () => ComponentContextType | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-react-core.d.ts","names":[],"sources":["../src/design/react/core/PageDesignerProvider.tsx","../src/design/react/core/PageDesignerPageMetadataProvider.tsx","../src/design/react/core/RegionContext.tsx","../src/design/react/core/ComponentContext.tsx","../src/design/react/core/ComponentDecorator.tsx","../src/design/react/core/RegionDecorator.tsx","../src/design/react/core/adapter.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAoCK,uBAAA;;;;cAaQ,2BAA0B;KAElC,yBAAA;EAfA,QAAA,EAgBS,KAAA,CAAM,SAhBf;EAaQ,QAAA,EAAA,MAAA;EAER,YAAA,EAAA,MAAA;EAWQ,IAAA,CAAA,EAAA,MAAA;iBANM;;;;;cAMN;;;;;;;;;;KASV,4BAA4B,KAAA,CAAM,GAAA,CAAI;;IAAtC,uBAAA,EAAA,MAAA;IAAkC,wBAAI,EAAA,MAAA;IAAO,IAAA,EAAA,SAAA;;;;;;;;;iBC7ChC,gCAAA;;;GAGb,KAAA,CAAM;QAA0B,iBAAA,CAAkB;KAAkB,kBAAA,CAAA,GAAA,CAAA;;;UCZtD,iBAAA;;;;AFsDd,cEjDU,aFiDV,EEjDuB,OAAA,CAAA,OFiDvB,CEjDuB,iBFiDvB,GAAA,IAAA,CAAA;AAAkC,cE/CxB,gBF+C4B,EAAA,GAAA,GE/CL,iBF+CK,GAAA,IAAA;;;UGtDxB,oBAAA
|
|
1
|
+
{"version":3,"file":"design-react-core.d.ts","names":[],"sources":["../src/design/react/core/PageDesignerProvider.tsx","../src/design/react/core/PageDesignerPageMetadataProvider.tsx","../src/design/react/core/RegionContext.tsx","../src/design/react/core/ComponentContext.tsx","../src/design/react/core/ComponentDecorator.tsx","../src/design/react/core/RegionDecorator.tsx","../src/design/react/core/adapter.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAoCK,uBAAA;;;;cAaQ,2BAA0B;KAElC,yBAAA;EAfA,QAAA,EAgBS,KAAA,CAAM,SAhBf;EAaQ,QAAA,EA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AAoC,mBAAA,CAAA,QAAA,EAAA,GAAA,GKc/B,OLd+B,CKcvB,oBLduB,CKcF,MLdE,CAAA,CAAA,CAAA,EKcS,wBLdT,CKckC,MLdlC,CAAA;;;;ACZvE;EAKa,iBAAmE,CAAA,SAAA,EIqC/C,wBJrCP,CIqCgC,MJrChC,CAAA,CAAA,EIqC0C,wBJrC1C,CIqCmE,MJrCnE,CAAA;AAE1B;;;;ACPiB,iBGoDD,kBHpDqB,CAAA,MAAA,CAAA,CAAA,CAAA,EGoDS,YHpDT,CGoDsB,MHpDtB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_router1 from "react-router";
|
|
2
2
|
import { RouterContextProvider } from "react-router";
|
|
3
3
|
|
|
4
4
|
//#region src/data-store/middleware/gcp-preferences.d.ts
|
|
@@ -15,7 +15,7 @@ type GcpPreferences = {
|
|
|
15
15
|
apiKey: string;
|
|
16
16
|
};
|
|
17
17
|
declare const DEFAULT_GCP_PREFERENCES_KEY = "gcp";
|
|
18
|
-
declare const gcpPreferencesContext:
|
|
18
|
+
declare const gcpPreferencesContext: react_router1.RouterContext<GcpPreferences | null>;
|
|
19
19
|
/**
|
|
20
20
|
* Read the GCP (Google Cloud Platform) preferences object from router context.
|
|
21
21
|
*
|
|
@@ -46,7 +46,7 @@ declare function getGcpApiKey(context: Readonly<RouterContextProvider>): string;
|
|
|
46
46
|
* Must run before any loader/middleware that reads `getGcpPreferences(context)`
|
|
47
47
|
* or `getGcpApiKey(context)`.
|
|
48
48
|
*/
|
|
49
|
-
declare const gcpPreferencesMiddleware:
|
|
49
|
+
declare const gcpPreferencesMiddleware: react_router1.MiddlewareFunction<Response>;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { getGcpApiKey as a, gcpPreferencesMiddleware as i, GcpPreferences as n, getGcpPreferences as o, gcpPreferencesContext as r, DEFAULT_GCP_PREFERENCES_KEY as t };
|
|
52
52
|
//# sourceMappingURL=gcp-preferences.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -15,12 +15,25 @@ interface WithComponentId {
|
|
|
15
15
|
*/
|
|
16
16
|
componentId: string;
|
|
17
17
|
}
|
|
18
|
+
interface WithContentLinkUuid {
|
|
19
|
+
/**
|
|
20
|
+
* The content link UUID of the component.
|
|
21
|
+
*/
|
|
22
|
+
contentLinkUuid: string;
|
|
23
|
+
}
|
|
18
24
|
interface WithComponentType {
|
|
19
25
|
/**
|
|
20
26
|
* The component type that the event is related to.
|
|
21
27
|
*/
|
|
22
28
|
componentType: string;
|
|
23
29
|
}
|
|
30
|
+
interface WithFragmentId {
|
|
31
|
+
/**
|
|
32
|
+
* The id of the fragment that the event is related to.
|
|
33
|
+
* Fragments are reusable component instances that can be placed in multiple locations.
|
|
34
|
+
*/
|
|
35
|
+
fragmentId?: string;
|
|
36
|
+
}
|
|
24
37
|
/**
|
|
25
38
|
* @inline
|
|
26
39
|
* @hidden
|
|
@@ -282,7 +295,7 @@ interface ClientWindowDragExitedEvent extends WithBaseEvent, WithComponentType {
|
|
|
282
295
|
* @target client
|
|
283
296
|
* @group Events
|
|
284
297
|
*/
|
|
285
|
-
interface ClientWindowDragDroppedEvent extends WithBaseEvent, WithComponentType {
|
|
298
|
+
interface ClientWindowDragDroppedEvent extends WithBaseEvent, WithComponentType, WithFragmentId {
|
|
286
299
|
eventType: 'ClientWindowDragDropped';
|
|
287
300
|
}
|
|
288
301
|
/**
|
|
@@ -302,7 +315,7 @@ interface ComponentPropertiesChangedEvent<TProps extends Record<string, unknown>
|
|
|
302
315
|
* @target client
|
|
303
316
|
* @group Events
|
|
304
317
|
*/
|
|
305
|
-
interface ComponentFocusedEvent extends WithBaseEvent, WithComponentId {
|
|
318
|
+
interface ComponentFocusedEvent extends WithBaseEvent, WithComponentId, WithContentLinkUuid {
|
|
306
319
|
eventType: 'ComponentFocused';
|
|
307
320
|
}
|
|
308
321
|
/**
|
|
@@ -356,14 +369,14 @@ interface WindowScrollChangedEvent extends WithBaseEvent {
|
|
|
356
369
|
* @target isomorphic
|
|
357
370
|
* @group Events
|
|
358
371
|
*/
|
|
359
|
-
interface ComponentMovedToRegionEvent extends WithBaseEvent, WithComponentId {
|
|
372
|
+
interface ComponentMovedToRegionEvent extends WithBaseEvent, WithComponentId, WithContentLinkUuid {
|
|
360
373
|
eventType: 'ComponentMovedToRegion';
|
|
361
374
|
/**
|
|
362
375
|
* The id of the component that comes before the insert component.
|
|
363
376
|
*/
|
|
364
377
|
beforeComponentId?: string;
|
|
365
378
|
/**
|
|
366
|
-
* The id of the component that comes
|
|
379
|
+
* The id of the component that comes after the insert component.
|
|
367
380
|
*/
|
|
368
381
|
afterComponentId?: string;
|
|
369
382
|
/**
|
|
@@ -393,7 +406,7 @@ interface ComponentMovedToRegionEvent extends WithBaseEvent, WithComponentId {
|
|
|
393
406
|
* @target isomorphic
|
|
394
407
|
* @group Events
|
|
395
408
|
*/
|
|
396
|
-
interface ComponentHoveredInEvent extends WithBaseEvent, WithComponentId {
|
|
409
|
+
interface ComponentHoveredInEvent extends WithBaseEvent, WithComponentId, WithContentLinkUuid {
|
|
397
410
|
eventType: 'ComponentHoveredIn';
|
|
398
411
|
}
|
|
399
412
|
/**
|
|
@@ -401,7 +414,7 @@ interface ComponentHoveredInEvent extends WithBaseEvent, WithComponentId {
|
|
|
401
414
|
* @target isomorphic
|
|
402
415
|
* @group Events
|
|
403
416
|
*/
|
|
404
|
-
interface ComponentHoveredOutEvent extends WithBaseEvent, WithComponentId {
|
|
417
|
+
interface ComponentHoveredOutEvent extends WithBaseEvent, WithComponentId, WithContentLinkUuid {
|
|
405
418
|
eventType: 'ComponentHoveredOut';
|
|
406
419
|
}
|
|
407
420
|
/**
|
|
@@ -409,7 +422,7 @@ interface ComponentHoveredOutEvent extends WithBaseEvent, WithComponentId {
|
|
|
409
422
|
* @target isomorphic
|
|
410
423
|
* @group Events
|
|
411
424
|
*/
|
|
412
|
-
interface ComponentSelectedEvent extends WithBaseEvent, WithComponentId {
|
|
425
|
+
interface ComponentSelectedEvent extends WithBaseEvent, WithComponentId, WithContentLinkUuid {
|
|
413
426
|
eventType: 'ComponentSelected';
|
|
414
427
|
}
|
|
415
428
|
/**
|
|
@@ -417,7 +430,7 @@ interface ComponentSelectedEvent extends WithBaseEvent, WithComponentId {
|
|
|
417
430
|
* @target isomorphic
|
|
418
431
|
* @group Events
|
|
419
432
|
*/
|
|
420
|
-
interface ComponentDeselectedEvent extends WithBaseEvent, WithComponentId {
|
|
433
|
+
interface ComponentDeselectedEvent extends WithBaseEvent, WithComponentId, WithContentLinkUuid {
|
|
421
434
|
eventType: 'ComponentDeselected';
|
|
422
435
|
}
|
|
423
436
|
/**
|
|
@@ -425,7 +438,7 @@ interface ComponentDeselectedEvent extends WithBaseEvent, WithComponentId {
|
|
|
425
438
|
* @target isomorphic
|
|
426
439
|
* @group Events
|
|
427
440
|
*/
|
|
428
|
-
interface ComponentDeletedEvent extends WithBaseEvent, WithComponentId {
|
|
441
|
+
interface ComponentDeletedEvent extends WithBaseEvent, WithComponentId, WithContentLinkUuid {
|
|
429
442
|
eventType: 'ComponentDeleted';
|
|
430
443
|
/**
|
|
431
444
|
* The id of the component that the component was deleted from.
|
|
@@ -442,7 +455,7 @@ interface ComponentDeletedEvent extends WithBaseEvent, WithComponentId {
|
|
|
442
455
|
* @target isomorphic
|
|
443
456
|
* @group Events
|
|
444
457
|
*/
|
|
445
|
-
interface ComponentAddedToRegionEvent<TProps extends Record<string, unknown> = Record<string, unknown>> extends WithBaseEvent {
|
|
458
|
+
interface ComponentAddedToRegionEvent<TProps extends Record<string, unknown> = Record<string, unknown>> extends WithBaseEvent, WithFragmentId {
|
|
446
459
|
eventType: 'ComponentAddedToRegion';
|
|
447
460
|
/**
|
|
448
461
|
* The specifier of the component to add.
|
|
@@ -476,7 +489,7 @@ interface ComponentAddedToRegionEvent<TProps extends Record<string, unknown> = R
|
|
|
476
489
|
*/
|
|
477
490
|
beforeComponentId?: string;
|
|
478
491
|
/**
|
|
479
|
-
* The id of the component that comes
|
|
492
|
+
* The id of the component that comes after the insert component.
|
|
480
493
|
*/
|
|
481
494
|
afterComponentId?: string;
|
|
482
495
|
}
|
|
@@ -485,7 +498,7 @@ interface ComponentAddedToRegionEvent<TProps extends Record<string, unknown> = R
|
|
|
485
498
|
* @target isomorphic
|
|
486
499
|
* @group Events
|
|
487
500
|
*/
|
|
488
|
-
interface ComponentDragStartedEvent extends WithBaseEvent {
|
|
501
|
+
interface ComponentDragStartedEvent extends WithBaseEvent, WithFragmentId {
|
|
489
502
|
eventType: 'ComponentDragStarted';
|
|
490
503
|
/**
|
|
491
504
|
* The type of the component that is being dragged.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/design/messaging-api/domain-types.ts","../src/design/messaging-api/api-types.ts","../src/design/messaging-api/client.ts","../src/design/messaging-api/host.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/design/messaging-api/domain-types.ts","../src/design/messaging-api/api-types.ts","../src/design/messaging-api/client.ts","../src/design/messaging-api/host.ts"],"sourcesContent":[],"mappings":";;;;UAwBU,aAAA,CA0EG;EAAM,SAAA,EAAA,MAAA;AAOnB;AAKA;AAkBA;AAUA;AA8DA;AAiBA,UAzLU,eAAA,CAyLmB;EAeZ;AAkBjB;AAiBA;EAUiB,WAAA,EAAA,MAAA;AASjB;AAUA,UAjQU,mBAAA,CAiQ6B;EAyBtB;AAQjB;;EAAmE,eAAA,EAAA,MAAA;;UA3RzD,iBAAA,CA2R4F;EAQrF;AAQjB;;EAAqE,aAAA,EAAA,MAAA;;UApS3D,cAAA,CAoS4F;EAQrF;;;;EACL,UAAA,CAAA,EAAA,MAAA;;;AAaZ;;;UA9SU,gBAAA,CA8SqE;EAAmB;AAWlG;;;EAAyF,CAAA,EAAA,MAAA;EAAa;AAStG;;;EAGc,CAAA,EAAA,MAAA;;A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