From aa5940d52acbb5e9c6231daf6cfb98ec824b5158 Mon Sep 17 00:00:00 2001 From: Johannes Lindgren <14206504+johannes-lindgren@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:07:38 +0100 Subject: [PATCH 1/8] docs: set MIT license in package.json (#433) --- package.json | 2 +- packages/cli/package.json | 1 + packages/field-plugin/package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b708663d..c18d9336 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "https://www.storyblok.com/" }, "private": true, - "license": "UNLICENSED", + "license": "MIT", "workspaces": [ "packages/*", "packages/cli/templates/*", diff --git a/packages/cli/package.json b/packages/cli/package.json index 0ecbe329..a1aa343c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,7 @@ { "name": "@storyblok/field-plugin-cli", "version": "1.4.0", + "license": "MIT", "type": "module", "bin": { "field-plugin": "./bin.js" diff --git a/packages/field-plugin/package.json b/packages/field-plugin/package.json index 671b366d..834fa1cb 100644 --- a/packages/field-plugin/package.json +++ b/packages/field-plugin/package.json @@ -2,6 +2,7 @@ "name": "@storyblok/field-plugin", "version": "1.4.0", "description": "SDK for creating Field Plugins for Storyblok.", + "license": "MIT", "sideEffects": false, "files": [ "dist" From 2ddcb0e02f0161c3dac92909980b6391403958c0 Mon Sep 17 00:00:00 2001 From: Johannes Lindgren <14206504+johannes-lindgren@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:08:31 +0100 Subject: [PATCH 2/8] ci: publish to NPM when you publish a draft release (#432) --- .github/workflows/npm-publish-cli.yml | 2 +- .github/workflows/npm-publish-library.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish-cli.yml b/.github/workflows/npm-publish-cli.yml index 7f69de58..fa4bf7d9 100644 --- a/.github/workflows/npm-publish-cli.yml +++ b/.github/workflows/npm-publish-cli.yml @@ -2,7 +2,7 @@ name: Publish CLI to NPM on: release: - types: [created] + types: [published] jobs: publish-npm: diff --git a/.github/workflows/npm-publish-library.yml b/.github/workflows/npm-publish-library.yml index 8e32a87b..f3174cb8 100644 --- a/.github/workflows/npm-publish-library.yml +++ b/.github/workflows/npm-publish-library.yml @@ -2,7 +2,7 @@ name: Publish library to NPM on: release: - types: [created] + types: [published] jobs: publish-npm: From 0a9bd45f48ce5b7ee3cd95eeb5f217a20d8f3934 Mon Sep 17 00:00:00 2001 From: Johannes Lindgren <14206504+johannes-lindgren@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:11:17 +0100 Subject: [PATCH 3/8] chore(lib): release @storyblok/field-plugin@1.4.1 (#434) --- packages/field-plugin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/field-plugin/package.json b/packages/field-plugin/package.json index 834fa1cb..5af35a2c 100644 --- a/packages/field-plugin/package.json +++ b/packages/field-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@storyblok/field-plugin", - "version": "1.4.0", + "version": "1.4.1", "description": "SDK for creating Field Plugins for Storyblok.", "license": "MIT", "sideEffects": false, From e1194641606648da5c0eadde06a487504e9f153d Mon Sep 17 00:00:00 2001 From: Johannes Lindgren <14206504+johannes-lindgren@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:36:52 +0100 Subject: [PATCH 4/8] chore(cli): release @storyblok/field-plugin-cli@1.5.0 (#436) --- packages/cli/package.json | 2 +- packages/cli/templates/js/package.json | 2 +- packages/cli/templates/react/package.json | 2 +- packages/cli/templates/vue2/package.json | 2 +- packages/cli/templates/vue3/package.json | 2 +- yarn.lock | 17 +++++------------ 6 files changed, 10 insertions(+), 17 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index a1aa343c..20e71f65 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@storyblok/field-plugin-cli", - "version": "1.4.0", + "version": "1.5.0", "license": "MIT", "type": "module", "bin": { diff --git a/packages/cli/templates/js/package.json b/packages/cli/templates/js/package.json index e36f0b36..c3c75432 100644 --- a/packages/cli/templates/js/package.json +++ b/packages/cli/templates/js/package.json @@ -10,7 +10,7 @@ "deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy" }, "dependencies": { - "@storyblok/field-plugin": "1.3.0" + "@storyblok/field-plugin": "1.4.1" }, "devDependencies": { "vite": "5.4.8", diff --git a/packages/cli/templates/react/package.json b/packages/cli/templates/react/package.json index 9d20e6ac..b53a1751 100644 --- a/packages/cli/templates/react/package.json +++ b/packages/cli/templates/react/package.json @@ -12,7 +12,7 @@ "deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy" }, "dependencies": { - "@storyblok/field-plugin": "1.3.0", + "@storyblok/field-plugin": "1.4.1", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/packages/cli/templates/vue2/package.json b/packages/cli/templates/vue2/package.json index c4ae02e6..51416400 100644 --- a/packages/cli/templates/vue2/package.json +++ b/packages/cli/templates/vue2/package.json @@ -12,7 +12,7 @@ "deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy" }, "dependencies": { - "@storyblok/field-plugin": "1.3.0", + "@storyblok/field-plugin": "1.4.1", "vue": "^2.7.14" }, "devDependencies": { diff --git a/packages/cli/templates/vue3/package.json b/packages/cli/templates/vue3/package.json index 7ff4c767..60373b22 100644 --- a/packages/cli/templates/vue3/package.json +++ b/packages/cli/templates/vue3/package.json @@ -11,7 +11,7 @@ "deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy" }, "dependencies": { - "@storyblok/field-plugin": "1.3.0", + "@storyblok/field-plugin": "1.4.1", "vue": "^3.2.47" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 9e74ac3b..5888dbba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1871,14 +1871,7 @@ __metadata: languageName: unknown linkType: soft -"@storyblok/field-plugin@npm:1.3.0": - version: 1.3.0 - resolution: "@storyblok/field-plugin@npm:1.3.0" - checksum: 6b48a5c2f712ba412fbf904567b1292be44f8184c1ad7681be4b8102e22b8d188bd8e65e20edad4a196cd45cc66eb3314187963babe1b9f203250df572836be2 - languageName: node - linkType: hard - -"@storyblok/field-plugin@workspace:*, @storyblok/field-plugin@workspace:packages/field-plugin": +"@storyblok/field-plugin@1.4.1, @storyblok/field-plugin@workspace:*, @storyblok/field-plugin@workspace:packages/field-plugin": version: 0.0.0-use.local resolution: "@storyblok/field-plugin@workspace:packages/field-plugin" dependencies: @@ -5110,7 +5103,7 @@ __metadata: version: 0.0.0-use.local resolution: "field-plugin-js-template@workspace:packages/cli/templates/js" dependencies: - "@storyblok/field-plugin": 1.3.0 + "@storyblok/field-plugin": 1.4.1 vite: 5.4.8 vite-plugin-css-injected-by-js: 2.4.0 languageName: unknown @@ -5136,7 +5129,7 @@ __metadata: resolution: "field-plugin-react-template@workspace:packages/cli/templates/react" dependencies: "@eslint/js": ^9.11.1 - "@storyblok/field-plugin": 1.3.0 + "@storyblok/field-plugin": 1.4.1 "@testing-library/jest-dom": 6.5.0 "@testing-library/react": 14.3.1 "@testing-library/user-event": 14.5.2 @@ -5165,7 +5158,7 @@ __metadata: dependencies: "@rollup/plugin-node-resolve": 15.3.0 "@rollup/plugin-replace": 5.0.7 - "@storyblok/field-plugin": 1.3.0 + "@storyblok/field-plugin": 1.4.1 "@vitejs/plugin-vue2": 2.3.1 rollup: 3.29.5 typescript: 5.6.2 @@ -5179,7 +5172,7 @@ __metadata: version: 0.0.0-use.local resolution: "field-plugin-vue3-template@workspace:packages/cli/templates/vue3" dependencies: - "@storyblok/field-plugin": 1.3.0 + "@storyblok/field-plugin": 1.4.1 "@testing-library/jest-dom": 6.5.0 "@testing-library/user-event": 14.5.2 "@testing-library/vue": 8.1.0 From 629e6f402477cfd746d97e5342eabc61dee13047 Mon Sep 17 00:00:00 2001 From: ECJ Date: Wed, 4 Dec 2024 06:18:34 -0800 Subject: [PATCH 5/8] fix(lib): include userid to data response from field plugin (#438) * fix(SHAPE-7741): include userid in field plugin response data * chore(SHAPE-7741): update validation and unit test * chore(SHAPE-7741): update test user id * chore(SHAPE-7741): remove console statement --- .../src/createFieldPlugin/FieldPluginData.ts | 1 + .../createPluginActions.test.ts | 1 + .../handlePluginMessage.test.ts | 1 + ...artialPluginStateFromStateChangeMessage.ts | 1 + .../LoadedMessage.test.ts | 37 +++- .../containerToPluginMessage/LoadedMessage.ts | 3 + .../StateChangedMessage.test.ts | 166 ++++++++++++++++++ .../StateChangedMessage.ts | 3 + packages/lib-helpers/test/src/index.ts | 2 + .../src/components/FieldPluginSandbox.tsx | 1 + 10 files changed, 215 insertions(+), 1 deletion(-) create mode 100644 packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.test.ts diff --git a/packages/field-plugin/src/createFieldPlugin/FieldPluginData.ts b/packages/field-plugin/src/createFieldPlugin/FieldPluginData.ts index 71d454f4..82ae68dc 100644 --- a/packages/field-plugin/src/createFieldPlugin/FieldPluginData.ts +++ b/packages/field-plugin/src/createFieldPlugin/FieldPluginData.ts @@ -8,6 +8,7 @@ export type FieldPluginData = { content: Content options: Record spaceId: number | undefined + userId: number | undefined interfaceLang: string storyLang: string story: StoryData diff --git a/packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginActions.test.ts b/packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginActions.test.ts index 018b5607..7f9a5643 100644 --- a/packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginActions.test.ts +++ b/packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginActions.test.ts @@ -70,6 +70,7 @@ describe('createPluginActions', () => { interfaceLanguage: 'en', model: randomString, spaceId: null, + userId: undefined, blockId: undefined, releases: [], releaseId: undefined, diff --git a/packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginMessageListener/handlePluginMessage.test.ts b/packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginMessageListener/handlePluginMessage.test.ts index 8ce03586..8367e250 100644 --- a/packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginMessageListener/handlePluginMessage.test.ts +++ b/packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginMessageListener/handlePluginMessage.test.ts @@ -60,6 +60,7 @@ describe('handlePluginMessage', () => { interfaceLanguage: 'en', model: 123, spaceId: 1234, + userId: 2345, story: { content: {} }, schema: { options: [], field_type: 'avh', translatable: false }, storyId: 1344, diff --git a/packages/field-plugin/src/createFieldPlugin/createPluginActions/partialPluginStateFromStateChangeMessage.ts b/packages/field-plugin/src/createFieldPlugin/createPluginActions/partialPluginStateFromStateChangeMessage.ts index 6dd54889..bf2ef6c6 100644 --- a/packages/field-plugin/src/createFieldPlugin/createPluginActions/partialPluginStateFromStateChangeMessage.ts +++ b/packages/field-plugin/src/createFieldPlugin/createPluginActions/partialPluginStateFromStateChangeMessage.ts @@ -23,6 +23,7 @@ export const pluginStateFromStateChangeMessage = ( return { interfaceLang: message.interfaceLanguage, spaceId: message.spaceId ?? undefined, + userId: message.userId ?? undefined, story: message.story ?? undefined, storyId: message.storyId ?? undefined, storyLang: message.language === '' ? 'default' : message.language, diff --git a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.test.ts b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.test.ts index ed869355..1985c1b3 100644 --- a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.test.ts +++ b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.test.ts @@ -5,6 +5,7 @@ const stub: LoadedMessage = { action: 'loaded', uid: '-preview', spaceId: null, + userId: undefined, model: undefined, isModalOpen: false, token: null, @@ -18,7 +19,7 @@ const stub: LoadedMessage = { releaseId: undefined, } -describe('StateChangedMessage', () => { +describe('LoadedMessage', () => { it('should validate', () => { expect(isLoadedMessage(stub)).toEqual(true) }) @@ -128,4 +129,38 @@ describe('StateChangedMessage', () => { ).toEqual(true) }) }) + describe('The "userId" property', () => { + it('is a number', () => { + expect( + isLoadedMessage({ + ...stub, + userId: 123, + }), + ).toEqual(true) + }) + it('is undefined', () => { + expect( + isLoadedMessage({ + ...stub, + userId: undefined, + }), + ).toEqual(true) + }) + it('is not null', () => { + expect( + isLoadedMessage({ + ...stub, + userId: null, + }), + ).toEqual(false) + }) + it('is not a string', () => { + expect( + isLoadedMessage({ + ...stub, + userId: '123', + }), + ).toEqual(false) + }) + }) }) diff --git a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.ts b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.ts index 07c3aa92..0bd089c9 100644 --- a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.ts +++ b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.ts @@ -13,6 +13,7 @@ export type LoadedMessage = MessageToPlugin<'loaded'> & { language: string interfaceLanguage: string spaceId: number | null + userId: number | undefined story: StoryData storyId: number | undefined blockId: string | undefined @@ -33,6 +34,8 @@ export const isLoadedMessage = (data: unknown): data is LoadedMessage => typeof data.language === 'string' && hasKey(data, 'schema') && isFieldPluginSchema(data.schema) && + hasKey(data, 'userId') && + (typeof data.userId === 'number' || typeof data.userId === 'undefined') && hasKey(data, 'story') && isStoryData(data.story) && hasKey(data, 'isModalOpen') && diff --git a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.test.ts b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.test.ts new file mode 100644 index 00000000..da6cc37d --- /dev/null +++ b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.test.ts @@ -0,0 +1,166 @@ +import { isStateMessage, StateChangedMessage } from './StateChangedMessage' +import { FieldPluginSchema } from './FieldPluginSchema' + +const stub: StateChangedMessage = { + action: 'state-changed', + uid: '-preview', + spaceId: null, + userId: undefined, + model: undefined, + isModalOpen: false, + token: null, + storyId: undefined, + blockId: undefined, + story: { content: {} }, + language: '', + interfaceLanguage: 'en', + schema: { options: [], field_type: 'blah', translatable: false }, + releases: [], + releaseId: undefined, +} + +describe('StateChangedMessage', () => { + it('should validate', () => { + expect(isStateMessage(stub)).toEqual(true) + }) + describe('The "action" property', () => { + it('equals "loaded"', () => { + expect( + isStateMessage({ + ...stub, + action: 'anotherString', + }), + ).toEqual(false) + }) + }) + describe('the "uid" property', () => { + it('is a string', () => { + expect( + isStateMessage({ + ...stub, + uid: 'anything', + }), + ).toEqual(true) + }) + it('is not undefined', () => { + expect( + isStateMessage({ + ...stub, + uid: undefined, + }), + ).toEqual(false) + }) + it('is not null', () => { + expect( + isStateMessage({ + ...stub, + uid: null, + }), + ).toEqual(false) + }) + it('is not a number', () => { + expect( + isStateMessage({ + ...stub, + uid: 123, + }), + ).toEqual(false) + }) + }) + + describe('the "language" property', () => { + it('is a string', () => { + expect( + isStateMessage({ + ...stub, + language: 'anything', + }), + ).toEqual(true) + }) + it('is not undefined', () => { + expect( + isStateMessage({ + ...stub, + language: undefined, + }), + ).toEqual(false) + }) + it('is not null', () => { + expect( + isStateMessage({ + ...stub, + language: null, + }), + ).toEqual(false) + }) + it('is not a number', () => { + expect( + isStateMessage({ + ...stub, + language: 123, + }), + ).toEqual(false) + }) + }) + describe('The "schema" property', () => { + it('is required', () => { + expect( + isStateMessage({ + ...stub, + schema: undefined, + }), + ).toEqual(false) + }) + it('must be a schema', () => { + expect( + isStateMessage({ + ...stub, + schema: { + field_type: 'my-field', + options: [ + { + name: 'a', + value: 'ab', + }, + ], + translatable: false, + } as FieldPluginSchema, + }), + ).toEqual(true) + }) + }) + describe('The "userId" property', () => { + it('is a number', () => { + expect( + isStateMessage({ + ...stub, + userId: 123, + }), + ).toEqual(true) + }) + it('is undefined', () => { + expect( + isStateMessage({ + ...stub, + userId: undefined, + }), + ).toEqual(true) + }) + it('is not null', () => { + expect( + isStateMessage({ + ...stub, + userId: null, + }), + ).toEqual(false) + }) + it('is not a string', () => { + expect( + isStateMessage({ + ...stub, + userId: '123', + }), + ).toEqual(false) + }) + }) +}) diff --git a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.ts b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.ts index 24235337..51619ea2 100644 --- a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.ts +++ b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.ts @@ -13,6 +13,7 @@ export type StateChangedMessage = MessageToPlugin<'state-changed'> & { language: string interfaceLanguage: string spaceId: number | null + userId: number | undefined story: StoryData storyId: number | undefined blockId: string | undefined @@ -33,6 +34,8 @@ export const isStateMessage = (data: unknown): data is StateChangedMessage => typeof data.language === 'string' && hasKey(data, 'schema') && isFieldPluginSchema(data.schema) && + hasKey(data, 'userId') && + (typeof data.userId === 'number' || typeof data.userId === 'undefined') && hasKey(data, 'story') && isStoryData(data.story) && hasKey(data, 'isModalOpen') && diff --git a/packages/lib-helpers/test/src/index.ts b/packages/lib-helpers/test/src/index.ts index 13b62790..b34a6b7f 100644 --- a/packages/lib-helpers/test/src/index.ts +++ b/packages/lib-helpers/test/src/index.ts @@ -27,6 +27,7 @@ const getContainer = (sendToFieldPlugin: (data: unknown) => void) => { const language = 'default' const storyId = 'test-story-id' const spaceId = 'test-space-id' + const userId = 1234 const token = 'test-token' const story = { content: {}, @@ -49,6 +50,7 @@ const getContainer = (sendToFieldPlugin: (data: unknown) => void) => { language, storyId, spaceId, + userId, token, action, }) diff --git a/packages/sandbox/src/components/FieldPluginSandbox.tsx b/packages/sandbox/src/components/FieldPluginSandbox.tsx index 184813d7..ac51eb04 100644 --- a/packages/sandbox/src/components/FieldPluginSandbox.tsx +++ b/packages/sandbox/src/components/FieldPluginSandbox.tsx @@ -133,6 +133,7 @@ const useSandbox = ( blockId: undefined, language, spaceId: null, + userId: undefined, story, storyId: undefined, token: null, From bc9706fd45b890e9e9c4e9b975bb7c385953c2a4 Mon Sep 17 00:00:00 2001 From: ECJ Date: Thu, 5 Dec 2024 04:56:52 -0800 Subject: [PATCH 6/8] chore(lib): release @storyblok/field-plugin@1.4.2 (#440) --- packages/field-plugin/package.json | 2 +- yarn.lock | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/field-plugin/package.json b/packages/field-plugin/package.json index 5af35a2c..81d422d8 100644 --- a/packages/field-plugin/package.json +++ b/packages/field-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@storyblok/field-plugin", - "version": "1.4.1", + "version": "1.4.2", "description": "SDK for creating Field Plugins for Storyblok.", "license": "MIT", "sideEffects": false, diff --git a/yarn.lock b/yarn.lock index 5888dbba..c54ab4bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1871,7 +1871,14 @@ __metadata: languageName: unknown linkType: soft -"@storyblok/field-plugin@1.4.1, @storyblok/field-plugin@workspace:*, @storyblok/field-plugin@workspace:packages/field-plugin": +"@storyblok/field-plugin@npm:1.4.1": + version: 1.4.1 + resolution: "@storyblok/field-plugin@npm:1.4.1" + checksum: 61a1ee76def46212217d0c0fc023c49e062c49f696edd42ab70f4c6b0c9361c3711c0384401e434710f0cc8a7a405c489ee2e20f769ec40426aadeb90127e6bb + languageName: node + linkType: hard + +"@storyblok/field-plugin@workspace:*, @storyblok/field-plugin@workspace:packages/field-plugin": version: 0.0.0-use.local resolution: "@storyblok/field-plugin@workspace:packages/field-plugin" dependencies: From 2b91670baced547a058d475a5eb95f70bebe3680 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:50:17 -0300 Subject: [PATCH 7/8] docs(common): add ECJ222 as a contributor for code (#442) * docs: update README.md * docs: update .all-contributorsrc --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 9 +++++++++ README.md | 1 + 2 files changed, 10 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 609da0fc..d85a143a 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -71,6 +71,15 @@ "contributions": [ "code" ] + }, + { + "login": "ECJ222", + "name": "ECJ", + "avatar_url": "https://avatars.githubusercontent.com/u/39567763?v=4", + "profile": "https://github.com/ECJ222", + "contributions": [ + "code" + ] } ] } diff --git a/README.md b/README.md index 7f9bbb35..5f229526 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ For more details, please refer to the [documentation](https://www.storyblok.com/ Alba Silvente Fuentes
Alba Silvente Fuentes

💻 + ECJ
ECJ

💻 From 749d7677cfe209207d0411ea6bf4d9d424fb10f1 Mon Sep 17 00:00:00 2001 From: ECJ Date: Fri, 6 Dec 2024 01:29:27 -0800 Subject: [PATCH 8/8] chore(cli): release @storyblok/field-plugin-cli@1.5.1 (#444) * chore(cli): upgrade @storyblok/field-plugin to v1.4.2 * chore(cli): release @storyblok/field-plugin-cli@1.5.1 --- packages/cli/package.json | 2 +- packages/cli/templates/js/package.json | 2 +- packages/cli/templates/react/package.json | 2 +- packages/cli/templates/vue2/package.json | 2 +- packages/cli/templates/vue3/package.json | 2 +- yarn.lock | 17 +++++------------ 6 files changed, 10 insertions(+), 17 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 20e71f65..e00fb7d5 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@storyblok/field-plugin-cli", - "version": "1.5.0", + "version": "1.5.1", "license": "MIT", "type": "module", "bin": { diff --git a/packages/cli/templates/js/package.json b/packages/cli/templates/js/package.json index c3c75432..90c858f4 100644 --- a/packages/cli/templates/js/package.json +++ b/packages/cli/templates/js/package.json @@ -10,7 +10,7 @@ "deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy" }, "dependencies": { - "@storyblok/field-plugin": "1.4.1" + "@storyblok/field-plugin": "1.4.2" }, "devDependencies": { "vite": "5.4.8", diff --git a/packages/cli/templates/react/package.json b/packages/cli/templates/react/package.json index b53a1751..b26c8f2d 100644 --- a/packages/cli/templates/react/package.json +++ b/packages/cli/templates/react/package.json @@ -12,7 +12,7 @@ "deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy" }, "dependencies": { - "@storyblok/field-plugin": "1.4.1", + "@storyblok/field-plugin": "1.4.2", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/packages/cli/templates/vue2/package.json b/packages/cli/templates/vue2/package.json index 51416400..e2198705 100644 --- a/packages/cli/templates/vue2/package.json +++ b/packages/cli/templates/vue2/package.json @@ -12,7 +12,7 @@ "deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy" }, "dependencies": { - "@storyblok/field-plugin": "1.4.1", + "@storyblok/field-plugin": "1.4.2", "vue": "^2.7.14" }, "devDependencies": { diff --git a/packages/cli/templates/vue3/package.json b/packages/cli/templates/vue3/package.json index 60373b22..6b952259 100644 --- a/packages/cli/templates/vue3/package.json +++ b/packages/cli/templates/vue3/package.json @@ -11,7 +11,7 @@ "deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy" }, "dependencies": { - "@storyblok/field-plugin": "1.4.1", + "@storyblok/field-plugin": "1.4.2", "vue": "^3.2.47" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index c54ab4bd..f9badb83 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1871,14 +1871,7 @@ __metadata: languageName: unknown linkType: soft -"@storyblok/field-plugin@npm:1.4.1": - version: 1.4.1 - resolution: "@storyblok/field-plugin@npm:1.4.1" - checksum: 61a1ee76def46212217d0c0fc023c49e062c49f696edd42ab70f4c6b0c9361c3711c0384401e434710f0cc8a7a405c489ee2e20f769ec40426aadeb90127e6bb - languageName: node - linkType: hard - -"@storyblok/field-plugin@workspace:*, @storyblok/field-plugin@workspace:packages/field-plugin": +"@storyblok/field-plugin@1.4.2, @storyblok/field-plugin@workspace:*, @storyblok/field-plugin@workspace:packages/field-plugin": version: 0.0.0-use.local resolution: "@storyblok/field-plugin@workspace:packages/field-plugin" dependencies: @@ -5110,7 +5103,7 @@ __metadata: version: 0.0.0-use.local resolution: "field-plugin-js-template@workspace:packages/cli/templates/js" dependencies: - "@storyblok/field-plugin": 1.4.1 + "@storyblok/field-plugin": 1.4.2 vite: 5.4.8 vite-plugin-css-injected-by-js: 2.4.0 languageName: unknown @@ -5136,7 +5129,7 @@ __metadata: resolution: "field-plugin-react-template@workspace:packages/cli/templates/react" dependencies: "@eslint/js": ^9.11.1 - "@storyblok/field-plugin": 1.4.1 + "@storyblok/field-plugin": 1.4.2 "@testing-library/jest-dom": 6.5.0 "@testing-library/react": 14.3.1 "@testing-library/user-event": 14.5.2 @@ -5165,7 +5158,7 @@ __metadata: dependencies: "@rollup/plugin-node-resolve": 15.3.0 "@rollup/plugin-replace": 5.0.7 - "@storyblok/field-plugin": 1.4.1 + "@storyblok/field-plugin": 1.4.2 "@vitejs/plugin-vue2": 2.3.1 rollup: 3.29.5 typescript: 5.6.2 @@ -5179,7 +5172,7 @@ __metadata: version: 0.0.0-use.local resolution: "field-plugin-vue3-template@workspace:packages/cli/templates/vue3" dependencies: - "@storyblok/field-plugin": 1.4.1 + "@storyblok/field-plugin": 1.4.2 "@testing-library/jest-dom": 6.5.0 "@testing-library/user-event": 14.5.2 "@testing-library/vue": 8.1.0