@ideasonpurpose/wp-theme-addons 0.3.0 → 0.3.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.
- package/README.md +13 -1
- package/index.d.ts +30 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# WordPress Theme Addons
|
|
2
2
|
|
|
3
|
-
#### Version 0.3.
|
|
3
|
+
#### Version 0.3.1
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@ideasonpurpose/wp-theme-addons)
|
|
6
6
|
[](https://packagist.org/packages/ideasonpurpose/wp-theme-addons)
|
|
@@ -170,3 +170,15 @@ graph TD
|
|
|
170
170
|
- **npm** reads `package.json` → installs to `node_modules/` → JS/SCSS imports resolve via `@ideasonpurpose/wp-theme-addons`
|
|
171
171
|
- **Composer** reads `composer.json` → installs to `vendor/` → PHP classes autoload via PSR-4
|
|
172
172
|
- No conflicts: separate config files, separate dependency directories, separate language ecosystems.
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<!-- START IOP CREDIT BLURB 2026-07-->
|
|
176
|
+
|
|
177
|
+
##
|
|
178
|
+
|
|
179
|
+
#### Brought to you by IOP
|
|
180
|
+
|
|
181
|
+
| <a href="https://www.ideasonpurpose.com"><img src="https://raw.githubusercontent.com/ideasonpurpose/ideasonpurpose/master/iop-logo-white-on-black-88px.png" width="44" height="44" align="top" alt="IOP Logo"></a> <br> | This project is actively developed and used in production at <a href="https://www.ideasonpurpose.com">Ideas On Purpose</a>. <br> |
|
|
182
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
183
|
+
|
|
184
|
+
<!-- END IOP CREDIT BLURB -->
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare module "@ideasonpurpose/wp-theme-addons" {
|
|
2
|
+
interface WP_Post_Type {
|
|
3
|
+
slug: string;
|
|
4
|
+
name: string;
|
|
5
|
+
viewable: boolean;
|
|
6
|
+
taxonomies: string[];
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface WP_Taxonomy {
|
|
11
|
+
slug: string;
|
|
12
|
+
name: string;
|
|
13
|
+
visibility: {
|
|
14
|
+
publicly_queryable: boolean;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
labels: {
|
|
18
|
+
singular_name: string;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function usePublicPostTypes(): WP_Post_Type[] | undefined;
|
|
25
|
+
export function usePublicTaxonomies(): WP_Taxonomy[] | undefined;
|
|
26
|
+
|
|
27
|
+
export function initLinkedGroupBlock(): void;
|
|
28
|
+
export function initRelatedPostsQueryBlock(): void;
|
|
29
|
+
export function initCssLocalProps(blockNames?: string[]): void;
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ideasonpurpose/wp-theme-addons",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "WordPress Block Editor add-ons — JavaScript blocks, utilities, and PHP components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wordpress",
|
|
@@ -28,11 +28,13 @@
|
|
|
28
28
|
"type": "module",
|
|
29
29
|
"exports": "./index.js",
|
|
30
30
|
"main": "index.js",
|
|
31
|
+
"types": "index.d.ts",
|
|
31
32
|
"directories": {
|
|
32
33
|
"lib": "lib"
|
|
33
34
|
},
|
|
34
35
|
"files": [
|
|
35
36
|
"index.js",
|
|
37
|
+
"index.d.ts",
|
|
36
38
|
"lib",
|
|
37
39
|
"editor",
|
|
38
40
|
"CssLocalProps",
|