@adobe/alloy 2.33.0 → 2.33.1-beta.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.
@@ -1,4 +1,6 @@
1
+ export function createCustomInstance({ components, ...options }?: {
2
+ components?: any[];
3
+ }): (commandName: string, options?: any) => Promise<any>;
1
4
  export function createInstance(options?: {}): (commandName: string, options?: any) => Promise<any>;
2
- import { createCustomInstance } from "@adobe/alloy-core";
5
+ export { allOptionalComponents as components };
3
6
  import * as allOptionalComponents from "./allOptionalComponents.js";
4
- export { createCustomInstance, allOptionalComponents as components };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.33.0",
3
+ "version": "2.33.1-beta.0",
4
4
  "description": "Adobe Experience Platform Web SDK",
5
5
  "type": "module",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -9,17 +9,20 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { createCustomInstance } from "@adobe/alloy-core";
12
+ import { createCustomInstance as createCoreCustomInstance } from "@adobe/alloy-core";
13
13
  import * as allOptionalComponents from "./allOptionalComponents.js";
14
14
  import * as allRequiredComponents from "./components/requiredComponentCreators.js";
15
15
 
16
- export { createCustomInstance };
16
+ export const createCustomInstance = ({ components = [], ...options } = {}) =>
17
+ createCoreCustomInstance({
18
+ ...options,
19
+ components: [...Object.values(allRequiredComponents), ...components],
20
+ });
21
+
17
22
  export const createInstance = (options = {}) =>
18
23
  createCustomInstance({
19
24
  ...options,
20
- components: [
21
- ...Object.values(allRequiredComponents),
22
- ...Object.values(allOptionalComponents),
23
- ],
25
+ components: Object.values(allOptionalComponents),
24
26
  });
27
+
25
28
  export { allOptionalComponents as components };