Skip to content

Commit b17f643

Browse files
committed
Merge branch 'develop' of https://github.com/rtCamp/core-carousel into fix/carousel-loop-spacing
2 parents d15e11a + e0c8352 commit b17f643

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+497
-510
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"parserOptions": {
3737
"ecmaFeatures": { "jsx": true },
3838
"sourceType": "module",
39-
"project": "./tsconfig.json"
39+
"project": ["./tsconfig.json", "./tests/js/tsconfig.json"]
4040
},
4141
"plugins": ["@typescript-eslint"],
4242
"rules": {

.github/workflows/release.yml

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,22 @@ jobs:
3434
- name: Build Plugin ZIP
3535
run: make zip
3636

37-
- name: Create Release and Upload Asset
38-
uses: softprops/action-gh-release@v1
39-
with:
40-
tag_name: v${{ steps.get_version.outputs.VERSION }}
41-
name: v${{ steps.get_version.outputs.VERSION }}
42-
generate_release_notes: true
43-
files: core-carousel.zip
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
47-
- name: Prepare Distribution Bundle
48-
run: |
49-
mkdir dist-bundle
50-
cp core-carousel.zip dist-bundle/
51-
52-
- name: Deploy to Dist Branch
53-
uses: s0/git-publish-subdir-action@develop
54-
env:
55-
REPO: self
56-
BRANCH: dist
57-
FOLDER: dist-bundle
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
MESSAGE: "chore: distribution build v${{ steps.get_version.outputs.VERSION }}"
60-
SKIP_EMPTY_COMMITS: true
37+
- name: Create Release and Upload Asset
38+
39+
uses: softprops/action-gh-release@v1
40+
41+
with:
42+
43+
tag_name: v${{ steps.get_version.outputs.VERSION }}
44+
45+
name: v${{ steps.get_version.outputs.VERSION }}
46+
47+
generate_release_notes: true
48+
49+
files: core-carousel.zip
50+
51+
env:
52+
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
55+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ phpstan.neon
3636
# Build
3737
build/
3838
tsconfig.tsbuildinfo
39-
core-carousel.zip
39+
carousel-kit.zip

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ npm run test:actions
6969
## Directory Structure
7070

7171
- `src/` - Source code for blocks (React/TypeScript/SCSS).
72-
- `inc/` - PHP classes and traits (PSR-4 `Core_Carousel`).
72+
- `inc/` - PHP classes and traits (PSR-4 `Carousel_Kit`).
7373
- `build/` - Compiled assets (generated by `npm run build`).
7474
- `docs/` - Documentation files.
7575
- `examples/` - Block patterns and examples.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Configuration
2-
PLUGIN_SLUG := core-carousel
2+
PLUGIN_SLUG := carousel-kit
33
PLUGIN_VERSION := 1.0.0
44
BUILD_DIR := build-dist
55
ZIP_NAME := $(PLUGIN_SLUG).zip

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Core Carousel
1+
# Carousel Kit
22

3-
![Build Status](https://github.com/rtCamp/core-carousel/actions/workflows/release.yml/badge.svg?branch=main)
4-
![Latest Release](https://img.shields.io/github/v/release/rtCamp/core-carousel)
3+
![Build Status](https://github.com/rtCamp/carousel-kit/actions/workflows/release.yml/badge.svg?branch=main)
4+
![Latest Release](https://img.shields.io/github/v/release/rtCamp/carousel-kit)
55

66
**A modular, high-performance carousel block for WordPress, powered by the Interactivity API and Embla Carousel.**
77

@@ -28,7 +28,7 @@ Easily create dynamic, accessible, and customizable carousels for any content ty
2828
2929
## Browser Support
3030

31-
Core Carousel supports all modern browsers:
31+
Carousel Kit supports all modern browsers:
3232

3333
| Browser | Minimum Version |
3434
|---------|-----------------|
@@ -77,7 +77,7 @@ The plugin provides a suite of blocks that work together:
7777

7878
### Does it work with Full Site Editing (FSE)?
7979

80-
Yes! Core Carousel is fully compatible with Full Site Editing. You can use the carousel block in templates, template parts, and anywhere blocks are supported.
80+
Yes! Carousel Kit is fully compatible with Full Site Editing. You can use the carousel block in templates, template parts, and anywhere blocks are supported.
8181

8282
### Can I nest other blocks inside slides?
8383

@@ -125,11 +125,11 @@ Planned features for upcoming releases:
125125
- [ ] **Breakpoint-specific settings** — Different slides per view at different screen sizes
126126
- [ ] **Additional patterns** — More pre-built carousel patterns
127127

128-
Have a feature request? [Open an issue](https://github.com/rtCamp/core-carousel/issues) on GitHub.
128+
Have a feature request? [Open an issue](https://github.com/rtCamp/carousel-kit/issues) on GitHub.
129129

130130
## Live Demo
131131

132-
[**🚀 Try the Interactive Demo in WordPress Playground**](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/rtCamp/core-carousel/main/blueprint.json)
132+
[**🚀 Try the Interactive Demo in WordPress Playground**](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/rtCamp/carousel-kit/main/blueprint.json)
133133

134134
## Contributors
135135

blueprint.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,29 @@
44
"php": "8.2",
55
"wp": "latest"
66
},
7-
"landingPage": "/core-carousel",
7+
"landingPage": "/carousel-kit",
88
"steps": [
99
{
1010
"step": "installPlugin",
1111
"pluginData": {
1212
"resource": "url",
13-
"url": "https://cdn.statically.io/gh/rtCamp/core-carousel@dist/core-carousel.zip"
13+
"url": "https://github.com/rtCamp/core-carousel/releases/latest/download/core-carousel.zip"
1414
}
1515
},
1616
{
1717
"step": "login",
18-
"username": "admin",
19-
"password": "password"
18+
"username": "admin"
2019
},
2120
{
2221
"step": "importWxr",
2322
"file": {
2423
"resource": "url",
25-
"url": "https://raw.githubusercontent.com/rtCamp/core-carousel/main/examples/data/core-carousel.xml"
24+
"url": "https://raw.githubusercontent.com/rtCamp/carousel-kit/main/examples/data/carousel-kit.xml"
2625
}
2726
},
2827
{
2928
"step": "runPHP",
30-
"code": "<?php require_once 'wordpress/wp-load.php'; $posts = get_posts(['post_type'=>'page', 'title'=>'Core Carousel Interactive Demo']); if($posts) { update_option('show_on_front', 'page'); update_option('page_on_front', $posts[0]->ID); }"
29+
"code": "<?php require_once 'wordpress/wp-load.php'; $posts = get_posts(['post_type'=>'page', 'title'=>'Carousel Kit Interactive Demo']); if($posts) { update_option('show_on_front', 'page'); update_option('page_on_front', $posts[0]->ID); }"
3130
}
3231
]
3332
}

carousel-kit.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* Plugin Name: Carousel Kit
4+
* Description: Carousel block using Embla and WordPress Interactivity API.
5+
* Plugin URI: https://github.com/rtCamp/carousel-kit
6+
* Requires at least: 6.5
7+
* Requires PHP: 7.4
8+
* Author: rtCamp
9+
* Author URI: https://rtcamp.com
10+
* Contributors: iamdanih17, immasud
11+
* License: GPL2
12+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
13+
* Version: 1.0.0
14+
* Text Domain: carousel-kit
15+
*
16+
* @package carousel-kit
17+
*/
18+
19+
define( 'CAROUSEL_KIT_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
20+
define( 'CAROUSEL_KIT_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
21+
define( 'CAROUSEL_KIT_BUILD_PATH', CAROUSEL_KIT_PATH . '/build' );
22+
define( 'CAROUSEL_KIT_BUILD_URL', CAROUSEL_KIT_URL . '/build' );
23+
24+
require_once CAROUSEL_KIT_PATH . '/vendor/autoload.php';
25+
26+
/**
27+
* Plugin loader.
28+
*/
29+
function carousel_kit_loader() {
30+
\Carousel_Kit\Plugin::get_instance();
31+
}
32+
33+
carousel_kit_loader();

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "rtcamp/core-carousel",
2+
"name": "rtcamp/carousel-kit",
33
"type": "wordpress-plugin",
44
"config": {
55
"allow-plugins": {
@@ -54,12 +54,12 @@
5454
},
5555
"autoload": {
5656
"psr-4": {
57-
"Core_Carousel\\": "inc/"
57+
"Carousel_Kit\\": "inc/"
5858
}
5959
},
6060
"autoload-dev": {
6161
"psr-4": {
62-
"Core_Carousel\\Tests\\": "tests/php/"
62+
"Carousel_Kit\\Tests\\": "tests/php/"
6363
}
6464
},
6565
"scripts": {

core-carousel.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)