@salesforce/storefront-next-runtime 1.0.0-alpha.0 → 1.0.0-alpha.1

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.
Files changed (41) hide show
  1. package/dist/ComponentContext.js +199 -4
  2. package/dist/ComponentContext.js.map +1 -1
  3. package/dist/DesignComponent.js +2 -2
  4. package/dist/DesignRegion.js +2 -2
  5. package/dist/RegionContext.js +9 -0
  6. package/dist/RegionContext.js.map +1 -0
  7. package/dist/component.types.d.ts +1 -1
  8. package/dist/config.d.ts +6 -5
  9. package/dist/config.d.ts.map +1 -1
  10. package/dist/config.js +2 -1
  11. package/dist/config.js.map +1 -1
  12. package/dist/data-store.d.ts +3 -3
  13. package/dist/data-store.d.ts.map +1 -1
  14. package/dist/defaults.d.ts +106 -0
  15. package/dist/defaults.d.ts.map +1 -0
  16. package/dist/defaults.js +67 -0
  17. package/dist/defaults.js.map +1 -0
  18. package/dist/design-data.d.ts +10 -332
  19. package/dist/design-data.d.ts.map +1 -1
  20. package/dist/design-data.js +67 -23
  21. package/dist/design-data.js.map +1 -1
  22. package/dist/design-react-core.d.ts +5 -15
  23. package/dist/design-react-core.d.ts.map +1 -1
  24. package/dist/design-react-core.js +2 -2
  25. package/dist/design-react.d.ts +2 -2
  26. package/dist/design.d.ts +2 -2
  27. package/dist/scapi.d.ts.map +1 -1
  28. package/dist/security-react.d.ts +34 -0
  29. package/dist/security-react.d.ts.map +1 -0
  30. package/dist/security-react.js +21 -0
  31. package/dist/security-react.js.map +1 -0
  32. package/dist/security.d.ts +61 -0
  33. package/dist/security.d.ts.map +1 -0
  34. package/dist/security.js +304 -0
  35. package/dist/security.js.map +1 -0
  36. package/dist/site-context.d.ts +2 -2
  37. package/dist/types3.d.ts +1 -35
  38. package/dist/types3.d.ts.map +1 -1
  39. package/package.json +15 -2
  40. package/dist/DesignFrame.js +0 -204
  41. package/dist/DesignFrame.js.map +0 -1
@@ -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;;;;;AHsDoB,cGhDxB,gBHgD4B,EGhDZ,OAAA,CAAA,OHgDY,CGhDZ,oBHgDY,GAAA,IAAA,CAAA;AAAO,cG9CnC,mBH8CmC,EAAA,GAAA,GG9CT,oBH8CS,GAAA,IAAA;;;;;;;;;;AAtDmB;AAgCnE;AAEK,iBIlBW,mCJmBI,CAAA,MAID,CAAA,CAAA,SAAA,EItBJ,KAAA,CAAM,aJsBqB,CItBP,MJsBO,CAAA,CAAA,EAAA,CAAA,KAAA,EIrB/B,uBJqB+B,CIrBP,MJqBO,CAAA,EAAA,GIrBK,KAAA,CAAM,GAAA,CAAI,OJqBf;;;iBKjC1B,iDACJ,KAAA,CAAM,cAAc,kBACrB,qBAAqB,YAAY,KAAA,CAAM,GAAA,CAAI;;;KCH1C,+BAA+B,gBAAgB,QAAQ,yBAAyB;;;;;;KAOhF,mCACN,OAAA,CAAM,cAAc,UACpB,OAAA,CAAM,oBAAoB,OAAA,CAAM,cAAc;;;ALLpD;;AAEI,cKWS,YLXT,CAAA,MAAA,CAAA,YKWyC,gBLXzC,CKW0D,MLX1D,EKWkE,wBLXlE,CKW2F,MLX3F,CAAA,CAAA,CAAA;EAC+B;;;EAAoC,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
+ {"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/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;;;;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as useComponentContext, r as RegionContext, t as ComponentContext } from "./ComponentContext.js";
3
+ import { n as useRegionContext } from "./RegionContext.js";
4
4
  import React, { lazy } from "react";
5
5
  import { Fragment, jsx } from "react/jsx-runtime";
6
6
 
@@ -100,5 +100,5 @@ function createReactAdapter() {
100
100
  }
101
101
 
102
102
  //#endregion
103
- export { ComponentContext, PageDesignerPageMetadataProvider, PageDesignerProvider, RegionContext, createReactAdapter, createReactComponentDesignDecorator, createReactRegionDesignDecorator, useComponentContext, usePageDesignerMode, useRegionContext };
103
+ export { PageDesignerPageMetadataProvider, PageDesignerProvider, createReactAdapter, createReactComponentDesignDecorator, createReactRegionDesignDecorator, usePageDesignerMode, useRegionContext };
104
104
  //# sourceMappingURL=design-react-core.js.map
@@ -1,6 +1,6 @@
1
1
  import { r as ShopperExperience } from "./types2.js";
2
2
  import { S as ClientAcknowledgedEvent, l as EventPayload, r as ClientApi } from "./index.js";
3
- import { a as RegionDesignMetadata, i as RegionDecoratorProps, n as ComponentDesignMetadata, r as DefaultComponentConstructor, t as ComponentDecoratorProps } from "./component.types.js";
3
+ import { i as RegionDesignMetadata, n as ComponentDesignMetadata, t as ComponentDecoratorProps } from "./component.types.js";
4
4
  import React from "react";
5
5
 
6
6
  //#region src/design/react/context/DesignContext.d.ts
@@ -51,5 +51,5 @@ type PageDecoratorProps<TProps> = React.PropsWithChildren<{
51
51
  designMetadata?: PageDesignMetadata;
52
52
  } & TProps>;
53
53
  //#endregion
54
- export { type ComponentDecoratorProps, type ComponentDesignMetadata, type DefaultComponentConstructor, type DesignContextType, type PageDecoratorProps, type PageDesignMetadata, type RegionDecoratorProps, type RegionDesignMetadata, useDesignContext };
54
+ export { type ComponentDecoratorProps, type ComponentDesignMetadata, type PageDecoratorProps, type RegionDesignMetadata, useDesignContext };
55
55
  //# sourceMappingURL=design-react.d.ts.map
package/dist/design.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Entry, i as DesignMetadata, n as ComponentModule, o as FrameworkAdapter, r as ComponentRegistryOptions, s as LoaderNames, t as ComponentId } from "./types3.js";
1
+ import { a as LoaderNames, n as ComponentModule, r as ComponentRegistryOptions, t as ComponentId } from "./types3.js";
2
2
 
3
3
  //#region src/design/registry/registry.d.ts
4
4
 
@@ -106,5 +106,5 @@ declare class ComponentRegistry<TProps, TFrameworkComponent = unknown> {
106
106
  private buildFromLoadedModule;
107
107
  }
108
108
  //#endregion
109
- export { ComponentId, ComponentModule, ComponentRegistry, ComponentRegistryOptions, DesignMetadata, Entry, FrameworkAdapter, LoaderNames };
109
+ export { ComponentRegistry };
110
110
  //# sourceMappingURL=design.d.ts.map