@plaudit/webpack-extensions 2.66.6 → 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) {
@@ -73,15 +73,12 @@ function postcssConfigBuilder(verbose, variables, postCSSFunctions) {
73
73
  require("postcss-mixins")(), // There is a PostCSS 8 version, but we're forced to use the old one because the new one uses AtRule, which is too late in the process
74
74
  require("@plaudit/postcss-variables")({ variables }), // Once
75
75
  require("postcss-functions")({ functions: { ...makeDefaultPostCSSFunctions(variables), ...postCSSFunctions(variables) } }),
76
- require("postcss-quantity-queries")(), // Legacy
77
76
  require("@plaudit/postcss-legacy-shorthand/position")(), // Legacy
78
77
  require("@plaudit/postcss-legacy-shorthand/size")(), // Legacy
79
78
  require("@plaudit/postcss-legacy-shorthand/spacing")(), // Legacy
80
- require("postcss-fallback")(), // Legacy
81
79
  require("postcss-property-lookup")({ logLevel: "warn" }), // Rule
82
80
  require("@plaudit/postcss-strip-units")(), // AtRule, Declaration
83
81
  require("postcss-media-minmax")(), // AtRule
84
- require("postcss-inline-svg")(), // AtRule
85
82
  require("postcss-nested")(), // Rule
86
83
  require("postcss-url")(),
87
84
  require("postcss-calc")(calcOptions), // OnceExit
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 */;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.66.6",
3
+ "version": "2.68.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "files": [
6
6
  "/build"
@@ -48,15 +48,12 @@
48
48
  "postcss": "^8.5.6",
49
49
  "postcss-calc": "^9.0.1",
50
50
  "postcss-discard-comments": "^6.0.2",
51
- "postcss-fallback": "^0.1.0",
52
51
  "postcss-functions": "^4.0.2",
53
52
  "postcss-import": "^16.1.1",
54
- "postcss-inline-svg": "^6.0.0",
55
53
  "postcss-media-minmax": "^5.0.0",
56
54
  "postcss-mixins": "6.2.3",
57
55
  "postcss-nested": "^6.2.0",
58
56
  "postcss-property-lookup": "^3.0.0",
59
- "postcss-quantity-queries": "^0.5.0",
60
57
  "postcss-reporter": "^7.1.0",
61
58
  "postcss-simple-vars": "^7.0.1",
62
59
  "postcss-url": "^10.1.3",