Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/PPPSYS-43233 server components support #20

Merged
merged 30 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ac72921
[PPPSYS-43233] packages update, deprecated ts config removed
lysy-vlc Oct 2, 2023
4224a7a
[PPPSYS-43233] container id prop as string if exists
lysy-vlc Oct 3, 2023
c2f0c3c
[PPPSYS-43233] example v12 - use container url instead of deprecated …
lysy-vlc Oct 3, 2023
a6246d0
[PPPSYS-43233] piwik pro provider render on client side
lysy-vlc Oct 3, 2023
8fb0faf
[PPPSYS-43233] scaffold next v13 examples
lysy-vlc Oct 3, 2023
f4637bd
[PPPSYS-43233] removed unused metadata
lysy-vlc Oct 3, 2023
b752b18
[PPPSYS-43233] Content tracking example added
lysy-vlc Oct 3, 2023
b7d21d6
[PPPSYS-43233] Content tracking buttons added in example
lysy-vlc Oct 3, 2023
5c739bf
[PPPSYS-43233] Content tracking uses imported types
lysy-vlc Oct 12, 2023
5ebb371
[PPPSYS-43233] Custom dimensions example added
lysy-vlc Oct 12, 2023
00e0a45
[PPPSYS-43233] Custom event example added
lysy-vlc Oct 12, 2023
27fa485
[PPPSYS-43233] Datalayer example added
lysy-vlc Oct 12, 2023
525c7ec
[PPPSYS-43233] Download and outlink example added
lysy-vlc Oct 12, 2023
a40d190
[PPPSYS-43233] Pages use NextPage type instead of react component
lysy-vlc Oct 12, 2023
191d684
[PPPSYS-43233] ecommerce example added
lysy-vlc Oct 12, 2023
1f2450e
[PPPSYS-43233] Goal conversion example added
lysy-vlc Oct 12, 2023
dc2e662
[PPPSYS-43233] Page views example added
lysy-vlc Oct 12, 2023
2bfbae4
[PPPSYS-43233] Site search example added
lysy-vlc Oct 12, 2023
6c0ac30
[PPPSYS-43233] User management example added
lysy-vlc Oct 12, 2023
155d87e
[PPPSYS-43233] env example, readme added
lysy-vlc Oct 12, 2023
38d56a5
[PPPSYS-43233] removed old examples (v12)
lysy-vlc Oct 13, 2023
4e1cc6f
[PPPSYS-43233] removed unused import in layout
lysy-vlc Oct 13, 2023
fcb27fa
[PPPSYS-43233] PageViewsButton as a client component
lysy-vlc Oct 13, 2023
f13ca5c
[PPPSYS-43233] test library added (jest)
lysy-vlc Oct 13, 2023
d5cf4aa
[PPPSYS-43233] examples moved up of the url sections
lysy-vlc Oct 13, 2023
ac28eee
[PPPSYS-43233] added testing library to package.json
lysy-vlc Oct 13, 2023
d0c3bdf
[PPPSYS-43233] added testing library to package.json
lysy-vlc Oct 13, 2023
699983d
[PPPSYS-43233] added testing snapshots to gitignore
lysy-vlc Oct 13, 2023
8896790
[PPPSYS-43233] update snapshot test files
lysy-vlc Oct 13, 2023
51812b9
[PPPSYS-43233] update changelog
lysy-vlc Oct 16, 2023
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# CHANGELOG

* [2.0.0](#2.0.0)
* [1.0.1](#1.0.1)
* [1.0.0](#1.0.0)

## 2.0.0

Support for Next > 13.0.0. New examples how to use added.

## 1.0.1

Added 'container-url' parameter

## 1.0.0
Expand Down
2 changes: 2 additions & 0 deletions example/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_CONTAINER_URL=
NEXT_PUBLIC_CONTAINER_ID=
2 changes: 0 additions & 2 deletions example/.env.local

This file was deleted.

3 changes: 3 additions & 0 deletions example/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
19 changes: 18 additions & 1 deletion example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
/__tests__/snapshots/

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
.env*
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
5 changes: 3 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Example project with usage of Piwik PRO Library for Next.js

Dedicated Piwik PRO library that helps with implementing Piwik PRO Tag Manager and the Piwik PRO tracking client in Next.js applications.
Dedicated Piwik PRO library that helps with implementing Piwik PRO Tag Manager and the Piwik PRO tracking client in
Next.js applications.

- [Installation](#installation)
- [Configuration](#configuration)
- [Run](#project-run)
- [Run](#run)

## Installation

Expand Down
77 changes: 0 additions & 77 deletions example/__test__/__snapshots__/snapshot.test.tsx.snap

This file was deleted.

60 changes: 0 additions & 60 deletions example/__test__/examples/DataLayer.test.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions example/__test__/index.test.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions example/__test__/snapshot.test.tsx

This file was deleted.

7 changes: 7 additions & 0 deletions example/__tests__/index-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {render} from '@testing-library/react'
import IndexPage from '@/app/page.tsx'

it('renders homepage unchanged', () => {
const {container} = render(<IndexPage/>)
expect(container).toMatchSnapshot()
})
Loading
Loading