Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions assets/build/block-rtl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*!***************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/blocks/TableOfContents/editor.scss ***!
\***************************************************************************************************************************************************************************************************************************************************************/
/**
* The following styles get applied inside the editor only.
*/
.wp-block-wedocs-table-of-contents .toc-mobile-notice {
background-color: rgba(0, 115, 170, 0.1);
padding: 5px 10px;
border-radius: 3px;
border-right: 3px solid #0073aa;
color: #0073aa;
font-size: 12px;
}
.wp-block-wedocs-table-of-contents .toc-content .toc-list li a {
cursor: default;
}
.wp-block-wedocs-table-of-contents .toc-content .toc-list li a:hover {
color: #0073aa;
}
2 changes: 1 addition & 1 deletion assets/build/block.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '5c13835270f8b2070a23');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '7538b3e8f8a29fdf8862');
22 changes: 22 additions & 0 deletions assets/build/block.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/build/block.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4,722 changes: 4,721 additions & 1 deletion assets/build/block.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/build/block.js.map

Large diffs are not rendered by default.

333 changes: 333 additions & 0 deletions assets/build/blocks/AdvanceContributors/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "wedocs/contributors",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Critical: Potential block name collision.

The block name is wedocs/contributors (line 4), which may conflict with another Contributors block mentioned in the AI summary (assets/build/blocks/Contributors/block.json). Each block must have a unique name in WordPress.

Verify whether there's a naming conflict:

If both blocks are intended to be separate, one should be renamed (e.g., wedocs/advance-contributors vs wedocs/contributors).


🏁 Script executed:

#!/bin/bash
echo "=== Searching for block registrations with 'wedocs/contributors' ==="
rg -n "wedocs/contributors" --type=json --type=js --type=php

echo -e "\n=== Listing all block.json files and their names ==="
fd -e json block.json -x sh -c 'echo "File: {}"; jq -r ".name" {}'

echo -e "\n=== Checking for duplicate block names ==="
fd -e json block.json -x jq -r ".name" {} | sort | uniq -d

Length of output: 15571


Rename AdvanceContributors block name: Change the block name in src/blocks/AdvanceContributors/block.json and assets/build/blocks/AdvanceContributors/block.json from wedocs/contributors to wedocs/advance-contributors to avoid collision with the existing Contributors block.

🤖 Prompt for AI Agents
In assets/build/blocks/AdvanceContributors/block.json around line 4 (and
likewise update src/blocks/AdvanceContributors/block.json), the block "name" is
currently "wedocs/contributors" which collides with the existing Contributors
block; change the "name" value to "wedocs/advance-contributors" in both JSON
files, ensure the JSON remains valid (commas/quotes intact), and verify any
references/imports/registration code use the new slug so the build and block
registration remain consistent.

