diff --git a/lib/index.ts b/lib/index.ts index 22b9688..80fc23a 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -37,7 +37,7 @@ export const useStoryblokApi = (): StoryblokClient => { return storyblokApiInstance; }; -export { useStoryblokBridge, apiPlugin } from "@storyblok/js"; +export { useStoryblokBridge, apiPlugin, renderRichText } from "@storyblok/js"; import StoryblokComponent from "./StoryblokComponent.vue"; export { default as StoryblokComponent } from "./StoryblokComponent.vue"; diff --git a/lib/package.json b/lib/package.json index 3e9dfe2..37e3c27 100644 --- a/lib/package.json +++ b/lib/package.json @@ -24,7 +24,7 @@ "prepublishOnly": "npm run build && cp ../README.md ./" }, "dependencies": { - "@storyblok/js": "^1.6.1" + "@storyblok/js": "^1.7.0" }, "devDependencies": { "@babel/core": "^7.18.5", diff --git a/package-lock.json b/package-lock.json index eb6ba7e..ca5e504 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "name": "@storyblok/vue", "version": "0.0.1", "dependencies": { - "@storyblok/js": "^1.6.1" + "@storyblok/js": "^1.7.0" }, "devDependencies": { "@babel/core": "^7.18.5", @@ -4103,11 +4103,11 @@ } }, "node_modules/@storyblok/js": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@storyblok/js/-/js-1.6.1.tgz", - "integrity": "sha512-Umxi3rcIEK5waZNynS62AEsw3ygbFhyv0s0ZjFWVvBxJKNVEhqqg7Zx6Fa8fo+lW6vFsdlnXmvX7CfjI94RzrA==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@storyblok/js/-/js-1.7.0.tgz", + "integrity": "sha512-ZlI/712YkaTcJBPECyGctRaFUiWUtbUSlrVrDcoHPKv2bbPTSfvdu4w31VWfsDd7DOz76KHOUpOPdpFZmMqYPg==", "dependencies": { - "storyblok-js-client": "^4.5.2" + "storyblok-js-client": "^4.5.6" } }, "node_modules/@storyblok/vue": { @@ -5211,8 +5211,7 @@ "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/at-least-node": { "version": "1.0.0", @@ -5251,12 +5250,27 @@ "dev": true }, "node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "peer": true, + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/axios/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "peer": true, "dependencies": { - "follow-redirects": "^1.14.0" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" } }, "node_modules/babel-jest": { @@ -6040,7 +6054,6 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, "dependencies": { "delayed-stream": "~1.0.0" }, @@ -6706,7 +6719,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true, "engines": { "node": ">=0.4.0" } @@ -11493,7 +11505,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, "engines": { "node": ">= 0.6" } @@ -11502,7 +11513,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, "dependencies": { "mime-db": "1.52.0" }, @@ -12247,6 +12257,7 @@ "version": "2.7.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true, "bin": { "prettier": "bin-prettier.js" }, @@ -12834,11 +12845,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/rollup-plugin-mjs-entry": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/rollup-plugin-mjs-entry/-/rollup-plugin-mjs-entry-0.1.1.tgz", - "integrity": "sha512-uii0Txyrn4YCgP++fypLqsT3LgO3Fx0gAZLZlWRSwKCuZ+bdSzAzdVbJFATmCHcBNlO61i65EgemOVdVQYONHA==" - }, "node_modules/rsvp": { "version": "4.8.5", "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", @@ -13813,15 +13819,11 @@ } }, "node_modules/storyblok-js-client": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/storyblok-js-client/-/storyblok-js-client-4.5.2.tgz", - "integrity": "sha512-86On+EyREZdbTcYTV+0dRQ1E4Gy0hPWs43MxK5VOv6DRwbf1A7haXq6dUL8nm9i5+xgOB0GLJW0f3B9CHbq4sQ==", - "dependencies": { - "prettier": "^2.5.1", - "rollup-plugin-mjs-entry": "^0.1.1" - }, + "version": "4.5.6", + "resolved": "https://registry.npmjs.org/storyblok-js-client/-/storyblok-js-client-4.5.6.tgz", + "integrity": "sha512-S0cXKkEqGDibD32K48FFodjeu/+eF++nrHhrLzo/bKxrnyQiPChPccFAnzsJCQ6uMvRuVGZzjKwM5/sMeBRthg==", "peerDependencies": { - "axios": "^0.21.1" + "axios": "^0.27.2" } }, "node_modules/string_decoder": { @@ -17467,11 +17469,11 @@ } }, "@storyblok/js": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@storyblok/js/-/js-1.6.1.tgz", - "integrity": "sha512-Umxi3rcIEK5waZNynS62AEsw3ygbFhyv0s0ZjFWVvBxJKNVEhqqg7Zx6Fa8fo+lW6vFsdlnXmvX7CfjI94RzrA==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@storyblok/js/-/js-1.7.0.tgz", + "integrity": "sha512-ZlI/712YkaTcJBPECyGctRaFUiWUtbUSlrVrDcoHPKv2bbPTSfvdu4w31VWfsDd7DOz76KHOUpOPdpFZmMqYPg==", "requires": { - "storyblok-js-client": "^4.5.2" + "storyblok-js-client": "^4.5.6" } }, "@storyblok/vue": { @@ -17480,7 +17482,7 @@ "@babel/core": "^7.18.5", "@cypress/vite-dev-server": "^2.0.7", "@cypress/vue": "^3.1.2", - "@storyblok/js": "^1.6.1", + "@storyblok/js": "^1.7.0", "@vitejs/plugin-vue": "^2.3.3", "@vue/babel-preset-app": "^5.0.4", "@vue/test-utils": "next", @@ -19108,8 +19110,7 @@ "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "at-least-node": { "version": "1.0.0", @@ -19136,12 +19137,26 @@ "dev": true }, "axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", "peer": true, "requires": { - "follow-redirects": "^1.14.0" + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + }, + "dependencies": { + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "peer": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + } } }, "babel-jest": { @@ -19738,7 +19753,6 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, "requires": { "delayed-stream": "~1.0.0" } @@ -20252,8 +20266,7 @@ "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" }, "detect-newline": { "version": "3.1.0", @@ -23810,14 +23823,12 @@ "mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" }, "mime-types": { "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, "requires": { "mime-db": "1.52.0" } @@ -24368,7 +24379,8 @@ "prettier": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==" + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true }, "pretty-bytes": { "version": "5.6.0", @@ -24801,11 +24813,6 @@ "fsevents": "~2.3.2" } }, - "rollup-plugin-mjs-entry": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/rollup-plugin-mjs-entry/-/rollup-plugin-mjs-entry-0.1.1.tgz", - "integrity": "sha512-uii0Txyrn4YCgP++fypLqsT3LgO3Fx0gAZLZlWRSwKCuZ+bdSzAzdVbJFATmCHcBNlO61i65EgemOVdVQYONHA==" - }, "rsvp": { "version": "4.8.5", "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", @@ -25579,13 +25586,10 @@ } }, "storyblok-js-client": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/storyblok-js-client/-/storyblok-js-client-4.5.2.tgz", - "integrity": "sha512-86On+EyREZdbTcYTV+0dRQ1E4Gy0hPWs43MxK5VOv6DRwbf1A7haXq6dUL8nm9i5+xgOB0GLJW0f3B9CHbq4sQ==", - "requires": { - "prettier": "^2.5.1", - "rollup-plugin-mjs-entry": "^0.1.1" - } + "version": "4.5.6", + "resolved": "https://registry.npmjs.org/storyblok-js-client/-/storyblok-js-client-4.5.6.tgz", + "integrity": "sha512-S0cXKkEqGDibD32K48FFodjeu/+eF++nrHhrLzo/bKxrnyQiPChPccFAnzsJCQ6uMvRuVGZzjKwM5/sMeBRthg==", + "requires": {} }, "string_decoder": { "version": "1.3.0",