@plaudit/webpack-extensions 2.67.0 → 2.68.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.
|
@@ -30,6 +30,7 @@ class PlainEntrypointsConfigFileGeneratorPlugin extends AbstractBiPhasicGroupAnd
|
|
|
30
30
|
register: [],
|
|
31
31
|
clientView: [],
|
|
32
32
|
clientEditor: [],
|
|
33
|
+
blockAssets: [],
|
|
33
34
|
admin: [],
|
|
34
35
|
login: [],
|
|
35
36
|
customizer: [],
|
|
@@ -129,7 +130,7 @@ class PlainEntrypointsConfigFileGeneratorPlugin extends AbstractBiPhasicGroupAnd
|
|
|
129
130
|
}
|
|
130
131
|
static appendEnqueuingHandleLists(writer, handleLists) {
|
|
131
132
|
const enqueuingHandleActions = [
|
|
132
|
-
["wp_enqueue_scripts", handleLists.clientView], ["enqueue_block_editor_assets", handleLists.clientEditor], ["admin_enqueue_scripts", handleLists.admin],
|
|
133
|
+
["wp_enqueue_scripts", handleLists.clientView], ["enqueue_block_editor_assets", handleLists.clientEditor], ["enqueue_block_assets", handleLists.blockAssets], ["admin_enqueue_scripts", handleLists.admin],
|
|
133
134
|
["login_enqueue_scripts", handleLists.login], ["customize_controls_enqueue_scripts", handleLists.customizer], ["plaudit_enqueue_analytics", handleLists.analytics]
|
|
134
135
|
];
|
|
135
136
|
for (const [action, handleList] of enqueuingHandleActions) {
|
package/build/shared.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type HandleData = {
|
|
|
14
14
|
in_footer?: boolean;
|
|
15
15
|
} | boolean];
|
|
16
16
|
};
|
|
17
|
-
export declare const standardLocationNames: readonly ["clientView", "clientEditor", "admin", "login", "customizer", "analytics"];
|
|
17
|
+
export declare const standardLocationNames: readonly ["clientView", "clientEditor", "blockAssets", "admin", "login", "customizer", "analytics"];
|
|
18
18
|
export type StandardLocationNames = typeof standardLocationNames[number];
|
|
19
19
|
export type UsageLocations = {
|
|
20
20
|
[K in StandardLocationNames]?: boolean | number;
|
package/build/shared.js
CHANGED
|
@@ -39,7 +39,7 @@ function isParsedAssetsJson(thing) {
|
|
|
39
39
|
}
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
|
-
exports.standardLocationNames = ['clientView', 'clientEditor', 'admin', 'login', 'customizer', 'analytics'];
|
|
42
|
+
exports.standardLocationNames = ['clientView', 'clientEditor', 'blockAssets', 'admin', 'login', 'customizer', 'analytics'];
|
|
43
43
|
function determineCurrentSourceType(dest, srcIsDirectory) {
|
|
44
44
|
if (typeof dest === 'string') {
|
|
45
45
|
return srcIsDirectory ? "blocks" /* SourceType.blocks */ : "plain" /* SourceType.plain */;
|