"version": "1.0.0",
"title": "Doc Contributors",
"icon": "groups",
"category": "widgets",
"description": "Display the author(s)/contributors of a doc along with the last updated date.",
"supports": {
"html": false
},
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css",
"render": "file:./render.php",
"attributes": {
"showTitle": {
"type": "boolean",
"default": true
},
"title": {
"type": "string",
"default": "Contributors"
},
"contributorDisplayMode": {
"type": "string",
"default": "all",
"enum": [
"all",
"manual",
"main_author"
]
},
"selectedContributors": {
"type": "array",
"default": []
},
"showLastUpdated": {
"type": "boolean",
"default": true
},
"dateFormat": {
"type": "string",
"default": "wp_default"
},
"customDateFormat": {
"type": "string",
"default": "F j, Y"
},
"datePrefix": {
"type": "string",
"default": "Updated on"
},
"showAvatar": {
"type": "boolean",
"default": true
},
"avatarType": {
"type": "string",
"default": "user_avatar",
"enum": [
"user_avatar",
"common_icon"
]
},
"avatarShape": {
"type": "string",
"default": "circle",
"enum": [
"circle",
"rounded",
"square"
]
},
"avatarHoverEffect": {
"type": "boolean",
"default": false
},
"additionalCssClass": {
"type": "string",
"default": ""
},
"enableSchema": {
"type": "boolean",
"default": false
},
"linkBehavior": {
"type": "string",
"default": "user_profile",
"enum": [
"user_profile",
"no_link",
"custom_link"
]
},
"customLinkUrl": {
"type": "string",
"default": ""
},
"contributorGap": {
"type": "string",
"default": "10px"
},
"typographyControls": {
"type": "object",
"default": {
"desktop": {
"fontFamily": null,
"fontSize": null,
"fontAppearance": null,
"lineHeight": null,
"letterSpacing": null,
"textDecoration": null,
"textTransform": null
},
"tablet": {
"fontFamily": null,
"fontSize": null,
"fontAppearance": null,
"lineHeight": null,
"letterSpacing": null,
"textDecoration": null,
"textTransform": null
},
"mobile": {
"fontFamily": null,
"fontSize": null,
"fontAppearance": null,
"lineHeight": null,
"letterSpacing": null,
"textDecoration": null,
"textTransform": null
}
}
},
"colorsControls": {
"type": "object",
"default": {
"desktop": {
"textColor": "#333333",
"backgroundColor": "#f9f9f9",
"linkColor": "#0073aa",
"linkHoverColor": "#005177"
},
"tablet": {
"textColor": null,
"backgroundColor": null,
"linkColor": null,
"linkHoverColor": null
},
"mobile": {
"textColor": null,
"backgroundColor": null,
"linkColor": null,
"linkHoverColor": null
}
}
},
"dimensionsControls": {
"type": "object",
"default": {
"desktop": {
"width": null,
"minWidth": null,
"maxWidth": null,
"height": null,
"minHeight": null,
"maxHeight": null,
"padding": {
"top": "15px",
"right": "15px",
"bottom": "15px",
"left": "15px"
},
"margin": {
"top": "10px",
"right": "0px",
"bottom": "10px",
"left": "0px"
},
"blockSpacing": {
"horizontal": null,
"vertical": null
}
},
"tablet": {
"width": null,
"minWidth": null,
"maxWidth": null,
"height": null,
"minHeight": null,
"maxHeight": null,
"padding": null,
"margin": null,
"blockSpacing": null
},
"mobile": {
"width": null,
"minWidth": null,
"maxWidth": null,
"height": null,
"minHeight": null,
"maxHeight": null,
"padding": null,
"margin": null,
"blockSpacing": null
}
}
},
"alignmentControls": {
"type": "object",
"default": {
"desktop": {
"textAlign": null,
"alignItems": "center",
"justifyContent": "flex-start",
"direction": "row"
},
"tablet": {
"textAlign": null,
"alignItems": null,
"justifyContent": null,
"direction": null
},
"mobile": {
"textAlign": null,
"alignItems": null,
"justifyContent": null,
"direction": null
}
}
},
"backgroundImageControls": {
"type": "object",
"default": {
"desktop": {
"bgUrl": null,
"bgId": null,
"bgFocalPoint": null,
"bgFixed": null,
"bgSize": "cover",
"bgWidth": "auto",
"bgRepeat": false
},
"tablet": {
"bgUrl": null,
"bgId": null,
"bgFocalPoint": null,
"bgFixed": null,
"bgSize": null,
"bgWidth": null,
"bgRepeat": null
},
"mobile": {
"bgUrl": null,
"bgId": null,
"bgFocalPoint": null,
"bgFixed": null,
"bgSize": null,
"bgWidth": null,
"bgRepeat": null
}
}
},
"borderAndShadowControls": {
"type": "object",
"default": {
"desktop": {
"borderStyle": "solid",
"borderWidth": {
"top": "1px",
"right": "1px",
"bottom": "1px",
"left": "1px"
},
"borderColor": "#dddddd",
"borderRadius": {
"topLeft": "4px",
"topRight": "4px",
"bottomLeft": "4px",
"bottomRight": "4px"
},
"boxShadow": {
"enabled": false,
"horizontal": "0px",
"vertical": "2px",
"blur": "4px",
"spread": "0px",
"color": "rgba(0,0,0,0.1)"
}
},
"tablet": {
"borderStyle": null,
"borderWidth": null,
"borderColor": null,
"borderRadius": null,
"boxShadow": null
},
"mobile": {
"borderStyle": null,
"borderWidth": null,
"borderColor": null,
"borderRadius": null,
"boxShadow": null
}
}
},
"displayControls": {
"type": "object",
"default": {
"desktop": {
"display": "block",
"visibility": "visible",
"overflow": "visible",
"zIndex": null
},
"tablet": {
"display": null,
"visibility": null,
"overflow": null,
"zIndex": null
},
"mobile": {
"display": null,
"visibility": null,
"overflow": null,
"zIndex": null
}
}
}
}
}
1 change: 1 addition & 0 deletions assets/build/blocks/AdvanceContributors/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '97793add38006e81f8ac');
Loading