Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prismicio/slice-machine
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: slice-machine-ui@2.12.0
Choose a base ref
...
head repository: prismicio/slice-machine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 7 commits
  • 33 files changed
  • 3 contributors

Commits on Jan 14, 2025

  1. chore: update api endpoints (#1379)

    xrutayisire authored Jan 14, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ab744f5 View commit details

Commits on Jan 15, 2025

  1. chore(deps): ⬆️ @radix-ui/react-visually-hidden@1.1.1 (#1529)

    jomifepe authored Jan 15, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c4e32e6 View commit details
  2. release: 9 new packages

    jomifepe committed Jan 15, 2025
    Copy the full SHA
    66352b6 View commit details

Commits on Jan 16, 2025

  1. feat: track field update (#1530)

    xrutayisire authored Jan 16, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0619073 View commit details

Commits on Jan 17, 2025

  1. fix: use caret for ts-codegen in plugin-kit & use github actions v4 (#…

    xrutayisire authored Jan 17, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5dddb79 View commit details
  2. ci: skip failing test on windows (#1532)

    xrutayisire authored Jan 17, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1e46537 View commit details
  3. release: 9 new packages

    xrutayisire committed Jan 17, 2025
    Copy the full SHA
    7b64c1a View commit details
Showing with 343 additions and 211 deletions.
  1. +3 −3 .github/actions/restore-cache/action.yml
  2. +1 −1 .github/actions/setup-node/action.yml
  3. +20 −16 .github/workflows/ci.yml
  4. +1 −1 .github/workflows/publish-stable.yml
  5. +1 −1 .github/workflows/publish-unstable.yml
  6. +1 −1 packages/adapter-next/package.json
  7. +1 −1 packages/adapter-nuxt/package.json
  8. +1 −1 packages/adapter-nuxt2/package.json
  9. +1 −1 packages/adapter-sveltekit/package.json
  10. +1 −1 packages/init/package.json
  11. +114 −109 packages/init/test/SliceMachineInitProcess-beginCoreDependenciesInstallation.test.ts
  12. +1 −3 packages/init/test/__testutils__/mockAWSACLAPI.ts
  13. +1 −1 packages/manager/package.json
  14. +4 −7 packages/manager/src/constants/API_ENDPOINTS.ts
  15. +3 −4 packages/manager/src/managers/prismicRepository/PrismicRepositoryManager.ts
  16. +1 −1 packages/manager/src/managers/prismicRepository/types.ts
  17. +19 −0 packages/manager/src/managers/telemetry/types.ts
  18. +1 −2 packages/manager/test/SliceMachineManager-getState.test.ts
  19. +10 −10 packages/manager/test/SliceMachineManager-prismicRepository-pushChanges.test.ts
  20. +1 −3 packages/manager/test/__testutils__/mockAWSACLAPI.ts
  21. +0 −7 packages/manager/test/__testutils__/mockCustomTypesAPI.ts
  22. +7 −0 packages/manager/test/__testutils__/mockSliceMachineAPI.ts
  23. +2 −2 packages/plugin-kit/package.json
  24. +2 −2 packages/slice-machine/package.json
  25. +16 −3 packages/slice-machine/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx
  26. +13 −4 packages/slice-machine/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx
  27. +13 −2 packages/slice-machine/src/legacy/lib/models/common/widgets/Group/ListItem/index.jsx
  28. +2 −2 packages/slice-machine/src/legacy/lib/models/common/widgets/Group/index.tsx
  29. +37 −0 packages/slice-machine/src/utils/tracking/trackFieldUpdated.ts
  30. +1 −3 packages/slice-machine/test/__testutils__/mockAWSACLAPI.ts
  31. +1 −2 packages/slice-machine/test/src/modules/__fixtures__/serverState.ts
  32. +1 −1 packages/start-slicemachine/package.json
  33. +62 −16 yarn.lock
6 changes: 3 additions & 3 deletions .github/actions/restore-cache/action.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ runs:
steps:
- name: Cache node_modules
id: cache-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
node_modules
@@ -14,15 +14,15 @@ runs:
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-dependencies
- name: Cache artifacts
id: cache-artifacts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
packages/*/dist
packages/core/build
key: ${{ runner.os }}-${{ github.run_id }}-artifacts
- name: Cache playwright binaries
id: cache-playwright-binaries
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/ms-playwright
2 changes: 1 addition & 1 deletion .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ runs:
using: composite
steps:
- name: Use Node.js LTS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: yarn
node-version: lts/*
36 changes: 20 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache node_modules and artifacts
uses: ./.github/actions/restore-cache
@@ -25,7 +25,7 @@ jobs:
runs-on: [windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache node_modules and artifacts
uses: ./.github/actions/restore-cache
@@ -44,7 +44,7 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Restore cache
uses: ./.github/actions/restore-cache
@@ -76,7 +76,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Restore cache
uses: ./.github/actions/restore-cache
@@ -121,6 +121,8 @@ jobs:
packages-win32:
needs: prepare-win32
runs-on: [windows-latest]
env:
WIN32: true
strategy:
fail-fast: false
matrix:
@@ -139,7 +141,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Restore cache
uses: ./.github/actions/restore-cache
@@ -165,10 +167,11 @@ jobs:
strategy:
fail-fast: false
matrix:
shard: [1/8, 2/8, 3/8, 4/8, 5/8, 6/8, 7/8, 8/8]
shardIndex: [1, 2, 3, 4, 5, 6, 7, 8]
shardTotal: [8]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Restore cache
uses: ./.github/actions/restore-cache
@@ -187,25 +190,25 @@ jobs:
echo "telemetry=false" > ./e2e-projects/next/.prismicrc
- name: Running E2E tests
run: yarn test:e2e --shard ${{ matrix.shard }}
run: yarn test:e2e --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
env:
DEBUG: pw:test

- name: Upload blob report to GitHub Actions Artifacts
uses: actions/upload-artifact@v3
if: always()
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: e2e-all-blob-reports
name: e2e-blob-report-${{ matrix.shardIndex }}
path: playwright/blob-report
retention-days: 1

e2e-merge-reports:
needs: e2e
runs-on: ubuntu-latest
if: always()
if: ${{ !cancelled() }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Restore cache
uses: ./.github/actions/restore-cache
@@ -214,16 +217,17 @@ jobs:
uses: ./.github/actions/setup-node

- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: e2e-all-blob-reports
path: playwright/e2e-all-blob-reports
pattern: e2e-blob-report-*
merge-multiple: true

- name: Merge into HTML Report
run: yarn test:e2e:merge-reports --reporter html ./e2e-all-blob-reports

- name: Upload HTML report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright/playwright-report
2 changes: 1 addition & 1 deletion .github/workflows/publish-stable.yml
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Use Node.js
uses: ./.github/actions/setup-node
- name: Install dependencies
2 changes: 1 addition & 1 deletion .github/workflows/publish-unstable.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
if: ${{ !startsWith(github.event.head_commit.message, 'release:') && !github.event.pull_request.draft }}
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref || github.ref }}
2 changes: 1 addition & 1 deletion packages/adapter-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/adapter-next",
"version": "0.3.62",
"version": "0.3.64",
"description": "Slice Machine adapter for Next.js.",
"keywords": [
"typescript",
2 changes: 1 addition & 1 deletion packages/adapter-nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/adapter-nuxt",
"version": "0.3.62",
"version": "0.3.64",
"description": "Slice Machine adapter for Nuxt 3.",
"keywords": [
"typescript",
2 changes: 1 addition & 1 deletion packages/adapter-nuxt2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/adapter-nuxt2",
"version": "0.3.62",
"version": "0.3.64",
"description": "Slice Machine adapter for Nuxt 2.",
"keywords": [
"typescript",
2 changes: 1 addition & 1 deletion packages/adapter-sveltekit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/adapter-sveltekit",
"version": "0.3.62",
"version": "0.3.64",
"description": "Slice Machine adapter for SvelteKit.",
"keywords": [
"typescript",
2 changes: 1 addition & 1 deletion packages/init/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slicemachine/init",
"version": "2.10.19",
"version": "2.10.21",
"description": "Init Prismic Slice Machine in your project",
"keywords": [
"typescript",
Loading