@osdk/widget.client 3.2.4 → 3.2.6
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 +14 -0
- package/build/browser/client.js +6 -0
- package/build/browser/client.js.map +1 -1
- package/build/cjs/index.cjs +6 -0
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +4 -0
- package/build/esm/client.js +6 -0
- package/build/esm/client.js.map +1 -1
- package/build/types/client.d.ts +4 -0
- package/build/types/client.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @osdk/widget.client
|
|
2
2
|
|
|
3
|
+
## 3.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @osdk/widget.api@3.2.6
|
|
8
|
+
|
|
9
|
+
## 3.2.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a2df5ba: Introduce widget resize message for automatic heights
|
|
14
|
+
- Updated dependencies [a2df5ba]
|
|
15
|
+
- @osdk/widget.api@3.2.5
|
|
16
|
+
|
|
3
17
|
## 3.2.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/build/browser/client.js
CHANGED
|
@@ -44,6 +44,12 @@ export function createFoundryWidgetClient() {
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
},
|
|
47
|
+
resize: payload => {
|
|
48
|
+
sendMessageToHost({
|
|
49
|
+
type: "widget.resize",
|
|
50
|
+
payload
|
|
51
|
+
});
|
|
52
|
+
},
|
|
47
53
|
emitEvent: (eventId, payload) => {
|
|
48
54
|
sendMessageToHost({
|
|
49
55
|
type: "widget.emit-event",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","names":["HostMessage","visitHostMessage","invariant","FoundryHostEventTarget","createFoundryWidgetClient","window","process","env","NODE_ENV","widgetApi","__PALANTIR_WIDGET_API__","hostEventTarget","listenForHostMessages","event","detail","payload","dispatchEventMessage","_unknown","sendMessageToHost","message","sendMessage","ready","type","apiVersion","Version","emitEvent","eventId","subscribe","addEventListener","unsubscribe","removeEventListener"],"sources":["client.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n HostMessage,\n visitHostMessage,\n type WidgetConfig,\n type WidgetMessage,\n} from \"@osdk/widget.api\";\nimport invariant from \"tiny-invariant\";\nimport { FoundryHostEventTarget } from \"./host.js\";\n\nexport interface FoundryWidgetClient<C extends WidgetConfig<C[\"parameters\"]>> {\n /**\n * Notifies the host that this client is ready to receive the first parameter values\n */\n ready: () => void;\n\n /**\n * Emits an event with the given ID and payload\n */\n emitEvent: <\n M extends WidgetMessage.EmitEvent<C>,\n ID extends M[\"payload\"][\"eventId\"],\n >(\n eventId: ID,\n payload: Omit<\n ExtractEmitEventPayload<M, ID>,\n \"eventId\"\n >,\n ) => void;\n\n /**\n * Sends a message to the parent frame.\n * It is recommended to use the convenience methods for individual messages (e.g. ready or emitEvent) instead\n */\n sendMessage: <M extends WidgetMessage<C>>(message: M) => void;\n\n /**\n * Subscribes to events from the host, invoking the listener when a message is received\n */\n subscribe: () => void;\n\n /**\n * Unsubscribes a previously subscribed listener from host events, if one exists\n */\n unsubscribe: () => void;\n\n /**\n * Event targets on which you can subscribe to specific host messages\n */\n hostEventTarget: FoundryHostEventTarget<C>;\n}\n\ntype ExtractEmitEventPayload<\n M extends WidgetMessage.EmitEvent<any>,\n ID extends M[\"payload\"][\"eventId\"],\n> = Extract<\n M[\"payload\"],\n { eventId: ID }\n>;\n\ninterface PalantirWidgetApiEvents<C extends WidgetConfig<C[\"parameters\"]>> {\n message: CustomEvent<HostMessage<C>>;\n}\n\ninterface PalantirWidgetApi<C extends WidgetConfig<C[\"parameters\"]>> {\n sendMessage: <M extends WidgetMessage<C>>(message: M) => void;\n addEventListener<K extends keyof PalantirWidgetApiEvents<C>>(\n type: K,\n listener: (ev: PalantirWidgetApiEvents<C>[K]) => any,\n options?: boolean | AddEventListenerOptions,\n ): void;\n removeEventListener<K extends keyof PalantirWidgetApiEvents<C>>(\n type: K,\n listener: (ev: PalantirWidgetApiEvents<C>[K]) => any,\n options?: boolean | EventListenerOptions,\n ): void;\n}\n\nexport function createFoundryWidgetClient<\n C extends WidgetConfig<C[\"parameters\"]>,\n>(): FoundryWidgetClient<C> {\n invariant(\n \"__PALANTIR_WIDGET_API__\" in window,\n \"[FoundryWidgetClient] Missing __PALANTIR_WIDGET_API__ in window\",\n );\n const widgetApi = window.__PALANTIR_WIDGET_API__ as PalantirWidgetApi<C>;\n const hostEventTarget = new FoundryHostEventTarget<C>();\n\n const listenForHostMessages = (event: CustomEvent<HostMessage<C>>) => {\n visitHostMessage(event.detail, {\n \"host.update-parameters\": (payload) => {\n hostEventTarget.dispatchEventMessage(\"host.update-parameters\", payload);\n },\n _unknown: () => {\n // Do nothing\n },\n });\n };\n const sendMessageToHost = <M extends WidgetMessage<C>>(message: M) => {\n widgetApi.sendMessage(message);\n };\n\n return {\n hostEventTarget,\n ready: () => {\n sendMessageToHost({\n type: \"widget.ready\",\n payload: {\n apiVersion: HostMessage.Version,\n },\n });\n },\n emitEvent: (eventId, payload) => {\n sendMessageToHost({\n type: \"widget.emit-event\",\n payload: {\n eventId,\n ...payload,\n },\n });\n },\n sendMessage: sendMessageToHost,\n subscribe: () => {\n widgetApi.addEventListener(\"message\", listenForHostMessages);\n },\n unsubscribe: () => {\n widgetApi.removeEventListener(\"message\", listenForHostMessages);\n },\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,WAAW,EACXC,gBAAgB,QAGX,kBAAkB;AACzB,OAAOC,SAAS,MAAM,gBAAgB;AACtC,SAASC,sBAAsB,QAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"client.js","names":["HostMessage","visitHostMessage","invariant","FoundryHostEventTarget","createFoundryWidgetClient","window","process","env","NODE_ENV","widgetApi","__PALANTIR_WIDGET_API__","hostEventTarget","listenForHostMessages","event","detail","payload","dispatchEventMessage","_unknown","sendMessageToHost","message","sendMessage","ready","type","apiVersion","Version","resize","emitEvent","eventId","subscribe","addEventListener","unsubscribe","removeEventListener"],"sources":["client.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n HostMessage,\n visitHostMessage,\n type WidgetConfig,\n type WidgetMessage,\n} from \"@osdk/widget.api\";\nimport invariant from \"tiny-invariant\";\nimport { FoundryHostEventTarget } from \"./host.js\";\n\nexport interface FoundryWidgetClient<C extends WidgetConfig<C[\"parameters\"]>> {\n /**\n * Notifies the host that this client is ready to receive the first parameter values\n */\n ready: () => void;\n\n /**\n * Notifies the host that the widget has resized\n */\n resize: (payload: WidgetMessage.Payload.Resize) => void;\n\n /**\n * Emits an event with the given ID and payload\n */\n emitEvent: <\n M extends WidgetMessage.EmitEvent<C>,\n ID extends M[\"payload\"][\"eventId\"],\n >(\n eventId: ID,\n payload: Omit<\n ExtractEmitEventPayload<M, ID>,\n \"eventId\"\n >,\n ) => void;\n\n /**\n * Sends a message to the parent frame.\n * It is recommended to use the convenience methods for individual messages (e.g. ready or emitEvent) instead\n */\n sendMessage: <M extends WidgetMessage<C>>(message: M) => void;\n\n /**\n * Subscribes to events from the host, invoking the listener when a message is received\n */\n subscribe: () => void;\n\n /**\n * Unsubscribes a previously subscribed listener from host events, if one exists\n */\n unsubscribe: () => void;\n\n /**\n * Event targets on which you can subscribe to specific host messages\n */\n hostEventTarget: FoundryHostEventTarget<C>;\n}\n\ntype ExtractEmitEventPayload<\n M extends WidgetMessage.EmitEvent<any>,\n ID extends M[\"payload\"][\"eventId\"],\n> = Extract<\n M[\"payload\"],\n { eventId: ID }\n>;\n\ninterface PalantirWidgetApiEvents<C extends WidgetConfig<C[\"parameters\"]>> {\n message: CustomEvent<HostMessage<C>>;\n}\n\ninterface PalantirWidgetApi<C extends WidgetConfig<C[\"parameters\"]>> {\n sendMessage: <M extends WidgetMessage<C>>(message: M) => void;\n addEventListener<K extends keyof PalantirWidgetApiEvents<C>>(\n type: K,\n listener: (ev: PalantirWidgetApiEvents<C>[K]) => any,\n options?: boolean | AddEventListenerOptions,\n ): void;\n removeEventListener<K extends keyof PalantirWidgetApiEvents<C>>(\n type: K,\n listener: (ev: PalantirWidgetApiEvents<C>[K]) => any,\n options?: boolean | EventListenerOptions,\n ): void;\n}\n\nexport function createFoundryWidgetClient<\n C extends WidgetConfig<C[\"parameters\"]>,\n>(): FoundryWidgetClient<C> {\n invariant(\n \"__PALANTIR_WIDGET_API__\" in window,\n \"[FoundryWidgetClient] Missing __PALANTIR_WIDGET_API__ in window\",\n );\n const widgetApi = window.__PALANTIR_WIDGET_API__ as PalantirWidgetApi<C>;\n const hostEventTarget = new FoundryHostEventTarget<C>();\n\n const listenForHostMessages = (event: CustomEvent<HostMessage<C>>) => {\n visitHostMessage(event.detail, {\n \"host.update-parameters\": (payload) => {\n hostEventTarget.dispatchEventMessage(\"host.update-parameters\", payload);\n },\n _unknown: () => {\n // Do nothing\n },\n });\n };\n const sendMessageToHost = <M extends WidgetMessage<C>>(message: M) => {\n widgetApi.sendMessage(message);\n };\n\n return {\n hostEventTarget,\n ready: () => {\n sendMessageToHost({\n type: \"widget.ready\",\n payload: {\n apiVersion: HostMessage.Version,\n },\n });\n },\n resize: (payload) => {\n sendMessageToHost({\n type: \"widget.resize\",\n payload,\n });\n },\n emitEvent: (eventId, payload) => {\n sendMessageToHost({\n type: \"widget.emit-event\",\n payload: {\n eventId,\n ...payload,\n },\n });\n },\n sendMessage: sendMessageToHost,\n subscribe: () => {\n widgetApi.addEventListener(\"message\", listenForHostMessages);\n },\n unsubscribe: () => {\n widgetApi.removeEventListener(\"message\", listenForHostMessages);\n },\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,WAAW,EACXC,gBAAgB,QAGX,kBAAkB;AACzB,OAAOC,SAAS,MAAM,gBAAgB;AACtC,SAASC,sBAAsB,QAAQ,WAAW;AA2ElD,OAAO,SAASC,yBAAyBA,CAAA,EAEb;EAC1B,EACE,yBAAyB,IAAIC,MAAM,IAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBADrCN,SAAS,QAEP,iEAAiE,IAFnEA,SAAS;EAIT,MAAMO,SAAS,GAAGJ,MAAM,CAACK,uBAA+C;EACxE,MAAMC,eAAe,GAAG,IAAIR,sBAAsB,CAAI,CAAC;EAEvD,MAAMS,qBAAqB,GAAIC,KAAkC,IAAK;IACpEZ,gBAAgB,CAACY,KAAK,CAACC,MAAM,EAAE;MAC7B,wBAAwB,EAAGC,OAAO,IAAK;QACrCJ,eAAe,CAACK,oBAAoB,CAAC,wBAAwB,EAAED,OAAO,CAAC;MACzE,CAAC;MACDE,QAAQ,EAAEA,CAAA,KAAM;QACd;MAAA;IAEJ,CAAC,CAAC;EACJ,CAAC;EACD,MAAMC,iBAAiB,GAAgCC,OAAU,IAAK;IACpEV,SAAS,CAACW,WAAW,CAACD,OAAO,CAAC;EAChC,CAAC;EAED,OAAO;IACLR,eAAe;IACfU,KAAK,EAAEA,CAAA,KAAM;MACXH,iBAAiB,CAAC;QAChBI,IAAI,EAAE,cAAc;QACpBP,OAAO,EAAE;UACPQ,UAAU,EAAEvB,WAAW,CAACwB;QAC1B;MACF,CAAC,CAAC;IACJ,CAAC;IACDC,MAAM,EAAGV,OAAO,IAAK;MACnBG,iBAAiB,CAAC;QAChBI,IAAI,EAAE,eAAe;QACrBP;MACF,CAAC,CAAC;IACJ,CAAC;IACDW,SAAS,EAAEA,CAACC,OAAO,EAAEZ,OAAO,KAAK;MAC/BG,iBAAiB,CAAC;QAChBI,IAAI,EAAE,mBAAmB;QACzBP,OAAO,EAAE;UACPY,OAAO;UACP,GAAGZ;QACL;MACF,CAAC,CAAC;IACJ,CAAC;IACDK,WAAW,EAAEF,iBAAiB;IAC9BU,SAAS,EAAEA,CAAA,KAAM;MACfnB,SAAS,CAACoB,gBAAgB,CAAC,SAAS,EAAEjB,qBAAqB,CAAC;IAC9D,CAAC;IACDkB,WAAW,EAAEA,CAAA,KAAM;MACjBrB,SAAS,CAACsB,mBAAmB,CAAC,SAAS,EAAEnB,qBAAqB,CAAC;IACjE;EACF,CAAC;AACH","ignoreList":[]}
|
package/build/cjs/index.cjs
CHANGED
package/build/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/host.ts","../../src/client.ts"],"names":["invariant","visitHostMessage","HostMessage"],"mappings":";;;;;;;;;;;;AAgBa,IAAA,sBAAA,GAAN,cAAqC,WAAY,CAAA;AAAA,EACtD,gBAAA,CAAiB,IAAM,EAAA,QAAA,EAAU,OAAS,EAAA;AACxC,IAAM,KAAA,CAAA,gBAAA,CAAiB,IAAM,EAAA,QAAA,EAAU,OAAO,CAAA;AAAA;AAChD,EACA,mBAAA,CAAoB,IAAM,EAAA,QAAA,EAAU,OAAS,EAAA;AAC3C,IAAM,KAAA,CAAA,mBAAA,CAAoB,IAAM,EAAA,QAAA,EAAU,OAAO,CAAA;AAAA;AACnD,EACA,oBAAA,CAAqB,MAAM,OAAS,EAAA;AAClC,IAAK,IAAA,CAAA,aAAA,CAAc,IAAI,WAAA,CAAY,IAAM,EAAA;AAAA,MACvC,MAAQ,EAAA;AAAA,KACT,CAAC,CAAA;AAAA;AAEN;;;ACTO,SAAS,yBAA4B,GAAA;AAC1C,EAAA,EAAE,yBAA6B,IAAA,MAAA,CAAA,GAAU,OAAQ,CAAA,GAAA,CAAI,QAAa,KAAA,YAAA,GAAeA,0BAAU,CAAA,KAAA,EAAO,iEAAiE,CAAA,GAAIA,0BAAU,CAAA,KAAK,CAAI,GAAA,MAAA;AAC1L,EAAA,MAAM,YAAY,MAAO,CAAA,uBAAA;AACzB,EAAM,MAAA,eAAA,GAAkB,IAAI,sBAAuB,EAAA;AACnD,EAAA,MAAM,wBAAwB,CAAS,KAAA,KAAA;AACrC,IAAAC,2BAAA,CAAiB,MAAM,MAAQ,EAAA;AAAA,MAC7B,0BAA0B,CAAW,OAAA,KAAA;AACnC,QAAgB,eAAA,CAAA,oBAAA,CAAqB,0BAA0B,OAAO,CAAA;AAAA,OACxE;AAAA,MACA,UAAU,MAAM;AAAA;AAEhB,KACD,CAAA;AAAA,GACH;AACA,EAAA,MAAM,oBAAoB,CAAW,OAAA,KAAA;AACnC,IAAA,SAAA,CAAU,YAAY,OAAO,CAAA;AAAA,GAC/B;AACA,EAAO,OAAA;AAAA,IACL,eAAA;AAAA,IACA,OAAO,MAAM;AACX,MAAkB,iBAAA,CAAA;AAAA,QAChB,IAAM,EAAA,cAAA;AAAA,QACN,OAAS,EAAA;AAAA,UACP,YAAYC,sBAAY,CAAA;AAAA;AAC1B,OACD,CAAA;AAAA,KACH;AAAA,IACA,SAAA,EAAW,CAAC,OAAA,EAAS,OAAY,KAAA;AAC/B,MAAkB,iBAAA,CAAA;AAAA,QAChB,IAAM,EAAA,mBAAA;AAAA,QACN,OAAS,EAAA;AAAA,UACP,OAAA;AAAA,UACA,GAAG;AAAA;AACL,OACD,CAAA;AAAA,KACH;AAAA,IACA,WAAa,EAAA,iBAAA;AAAA,IACb,WAAW,MAAM;AACf,MAAU,SAAA,CAAA,gBAAA,CAAiB,WAAW,qBAAqB,CAAA;AAAA,KAC7D;AAAA,IACA,aAAa,MAAM;AACjB,MAAU,SAAA,CAAA,mBAAA,CAAoB,WAAW,qBAAqB,CAAA;AAAA;AAChE,GACF;AACF","file":"index.cjs","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class FoundryHostEventTarget extends EventTarget {\n addEventListener(type, callback, options) {\n super.addEventListener(type, callback, options);\n }\n removeEventListener(type, callback, options) {\n super.removeEventListener(type, callback, options);\n }\n dispatchEventMessage(type, payload) {\n this.dispatchEvent(new CustomEvent(type, {\n detail: payload\n }));\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { HostMessage, visitHostMessage } from \"@osdk/widget.api\";\nimport invariant from \"tiny-invariant\";\nimport { FoundryHostEventTarget } from \"./host.js\";\nexport function createFoundryWidgetClient() {\n !(\"__PALANTIR_WIDGET_API__\" in window) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"[FoundryWidgetClient] Missing __PALANTIR_WIDGET_API__ in window\") : invariant(false) : void 0;\n const widgetApi = window.__PALANTIR_WIDGET_API__;\n const hostEventTarget = new FoundryHostEventTarget();\n const listenForHostMessages = event => {\n visitHostMessage(event.detail, {\n \"host.update-parameters\": payload => {\n hostEventTarget.dispatchEventMessage(\"host.update-parameters\", payload);\n },\n _unknown: () => {\n // Do nothing\n }\n });\n };\n const sendMessageToHost = message => {\n widgetApi.sendMessage(message);\n };\n return {\n hostEventTarget,\n ready: () => {\n sendMessageToHost({\n type: \"widget.ready\",\n payload: {\n apiVersion: HostMessage.Version\n }\n });\n },\n emitEvent: (eventId, payload) => {\n sendMessageToHost({\n type: \"widget.emit-event\",\n payload: {\n eventId,\n ...payload\n }\n });\n },\n sendMessage: sendMessageToHost,\n subscribe: () => {\n widgetApi.addEventListener(\"message\", listenForHostMessages);\n },\n unsubscribe: () => {\n widgetApi.removeEventListener(\"message\", listenForHostMessages);\n }\n };\n}"]}
|
|
1
|
+
{"version":3,"sources":["../../src/host.ts","../../src/client.ts"],"names":["invariant","visitHostMessage","HostMessage"],"mappings":";;;;;;;;;;;;AAgBa,IAAA,sBAAA,GAAN,cAAqC,WAAY,CAAA;AAAA,EACtD,gBAAA,CAAiB,IAAM,EAAA,QAAA,EAAU,OAAS,EAAA;AACxC,IAAM,KAAA,CAAA,gBAAA,CAAiB,IAAM,EAAA,QAAA,EAAU,OAAO,CAAA;AAAA;AAChD,EACA,mBAAA,CAAoB,IAAM,EAAA,QAAA,EAAU,OAAS,EAAA;AAC3C,IAAM,KAAA,CAAA,mBAAA,CAAoB,IAAM,EAAA,QAAA,EAAU,OAAO,CAAA;AAAA;AACnD,EACA,oBAAA,CAAqB,MAAM,OAAS,EAAA;AAClC,IAAK,IAAA,CAAA,aAAA,CAAc,IAAI,WAAA,CAAY,IAAM,EAAA;AAAA,MACvC,MAAQ,EAAA;AAAA,KACT,CAAC,CAAA;AAAA;AAEN;;;ACTO,SAAS,yBAA4B,GAAA;AAC1C,EAAA,EAAE,yBAA6B,IAAA,MAAA,CAAA,GAAU,OAAQ,CAAA,GAAA,CAAI,QAAa,KAAA,YAAA,GAAeA,0BAAU,CAAA,KAAA,EAAO,iEAAiE,CAAA,GAAIA,0BAAU,CAAA,KAAK,CAAI,GAAA,MAAA;AAC1L,EAAA,MAAM,YAAY,MAAO,CAAA,uBAAA;AACzB,EAAM,MAAA,eAAA,GAAkB,IAAI,sBAAuB,EAAA;AACnD,EAAA,MAAM,wBAAwB,CAAS,KAAA,KAAA;AACrC,IAAAC,2BAAA,CAAiB,MAAM,MAAQ,EAAA;AAAA,MAC7B,0BAA0B,CAAW,OAAA,KAAA;AACnC,QAAgB,eAAA,CAAA,oBAAA,CAAqB,0BAA0B,OAAO,CAAA;AAAA,OACxE;AAAA,MACA,UAAU,MAAM;AAAA;AAEhB,KACD,CAAA;AAAA,GACH;AACA,EAAA,MAAM,oBAAoB,CAAW,OAAA,KAAA;AACnC,IAAA,SAAA,CAAU,YAAY,OAAO,CAAA;AAAA,GAC/B;AACA,EAAO,OAAA;AAAA,IACL,eAAA;AAAA,IACA,OAAO,MAAM;AACX,MAAkB,iBAAA,CAAA;AAAA,QAChB,IAAM,EAAA,cAAA;AAAA,QACN,OAAS,EAAA;AAAA,UACP,YAAYC,sBAAY,CAAA;AAAA;AAC1B,OACD,CAAA;AAAA,KACH;AAAA,IACA,QAAQ,CAAW,OAAA,KAAA;AACjB,MAAkB,iBAAA,CAAA;AAAA,QAChB,IAAM,EAAA,eAAA;AAAA,QACN;AAAA,OACD,CAAA;AAAA,KACH;AAAA,IACA,SAAA,EAAW,CAAC,OAAA,EAAS,OAAY,KAAA;AAC/B,MAAkB,iBAAA,CAAA;AAAA,QAChB,IAAM,EAAA,mBAAA;AAAA,QACN,OAAS,EAAA;AAAA,UACP,OAAA;AAAA,UACA,GAAG;AAAA;AACL,OACD,CAAA;AAAA,KACH;AAAA,IACA,WAAa,EAAA,iBAAA;AAAA,IACb,WAAW,MAAM;AACf,MAAU,SAAA,CAAA,gBAAA,CAAiB,WAAW,qBAAqB,CAAA;AAAA,KAC7D;AAAA,IACA,aAAa,MAAM;AACjB,MAAU,SAAA,CAAA,mBAAA,CAAoB,WAAW,qBAAqB,CAAA;AAAA;AAChE,GACF;AACF","file":"index.cjs","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class FoundryHostEventTarget extends EventTarget {\n addEventListener(type, callback, options) {\n super.addEventListener(type, callback, options);\n }\n removeEventListener(type, callback, options) {\n super.removeEventListener(type, callback, options);\n }\n dispatchEventMessage(type, payload) {\n this.dispatchEvent(new CustomEvent(type, {\n detail: payload\n }));\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { HostMessage, visitHostMessage } from \"@osdk/widget.api\";\nimport invariant from \"tiny-invariant\";\nimport { FoundryHostEventTarget } from \"./host.js\";\nexport function createFoundryWidgetClient() {\n !(\"__PALANTIR_WIDGET_API__\" in window) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"[FoundryWidgetClient] Missing __PALANTIR_WIDGET_API__ in window\") : invariant(false) : void 0;\n const widgetApi = window.__PALANTIR_WIDGET_API__;\n const hostEventTarget = new FoundryHostEventTarget();\n const listenForHostMessages = event => {\n visitHostMessage(event.detail, {\n \"host.update-parameters\": payload => {\n hostEventTarget.dispatchEventMessage(\"host.update-parameters\", payload);\n },\n _unknown: () => {\n // Do nothing\n }\n });\n };\n const sendMessageToHost = message => {\n widgetApi.sendMessage(message);\n };\n return {\n hostEventTarget,\n ready: () => {\n sendMessageToHost({\n type: \"widget.ready\",\n payload: {\n apiVersion: HostMessage.Version\n }\n });\n },\n resize: payload => {\n sendMessageToHost({\n type: \"widget.resize\",\n payload\n });\n },\n emitEvent: (eventId, payload) => {\n sendMessageToHost({\n type: \"widget.emit-event\",\n payload: {\n eventId,\n ...payload\n }\n });\n },\n sendMessage: sendMessageToHost,\n subscribe: () => {\n widgetApi.addEventListener(\"message\", listenForHostMessages);\n },\n unsubscribe: () => {\n widgetApi.removeEventListener(\"message\", listenForHostMessages);\n }\n };\n}"]}
|
package/build/cjs/index.d.cts
CHANGED
|
@@ -28,6 +28,10 @@ interface FoundryWidgetClient<C extends WidgetConfig<C["parameters"]>> {
|
|
|
28
28
|
* Notifies the host that this client is ready to receive the first parameter values
|
|
29
29
|
*/
|
|
30
30
|
ready: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Notifies the host that the widget has resized
|
|
33
|
+
*/
|
|
34
|
+
resize: (payload: WidgetMessage.Payload.Resize) => void;
|
|
31
35
|
/**
|
|
32
36
|
* Emits an event with the given ID and payload
|
|
33
37
|
*/
|
package/build/esm/client.js
CHANGED
|
@@ -44,6 +44,12 @@ export function createFoundryWidgetClient() {
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
},
|
|
47
|
+
resize: payload => {
|
|
48
|
+
sendMessageToHost({
|
|
49
|
+
type: "widget.resize",
|
|
50
|
+
payload
|
|
51
|
+
});
|
|
52
|
+
},
|
|
47
53
|
emitEvent: (eventId, payload) => {
|
|
48
54
|
sendMessageToHost({
|
|
49
55
|
type: "widget.emit-event",
|
package/build/esm/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","names":["HostMessage","visitHostMessage","invariant","FoundryHostEventTarget","createFoundryWidgetClient","window","process","env","NODE_ENV","widgetApi","__PALANTIR_WIDGET_API__","hostEventTarget","listenForHostMessages","event","detail","payload","dispatchEventMessage","_unknown","sendMessageToHost","message","sendMessage","ready","type","apiVersion","Version","emitEvent","eventId","subscribe","addEventListener","unsubscribe","removeEventListener"],"sources":["client.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n HostMessage,\n visitHostMessage,\n type WidgetConfig,\n type WidgetMessage,\n} from \"@osdk/widget.api\";\nimport invariant from \"tiny-invariant\";\nimport { FoundryHostEventTarget } from \"./host.js\";\n\nexport interface FoundryWidgetClient<C extends WidgetConfig<C[\"parameters\"]>> {\n /**\n * Notifies the host that this client is ready to receive the first parameter values\n */\n ready: () => void;\n\n /**\n * Emits an event with the given ID and payload\n */\n emitEvent: <\n M extends WidgetMessage.EmitEvent<C>,\n ID extends M[\"payload\"][\"eventId\"],\n >(\n eventId: ID,\n payload: Omit<\n ExtractEmitEventPayload<M, ID>,\n \"eventId\"\n >,\n ) => void;\n\n /**\n * Sends a message to the parent frame.\n * It is recommended to use the convenience methods for individual messages (e.g. ready or emitEvent) instead\n */\n sendMessage: <M extends WidgetMessage<C>>(message: M) => void;\n\n /**\n * Subscribes to events from the host, invoking the listener when a message is received\n */\n subscribe: () => void;\n\n /**\n * Unsubscribes a previously subscribed listener from host events, if one exists\n */\n unsubscribe: () => void;\n\n /**\n * Event targets on which you can subscribe to specific host messages\n */\n hostEventTarget: FoundryHostEventTarget<C>;\n}\n\ntype ExtractEmitEventPayload<\n M extends WidgetMessage.EmitEvent<any>,\n ID extends M[\"payload\"][\"eventId\"],\n> = Extract<\n M[\"payload\"],\n { eventId: ID }\n>;\n\ninterface PalantirWidgetApiEvents<C extends WidgetConfig<C[\"parameters\"]>> {\n message: CustomEvent<HostMessage<C>>;\n}\n\ninterface PalantirWidgetApi<C extends WidgetConfig<C[\"parameters\"]>> {\n sendMessage: <M extends WidgetMessage<C>>(message: M) => void;\n addEventListener<K extends keyof PalantirWidgetApiEvents<C>>(\n type: K,\n listener: (ev: PalantirWidgetApiEvents<C>[K]) => any,\n options?: boolean | AddEventListenerOptions,\n ): void;\n removeEventListener<K extends keyof PalantirWidgetApiEvents<C>>(\n type: K,\n listener: (ev: PalantirWidgetApiEvents<C>[K]) => any,\n options?: boolean | EventListenerOptions,\n ): void;\n}\n\nexport function createFoundryWidgetClient<\n C extends WidgetConfig<C[\"parameters\"]>,\n>(): FoundryWidgetClient<C> {\n invariant(\n \"__PALANTIR_WIDGET_API__\" in window,\n \"[FoundryWidgetClient] Missing __PALANTIR_WIDGET_API__ in window\",\n );\n const widgetApi = window.__PALANTIR_WIDGET_API__ as PalantirWidgetApi<C>;\n const hostEventTarget = new FoundryHostEventTarget<C>();\n\n const listenForHostMessages = (event: CustomEvent<HostMessage<C>>) => {\n visitHostMessage(event.detail, {\n \"host.update-parameters\": (payload) => {\n hostEventTarget.dispatchEventMessage(\"host.update-parameters\", payload);\n },\n _unknown: () => {\n // Do nothing\n },\n });\n };\n const sendMessageToHost = <M extends WidgetMessage<C>>(message: M) => {\n widgetApi.sendMessage(message);\n };\n\n return {\n hostEventTarget,\n ready: () => {\n sendMessageToHost({\n type: \"widget.ready\",\n payload: {\n apiVersion: HostMessage.Version,\n },\n });\n },\n emitEvent: (eventId, payload) => {\n sendMessageToHost({\n type: \"widget.emit-event\",\n payload: {\n eventId,\n ...payload,\n },\n });\n },\n sendMessage: sendMessageToHost,\n subscribe: () => {\n widgetApi.addEventListener(\"message\", listenForHostMessages);\n },\n unsubscribe: () => {\n widgetApi.removeEventListener(\"message\", listenForHostMessages);\n },\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,WAAW,EACXC,gBAAgB,QAGX,kBAAkB;AACzB,OAAOC,SAAS,MAAM,gBAAgB;AACtC,SAASC,sBAAsB,QAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"client.js","names":["HostMessage","visitHostMessage","invariant","FoundryHostEventTarget","createFoundryWidgetClient","window","process","env","NODE_ENV","widgetApi","__PALANTIR_WIDGET_API__","hostEventTarget","listenForHostMessages","event","detail","payload","dispatchEventMessage","_unknown","sendMessageToHost","message","sendMessage","ready","type","apiVersion","Version","resize","emitEvent","eventId","subscribe","addEventListener","unsubscribe","removeEventListener"],"sources":["client.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n HostMessage,\n visitHostMessage,\n type WidgetConfig,\n type WidgetMessage,\n} from \"@osdk/widget.api\";\nimport invariant from \"tiny-invariant\";\nimport { FoundryHostEventTarget } from \"./host.js\";\n\nexport interface FoundryWidgetClient<C extends WidgetConfig<C[\"parameters\"]>> {\n /**\n * Notifies the host that this client is ready to receive the first parameter values\n */\n ready: () => void;\n\n /**\n * Notifies the host that the widget has resized\n */\n resize: (payload: WidgetMessage.Payload.Resize) => void;\n\n /**\n * Emits an event with the given ID and payload\n */\n emitEvent: <\n M extends WidgetMessage.EmitEvent<C>,\n ID extends M[\"payload\"][\"eventId\"],\n >(\n eventId: ID,\n payload: Omit<\n ExtractEmitEventPayload<M, ID>,\n \"eventId\"\n >,\n ) => void;\n\n /**\n * Sends a message to the parent frame.\n * It is recommended to use the convenience methods for individual messages (e.g. ready or emitEvent) instead\n */\n sendMessage: <M extends WidgetMessage<C>>(message: M) => void;\n\n /**\n * Subscribes to events from the host, invoking the listener when a message is received\n */\n subscribe: () => void;\n\n /**\n * Unsubscribes a previously subscribed listener from host events, if one exists\n */\n unsubscribe: () => void;\n\n /**\n * Event targets on which you can subscribe to specific host messages\n */\n hostEventTarget: FoundryHostEventTarget<C>;\n}\n\ntype ExtractEmitEventPayload<\n M extends WidgetMessage.EmitEvent<any>,\n ID extends M[\"payload\"][\"eventId\"],\n> = Extract<\n M[\"payload\"],\n { eventId: ID }\n>;\n\ninterface PalantirWidgetApiEvents<C extends WidgetConfig<C[\"parameters\"]>> {\n message: CustomEvent<HostMessage<C>>;\n}\n\ninterface PalantirWidgetApi<C extends WidgetConfig<C[\"parameters\"]>> {\n sendMessage: <M extends WidgetMessage<C>>(message: M) => void;\n addEventListener<K extends keyof PalantirWidgetApiEvents<C>>(\n type: K,\n listener: (ev: PalantirWidgetApiEvents<C>[K]) => any,\n options?: boolean | AddEventListenerOptions,\n ): void;\n removeEventListener<K extends keyof PalantirWidgetApiEvents<C>>(\n type: K,\n listener: (ev: PalantirWidgetApiEvents<C>[K]) => any,\n options?: boolean | EventListenerOptions,\n ): void;\n}\n\nexport function createFoundryWidgetClient<\n C extends WidgetConfig<C[\"parameters\"]>,\n>(): FoundryWidgetClient<C> {\n invariant(\n \"__PALANTIR_WIDGET_API__\" in window,\n \"[FoundryWidgetClient] Missing __PALANTIR_WIDGET_API__ in window\",\n );\n const widgetApi = window.__PALANTIR_WIDGET_API__ as PalantirWidgetApi<C>;\n const hostEventTarget = new FoundryHostEventTarget<C>();\n\n const listenForHostMessages = (event: CustomEvent<HostMessage<C>>) => {\n visitHostMessage(event.detail, {\n \"host.update-parameters\": (payload) => {\n hostEventTarget.dispatchEventMessage(\"host.update-parameters\", payload);\n },\n _unknown: () => {\n // Do nothing\n },\n });\n };\n const sendMessageToHost = <M extends WidgetMessage<C>>(message: M) => {\n widgetApi.sendMessage(message);\n };\n\n return {\n hostEventTarget,\n ready: () => {\n sendMessageToHost({\n type: \"widget.ready\",\n payload: {\n apiVersion: HostMessage.Version,\n },\n });\n },\n resize: (payload) => {\n sendMessageToHost({\n type: \"widget.resize\",\n payload,\n });\n },\n emitEvent: (eventId, payload) => {\n sendMessageToHost({\n type: \"widget.emit-event\",\n payload: {\n eventId,\n ...payload,\n },\n });\n },\n sendMessage: sendMessageToHost,\n subscribe: () => {\n widgetApi.addEventListener(\"message\", listenForHostMessages);\n },\n unsubscribe: () => {\n widgetApi.removeEventListener(\"message\", listenForHostMessages);\n },\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,WAAW,EACXC,gBAAgB,QAGX,kBAAkB;AACzB,OAAOC,SAAS,MAAM,gBAAgB;AACtC,SAASC,sBAAsB,QAAQ,WAAW;AA2ElD,OAAO,SAASC,yBAAyBA,CAAA,EAEb;EAC1B,EACE,yBAAyB,IAAIC,MAAM,IAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBADrCN,SAAS,QAEP,iEAAiE,IAFnEA,SAAS;EAIT,MAAMO,SAAS,GAAGJ,MAAM,CAACK,uBAA+C;EACxE,MAAMC,eAAe,GAAG,IAAIR,sBAAsB,CAAI,CAAC;EAEvD,MAAMS,qBAAqB,GAAIC,KAAkC,IAAK;IACpEZ,gBAAgB,CAACY,KAAK,CAACC,MAAM,EAAE;MAC7B,wBAAwB,EAAGC,OAAO,IAAK;QACrCJ,eAAe,CAACK,oBAAoB,CAAC,wBAAwB,EAAED,OAAO,CAAC;MACzE,CAAC;MACDE,QAAQ,EAAEA,CAAA,KAAM;QACd;MAAA;IAEJ,CAAC,CAAC;EACJ,CAAC;EACD,MAAMC,iBAAiB,GAAgCC,OAAU,IAAK;IACpEV,SAAS,CAACW,WAAW,CAACD,OAAO,CAAC;EAChC,CAAC;EAED,OAAO;IACLR,eAAe;IACfU,KAAK,EAAEA,CAAA,KAAM;MACXH,iBAAiB,CAAC;QAChBI,IAAI,EAAE,cAAc;QACpBP,OAAO,EAAE;UACPQ,UAAU,EAAEvB,WAAW,CAACwB;QAC1B;MACF,CAAC,CAAC;IACJ,CAAC;IACDC,MAAM,EAAGV,OAAO,IAAK;MACnBG,iBAAiB,CAAC;QAChBI,IAAI,EAAE,eAAe;QACrBP;MACF,CAAC,CAAC;IACJ,CAAC;IACDW,SAAS,EAAEA,CAACC,OAAO,EAAEZ,OAAO,KAAK;MAC/BG,iBAAiB,CAAC;QAChBI,IAAI,EAAE,mBAAmB;QACzBP,OAAO,EAAE;UACPY,OAAO;UACP,GAAGZ;QACL;MACF,CAAC,CAAC;IACJ,CAAC;IACDK,WAAW,EAAEF,iBAAiB;IAC9BU,SAAS,EAAEA,CAAA,KAAM;MACfnB,SAAS,CAACoB,gBAAgB,CAAC,SAAS,EAAEjB,qBAAqB,CAAC;IAC9D,CAAC;IACDkB,WAAW,EAAEA,CAAA,KAAM;MACjBrB,SAAS,CAACsB,mBAAmB,CAAC,SAAS,EAAEnB,qBAAqB,CAAC;IACjE;EACF,CAAC;AACH","ignoreList":[]}
|
package/build/types/client.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ export interface FoundryWidgetClient<C extends WidgetConfig<C["parameters"]>> {
|
|
|
6
6
|
*/
|
|
7
7
|
ready: () => void;
|
|
8
8
|
/**
|
|
9
|
+
* Notifies the host that the widget has resized
|
|
10
|
+
*/
|
|
11
|
+
resize: (payload: WidgetMessage.Payload.Resize) => void;
|
|
12
|
+
/**
|
|
9
13
|
* Emits an event with the given ID and payload
|
|
10
14
|
*/
|
|
11
15
|
emitEvent: <
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAGO,mBACA,qBACA,kBAAmB;AAE1B,SAAS,8BAA8B,WAAY;AAEnD,iBAAiB,oBAAoB,UAAU,aAAa,EAAE,gBAAgB;;;;CAI5E;;;;CAKA;EACE,UAAU,cAAc,UAAU;EAClC,WAAW,EAAE,WAAW;
|
|
1
|
+
{"mappings":"AAgBA,cAGO,mBACA,qBACA,kBAAmB;AAE1B,SAAS,8BAA8B,WAAY;AAEnD,iBAAiB,oBAAoB,UAAU,aAAa,EAAE,gBAAgB;;;;CAI5E;;;;CAKA,SAASA,SAAS,cAAc,QAAQ;;;;CAKxC;EACE,UAAU,cAAc,UAAU;EAClC,WAAW,EAAE,WAAW;GAExBC,SAAS,IACTC,SAAS,KACP,wBAAwB,GAAG,KAC3B;;;;;CAQJ,cAAc,UAAU,cAAc,IAAIC,SAAS;;;;CAKnD;;;;CAKA;;;;CAKA,iBAAiB,uBAAuB;AACzC;KAEI;CACH,UAAU,cAAc;CACxB,WAAW,EAAE,WAAW;IACtB,QACF,EAAE,YACF;CAAE,SAAS;AAAI;AAqBjB,OAAO,iBAAS,0BACd,UAAU,aAAa,EAAE,mBACtB,oBAAoB","names":["payload: WidgetMessage.Payload.Resize","eventId: ID","payload: Omit<\n ExtractEmitEventPayload<M, ID>,\n \"eventId\"\n >","message: M"],"sources":["../../src/client.ts"],"version":3,"file":"client.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/widget.client",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6",
|
|
4
4
|
"description": "Client that sets up listeners for the custom widgets embedded into Foundry, adhering to the contract laid out in @osdk/widget.api",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tiny-invariant": "^1.3.3",
|
|
33
|
-
"@osdk/widget.api": "~3.2.
|
|
33
|
+
"@osdk/widget.api": "~3.2.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"ts-expect": "^1.3.0",
|
|
37
37
|
"typescript": "~5.5.4",
|
|
38
|
-
"@osdk/monorepo.
|
|
39
|
-
"@osdk/monorepo.
|
|
38
|
+
"@osdk/monorepo.api-extractor": "~0.4.0",
|
|
39
|
+
"@osdk/monorepo.tsconfig": "~0.4.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|