@uniformdev/canvas 16.2.3 → 17.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md DELETED
@@ -1,151 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [16.2.0](https://github.com/uniformdev/platform/compare/v16.1.0...v16.2.0) (2022-06-30)
7
-
8
- ### Features
9
-
10
- - **canvas:** add optional field to specify name for each variant wit… ([#5725](https://github.com/uniformdev/platform/issues/5725)) ([095b959](https://github.com/uniformdev/platform/commit/095b9590c3cba060b94823345eec5832b5f58fb2))
11
-
12
- ### Bug Fixes
13
-
14
- - **cli:** Fix push command description (not Optimize) ([67e08e3](https://github.com/uniformdev/platform/commit/67e08e347570137c24d21c86b974ccc28d366d4b))
15
- - **cli:** Fix push command description (not Optimize) ([ec63625](https://github.com/uniformdev/platform/commit/ec6362589484362e4fbd9c94db66f9718e734c6a))
16
-
17
- ## [16.1.0](https://github.com/uniformdev/platform/compare/v16.0.0...v16.1.0) (2022-06-02)
18
-
19
- ### Features
20
-
21
- - **canvas:** add help text to canvas parameter (4057) ([e79fb0f](https://github.com/uniformdev/platform/commit/e79fb0fd26e1164414d38f6bd6fba763fa676ef9))
22
- - **security:** add roles support ([71da60b](https://github.com/uniformdev/platform/commit/71da60ba47ccabe993322a3a23f1bc66286991b2)), closes [#4275](https://github.com/uniformdev/platform/issues/4275)
23
-
24
- ## [16.0.0](https://github.com/uniformdev/platform/compare/v15.0.0...v16.0.0) (2022-04-26)
25
-
26
- ### Bug Fixes
27
-
28
- - **deps:** pin dependencies ([bdefb56](https://github.com/uniformdev/platform/commit/bdefb56d3278090905ae48b5f2b0d297c990f4f1))
29
- - **deps:** update dependency yargs to v17.4.1 ([032fbc0](https://github.com/uniformdev/platform/commit/032fbc0192684e5954152b95472f4d5b30164dd7))
30
-
31
- ## [15.0.0](https://github.com/uniformdev/optimize/compare/v14.2.0...v15.0.0) (2022-03-28)
32
-
33
- ### Features
34
-
35
- - **onboarding:** new Context based onboarding projects ([b33b88e](https://github.com/uniformdev/optimize/commit/b33b88e54d0be144d556c6112bff94bdb19cffb8)), closes [#4316](https://github.com/uniformdev/optimize/issues/4316)
36
-
37
- ### Bug Fixes
38
-
39
- - **deps:** update dependency yargs to v17.4.0 ([b25061e](https://github.com/uniformdev/optimize/commit/b25061e0761ecacac15bcc618a059e56809fd6fb))
40
-
41
- ### [14.1.1](https://github.com/uniformdev/optimize-sdk-internal/compare/v14.1.0...v14.1.1) (2022-02-02)
42
-
43
- **Note:** Version bump only for package @uniformdev/canvas
44
-
45
- ## [14.1.0](https://github.com/uniformdev/optimize-sdk-internal/compare/v14.0.0...v14.1.0) (2022-02-02)
46
-
47
- ### Features
48
-
49
- - **composition-defaults:** add `defaults` prop to `ComponentDefinition` ([5679a4e](https://github.com/uniformdev/optimize-sdk-internal/commit/5679a4e266ad416832154e6a18054f7ce39f1f3d)), closes [#3182](https://github.com/uniformdev/optimize-sdk-internal/issues/3182)
50
-
51
- ## [14.0.0](https://github.com/uniformdev/optimize-sdk-internal/compare/v13.0.0...v14.0.0) (2021-12-21)
52
-
53
- ### Features
54
-
55
- - **dashbord:** add slags setting to ComponentDefinition ([#3347](https://github.com/uniformdev/optimize-sdk-internal/issues/3347)) ([#776](https://github.com/uniformdev/optimize-sdk-internal/issues/776)) ([07804d8](https://github.com/uniformdev/optimize-sdk-internal/commit/07804d820f2dbec8182b9c401761e71ab5642a17))
56
- - **dashbord:** update slags setting to ComponentDefinition ([#3347](https://github.com/uniformdev/optimize-sdk-internal/issues/3347)) ([#778](https://github.com/uniformdev/optimize-sdk-internal/issues/778)) ([29cec98](https://github.com/uniformdev/optimize-sdk-internal/commit/29cec98248b1c07c6983b0cf6192ec54396b1f5a))
57
- - **typescript:** expose updated type con ComponentDefinition ([#705](https://github.com/uniformdev/optimize-sdk-internal/issues/705)) ([4275a7c](https://github.com/uniformdev/optimize-sdk-internal/commit/4275a7cfd3fbd8b84549638d503c0f77d390208d))
58
-
59
- ### Bug Fixes
60
-
61
- - **canvas:** Use fetch based on options ([8c73f59](https://github.com/uniformdev/optimize-sdk-internal/commit/8c73f592371d01e106773f8a5b51dd60154fa3b4))
62
- - **deps:** upgrade dependency versions ([2ed0022](https://github.com/uniformdev/optimize-sdk-internal/commit/2ed002274b06f06e13e0be1f3024a9b93a2f6d14))
63
-
64
- ## [13.0.0](https://github.com/uniformdev/optimize-sdk-internal/compare/v12.2.0...v13.0.0) (2021-11-24)
65
-
66
- ### ⚠ BREAKING CHANGES
67
-
68
- - **npm:** Bundled ESM exports from npm packages have changed internal package structure
69
- - **npm:** npm package files are now transpiled to target ES2018 instead of ES5, significantly reducing their size
70
-
71
- ### Features
72
-
73
- - **localization:** added insertAfter walk component action, support for matching multiple components of the same locale, associated tests. BREAKING CHANGE: localize locale function now provides an array of matched components ([#680](https://github.com/uniformdev/optimize-sdk-internal/issues/680)) ([0071e16](https://github.com/uniformdev/optimize-sdk-internal/commit/0071e168f8a5e5f5cecd3ce908383dc690d3fd3c))
74
- - **npm:** update package build system for better ESM compatibility ([d66f998](https://github.com/uniformdev/optimize-sdk-internal/commit/d66f998e30e186dbe7886a9d4197c49a8b25b89c))
75
-
76
- ### Bug Fixes
77
-
78
- - **canvas:** load pusher from CDN only when needed ([25f2b18](https://github.com/uniformdev/optimize-sdk-internal/commit/25f2b1873668b171a2f210000d785108c238fafe))
79
-
80
- ## [12.2.0](https://github.com/uniformdev/optimize-sdk-internal/compare/v12.0.0...v12.2.0) (2021-10-28)
81
-
82
- ### Features
83
-
84
- - **canvas-cli:** support serializing and fetching pattern references ([cb701bc](https://github.com/uniformdev/optimize-sdk-internal/commit/cb701bc5ef6fd46460190986480b183dfec6a280))
85
- - **canvas-sdk:** support for patterns ([33d421c](https://github.com/uniformdev/optimize-sdk-internal/commit/33d421cbf1cd7afaee7dd9f71b48f8f9c40ce589))
86
- - **localization:** added localize function, updated walk component function to allow component level modifications ([b1766e0](https://github.com/uniformdev/optimize-sdk-internal/commit/b1766e0ab1fa4e072a19216a715f756121a19626))
87
-
88
- ### Bug Fixes
89
-
90
- - **canvas-sdk:** improved enhancer error messaging ([6ff0026](https://github.com/uniformdev/optimize-sdk-internal/commit/6ff0026fd5702e3ef7474a82057c8dde86765c16))
91
- - export localize from canvas package ([#627](https://github.com/uniformdev/optimize-sdk-internal/issues/627)) ([69b87bc](https://github.com/uniformdev/optimize-sdk-internal/commit/69b87bc05d2f0e3ed3bac8b20fc395686db82a51))
92
- - **localization:** added a list of undefined fields that need to be checked after replacing a component to ensure they match ([#628](https://github.com/uniformdev/optimize-sdk-internal/issues/628)) ([278f9f3](https://github.com/uniformdev/optimize-sdk-internal/commit/278f9f380bdb3e0826a9edbce773d5a03050feaf))
93
- - **localization:** added walk component test coverage, fixed typo ([15687c0](https://github.com/uniformdev/optimize-sdk-internal/commit/15687c0ecf3df23fb4080064d7c358cbb6bbe346))
94
- - **localization:** comment for locale tag param ([07b4ac4](https://github.com/uniformdev/optimize-sdk-internal/commit/07b4ac4287e6644a3ab7307cdd5f013c5c03c251))
95
-
96
- ## [12.0.0](https://github.com/uniformdev/optimize-sdk-internal/compare/v11.0.0...v12.0.0) (2021-10-05)
97
-
98
- ### ⚠ BREAKING CHANGES
99
-
100
- - **canvas:** everything that was named 'UPM' at all is now equivalently titled 'Canvas' or 'CANVAS' depending on the context. Literally everything.
101
-
102
- ### Features
103
-
104
- - **canvas-cli:** add update diffing support (--diff flag) ([62a34a1](https://github.com/uniformdev/optimize-sdk-internal/commit/62a34a1728b0e087a769ea0819b7f00cd65b526a))
105
- - **canvas:** farewell UPM, we hardly knew ye ([00997ae](https://github.com/uniformdev/optimize-sdk-internal/commit/00997aecd388403a0b98d0a919750b994d3794c1))
106
-
107
- ### Bug Fixes
108
-
109
- - **canvas-cli:** improved canvas CLI scalability and messaging ([4ad2ea4](https://github.com/uniformdev/optimize-sdk-internal/commit/4ad2ea47749ec11684db24605da50b6dfb067236))
110
-
111
- ## [11.0.0](https://github.com/uniformdev/optimize-sdk-internal/compare/v10.0.0...v11.0.0) (2021-09-07)
112
-
113
- ### ⚠ BREAKING CHANGES
114
-
115
- - **upm:** this CLI will only work with 'new' API keys for UPM APIs
116
- - **cli+cms:** the UNIFORM_CLI_BASE_URL environment variable should now be set to the Uniform dashboard URL, not an AWS S3 bucket
117
-
118
- ### Features
119
-
120
- - **cli+cms:** support new proxied intent manifest endpoint ([a43f4db](https://github.com/uniformdev/optimize-sdk-internal/commit/a43f4db4743deb2752b20db0cc047eaf08c705a0))
121
- - **upm:** support project ID requirement for UPM APIs ([f139b29](https://github.com/uniformdev/optimize-sdk-internal/commit/f139b29357c4f1525ba4420073e19137be7e7869))
122
- - **upm:** throw if source for UPM cli sync is empty (to prevent unintentional delete-all) ([0f97e44](https://github.com/uniformdev/optimize-sdk-internal/commit/0f97e444c88dc5d3dbb304014810566a9b16f026))
123
-
124
- ### Bug Fixes
125
-
126
- - **upm-cli:** don't store state on disk - use CLI param instead ([a638928](https://github.com/uniformdev/optimize-sdk-internal/commit/a638928a17b8cc56b125e62628881819f26934e6)), closes [#2550](https://github.com/uniformdev/optimize-sdk-internal/issues/2550)
127
- - **upm:** await actions before running deletes ([f58aa95](https://github.com/uniformdev/optimize-sdk-internal/commit/f58aa952fc1d9af76e8fcd0d4cf7139f24966175))
128
- - **upm:** fixed deleting UPM items when pushing with the CLI ([6f301c9](https://github.com/uniformdev/optimize-sdk-internal/commit/6f301c94ea1c78b94e00c753b86d2af92b938819))
129
- - **upm:** fixed error instanceof UpmClientError ([1027695](https://github.com/uniformdev/optimize-sdk-internal/commit/10276954d469da227c8bfec0f374a4f7fafd0b7b))
130
- - **upm:** fixed naughty type refs that weren't externally resolvable, resulting in faux `any` types ([ee5d7e2](https://github.com/uniformdev/optimize-sdk-internal/commit/ee5d7e2e8c93f08afc562a36e3baa8499830e249))
131
- - **upm:** make enhancerbuilder fallback as expected when overriding params ([4d8edb4](https://github.com/uniformdev/optimize-sdk-internal/commit/4d8edb4932944293b927a579b68f5d14a93b9008))
132
- - **upm:** upm comp list not supporting states ([0920553](https://github.com/uniformdev/optimize-sdk-internal/commit/092055369ff38b25a4e32209c95afb56f3c15255))
133
-
134
- ## [10.0.0](https://github.com/uniformdev/optimize-sdk-internal/compare/v9.0.1...v10.0.0) (2021-08-11)
135
-
136
- ### Features
137
-
138
- - **cli:** add upm CLI plugin ([9b027f4](https://github.com/uniformdev/optimize-sdk-internal/commit/9b027f4f0bcd144a322b7fa2e051692c2a813372))
139
- - **upm:** add enhancer proxy, generic enhancers, enhancer batching ([8de1402](https://github.com/uniformdev/optimize-sdk-internal/commit/8de1402da957388f11662af4f39d183e1ad5437a))
140
- - **upm:** add packaging to the CLI for multiple artifacts in one file ([7d9c5b3](https://github.com/uniformdev/optimize-sdk-internal/commit/7d9c5b35016b82f5bc85e9a462bc9206cef486c2))
141
- - **upm:** add types for UPM component definition API, unified types for composition API ([eb4296a](https://github.com/uniformdev/optimize-sdk-internal/commit/eb4296a0908dfe48b7fe8973dfe319f7c9e1ae1c))
142
-
143
- ### [9.0.1](https://github.com/uniformdev/optimize-sdk-internal/compare/v9.0.0...v9.0.1) (2021-07-12)
144
-
145
- **Note:** Version bump only for package @uniformdev/upm
146
-
147
- ## [9.0.0](https://github.com/uniformdev/optimize-sdk-internal/compare/v8.0.1...v9.0.0) (2021-06-30)
148
-
149
- ### Features
150
-
151
- - **upm:** add initial UPM SDK ([e2419b7](https://github.com/uniformdev/optimize-sdk-internal/commit/e2419b77a987c686ec1594d37e1c1452912f10fa))
@@ -1,2 +0,0 @@
1
- var R=Object.create;var y=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var S=(o=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(o,{get:(t,e)=>(typeof require!="undefined"?require:t)[e]}):o)(function(o){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});var L=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports);var N=(o,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of g(t))!x.call(o,n)&&n!==e&&y(o,n,{get:()=>t[n],enumerable:!(i=O(t,n))||i.enumerable});return o};var _=(o,t,e)=>(e=o!=null?R(b(o)):{},N(t||!o||!o.__esModule?y(e,"default",{value:o,enumerable:!0}):e,o));var d=class extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}};function A({limit:o,interval:t,strict:e}){if(!Number.isFinite(o))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");let i=new Map,n=0,s=0;function r(){let p=Date.now();return p-n>t?(s=1,n=p,0):(s<o?s++:(n+=t,s=1),n-p)}let c=[];function l(){let p=Date.now();if(c.length<o)return c.push(p),0;let a=c.shift()+t;return p>=a?(c.push(p),0):(c.push(a),a-p)}let I=e?l:r;return p=>{let a=function(...u){if(!a.isEnabled)return(async()=>p.apply(this,u))();let m;return new Promise((P,T)=>{m=setTimeout(()=>{P(p.apply(this,u)),i.delete(m)},I()),i.set(m,T)})};return a.abort=()=>{for(let u of i.keys())clearTimeout(u),i.get(u)(new d);i.clear(),c.splice(0,c.length)},a.isEnabled=!0,a}}import E from"p-retry";function C({throttle:o={interval:1e3,limit:10},retry:t={retries:1,factor:1.66}}){let e=o?A(o):null;return function(n){let s=async()=>await n();if(e&&(s=e(s)),t){let r=s;s=()=>E(r,t)}return s()}}var $=async o=>await o();var h=class extends Error{constructor(e,i,n,s,r,c){super(`${e}
2
- ${s}${r?" "+r:""} (${i} ${n}${c?` Request ID: ${c}`:""})`);this.errorMessage=e;this.fetchMethod=i;this.fetchUri=n;this.statusCode=s;this.statusText=r;this.requestId=c;Object.setPrototypeOf(this,h.prototype)}},f=class{constructor(t){var i,n,s,r,c;if(!t.apiKey&&!t.bearerToken)throw new Error("You must provide an API key or a bearer token");let e=t.fetch;if(!e)if(typeof globalThis!="undefined"&&typeof globalThis.fetch!="undefined")e=globalThis.fetch.bind(globalThis);else if(typeof fetch!="undefined")e=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...t,fetch:e,apiHost:(i=t.apiHost)!=null?i:"https://uniform.app",apiKey:(n=t.apiKey)!=null?n:null,projectId:(s=t.projectId)!=null?s:null,bearerToken:(r=t.bearerToken)!=null?r:null,limitPolicy:(c=t.limitPolicy)!=null?c:C({})}}async getCompositionList(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async getCompositionBySlug(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async getCompositionById(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async updateComposition(t){let e=this.createUrl("/api/v1/canvas");await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeComposition(t){let e=this.createUrl("/api/v1/canvas"),{projectId:i}=this.options;await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:i}),expectNoContent:!0})}async getComponentDefinitions(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas-definitions",{...t,projectId:e});return await this.apiClient(i)}async updateComponentDefinition(t){let e=this.createUrl("/api/v1/canvas-definitions");await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeComponentDefinition(t){let e=this.createUrl("/api/v1/canvas-definitions");await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async apiClient(t,e){return this.options.limitPolicy(async()=>{var s;let i=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`},n=await this.options.fetch(t.toString(),{...e,headers:{...e==null?void 0:e.headers,...i}});if(!n.ok){let r="";try{let c=await n.text();try{let l=JSON.parse(c);l.errorMessage?r=Array.isArray(l.errorMessage)?l.errorMessage.join(", "):l.errorMessage:r=c}catch(l){r=c}}catch(c){r="General error"}throw new h(r,(s=e==null?void 0:e.method)!=null?s:"GET",t.toString(),n.status,n.statusText,f.getRequestId(n))}return e!=null&&e.expectNoContent?null:await n.json()})}createUrl(t,e){let i=new URL(`${this.options.apiHost}${t}`);return Object.entries(e!=null?e:{}).forEach(([n,s])=>{var r;typeof s!==void 0&&s!==null&&i.searchParams.append(n,(r=s==null?void 0:s.toString())!=null?r:"")}),i}static getRequestId(t){let e=t.headers.get("x-nf-request-id");if(e)return e}};var z="$personalization",K="$test",G="$localization",J="intentTag",Y="locale",Z="pz",B="test",Q="localized",W=0,X=64,tt="$pzCrit",et="$tstVrnt",it="$enr";export{S as a,L as b,_ as c,C as d,$ as e,h as f,f as g,z as h,K as i,G as j,J as k,Y as l,Z as m,B as n,Q as o,W as p,X as q,tt as r,et as s,it as t};
@@ -1,2 +0,0 @@
1
- var A=Object.create;var u=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var R=(o=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(o,{get:(t,e)=>(typeof require!="undefined"?require:t)[e]}):o)(function(o){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});var T=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports);var I=(o,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of f(t))!y.call(o,n)&&n!==e&&u(o,n,{get:()=>t[n],enumerable:!(i=m(t,n))||i.enumerable});return o};var O=(o,t,e)=>(e=o!=null?A(d(o)):{},I(t||!o||!o.__esModule?u(e,"default",{value:o,enumerable:!0}):e,o));import C from"p-throttle";import P from"p-retry";function h({throttle:o={interval:1e3,limit:10},retry:t={retries:1,factor:1.66}}){let e=o?C(o):null;return function(n){let s=async()=>await n();if(e&&(s=e(s)),t){let r=s;s=()=>P(r,t)}return s()}}var L=async o=>await o();var a=class extends Error{constructor(e,i,n,s,r,p){super(`${e}
2
- ${s}${r?" "+r:""} (${i} ${n}${p?` Request ID: ${p}`:""})`);this.errorMessage=e;this.fetchMethod=i;this.fetchUri=n;this.statusCode=s;this.statusText=r;this.requestId=p;Object.setPrototypeOf(this,a.prototype)}},l=class{constructor(t){var i,n,s,r,p;if(!t.apiKey&&!t.bearerToken)throw new Error("You must provide an API key or a bearer token");let e=t.fetch;if(!e)if(typeof globalThis!="undefined"&&typeof globalThis.fetch!="undefined")e=globalThis.fetch.bind(globalThis);else if(typeof fetch!="undefined")e=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...t,fetch:e,apiHost:(i=t.apiHost)!=null?i:"https://uniform.app",apiKey:(n=t.apiKey)!=null?n:null,projectId:(s=t.projectId)!=null?s:null,bearerToken:(r=t.bearerToken)!=null?r:null,limitPolicy:(p=t.limitPolicy)!=null?p:h({})}}async getCompositionList(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async getCompositionBySlug(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async getCompositionById(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async updateComposition(t){let e=this.createUrl("/api/v1/canvas");await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeComposition(t){let e=this.createUrl("/api/v1/canvas"),{projectId:i}=this.options;await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:i}),expectNoContent:!0})}async getComponentDefinitions(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas-definitions",{...t,projectId:e});return await this.apiClient(i)}async updateComponentDefinition(t){let e=this.createUrl("/api/v1/canvas-definitions");await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeComponentDefinition(t){let e=this.createUrl("/api/v1/canvas-definitions");await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async apiClient(t,e){return this.options.limitPolicy(async()=>{var s;let i=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`},n=await this.options.fetch(t.toString(),{...e,headers:{...e==null?void 0:e.headers,...i}});if(!n.ok){let r="";try{let p=await n.text();try{let c=JSON.parse(p);c.errorMessage?r=Array.isArray(c.errorMessage)?c.errorMessage.join(", "):c.errorMessage:r=p}catch(c){r=p}}catch(p){r="General error"}throw new a(r,(s=e==null?void 0:e.method)!=null?s:"GET",t.toString(),n.status,n.statusText,l.getRequestId(n))}return e!=null&&e.expectNoContent?null:await n.json()})}createUrl(t,e){let i=new URL(`${this.options.apiHost}${t}`);return Object.entries(e!=null?e:{}).forEach(([n,s])=>{var r;typeof s!==void 0&&s!==null&&i.searchParams.append(n,(r=s==null?void 0:s.toString())!=null?r:"")}),i}static getRequestId(t){let e=t.headers.get("x-nf-request-id");if(e)return e}};var j="$personalization",w="$test",U="$localization",V="intentTag",D="locale",v="pz",k="test",$="localized",M=0,q=64,H="$pzCrit",z="$tstVrnt",F="$enr";export{R as a,T as b,O as c,h as d,L as e,a as f,l as g,j as h,w as i,U as j,V as k,D as l,v as m,k as n,$ as o,M as p,q,H as r,z as s,F as t};
@@ -1,2 +0,0 @@
1
- var A=Object.create;var u=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var R=(o=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(o,{get:(t,e)=>(typeof require!="undefined"?require:t)[e]}):o)(function(o){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});var T=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports);var y=(o,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of f(t))!I.call(o,n)&&n!==e&&u(o,n,{get:()=>t[n],enumerable:!(i=m(t,n))||i.enumerable});return o};var O=(o,t,e)=>(e=o!=null?A(d(o)):{},y(t||!o||!o.__esModule?u(e,"default",{value:o,enumerable:!0}):e,o));import C from"p-throttle";import P from"p-retry";function h({throttle:o={interval:1e3,limit:10},retry:t={retries:1,factor:1.66}}){let e=o?C(o):null;return function(n){let s=async()=>await n();if(e&&(s=e(s)),t){let r=s;s=()=>P(r,t)}return s()}}var x=async o=>await o();var a=class extends Error{constructor(e,i,n,s,r,p){super(`${e}
2
- ${s}${r?" "+r:""} (${i} ${n}${p?` Request ID: ${p}`:""})`);this.errorMessage=e;this.fetchMethod=i;this.fetchUri=n;this.statusCode=s;this.statusText=r;this.requestId=p;Object.setPrototypeOf(this,a.prototype)}},l=class{constructor(t){var i,n,s,r,p;if(!t.apiKey&&!t.bearerToken)throw new Error("You must provide an API key or a bearer token");let e=t.fetch;if(!e)if(typeof globalThis!="undefined"&&typeof globalThis.fetch!="undefined")e=globalThis.fetch.bind(globalThis);else if(typeof fetch!="undefined")e=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...t,fetch:e,apiHost:(i=t.apiHost)!=null?i:"https://uniform.app",apiKey:(n=t.apiKey)!=null?n:null,projectId:(s=t.projectId)!=null?s:null,bearerToken:(r=t.bearerToken)!=null?r:null,limitPolicy:(p=t.limitPolicy)!=null?p:h({})}}async getCompositionList(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async getCompositionBySlug(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async getCompositionById(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async updateComposition(t){let e=this.createUrl("/api/v1/canvas");await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeComposition(t){let e=this.createUrl("/api/v1/canvas"),{projectId:i}=this.options;await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:i}),expectNoContent:!0})}async getComponentDefinitions(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas-definitions",{...t,projectId:e});return await this.apiClient(i)}async updateComponentDefinition(t){let e=this.createUrl("/api/v1/canvas-definitions");await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeComponentDefinition(t){let e=this.createUrl("/api/v1/canvas-definitions");await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async apiClient(t,e){return this.options.limitPolicy(async()=>{var s;let i=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`},n=await this.options.fetch(t.toString(),{...e,headers:{...e==null?void 0:e.headers,...i}});if(!n.ok){let r="";try{let p=await n.text();try{let c=JSON.parse(p);c.errorMessage?r=Array.isArray(c.errorMessage)?c.errorMessage.join(", "):c.errorMessage:r=p}catch(c){r=p}}catch(p){r="General error"}throw new a(r,(s=e==null?void 0:e.method)!=null?s:"GET",t.toString(),n.status,n.statusText,l.getRequestId(n))}return e!=null&&e.expectNoContent?null:await n.json()})}createUrl(t,e){let i=new URL(`${this.options.apiHost}${t}`);return Object.entries(e!=null?e:{}).forEach(([n,s])=>{var r;typeof s!==void 0&&s!==null&&i.searchParams.append(n,(r=s==null?void 0:s.toString())!=null?r:"")}),i}static getRequestId(t){let e=t.headers.get("x-nf-request-id");if(e)return e}};var w="$personalization",U="$test",V="$localization",D="intentTag",v="locale",k="pz",$="test",M="localized",q=0,H=64,z="$pzCrit",F="$tstVrnt",K="$enr";export{R as a,T as b,O as c,h as d,x as e,a as f,l as g,w as h,U as i,V as j,D as k,v as l,k as m,$ as n,M as o,q as p,H as q,z as r,F as s,K as t};
@@ -1,2 +0,0 @@
1
- var A=Object.create;var u=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var R=(o=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(o,{get:(t,e)=>(typeof require!="undefined"?require:t)[e]}):o)(function(o){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});var T=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports);var C=(o,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of f(t))!I.call(o,n)&&n!==e&&u(o,n,{get:()=>t[n],enumerable:!(i=m(t,n))||i.enumerable});return o};var O=(o,t,e)=>(e=o!=null?A(d(o)):{},C(t||!o||!o.__esModule?u(e,"default",{value:o,enumerable:!0}):e,o));import y from"p-throttle";import P from"p-retry";function h({throttle:o={interval:1e3,limit:10},retry:t={retries:1,factor:1.66}}){let e=o?y(o):null;return function(n){let s=async()=>await n();if(e&&(s=e(s)),t){let r=s;s=()=>P(r,t)}return s()}}var E=async o=>await o();var a=class extends Error{constructor(e,i,n,s,r,p){super(`${e}
2
- ${s}${r?" "+r:""} (${i} ${n}${p?` Request ID: ${p}`:""})`);this.errorMessage=e;this.fetchMethod=i;this.fetchUri=n;this.statusCode=s;this.statusText=r;this.requestId=p;Object.setPrototypeOf(this,a.prototype)}},l=class{constructor(t){var i,n,s,r,p;if(!t.apiKey&&!t.bearerToken)throw new Error("You must provide an API key or a bearer token");let e=t.fetch;if(!e)if(typeof globalThis!="undefined"&&typeof globalThis.fetch!="undefined")e=globalThis.fetch.bind(globalThis);else if(typeof fetch!="undefined")e=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...t,fetch:e,apiHost:(i=t.apiHost)!=null?i:"https://uniform.app",apiKey:(n=t.apiKey)!=null?n:null,projectId:(s=t.projectId)!=null?s:null,bearerToken:(r=t.bearerToken)!=null?r:null,limitPolicy:(p=t.limitPolicy)!=null?p:h({})}}async getCompositionList(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async getCompositionBySlug(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async getCompositionById(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas",{...t,projectId:e});return await this.apiClient(i)}async updateComposition(t){let e=this.createUrl("/api/v1/canvas");await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeComposition(t){let e=this.createUrl("/api/v1/canvas"),{projectId:i}=this.options;await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:i}),expectNoContent:!0})}async getComponentDefinitions(t){let{projectId:e}=this.options,i=this.createUrl("/api/v1/canvas-definitions",{...t,projectId:e});return await this.apiClient(i)}async updateComponentDefinition(t){let e=this.createUrl("/api/v1/canvas-definitions");await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeComponentDefinition(t){let e=this.createUrl("/api/v1/canvas-definitions");await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async apiClient(t,e){return this.options.limitPolicy(async()=>{var s;let i=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`},n=await this.options.fetch(t.toString(),{...e,headers:{...e==null?void 0:e.headers,...i}});if(!n.ok){let r="";try{let p=await n.text();try{let c=JSON.parse(p);c.errorMessage?r=Array.isArray(c.errorMessage)?c.errorMessage.join(", "):c.errorMessage:r=p}catch(c){r=p}}catch(p){r="General error"}throw new a(r,(s=e==null?void 0:e.method)!=null?s:"GET",t.toString(),n.status,n.statusText,l.getRequestId(n))}return e!=null&&e.expectNoContent?null:await n.json()})}createUrl(t,e){let i=new URL(`${this.options.apiHost}${t}`);return Object.entries(e!=null?e:{}).forEach(([n,s])=>{var r;typeof s!==void 0&&s!==null&&i.searchParams.append(n,(r=s==null?void 0:s.toString())!=null?r:"")}),i}static getRequestId(t){let e=t.headers.get("x-nf-request-id");if(e)return e}};var U="$personalization",V="$test",D="$localization",v="intentTag",k="locale",$="pz",M="test",q="localized",H=0,z=64,F="$pzCrit",K="$tstVrnt",G="$enr";export{R as a,T as b,O as c,h as d,E as e,a as f,l as g,U as h,V as i,D as j,v as k,k as l,$ as m,M as n,q as o,H as p,z as q,F as r,K as s,G as t};
@@ -1,266 +0,0 @@
1
- import Pusher from 'pusher-js';
2
-
3
- /** @deprecated use CANVAS_DRAFT_STATE and CANVAS_PUBLISHED_STATE instead */
4
- declare type CompositionFetchState = 'preview' | 'published' | number;
5
- /** The GET response from /api/v1/canvas when `component` or `slug` params are specified */
6
- declare type CompositionAPIResponse = {
7
- /** The state of the layout. See CANVAS_DRAFT_STATE and CANVAS_PUBLISHED_STATE. */
8
- state: number;
9
- /** The project ID that this layout data is part of */
10
- projectId: string;
11
- /** Layout data being read or written */
12
- composition: RootComponentInstance;
13
- /** Whether this composition is a pattern (can be referenced by other compositions) */
14
- pattern: boolean;
15
- /** Created date string for this definition */
16
- created?: string;
17
- /** Modified date string for this definition */
18
- modified?: string;
19
- };
20
- /** Shape of the DELETE request body for /api/v1/canvas */
21
- declare type CompositionAPIDeleteRequest = {
22
- /** Public ID of the composition to delete */
23
- compositionId: string;
24
- /** Project ID that the composition lives on. */
25
- projectId: string;
26
- /** The state to delete. If unspecified, all states will be deleted. See CANVAS_DRAFT_STATE and CANVAS_PUBLISHED_STATE. */
27
- state?: number;
28
- };
29
- /** The GET response from /api/v1/canvas when `component` or `slug` are not specified */
30
- declare type CompositionListAPIResponse = {
31
- compositions: Array<CompositionAPIResponse>;
32
- };
33
- /** Query parameter options for GET /api/v1/canvas */
34
- declare type CompositionAPIOptions = {
35
- /** Specify a single composition ID to fetch. Changes response from list to single. */
36
- compositionId?: string;
37
- /** Specify a single composition to fetch by slug. Changes response from list to single. */
38
- slug?: string;
39
- /** The project the composition(s) are on. */
40
- projectId: string;
41
- /** The component type to filter by */
42
- type?: string;
43
- /** Number of records to skip */
44
- offset?: number;
45
- /** Max number of records to return (defaults to 100) */
46
- limit?: number;
47
- /** The state of the composition to fetch (defaults to the published state. See CANVAS_DRAFT_STATE and CANVAS_PUBLISHED_STATE) */
48
- state?: number;
49
- /**
50
- * Signals a Canvas enhancer proxy to skip processing enhancements to the data and return raw data only.
51
- * This improves performance if you do not require enhanced component data.
52
- * If calling the Canvas API directly with no enhancer proxy, this has no effect.
53
- */
54
- skipEnhance?: boolean;
55
- /**
56
- * If true, any pattern references in the composition will be left unresolved.
57
- * This is appropriate if you intend to serialize the composition data without pattern
58
- * data embedded into it, and serialize the pattern data separately.
59
- */
60
- skipPatternResolution?: boolean;
61
- };
62
- declare type ComponentParameter<TValue = unknown> = {
63
- /** The type of the parameter. Determines how it is displayed when editing, and tells the consumer how to process it. */
64
- type: string;
65
- /**
66
- * The value of the parameter.
67
- * Any JSON-serializable value is acceptable.
68
- */
69
- value: TValue;
70
- };
71
- /**
72
- * Defines the shape of a component instance served by the composition API.
73
- */
74
- declare type ComponentInstance = {
75
- /** Type of the component instance (public_id of its definition) */
76
- type: string;
77
- /** Component parameter values for the component instance */
78
- parameters?: Record<string, ComponentParameter>;
79
- /** Public ID of alternate visual appearance for this component, if any selected */
80
- variant?: string;
81
- /** Slots containing any sub-components */
82
- slots?: Record<string, ComponentInstance[]>;
83
- /** Data for the component instance, provided by a component enhancer. Never set in unenhanced data. */
84
- data?: Record<string, unknown>;
85
- /** Indicates this component instance should be sourced from a pattern library pattern */
86
- _pattern?: string;
87
- /**
88
- * If an error occurs resolving a pattern reference, it is left unresolved and this property is set to indicate why.
89
- * CYCLIC: A cyclic pattern graph was detected, which could not be resolved because it would cause an infinite loop.
90
- * NOTFOUND: The pattern ID referenced could not be found. It may have been deleted, or not be published yet.
91
- */
92
- _patternError?: 'CYCLIC' | 'NOTFOUND';
93
- };
94
- /** Defines the shape of the root component in a composition */
95
- declare type RootComponentInstance = ComponentInstance & {
96
- /** The public UUID of the composition. */
97
- _id?: string;
98
- /** Slug pattern of this component. */
99
- _slug?: string | null;
100
- /** Friendly name of this component. */
101
- _name?: string;
102
- };
103
-
104
- /** Shape of the GET response from /api/v1/canvas-definitions */
105
- declare type ComponentDefinitionAPIResponse = {
106
- componentDefinitions: Array<ComponentDefinition>;
107
- };
108
- /** Shape of the PUT request body for /api/v1/canvas-definitions */
109
- declare type ComponentDefinitionAPIPutRequest = {
110
- componentDefinition: CreatingComponentDefinition;
111
- projectId: string;
112
- };
113
- /** Shape of the DELETE request body for /api/v1/canvas-definitions */
114
- declare type ComponentDefinitionAPIDeleteRequest = {
115
- /** Public ID of the component definition to delete */
116
- componentId: string;
117
- /** Project ID that the component definition lives on */
118
- projectId: string;
119
- };
120
- /** Query parameter options for GET /api/v1/canvas-definitions */
121
- declare type ComponentDefinitionListAPIOptions = {
122
- /** Limit list to one result by ID (response remains an array) */
123
- componentId?: string;
124
- /** Number of records to skip */
125
- offset?: number;
126
- /** Max number of records to return (defaults to 100) */
127
- limit?: number;
128
- projectId: string;
129
- };
130
- /** The definition of a component parameter */
131
- declare type ComponentDefinitionParameter<TConfig = unknown> = {
132
- /** Public ID of the parameter (used in code). Do not change after creation. */
133
- id: string;
134
- /** Friendly name of the parameter */
135
- name: string;
136
- /** Appears next to the parameter in the Composition editor */
137
- helpText?: string;
138
- /** Type name of the parameter (provided by a Uniform integration) */
139
- type: string;
140
- /** The configuration object for the type (type-specific) */
141
- typeConfig?: TConfig;
142
- };
143
- /** The definition of a component variant */
144
- declare type ComponentDefinitionVariant = {
145
- /** Public ID of the variant (used in code). Do not change after creation. */
146
- id: string;
147
- /** Friendly name of the variant */
148
- name: string;
149
- };
150
- /** The definition of a component slug */
151
- declare type ComponentDefinitionSlugSettings = {
152
- /**
153
- * Is slug required
154
- * no: slug is optional
155
- * yes: slug is required
156
- * disabled: slug is disabled and will not be shown in the editor
157
- * @default no
158
- */
159
- required?: 'no' | 'yes' | 'disabled';
160
- /** Slug uniqueness configuration.
161
- * no = no unique constraint
162
- * local = must be unique within this component type
163
- * global = must be unique across all component types
164
- * @default no
165
- */
166
- unique?: 'no' | 'local' | 'global';
167
- /** Regular expression slugs must match */
168
- regularExpression?: string;
169
- /**
170
- * Custom error message when regular expression validation fails.
171
- * Has no effect if `regularExpression` is not set.
172
- */
173
- regularExpressionMessage?: string;
174
- };
175
- /** The definition of a named component slot that can contain other components */
176
- declare type ComponentDefinitionSlot = {
177
- /** Public ID of the slot (used in code). Do not change after creation. */
178
- id: string;
179
- /** Friendly name of the slot */
180
- name: string;
181
- /** Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant. */
182
- inheritAllowedComponents: boolean;
183
- /** A list of component definition public IDs that are allowed in this named slot */
184
- allowedComponents: Array<string>;
185
- /** Minimum valid number of components in this slot */
186
- minComponents?: number;
187
- /** Maximum valid number of components in this slot */
188
- maxComponents?: number;
189
- };
190
- /** Permission set for a component defintion */
191
- declare type ComponentDefinitionPermission = {
192
- /** Role ID associated with this permission */
193
- roleId: string;
194
- /** Permission type for this defintion read | write | delete. */
195
- permission: string;
196
- /** State of the component that this permission applies to */
197
- state: number;
198
- };
199
- /** Defines a component type that can live on a Composition */
200
- declare type ComponentDefinition = {
201
- /** Public ID of the component (used in code). Do not change after creation. */
202
- id: string;
203
- /** Friendly name of the component definition */
204
- name: string;
205
- /** Icon name for the component definition (e.g. 'screen') */
206
- icon: string;
207
- /** Applicable role permissions */
208
- permissions?: Array<ComponentDefinitionPermission>;
209
- /** if this component uses team permissions or custom permissions */
210
- useTeamPermissions?: boolean;
211
- /**
212
- * The public ID of the parameter whose value should be used to create a display title for this component in the UI.
213
- * The parameter type must support being used as a title parameter for this to work.
214
- */
215
- titleParameter?: string | null;
216
- /** Whether this component type can be the root of a composition. If false, this component is only used within slots on other components. */
217
- canBeComposition?: boolean;
218
- /** The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
219
- parameters?: Array<ComponentDefinitionParameter>;
220
- /** The named slots for this component; placement areas where arrays of other components can be added. */
221
- slots?: Array<ComponentDefinitionSlot>;
222
- /** Default component instance value */
223
- defaults?: ComponentInstance | null;
224
- /** Named variants for this component; enables creation of visual variants that use the same parameter data/ */
225
- variants?: Array<ComponentDefinitionVariant>;
226
- /** Setting for slug validation */
227
- slugSettings?: ComponentDefinitionSlugSettings;
228
- /** Created date string for this definition */
229
- created?: string;
230
- /** Updated date string for this definition */
231
- updated?: string;
232
- /** Modified date string for this definition */
233
- modified?: string;
234
- };
235
- /** Defines a component type that can live on a Composition, when it is being created or updated */
236
- declare type CreatingComponentDefinition = Omit<Partial<ComponentDefinition>, 'created' | 'modified' | 'id' | 'name'> & {
237
- id: string;
238
- name: string;
239
- };
240
-
241
- /**
242
- * Pusher-js is large (80k) and not tree shakable so it is always bundled if directly referenced,
243
- * when it's only needed during preview mode. To avoid bundling it for all, we use an old-school
244
- * write-a-script-tag hack to load it in a poor man's approximation of a dynamic import ;)
245
- */
246
- declare type ChannelSubscription = {
247
- addEventHandler: (eventName: string, handler: (data: unknown) => void) => () => void;
248
- unsubscribe: () => void;
249
- };
250
- declare type PreviewEventBus = {
251
- subscribe: (channel: string) => ChannelSubscription;
252
- };
253
- declare global {
254
- interface Window {
255
- Pusher?: typeof Pusher;
256
- __UNIFORM_EVENT_BUS__?: PreviewEventBus;
257
- }
258
- }
259
- /**
260
- * Creates an event bus client to receive updates from Canvas
261
- * IMPORTANT: in a server-side context this will always return undefined
262
- * IMPORTANT: in a browser context this is cached in window and does not create multiple instances
263
- */
264
- declare function createEventBus(): Promise<PreviewEventBus | undefined>;
265
-
266
- export { ComponentInstance as C, PreviewEventBus as P, RootComponentInstance as R, ComponentParameter as a, CompositionAPIOptions as b, CompositionListAPIResponse as c, CompositionAPIResponse as d, CompositionAPIDeleteRequest as e, ComponentDefinitionListAPIOptions as f, ComponentDefinitionAPIResponse as g, ComponentDefinitionAPIPutRequest as h, ComponentDefinitionAPIDeleteRequest as i, ComponentDefinitionParameter as j, ComponentDefinitionVariant as k, ComponentDefinitionSlugSettings as l, ComponentDefinitionSlot as m, ComponentDefinitionPermission as n, ComponentDefinition as o, CreatingComponentDefinition as p, CompositionFetchState as q, ChannelSubscription as r, createEventBus as s };